/* Neuro — design system
   Warm paper ground, near-black ink, one green accent (verde).
   Committed to a single light aesthetic: it matches the product photography. */

:root {
  --paper:      #F7F4EF;
  --paper-2:    #EFEAE1;
  --paper-3:    #E5DFD4;
  --ink:        #15171A;
  --ink-2:      #3A3D42;
  --muted:      #62605A;   /* was #6E6B65 — measured 4.01:1, below AA at 14px */
  --line:       #DCD5C9;
  --verde:      #2B6E4D;   /* was #2F7A55 — measured 4.34:1 on eyebrow labels */
  --verde-deep: #205038;
  --led:        #5FD46A;
  --night:      #131519;
  --night-2:    #1D2026;

  --w: 1180px;
  --gut: clamp(20px, 5vw, 56px);

  --f-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
            "Helvetica Neue", Arial, sans-serif;

  --step-eyebrow: 0.72rem;
  --step-body:    clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-lead:    clamp(1.13rem, 1.04rem + 0.45vw, 1.4rem);
  --step-h3:      clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
  --step-h2:      clamp(1.85rem, 1.35rem + 2.1vw, 3.1rem);
  --step-h1:      clamp(2.5rem, 1.5rem + 4.4vw, 5.2rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: var(--step-body);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 550;
  letter-spacing: -0.022em;
  line-height: 1.08;
  text-wrap: balance;
}
h1 { font-size: var(--step-h1); letter-spacing: -0.035em; }
h2 { font-size: var(--step-h2); letter-spacing: -0.028em; }
h3 { font-size: var(--step-h3); line-height: 1.2; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--w); margin-inline: auto; padding-inline: var(--gut); }
.wrap-narrow { max-width: 760px; }
/* narrow measure, but left-aligned with the page gutter rather than centred */
.wrap-col { max-width: var(--w); }
.wrap-col > * { max-width: 760px; }
section { padding-block: clamp(64px, 9vw, 132px); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

.eyebrow {
  font-size: var(--step-eyebrow);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--verde);
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: currentColor; flex: none; opacity: .55;
}
.lead { font-size: var(--step-lead); line-height: 1.5; color: var(--ink-2); letter-spacing: -0.012em; }
.muted { color: var(--muted); }
.small { font-size: 0.87rem; line-height: 1.6; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.nav.stuck { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand {
  font-weight: 600; letter-spacing: -0.03em; font-size: 1.16rem;
  text-decoration: none; display: flex; align-items: center; gap: 9px; margin-right: auto;
}
.brand .led {
  width: 7px; height: 7px; border-radius: 50%; background: var(--led); flex: none;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--led) 60%, transparent);
  animation: pulse 3.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--led) 55%, transparent); }
  55%  { box-shadow: 0 0 0 7px color-mix(in srgb, var(--led) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--led) 0%, transparent); }
}
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  text-decoration: none; font-size: 0.925rem; color: var(--ink-2);
  letter-spacing: -0.005em; transition: color .18s ease; white-space: nowrap;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"] { font-weight: 550; }
.nav-links .sm { display: none; }
@media (max-width: 640px) {
  .nav-links .lg { display: none; }
  .nav-links .sm { display: inline; }
  .nav-links a.minor { display: none; }
  .brand { font-size: 1.05rem; }
}
@media (max-width: 800px) {
  .nav-in { height: 60px; gap: 14px; }
  .nav-links { gap: 16px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { font-size: 0.86rem; }
  .nav-links .hide-sm { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 100px;
  background: var(--ink); color: var(--paper);
  text-decoration: none; font-size: 0.94rem; font-weight: 550; letter-spacing: -0.008em;
  border: 1px solid var(--ink);
  transition: transform .18s cubic-bezier(.2,.7,.3,1), background .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1.5px); background: var(--verde-deep); border-color: var(--verde-deep); box-shadow: 0 8px 22px -10px rgba(0,0,0,.5); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: transparent; color: var(--verde-deep); border-color: var(--verde); box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(48px, 7vw, 92px) 0; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: 24px; }
.hero .lead { max-width: 46ch; }
.hero-cta { margin-top: 34px; }
.hero-media {
  border-radius: 18px; overflow: hidden; background: var(--paper-2);
  box-shadow: 0 30px 60px -34px rgba(20,18,14,.42);
  aspect-ratio: 5 / 4;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 46%; }
@media (max-width: 900px) { .hero-media { aspect-ratio: 16 / 9; } }

.wave { display: block; width: 100%; height: 56px; margin-top: 44px; overflow: hidden; }
.wave path { fill: none; stroke: var(--verde); stroke-width: 1.5; stroke-linecap: round; opacity: .55; }
.wave .w2 { stroke: var(--ink); opacity: .13; }
@media (prefers-reduced-motion: no-preference) {
  .wave g { animation: drift 22s linear infinite; }
  .wave .g2 { animation-duration: 34s; animation-direction: reverse; }
}
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-600px); } }

