/* Nervory - Deep Current theme
   nvy- flat component classes + is-/has- states + layout primitives
   Order: reset / tokens / base / layout / components / sections / utilities / responsive
   2-space indent, calm clinical aqua-flow archetype */

/* ---- reset ---- */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul[role="list"] { list-style: none; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

/* ---- tokens ---- */
:root {
  --ink: #0c2742;
  --navy-2: #16395c;
  --aqua: #16b6d4;
  --aqua-deep: #0e8aa8;
  --aqua-soft: #d8f1f7;
  --amber: #f6b313;
  --amber-deep: #d99700;
  --frost: #f4f9fc;
  --white: #ffffff;
  --line: #d9e6ef;
  --text: #213442;
  --muted: #5d7488;
  --good: #169a6b;

  --shadow-sm: 0 2px 10px rgba(12,39,66,.06);
  --shadow-md: 0 14px 40px rgba(12,39,66,.10);
  --shadow-lg: 0 26px 70px rgba(12,39,66,.16);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 26px;
  --r-pill: 999px;

  --wrap: 1160px;
  --gap: clamp(1rem, 3vw, 2rem);

  --f-head: "Sora", system-ui, sans-serif;
  --f-body: "Inter Tight", system-ui, sans-serif;
}

/* ---- base ---- */
body {
  font-family: var(--f-body);
  color: var(--text);
  background: var(--frost);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--f-head); color: var(--ink); line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin-bottom: 1rem; }
a { text-decoration: none; }
:focus-visible { outline: 3px solid var(--aqua-deep); outline-offset: 2px; border-radius: 4px; }

/* ---- layout primitives ---- */
.nvy-wrap { width: min(100% - 2.4rem, var(--wrap)); margin-inline: auto; }
.nvy-stack > * + * { margin-top: 1rem; }
.nvy-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.nvy-grid { display: grid; gap: 1.4rem; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ---- skip link ---- */
.nvy-skip {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 var(--r-sm) 0;
}
.nvy-skip:focus { left: 0; }

/* ---- ribbon ---- */
.nvy-ribbon {
  background: var(--ink); color: #cfe7f2;
  font-size: .8rem; text-align: center; padding: .5rem 1rem; letter-spacing: .02em;
}
.nvy-ribbon strong { color: var(--amber); }

/* ---- header ---- */
.nvy-head { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.nvy-head-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 0; }
.nvy-brand { display: flex; align-items: center; gap: .55rem; font-family: var(--f-head); font-weight: 700; font-size: 1.3rem; color: var(--ink); }
.nvy-brand-mark { width: 34px; height: 34px; flex: none; }
.nvy-brand small { display: block; font-family: var(--f-body); font-weight: 500; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--aqua-deep); }
.nvy-nav { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.nvy-nav a { padding: .5rem .65rem; border-radius: var(--r-sm); font-size: .92rem; font-weight: 500; color: var(--navy-2); }
.nvy-nav a:hover { background: var(--aqua-soft); color: var(--ink); }
.nvy-nav a[aria-current="page"] { color: var(--aqua-deep); font-weight: 600; }
.nvy-burger { display: none; background: var(--frost); border: 1px solid var(--line); border-radius: var(--r-sm); width: 44px; height: 44px; align-items: center; justify-content: center; }
.nvy-burger span, .nvy-burger span::before, .nvy-burger span::after { content: ""; display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: .2s; }
.nvy-burger span::before { position: absolute; top: -6px; }
.nvy-burger span::after { position: absolute; top: 6px; }

/* ---- buttons ---- */
.nvy-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--amber); color: var(--ink); font-family: var(--f-head); font-weight: 700;
  padding: .85rem 1.5rem; border-radius: var(--r-pill); border: 0;
  box-shadow: 0 8px 20px rgba(246,179,19,.32); transition: transform .15s, box-shadow .15s;
}
.nvy-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(246,179,19,.42); }
.nvy-btn.is-ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); box-shadow: none; }
.nvy-btn.is-aqua { background: var(--aqua-deep); color: #fff; box-shadow: 0 8px 20px rgba(14,138,168,.32); }
.nvy-btn.is-lg { font-size: 1.05rem; padding: 1rem 1.9rem; }
.nvy-price-tag { font-size: .8em; opacity: .85; font-weight: 600; }

/* ---- breadcrumb ---- */
.nvy-crumb { background: var(--white); border-bottom: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.nvy-crumb ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: .7rem 0; margin: 0; }
.nvy-crumb a { color: var(--aqua-deep); }
.nvy-crumb li + li::before { content: "›"; margin-right: .4rem; color: var(--line); }

/* ---- badges ---- */
.nvy-badges { display: flex; flex-wrap: wrap; gap: .5rem; }
.nvy-badge {
  display: inline-flex; align-items: center; gap: .35rem; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r-pill); padding: .35rem .8rem;
  font-size: .76rem; font-weight: 600; color: var(--navy-2); box-shadow: var(--shadow-sm);
}
.nvy-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); }

