/* checkmyfishtank.com: same palette and fonts as the app. One accent (coral) for the main button. */
:root {
  --deep: #0B3D4C; --mid: #1C7C8C; --clear: #E8F6F7; --accent: #FF7A59; --accent-ink: #4A1608;
  --bg: #F6FAFA; --card: #fff; --ink: #10262D; --ink-2: #4B6268; --line: #D8E6E8;
  --safe: #2E8B57; --watch: #B7791F; --danger: #C0392B;
  --r: 20px; --shadow: 0 1px 2px rgba(11,61,76,.06), 0 8px 24px rgba(11,61,76,.08);
  --font: "Plus Jakarta Sans", system-ui, sans-serif; --display: "Fredoka", "Plus Jakarta Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--font); overflow-x: hidden; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--deep); }
h1 { font-size: clamp(2rem, 6vw, 3.2rem); } h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); margin-top: 1.4em; } h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--mid); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.muted { color: var(--ink-2); } .small { font-size: .9rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 16px; z-index: 99; background: #fff; padding: 8px 12px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(246,250,250,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--deep); font-family: var(--display); font-size: 1.25rem; }
.brand img { border-radius: 10px; } .brand b { font-weight: 600; } .brand i { font-style: normal; color: var(--mid); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.menu-btn { display: none; margin-left: auto; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font: 600 .95rem var(--font); color: var(--deep); min-height: 44px; }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open { display: flex; } .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); } .nav .btn { margin-top: 10px; text-align: center; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 700 1rem var(--font); text-decoration: none; border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); } .btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px rgba(255,122,89,.35); }
.btn-ghost { background: var(--clear); color: var(--deep); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9rem; }

/* hero with a living tank */
.hero { padding: 40px 0 56px; background: radial-gradient(90% 80% at 80% 0%, #DDF3F5 0%, var(--bg) 60%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.eyebrow { font-weight: 700; color: var(--mid); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: .6em; }
.lead { font-size: 1.15rem; color: var(--ink-2); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 10px; }
.hero-tank { position: relative; border-radius: 28px; overflow: hidden; box-shadow: 0 24px 60px rgba(11,61,76,.25); aspect-ratio: 1008 / 575; background: var(--deep); }
.hero-tank .scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: drift 24s ease-in-out infinite alternate; transform-origin: 50% 100%; }
@keyframes drift { from { transform: scale(1.06) translateX(-1.5%); } to { transform: scale(1.06) translateX(1.5%); } }
.swim { position: absolute; width: 22%; animation: swim 18s linear infinite; filter: drop-shadow(0 4px 6px rgba(0,0,0,.25)); }
.s0 { top: 18%; animation-duration: 16s; } .s1 { top: 40%; width: 26%; animation-duration: 22s; animation-delay: -6s; }
.s2 { top: 30%; width: 16%; animation-duration: 14s; animation-delay: -3s; } .s3 { top: 55%; width: 14%; animation-duration: 19s; animation-delay: -11s; }
.s4 { top: 72%; width: 20%; animation-duration: 26s; animation-delay: -9s; } .s5 { top: 24%; width: 12%; animation-duration: 12s; animation-delay: -5s; }
@keyframes swim {
  0% { left: -30%; transform: scaleX(1) translateY(0); } 45% { transform: scaleX(1) translateY(-8px); } 49.9% { left: 105%; transform: scaleX(1); }
  50% { left: 105%; transform: scaleX(-1); } 95% { transform: scaleX(-1) translateY(6px); } 100% { left: -30%; transform: scaleX(-1); }
}
.bubble { position: absolute; bottom: -10px; width: 10px; height: 10px; border: 2px solid rgba(255,255,255,.7); border-radius: 50%; animation: rise 7s linear infinite; }
.b1 { left: 78%; } .b2 { left: 82%; animation-delay: -2.5s; width: 7px; height: 7px; } .b3 { left: 75%; animation-delay: -5s; }
@keyframes rise { to { transform: translateY(-460px) translateX(8px); opacity: 0; } }
.fedchip { position: absolute; left: 14px; bottom: 14px; background: rgba(255,255,255,.92); color: var(--deep); border-radius: 14px; padding: 8px 12px; font-weight: 700; font-size: .9rem; box-shadow: var(--shadow); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 24px; } }
@media (prefers-reduced-motion: reduce) { .swim, .bubble, .hero-tank .scene { animation: none; } .swim { left: 30%; } .s1 { left: 55%; } .s4 { left: 10%; } }