/* ---------- generic blocks ---------- */
.band { background: var(--paper-2); }
.band-3 { background: var(--paper-3); }
.night { background: var(--night); color: #E8E5DF; }
.night h2, .night h3 { color: #FBF9F5; }
.night .lead, .night p { color: #B5B2AB; }
.night .eyebrow { color: var(--led); }
.night .rule, .night .card { border-color: #2C2F36; }
.night .card { background: var(--night-2); }
.night .btn { background: #FBF9F5; color: var(--night); border-color: #FBF9F5; }
.night .btn:hover { background: var(--led); border-color: var(--led); color: var(--night); }
.night .btn-ghost { background: transparent; color: #E8E5DF; border-color: #383C44; }
.night .btn-ghost:hover { color: var(--led); border-color: var(--led); background: transparent; }

.head { max-width: 660px; margin-bottom: clamp(34px, 5vw, 58px); }
.head p { margin-top: 18px; }

.grid { display: grid; gap: clamp(16px, 2.2vw, 26px); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card {
  border: 1px solid var(--line); border-radius: 14px; padding: clamp(22px, 2.6vw, 30px);
  background: color-mix(in srgb, var(--paper) 55%, #fff);
  transition: transform .22s cubic-bezier(.2,.7,.3,1), box-shadow .22s ease;
}
.card h3 { margin-bottom: 11px; }
.card p { font-size: 0.965rem; color: var(--ink-2); }
.card-link { text-decoration: none; display: block; }
.card-link:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -22px rgba(20,18,14,.45); }
.card .num {
  font-size: 0.74rem; font-weight: 600; letter-spacing: .12em; color: var(--verde);
  display: block; margin-bottom: 14px;
}

/* metric tiles */
.metric { border: 1px solid var(--line); border-radius: 14px; padding: clamp(20px, 2.4vw, 28px); }
.metric .k { font-size: 0.79rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.metric .v { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); font-weight: 550; letter-spacing: -0.035em; margin: 8px 0 10px; line-height: 1; }
.metric p { font-size: 0.925rem; color: var(--ink-2); margin: 0; }
.bar { height: 3px; border-radius: 2px; background: var(--paper-3); overflow: hidden; margin-bottom: 14px; }
.bar span { display: block; height: 100%; background: var(--verde); border-radius: 2px; }

/* feature list */
.flist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.flist li {
  display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start;
  padding: 15px 0; border-bottom: 1px solid var(--line);
}
.flist li:first-child { border-top: 1px solid var(--line); }
.flist .tick { color: var(--verde); font-size: 1rem; line-height: 1.5; }
.flist strong { font-weight: 550; }
.flist span.d { color: var(--muted); font-size: 0.93rem; display: block; margin-top: 2px; }
.night .flist li { border-color: #2C2F36; }
.night .flist span.d { color: #8D8A84; }

/* pull quote */
.quote { max-width: 820px; }
.quote p {
  font-size: clamp(1.35rem, 1rem + 1.6vw, 2.15rem);
  line-height: 1.28; letter-spacing: -0.028em; font-weight: 450; text-wrap: balance;
}
.quote cite { display: block; margin-top: 26px; font-style: normal; font-size: 0.9rem; color: var(--muted); letter-spacing: .01em; }

/* figures */
figure { margin: 0; }
.fig img { border-radius: 14px; width: 100%; height: auto; }
.fig figcaption { font-size: 0.87rem; color: var(--muted); margin-top: 12px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.split.rev > *:first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.rev > *:first-child { order: 0; } }

/* species strip */
.species { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .species { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .species { grid-template-columns: 1fr; } }
.sp { position: relative; border-radius: 13px; overflow: hidden; background: var(--paper-3); aspect-ratio: 16/10; }
.sp img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.sp:hover img { transform: scale(1.035); }
.sp figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 18px 14px;
  background: linear-gradient(to top, rgba(12,11,9,.66), transparent);
  color: #fff; font-size: 0.92rem; font-weight: 550; letter-spacing: -0.01em; margin: 0;
}

/* table */
.tbl { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.tbl th, .tbl td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-weight: 600; font-size: 0.78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tbl td:first-child { font-weight: 550; white-space: nowrap; padding-right: 28px; }
.tbl-scroll { overflow-x: auto; }
.night .tbl th, .night .tbl td { border-color: #2C2F36; }

/* pills */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.pill {
  font-size: 0.8rem; padding: 6px 13px; border-radius: 100px;
  border: 1px solid var(--line); color: var(--ink-2); background: color-mix(in srgb, var(--paper) 40%, #fff);
}
.night .pill { border-color: #33373F; color: #B5B2AB; background: transparent; }

/* status note */
.note {
  border-left: 2px solid var(--verde); padding: 4px 0 4px 20px;
  font-size: 0.94rem; color: var(--ink-2); max-width: 62ch;
}
.night .note { border-color: var(--led); color: #B5B2AB; }

/* footer */
.foot { background: var(--night); color: #96938D; padding-block: clamp(52px, 6vw, 76px) 34px; font-size: 0.9rem; }
.foot a { color: #C9C6C0; text-decoration: none; }
.foot a:hover { color: var(--led); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 34px; }
@media (max-width: 780px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot h4 { font-size: 0.76rem; letter-spacing: .12em; text-transform: uppercase; color: #8E8A84; margin-bottom: 14px; font-weight: 600; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot .brand { color: #FBF9F5; margin-bottom: 14px; }
.foot-btm {
  margin-top: 46px; padding-top: 22px; border-top: 1px solid #292C33;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: 0.82rem; color: #8E8A84;
}

/* reveal */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
  .rv.in { opacity: 1; transform: none; }
}

:focus-visible { outline: 2px solid var(--verde); outline-offset: 3px; border-radius: 4px; }

/* ============ additions: shop, showcase, segment pages ============ */

/* nav shop button */
.nav-shop {
  margin-left: 22px; flex: none;
  padding: 8px 18px; border-radius: 100px;
  background: var(--ink); color: var(--paper);
  text-decoration: none; font-size: 0.87rem; font-weight: 550; letter-spacing: -0.005em;
  transition: background .18s ease;
}
.nav-shop:hover { background: var(--verde-deep); }
@media (max-width: 800px) { .nav-shop { margin-left: 12px; padding: 7px 14px; font-size: 0.82rem; } }

/* full-bleed product showcase — the product deserves the whole width */
.showcase { background: var(--paper-2); padding-block: clamp(52px, 7vw, 96px); overflow: hidden; }
.showcase-media {
  max-width: 940px; margin: 0 auto clamp(34px, 5vw, 60px);
  filter: drop-shadow(0 34px 46px rgba(26,22,16,.14));
}
.showcase-media img { width: 100%; height: auto; border-radius: 16px; }
.showcase figcaption { text-align: center; font-size: 0.87rem; color: var(--muted); margin-top: 16px; }

/* segment hero — wide cinematic image under the headline */
.seg-hero { padding-block: clamp(44px, 6vw, 76px) 0; }
.seg-hero .lead { max-width: 60ch; }
.seg-media {
  margin-top: clamp(30px, 4vw, 48px);
  border-radius: 18px; overflow: hidden; background: var(--paper-2);
  aspect-ratio: 21 / 9;
  box-shadow: 0 30px 60px -38px rgba(20,18,14,.4);
}
@media (max-width: 700px) { .seg-media { aspect-ratio: 3 / 2; } }
.seg-media img { width: 100%; height: 100%; object-fit: cover; }

/* segment index cards on the home page */
.seg-card {
  position: relative; display: block; text-decoration: none;
  border-radius: 14px; overflow: hidden; background: var(--paper-3);
  aspect-ratio: 4 / 3;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s ease;
}
.seg-card:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -22px rgba(20,18,14,.45); }
.seg-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.7,.3,1); }
.seg-card:hover img { transform: scale(1.04); }
.seg-card .cap {
  position: absolute; inset: auto 0 0 0; padding: 54px 22px 20px; color: #fff;
  background: linear-gradient(to top, rgba(10,10,8,.78) 12%, rgba(10,10,8,.28) 55%, transparent);
}
.seg-card .cap h3 { font-size: 1.15rem; color: #fff; margin-bottom: 5px; }
.seg-card .cap p { font-size: 0.88rem; color: rgba(255,255,255,.82); margin: 0; line-height: 1.45; }

/* shop */
.shop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2.4vw, 28px); }
@media (max-width: 760px) { .shop-grid { grid-template-columns: 1fr; } }

.prod {
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: color-mix(in srgb, var(--paper) 50%, #fff);
  display: flex; flex-direction: column;
}
.prod-img { background: var(--paper-2); aspect-ratio: 16 / 11; overflow: hidden; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; }
.prod-body { padding: clamp(20px, 2.4vw, 28px); display: flex; flex-direction: column; flex: 1; }
.prod-body h3 { margin-bottom: 8px; }
.prod-body > p { font-size: 0.95rem; color: var(--ink-2); }
.prod-tag {
  font-size: 0.7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--verde); margin-bottom: 12px;
}
.prod-spec { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 7px; }
.prod-spec li { font-size: 0.9rem; color: var(--ink-2); padding-left: 18px; position: relative; }
.prod-spec li::before { content: "◆"; position: absolute; left: 0; color: var(--verde); font-size: .68rem; top: .32em; }
.prod-foot {
  margin-top: auto; padding-top: 22px; display: flex; align-items: center;
  justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.price { font-size: 1.5rem; font-weight: 550; letter-spacing: -0.03em; line-height: 1; }
.price small { display: block; font-size: 0.76rem; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-top: 6px; }

.acc { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center;
       padding: 18px 0; border-bottom: 1px solid var(--line); }
.acc:first-of-type { border-top: 1px solid var(--line); }
.acc h4 { font-size: 1rem; font-weight: 550; margin: 0 0 3px; }
.acc p { font-size: 0.9rem; color: var(--muted); margin: 0; }
.acc .price { font-size: 1.05rem; white-space: nowrap; }

/* stat row */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 30px); }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; } }
.stat .n { font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); font-weight: 550; letter-spacing: -0.04em; line-height: 1; }
.stat p { font-size: 0.93rem; color: var(--ink-2); margin-top: 12px; }
.night .stat .n { color: #FBF9F5; }

/* ============ image framing ============
   Every lifestyle photograph is a wide panorama with the subject right of centre.
   Any container that crops (object-fit: cover) must therefore hold the right side,
   or the crop keeps the empty background and loses the subject. Set once here, by
   filename, so it applies everywhere the image is used. */

.seg-media img, .seg-card img, .sp img, .prod-img img, .hero-media img {
  object-position: 68% 44%;
}

img[src$="hero-man.webp"] { object-position: 69% 44%; }
img[src$="sleep.webp"]    { object-position: 74% 46%; }
img[src$="work.webp"]     { object-position: 62% 46%; }
img[src$="focus.webp"]    { object-position: 70% 44%; }
img[src$="sport.webp"]    { object-position: 68% 40%; }
img[src$="drive.webp"]    { object-position: 71% 44%; }
img[src$="recovery.webp"] { object-position: 73% 42%; }
img[src$="kid.webp"]      { object-position: 70% 44%; }
img[src$="senior.webp"]   { object-position: 72% 42%; }
img[src$="women.webp"]    { object-position: 74% 44%; }
img[src$="men.webp"]      { object-position: 68% 42%; }
img[src$="app.webp"]      { object-position: 62% 50%; }
img[src$="family.webp"]   { object-position: 62% 44%; }
img[src$="howitworks.webp"] { object-position: 58% 50%; }
img[src$="materials.webp"]  { object-position: 50% 50%; }
img[src$="privacy.webp"]  { object-position: 66% 50%; }
img[src$="lineup.webp"]   { object-position: 66% 52%; }
img[src$="accessories.webp"] { object-position: 62% 58%; }
img[src$="room-bedside.webp"]   { object-position: 70% 56%; }
img[src$="room-classroom.webp"] { object-position: 74% 50%; }

img[src$="dog.webp"]      { object-position: 66% 40%; }
img[src$="cat.webp"]      { object-position: 68% 40%; }
img[src$="horse.webp"]    { object-position: 60% 42%; }
img[src$="cow.webp"]      { object-position: 64% 40%; }
img[src$="sheep.webp"]    { object-position: 68% 40%; }
img[src$="pig.webp"]      { object-position: 66% 40%; }
img[src$="goat.webp"]     { object-position: 68% 38%; }

/* product renders are centred compositions — don't shift them */
img[src$="band-hero.webp"], img[src$="band-detail.webp"], img[src$="band-pod.webp"],
img[src$="pro-arc.webp"], img[src$="pro-product.webp"], img[src$="case.webp"] {
  object-position: 50% 50%;
}

/* Gentler crops as the viewport narrows. A 2.2:1 source in a 4:3 box is a 1.8x
   zoom — the subject fills the frame and reads as distorted. Widen the boxes
   instead of zooming further. */
@media (max-width: 940px) {
  .seg-card { aspect-ratio: 3 / 2; }
  .prod-img { aspect-ratio: 16 / 10; }
}
@media (max-width: 700px) {
  .seg-media { aspect-ratio: 16 / 9; }
  .seg-card  { aspect-ratio: 16 / 9; }
  .sp        { aspect-ratio: 16 / 9; }
  .prod-img  { aspect-ratio: 16 / 9; }
  .hero-media { aspect-ratio: 16 / 9; }
}

/* ============ plans & pricing ============ */
.plan-line {
  margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line);
  font-size: 0.86rem; color: var(--ink-2); line-height: 1.5;
}
.plan-line strong { color: var(--verde); font-weight: 600; }
.plan-line span { color: var(--muted); display: block; margin-top: 2px; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.2vw, 26px); }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }
.plan {
  position: relative;
  border: 1px solid var(--line); border-radius: 16px; padding: clamp(22px, 2.6vw, 30px);
  background: color-mix(in srgb, var(--paper) 50%, #fff); display: flex; flex-direction: column;
}
.plan.featured { border-color: var(--verde); border-width: 1.5px; }
/* absolute so the badge never pushes this card's heading out of line with the others */
.plan .badge {
  position: absolute; top: clamp(20px, 2.4vw, 27px); right: clamp(20px, 2.4vw, 27px);
  font-size: 0.68rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--verde); border: 1px solid var(--verde);
  border-radius: 100px; padding: 4px 11px;
}
.plan.featured h3 { padding-right: 120px; }
.plan h3 { margin-bottom: 10px; }
.plan .amt { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.2rem); font-weight: 550; letter-spacing: -0.035em; line-height: 1; margin: 14px 0 6px; }
.plan .amt em { font-style: normal; font-size: 0.9rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.plan .was { font-size: 0.85rem; color: var(--muted); }
.plan .was s { opacity: .75; }
.plan ul { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 9px; }
.plan li { font-size: 0.91rem; color: var(--ink-2); padding-left: 18px; position: relative; }
.plan li::before { content: "◆"; position: absolute; left: 0; color: var(--verde); font-size: .64rem; top: .36em; }
.night .plan { background: var(--night-2); border-color: #2C2F36; }
.night .plan li { color: #B5B2AB; }
.night .plan .amt em, .night .plan .was { color: #8D8A84; }

.keeps {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-top: 30px;
}
@media (max-width: 700px) { .keeps { grid-template-columns: 1fr; } }
.keeps > div { padding: clamp(20px, 2.4vw, 28px); }
.keeps > div:first-child { border-right: 1px solid var(--line); }
@media (max-width: 700px) { .keeps > div:first-child { border-right: 0; border-bottom: 1px solid var(--line); } }
.keeps h4 { font-size: 0.76rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 16px; font-weight: 600; }
.keeps ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.92rem; }
.keeps li { padding-left: 20px; position: relative; color: var(--ink-2); }
.keeps li::before { position: absolute; left: 0; top: 0; font-size: .8rem; }
.keeps .free h4 { color: var(--verde); }
.keeps .free li::before { content: "✓"; color: var(--verde); }
.keeps .paid h4 { color: var(--muted); }
.keeps .paid li::before { content: "+"; color: var(--muted); }

/* ============ dark-section text overrides ============
   Component rules like `.card p` set light-mode colours and appear later in this
   file than `.night p`, with identical specificity — so they win inside dark
   sections and paint dark grey on near-black (measured at 1.50:1). These
   overrides are last and more specific, so they always win. Anything new that
   sets a text colour on a component needs a partner rule here. */

:root { --verde-lift: #63C285; }   /* the accent green, lifted for dark backgrounds */

.night .card p,
.night .metric p,
.night .prod-body > p,
.night .prod-spec li,
.night .stat p,
.night .keeps li,
.night .acc p,
.night .plan > p,
.night .fig figcaption,
.night .showcase figcaption,
.night blockquote p,
.night td,
.night li,
.night p { color: #B5B2AB; }

.night .metric .k,
.night .muted,
.night .small.muted,
.night .tbl th,
.night .acc p,
.night .flist span.d { color: #928F89; }

.night h1, .night h2, .night h3, .night h4,
.night strong, .night .price, .night .plan .amt,
.night .metric .v, .night .stat .n { color: #FBF9F5; }

/* green accents need lifting off a near-black ground — #2F7A55 measures 3.14:1 */
.night .card .num,
.night .prod-tag,
.night .plan .badge,
.night .flist .tick,
.night .plan li::before,
.night .prod-spec li::before,
.night .keeps .free h4,
.night .keeps .free li::before,
.night a[style*="--verde"],
.night strong[style*="--verde"] { color: var(--verde-lift); }

.night .plan .badge { border-color: var(--verde-lift); }
.night .plan.featured { border-color: var(--verde-lift); }
.night .bar span { background: var(--verde-lift); }
.night .note { border-color: var(--verde-lift); }

/* ============ reservation dialog ============ */
.rv-dialog {
  border: 1px solid var(--line); border-radius: 16px; padding: clamp(22px, 3vw, 30px);
  max-width: 480px; width: calc(100% - 32px); background: var(--paper);
  color: var(--ink); box-shadow: 0 40px 80px -30px rgba(20,18,14,.5);
}
.rv-dialog::backdrop { background: rgba(18,16,12,.55); backdrop-filter: blur(3px); }
.rv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rv-head h3 { font-size: 1.25rem; }
.rv-x { border: 0; background: transparent; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; }
.rv-x:hover { color: var(--ink); }
.rv-lede { font-size: 0.9rem; color: var(--ink-2); margin: 8px 0 20px; }
.rv-field { margin-bottom: 14px; }
.rv-field label { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: .02em; margin-bottom: 5px; }
.rv-field label span { font-weight: 400; color: var(--muted); }
.rv-field input, .rv-field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px;
  background: #fff; color: var(--ink); font: inherit; font-size: 0.95rem;
}
.rv-field input:focus, .rv-field textarea:focus { outline: 2px solid var(--verde); outline-offset: 1px; border-color: var(--verde); }
.rv-row { display: grid; grid-template-columns: 1fr 110px; gap: 12px; }
.rv-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rv-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.rv-fine { font-size: 0.78rem; color: var(--muted); margin-top: 14px; line-height: 1.5; }
.rv-status { font-size: 0.9rem; margin-top: 14px; line-height: 1.55; }
.rv-status.ok { color: var(--verde-deep); background: color-mix(in srgb, var(--verde) 10%, #fff); padding: 14px 16px; border-radius: 10px; }
.rv-status.bad { color: #8A3223; }
.rv-status code { background: var(--paper-3); padding: 1px 6px; border-radius: 5px; font-size: .9em; }
@media (max-width: 520px) { .rv-row { grid-template-columns: 1fr; } }