/* ---- sections ---- */
.nvy-sec { padding: clamp(2.6rem, 6vw, 4.6rem) 0; }
.nvy-sec.is-tint { background: var(--white); }
.nvy-sec.is-ink { background: var(--ink); color: #d7e6f0; }
.nvy-sec.is-ink h2, .nvy-sec.is-ink h3 { color: #fff; }
.nvy-eyebrow { font-family: var(--f-head); font-weight: 700; text-transform: uppercase; letter-spacing: .16em; font-size: .76rem; color: var(--aqua-deep); }
.nvy-lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }

/* ---- hero ---- */
.nvy-hero { position: relative; overflow: hidden; background:
  radial-gradient(900px 500px at 80% -10%, rgba(22,182,212,.18), transparent 60%),
  linear-gradient(180deg, var(--white), var(--frost)); }
.nvy-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; padding: clamp(2rem, 5vw, 4rem) 0; }
.nvy-hero h1 span { color: var(--aqua-deep); }
.nvy-hero-img { position: relative; }
.nvy-hero-img img { margin-inline: auto; filter: drop-shadow(0 30px 50px rgba(12,39,66,.25)); max-height: 460px; }
.nvy-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; display: block; }

/* ---- key facts table ---- */
.nvy-keyfacts { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-md); overflow: hidden; }
.nvy-keyfacts caption { text-align: left; font-family: var(--f-head); font-weight: 700; color: var(--ink); padding: 1rem 1.2rem; background: var(--aqua-soft); }
.nvy-keyfacts table { width: 100%; border-collapse: collapse; }
.nvy-keyfacts th, .nvy-keyfacts td { text-align: left; padding: .7rem 1.2rem; border-top: 1px solid var(--line); font-size: .95rem; vertical-align: top; }
.nvy-keyfacts th { width: 42%; color: var(--navy-2); font-weight: 600; }

/* ---- tldr / takeaways callouts ---- */
.nvy-callout { background: var(--white); border-left: 5px solid var(--aqua); border-radius: var(--r-md); padding: 1.3rem 1.5rem; box-shadow: var(--shadow-sm); }
.nvy-callout .nvy-eyebrow { display: block; margin-bottom: .4rem; }
.nvy-takeaways { background: linear-gradient(180deg, var(--aqua-soft), var(--white)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2.2rem); }
.nvy-takeaways ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.nvy-takeaways li { position: relative; padding-left: 1.9rem; }
.nvy-takeaways li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--white); background: var(--aqua-deep); width: 1.3rem; height: 1.3rem; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; }

/* ---- cards ---- */
.nvy-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.5rem; box-shadow: var(--shadow-sm); height: 100%; }
.nvy-card h3 { margin-bottom: .4rem; }
.nvy-pillar { border-top: 4px solid var(--aqua); }
.nvy-num { font-family: var(--f-head); font-size: 2rem; font-weight: 800; color: var(--aqua-soft); -webkit-text-stroke: 1px var(--aqua-deep); }