/* sections */
.section { padding: 56px 0; } .section.alt { background: #fff; } .section.cta { background: linear-gradient(135deg, var(--deep), var(--mid)); color: #fff; }
.section.cta h2 { color: #fff; } .section.cta .muted { color: #CBE9EC; }
.band { background: var(--deep); color: #fff; padding: 26px 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stats b { display: block; font-family: var(--display); font-size: 2rem; color: #FFD9CC; } .stats span { color: #CBE9EC; font-size: .95rem; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px; }
.card p:last-child { margin: 0; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr 1fr; } } @media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 60px; margin-bottom: 10px; background: var(--clear); border-radius: 16px; }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 32px; height: 32px; border-radius: 50%; background: var(--safe); color: #fff; display: grid; place-items: center; font-weight: 800; }
.steps b { display: block; color: var(--deep); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 760px; }
.plan { background: var(--card); border: 2px solid var(--line); border-radius: var(--r); padding: 24px; }
.plan.pro { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,122,89,.15); }
.price { font-family: var(--display); font-size: 2.2rem; color: var(--deep); margin: 0; } .price span { font-size: 1rem; color: var(--ink-2); }
.plan ul { padding-left: 1.2em; }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }
.faq { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); margin-bottom: 10px; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; min-height: 48px; list-style-position: outside; }
.faq p { padding-bottom: 16px; margin: 0; color: var(--ink-2); }
.notify { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.notify input[type=email] { flex: 1 1 240px; min-height: 52px; border-radius: 999px; border: 0; padding: 0 20px; font: 1rem var(--font); }
.notify .hp { position: absolute; left: -9999px; }
.notify .msg { flex-basis: 100%; margin: 0; font-weight: 700; min-height: 1.4em; }

/* fish */
.fishgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 20px; }
.fishtile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 14px; text-decoration: none; color: var(--ink); transition: transform .15s ease; }
.fishtile:hover { transform: translateY(-3px); }
.fishtile img { width: 140px; height: 84px; object-fit: contain; } .fishtile .noimg { font-size: 2.6rem; height: 84px; display: grid; place-items: center; }
.fishtile b { color: var(--deep); } .fishtile span { font-size: .85rem; color: var(--ink-2); }
.search { width: 100%; max-width: 520px; min-height: 52px; border-radius: 999px; border: 2px solid var(--line); padding: 0 20px; font: 1rem var(--font); margin-top: 10px; }
.page-hero { padding: 28px 0 18px; background: radial-gradient(90% 100% at 80% 0%, #DDF3F5 0%, var(--bg) 70%); }
.crumbs { font-size: .9rem; color: var(--ink-2); margin-bottom: 10px; } .crumbs a { color: var(--ink-2); }
.sci { color: var(--ink-2); }
.sheet { display: grid; grid-template-columns: 1fr 320px; gap: 32px; padding-bottom: 48px; }
.sheet-img { display: block; width: 100%; max-width: 420px; margin: 0 auto 12px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 16px 0; }
.facts div { background: var(--clear); border-radius: 14px; padding: 10px 14px; } .facts b { display: block; font-size: .8rem; color: var(--ink-2); } .facts span { font-weight: 700; }
.callout { background: #FFF4EC; border-left: 6px solid var(--accent); border-radius: 12px; padding: 14px 16px; }
.flag { background: #FCEBCB; border-radius: 12px; padding: 8px 12px; color: #6B4405; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; } .chip { background: var(--clear); color: var(--deep); border-radius: 999px; padding: 8px 14px; text-decoration: none; font-weight: 600; font-size: .95rem; }
.nomix li { margin-bottom: 6px; } .sources li { word-break: break-all; }
.sticky { position: sticky; top: 84px; }
@media (max-width: 900px) { .sheet { grid-template-columns: 1fr; } .sticky { position: static; } }
.prose { max-width: 760px; padding-bottom: 48px; } .prose h2 { font-size: 1.35rem; }

/* footer */
.foot { background: #fff; border-top: 1px solid var(--line); padding: 32px 0 24px; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 18px; align-content: flex-start; } .foot nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
@media (max-width: 640px) { .foot-grid { grid-template-columns: 1fr; } }
.totop { position: fixed; right: 16px; bottom: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--deep); color: #fff; font-size: 1.3rem; cursor: pointer; box-shadow: var(--shadow); z-index: 30; }

/* motion: cards rise in as you scroll */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
