/* checkmyfishtank.com v2: living tank stage, live demos, coach scroll story, Pro showcase. */
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.08rem; }
.btn-glass { background: rgba(255,255,255,.16); color: #fff; border: 1.5px solid rgba(255,255,255,.55); backdrop-filter: blur(6px); }
.light { color: #fff !important; } .eyebrow.light { color: #9FE3EA !important; } .lead.light { color: #D4EEF1 !important; }
.grad { background: linear-gradient(90deg, #FFB199, #FF7A59 40%, #F2C14E); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* living tank stage */
.stage { position: relative; min-height: min(92vh, 860px); display: flex; align-items: center; overflow: hidden; background: #0B3D4C; isolation: isolate; }
#livetank { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: pointer; touch-action: manipulation; z-index: -2; }
.stage-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(6,32,40,.88) 0%, rgba(6,32,40,.62) 38%, rgba(6,32,40,0) 70%), linear-gradient(0deg, rgba(6,32,40,.55), rgba(6,32,40,0) 30%); }
.stage-copy { position: relative; padding: 48px 16px 120px; pointer-events: none; }
.stage-copy .cta-row, .stage-copy a { pointer-events: auto; }
.stage-copy h1 { color: #fff; font-size: clamp(2.2rem, 6vw, 4rem); max-width: 15ch; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.stage-copy .lead { max-width: 34rem; }
.stage-controls { position: absolute; right: 16px; bottom: 18px; display: flex; gap: 10px; z-index: 2; }
.pillbtn { min-height: 48px; padding: 0 18px; border-radius: 999px; border: 0; background: rgba(255,255,255,.92); color: var(--deep); font: 700 1rem var(--font); cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.pillbtn.icon { width: 48px; padding: 0; display: grid; place-items: center; }
.pillbtn[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.pillbtn:disabled { opacity: .85; }
.tankhint { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); margin: 0; color: #fff; font-weight: 700; background: rgba(0,0,0,.35); padding: 8px 14px; border-radius: 999px; pointer-events: none; animation: hint 5s ease 1.5s both; }
@keyframes hint { 0% { opacity: 0; transform: translate(-50%, 8px); } 15%, 75% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }
@media (max-width: 700px) {
  .stage { min-height: 88vh; align-items: flex-start; }
  .stage-copy { padding-top: 28px; }
  .stage-shade { background: linear-gradient(180deg, rgba(6,32,40,.9) 0%, rgba(6,32,40,.6) 45%, rgba(6,32,40,0) 75%); }
}

/* live demos */
.tryrow { display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px; align-items: start; margin-top: 18px; }
@media (max-width: 860px) { .tryrow { grid-template-columns: 1fr; } }
.trypick { display: grid; gap: 6px; position: relative; }
.trypick label { font-weight: 700; color: var(--deep); }
.trypick input { min-height: 52px; border-radius: 14px; border: 2px solid var(--line); padding: 0 14px; font: 1.05rem var(--font); width: 100%; }
.trypick input:focus { outline: none; border-color: var(--mid); box-shadow: 0 0 0 4px rgba(28,124,140,.15); }
.swap { justify-self: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--clear); color: var(--deep); font-size: 1.3rem; cursor: pointer; transition: transform .3s; }
.swap:hover { transform: rotate(180deg); }
.pairs { display: flex; flex-wrap: wrap; gap: 8px; }
.pairs button { border: 0; background: var(--clear); color: var(--deep); border-radius: 999px; padding: 8px 12px; font: 600 .9rem var(--font); cursor: pointer; min-height: 40px; }
.verdictcard { border-radius: 24px; padding: 24px; color: #fff; box-shadow: 0 18px 40px rgba(11,61,76,.18); min-height: 180px; transition: background .4s ease; }
.verdictcard h3 { color: #fff; font-size: 1.8rem; margin: 4px 0 10px; }
.verdictcard p, .verdictcard li { color: rgba(255,255,255,.95); }
.verdictcard .muted { color: rgba(255,255,255,.8); }
.verdictcard ul { padding-left: 1.1em; margin: 0 0 10px; }
.verdictcard a { color: #fff; font-weight: 700; }
.verdictcard.great { background: linear-gradient(135deg, #2E8B57, #3FA36B); }
.verdictcard.risky { background: linear-gradient(135deg, #B7791F, #D69E2E); }
.verdictcard.no { background: linear-gradient(135deg, #A93226, #C0392B); }
.verdictcard.wait { background: linear-gradient(135deg, #0B3D4C, #1C7C8C); }
.vlabel { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 800; opacity: .85; margin: 0; }
.verdictcard.pop { animation: pop .45s cubic-bezier(.2,1.4,.4,1); }
@keyframes pop { from { transform: scale(.94); opacity: .5; } to { transform: none; opacity: 1; } }
.wlabel { font-weight: 700; color: var(--deep); margin: 10px 0 6px; }
.wlabel:first-child { margin-top: 0; }
.chip { border: 2px solid transparent; cursor: pointer; font: 600 1rem var(--font); min-height: 44px; }
.chip[aria-pressed="true"] { background: var(--mid); color: #fff; }
.waterglass { --murk: 0; position: relative; border-radius: 28px; padding: 18px; background: url(/scenes/planted.webp) center/cover; }
.waterglass::before { content: ""; position: absolute; inset: 0; border-radius: 28px; background: rgba(120,140,60, calc(var(--murk) * .55)); backdrop-filter: blur(calc(var(--murk) * 6px)); transition: all .6s ease; }
.waterglass .verdictcard { position: relative; }

/* coach scroll story: the tank clears as you scroll */
.coachstory { padding: 64px 0; background: linear-gradient(180deg, var(--bg), #EAF6F7); }
.coach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.coach-sticky { position: sticky; top: 90px; align-self: start; }
.coachtank { --clear: 0; position: relative; border-radius: 26px; overflow: hidden; box-shadow: 0 24px 60px rgba(11,61,76,.25); }
.coachtank img { display: block; width: 100%; filter: blur(calc((1 - var(--clear)) * 7px)) sepia(calc((1 - var(--clear)) * .65)) saturate(calc(.6 + var(--clear) * .5)) brightness(calc(.8 + var(--clear) * .2)); transform: scale(1.04); }
.weekchip { position: absolute; left: 14px; top: 14px; background: rgba(255,255,255,.92); color: var(--deep); border-radius: 999px; padding: 6px 14px; font-weight: 800; }
.coachbar { height: 10px; background: #D3E9EC; border-radius: 99px; margin-top: 14px; overflow: hidden; }
.coachbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--watch), var(--safe)); border-radius: 99px; transition: width .2s linear; }
.cstep { position: relative; padding: 18px 18px 18px 56px; margin: 0 0 16px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); opacity: .45; transform: translateX(10px); transition: all .45s ease; min-height: 22vh; display: flex; flex-direction: column; justify-content: center; }
.cstep::before { content: ""; position: absolute; left: 20px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; border: 3px solid var(--line); background: #fff; transition: all .45s; }
.cstep.on { opacity: 1; transform: none; }
.cstep.on::before { border-color: var(--safe); background: var(--safe); box-shadow: 0 0 0 6px rgba(46,139,87,.18); }
.cstep b { font-family: var(--display); font-size: 1.25rem; color: var(--deep); }
.cstep p { margin: 4px 0 0; color: var(--ink-2); }
@media (max-width: 860px) { .coach-grid { grid-template-columns: 1fr; } .coach-sticky { top: 72px; z-index: 2; background: linear-gradient(180deg, var(--bg) 85%, rgba(246,250,250,0)); padding-bottom: 10px; } .cstep { min-height: 26vh; } }

/* features */
.feature { transition: transform .25s ease, box-shadow .25s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(11,61,76,.16); }
.ficon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, #E8F6F7, #CDEDEF); margin-bottom: 12px; }
.ficon svg { width: 28px; height: 28px; fill: none; stroke: var(--mid); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.js .reveal { transition-delay: var(--d, 0ms); }

/* Pro showcase */
.pro { padding: 72px 0; background: radial-gradient(80% 90% at 85% 10%, #1C7C8C 0%, #0B3D4C 45%, #062831 100%); color: #fff; overflow: hidden; }
.pro h2 { color: #fff; }
.pro-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .pro-grid { grid-template-columns: 1fr; } }
.prolist { list-style: none; padding: 0; margin: 20px 0 0; }
.prolist li { padding: 12px 0 12px 34px; border-bottom: 1px solid rgba(255,255,255,.12); position: relative; color: #D4EEF1; }
.prolist li::before { content: ""; position: absolute; left: 0; top: 16px; width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, #FF7A59, #F2C14E); box-shadow: 0 0 0 4px rgba(255,122,89,.18); }
.prolist b { color: #fff; }
.phone { justify-self: center; width: min(340px, 100%); border-radius: 44px; padding: 14px; background: linear-gradient(160deg, #2a3f46, #0d1b20); box-shadow: 0 40px 80px rgba(0,0,0,.45), inset 0 0 0 2px rgba(255,255,255,.08); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.phone-screen { background: #F6FAFA; border-radius: 32px; padding: 18px 14px 14px; min-height: 470px; color: var(--ink); display: flex; flex-direction: column; gap: 10px; }
.phone-top { font-family: var(--display); font-weight: 600; color: var(--deep); margin: 0; font-size: 1.1rem; display: flex; gap: 8px; align-items: center; }
.knows { font-size: .78rem; background: var(--clear); color: var(--deep); border-radius: 12px; padding: 8px 10px; margin: 0; }
.bub { padding: 12px 14px; border-radius: 18px; max-width: 88%; font-size: .95rem; line-height: 1.45; box-shadow: var(--shadow); }
.bub[hidden] { display: none; }
.bub.me { align-self: flex-end; background: var(--mid); color: #fff; border-bottom-right-radius: 6px; }
.bub.ex { align-self: flex-start; background: #fff; border-bottom-left-radius: 6px; }
.typingdots { display: flex; gap: 5px; }
.typingdots i { width: 8px; height: 8px; border-radius: 50%; background: var(--mid); animation: blinkd 1s infinite; }
.typingdots i:nth-child(2) { animation-delay: .2s; } .typingdots i:nth-child(3) { animation-delay: .4s; }
@keyframes blinkd { 50% { opacity: .25; } }
.example { margin: auto 0 0; text-align: center; font-size: .75rem; color: var(--ink-2); }
.probadge { display: inline-block; font: 800 .65rem/1 var(--font); letter-spacing: .06em; padding: 4px 7px; border-radius: 6px; background: linear-gradient(135deg, #FF7A59, #F2C14E); color: #3A1206; }
.plan { position: relative; }
.planflag { position: absolute; top: -14px; left: 24px; margin: 0; background: linear-gradient(135deg, #FF7A59, #F2C14E); color: #3A1206; font-weight: 800; font-size: .8rem; padding: 6px 12px; border-radius: 999px; }
.plan .btn { margin-top: 8px; }

/* fish marquee */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); margin: 10px 0 24px; }
.track { display: flex; gap: 28px; width: max-content; animation: marquee 60s linear infinite; }
.track img { height: 70px; width: auto; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* CTA bubbles */
.section.cta { position: relative; overflow: hidden; }
.section.cta .wrap { position: relative; }
.bubbles i { position: absolute; bottom: -30px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%; border: 2px solid rgba(255,255,255,.45); animation: rise2 var(--t) linear infinite; animation-delay: var(--dl); }
@keyframes rise2 { to { transform: translateY(-110vh) translateX(20px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .track, .bubbles i, .phone, .tankhint { animation: none; } .cstep { opacity: 1; transform: none; } }

/* demo videos in phone frames */
.demos { background: linear-gradient(180deg, #fff, var(--bg)); }
.demorow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 22px; margin-top: 24px; }
.demo { margin: 0; text-align: center; }
.demophone { width: min(260px, 100%); margin: 0 auto; border-radius: 38px; padding: 10px; background: linear-gradient(160deg, #2a3f46, #0d1b20); box-shadow: 0 26px 50px rgba(11,61,76,.28), inset 0 0 0 2px rgba(255,255,255,.08); transition: transform .35s ease; }
.demo:hover .demophone { transform: translateY(-6px) rotate(-1deg); }
.demophone video { display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: 28px; background: #E8F6F7; object-fit: cover; }
.demo figcaption { margin-top: 14px; display: grid; gap: 4px; }
.demo figcaption b { font-family: var(--display); font-size: 1.15rem; color: var(--deep); }
.demo figcaption span { color: var(--ink-2); font-size: .95rem; max-width: 30ch; margin: 0 auto; }
@media (max-width: 860px) {
  .demorow { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding: 4px 16px 18px; margin: 18px -16px 0; -webkit-overflow-scrolling: touch; }
  .demo { flex: 0 0 72%; scroll-snap-align: center; }
}