/* ---- ingredient table ---- */
.nvy-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.nvy-table caption { text-align: left; padding: 0 0 .8rem; color: var(--muted); font-size: .9rem; }
.nvy-table th, .nvy-table td { padding: .8rem 1rem; border-bottom: 1px solid var(--line); text-align: left; font-size: .94rem; }
.nvy-table thead th { background: var(--ink); color: #fff; font-family: var(--f-head); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.nvy-table tbody tr:nth-child(even) { background: var(--frost); }

/* ---- pricing ---- */
.nvy-prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: stretch; }
.nvy-plan { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.6rem 1.4rem; text-align: center; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; position: relative; }
.nvy-plan.is-popular { border: 2px solid var(--amber); box-shadow: var(--shadow-lg); transform: translateY(-10px); }
.nvy-plan-flag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--amber); color: var(--ink); font-family: var(--f-head); font-weight: 700; font-size: .74rem; padding: .3rem .9rem; border-radius: var(--r-pill); white-space: nowrap; }
.nvy-plan h3 { color: var(--aqua-deep); }
.nvy-plan-qty { font-family: var(--f-head); font-size: 1.5rem; font-weight: 800; color: var(--ink); }
.nvy-plan-img { display: flex; justify-content: center; min-height: 180px; align-items: center; }
.nvy-plan-img img { max-height: 180px; width: auto; object-fit: contain; }
.nvy-plan-price { font-family: var(--f-head); font-weight: 800; color: var(--ink); }
.nvy-plan-price b { font-size: 3rem; line-height: 1; }
.nvy-plan-price span { font-size: .9rem; color: var(--muted); font-weight: 600; }
.nvy-was { color: var(--muted); text-decoration: line-through; font-size: .9rem; }
.nvy-save { color: var(--good); font-weight: 700; font-size: .9rem; }
.nvy-plan-ship { font-size: .85rem; color: var(--muted); }
.nvy-plan .nvy-btn { width: 100%; margin-top: auto; }
.nvy-pay { display: flex; justify-content: center; gap: .4rem; flex-wrap: wrap; margin-top: .6rem; opacity: .7; font-size: .68rem; color: var(--muted); }

/* ---- verify table (dl variant) ---- */
.nvy-verify { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.nvy-verify div { padding: .9rem 1.2rem; border-bottom: 1px solid var(--line); }
.nvy-verify dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--aqua-deep); font-weight: 700; }
.nvy-verify dd { margin: .2rem 0 0; font-weight: 600; color: var(--ink); }

/* ---- reviews ---- */
.nvy-rating-big { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.nvy-rating-score { font-family: var(--f-head); font-size: 3.4rem; font-weight: 800; color: var(--ink); line-height: 1; }
.nvy-stars { color: var(--amber); font-size: 1.3rem; letter-spacing: .1em; }
.nvy-snapshot { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.nvy-stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.1rem; text-align: center; box-shadow: var(--shadow-sm); }
.nvy-stat b { display: block; font-family: var(--f-head); font-size: 1.8rem; color: var(--aqua-deep); }
.nvy-stat span { font-size: .82rem; color: var(--muted); }
.nvy-bar { background: var(--aqua-soft); border-radius: var(--r-pill); height: 12px; overflow: hidden; }
.nvy-bar > i { display: block; height: 100%; background: var(--aqua-deep); border-radius: var(--r-pill); }
.nvy-meter-row { display: grid; grid-template-columns: 1fr 2.4fr auto; gap: .8rem; align-items: center; margin-bottom: .55rem; font-size: .9rem; }
.nvy-review { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.3rem; box-shadow: var(--shadow-sm); }
.nvy-review .nvy-stars { font-size: 1rem; }
.nvy-reviewer { display: flex; align-items: center; gap: .7rem; margin-top: .8rem; }
.nvy-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--f-head); font-weight: 700; font-size: .9rem; flex: none; }
.nvy-verified { font-size: .72rem; color: var(--good); font-weight: 700; }

/* ---- byline ---- */
.nvy-byline { font-size: .85rem; color: var(--muted); border-left: 3px solid var(--aqua); padding-left: .9rem; }
.nvy-byline strong { color: var(--navy-2); }

/* ---- faq / details ---- */
.nvy-faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: .8rem; box-shadow: var(--shadow-sm); }
.nvy-faq summary { padding: 1rem 1.2rem; font-family: var(--f-head); font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.nvy-faq summary::-webkit-details-marker { display: none; }
.nvy-faq summary::after { content: "+"; color: var(--aqua-deep); font-size: 1.3rem; }
.nvy-faq details[open] summary::after { content: "–"; }
.nvy-faq details > p { padding: 0 1.2rem 1.1rem; margin: 0; color: var(--muted); }

/* ---- steps ---- */
.nvy-steps { counter-reset: step; display: grid; gap: 1rem; }
.nvy-step { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.2rem 1.2rem 1.2rem 3.6rem; position: relative; box-shadow: var(--shadow-sm); }
.nvy-step::before { counter-increment: step; content: counter(step); position: absolute; left: 1rem; top: 1.1rem; width: 1.9rem; height: 1.9rem; background: var(--aqua-deep); color: #fff; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-head); font-weight: 700; }

/* ---- form ---- */
.nvy-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.6rem; box-shadow: var(--shadow-sm); display: grid; gap: 1rem; }
.nvy-field { display: grid; gap: .35rem; }
.nvy-field label { font-weight: 600; font-size: .9rem; color: var(--navy-2); }
.nvy-field input, .nvy-field textarea, .nvy-field select { padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--frost); }

/* ---- footer ---- */
.nvy-foot { background: var(--ink); color: #b8cee0; padding: 3rem 0 1.4rem; font-size: .9rem; }
.nvy-foot h4 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .7rem; }
.nvy-foot a { color: #b8cee0; }
.nvy-foot a:hover { color: var(--amber); }
.nvy-foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 1.6rem; }
.nvy-foot-cols { display: grid; gap: .4rem; }
.nvy-foot-brand { display: flex; align-items: center; gap: .5rem; color: #fff; font-family: var(--f-head); font-weight: 700; font-size: 1.2rem; margin-bottom: .6rem; }
.nvy-disc { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1.2rem; font-size: .78rem; color: #8aa6bd; }
.nvy-disc p { margin-bottom: .7rem; }

/* ---- cta band ---- */
.nvy-ctaband { background: linear-gradient(120deg, var(--ink), var(--aqua-deep)); color: #fff; border-radius: var(--r-lg); padding: clamp(1.8rem, 4vw, 3rem); text-align: center; }
.nvy-ctaband h2 { color: #fff; }
.nvy-ctaband p { color: #d7eef5; }

/* ---- misc ---- */
.nvy-note { font-size: .82rem; color: var(--muted); }
.nvy-pill-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; }
.nvy-pill-list li { background: var(--aqua-soft); color: var(--navy-2); border-radius: var(--r-pill); padding: .3rem .8rem; font-size: .82rem; font-weight: 600; }
.nvy-glossary dt { font-family: var(--f-head); font-weight: 700; color: var(--ink); margin-top: .8rem; }
.nvy-glossary dd { margin: 0; color: var(--muted); }
.nvy-updated { font-size: .8rem; color: var(--muted); font-style: italic; }

/* ---- utilities ---- */
.u-center { text-align: center; }
.u-mt { margin-top: 1.4rem; }
.u-mt2 { margin-top: 2.4rem; }
.u-mxauto { margin-inline: auto; }
.u-maxw { max-width: 70ch; }
.u-hide { display: none; }

/* ---- responsive ---- */
@media (max-width: 920px) {
  .nvy-hero-grid { grid-template-columns: 1fr; text-align: center; }
  .nvy-hero-img { order: -1; }
  .nvy-foot-grid { grid-template-columns: 1fr 1fr; }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .nvy-snapshot { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nvy-burger { display: inline-flex; }
  .nvy-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; padding: .6rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); }
  .nvy-nav.is-open { display: flex; }
  .nvy-head-inner { position: relative; }
  .nvy-prices { grid-template-columns: 1fr; }
  .nvy-plan.is-popular { transform: none; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .nvy-verify { grid-template-columns: 1fr; }
  .nvy-meter-row { grid-template-columns: 1fr 1.6fr auto; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none !important; }
}
