/* ============================================================
   Silkamira — design system
   Palette: light, saturated, silver, chrome, graphite, sky, navy
   ============================================================ */

:root {
  /* colour palette */
  --c-light:      #f2f6fa;
  --c-paper:      #ffffff;
  --c-mist:       #e7edf3;
  --c-chrome:     #dbe3ec;
  --c-silver:     #b9c4d1;
  --c-graphite:   #3a4656;
  --c-graphite-2: #2b3543;
  --c-sky:        #6fa8d6;
  --c-sky-soft:   #a7cbe6;
  --c-blue:       #3f7cb8;
  --c-navy:       #16294a;
  --c-navy-deep:  #0e1c34;
  --c-ink:        #18212e;
  --c-muted:      #5d6a7a;

  /* gradients */
  --g-chrome: linear-gradient(135deg, var(--c-chrome), var(--c-paper) 45%, var(--c-silver));
  --g-sky:    linear-gradient(135deg, var(--c-sky), var(--c-blue));
  --g-deep:   linear-gradient(150deg, var(--c-navy-deep), var(--c-navy) 55%, var(--c-blue));

  /* type */
  --f-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --f-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-mono: "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  /* spacing / shape */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --shadow-s: 0 2px 8px rgba(22,41,74,.06);
  --shadow-m: 0 14px 40px rgba(22,41,74,.10);
  --shadow-l: 0 30px 70px rgba(14,28,52,.16);
  --ring: 0 0 0 3px rgba(111,168,214,.45);
  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--c-ink);
  background: var(--c-light);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; margin: 0; }
p { margin: 0 0 1rem; }
ul { margin: 0; }

/* ---------- utilities ---------- */
.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--f-mono); font-size: .74rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--c-blue); margin: 0 0 1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--c-silver); }
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.lead { font-size: 1.18rem; color: var(--c-muted); max-width: 60ch; }
.skip {
  position: absolute; left: -999px; top: 0; background: var(--c-navy); color: #fff;
  padding: .7rem 1.1rem; border-radius: 0 0 var(--r-sm) 0; z-index: 200;
}
.skip:focus { left: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 .98rem/1 var(--f-body); letter-spacing: .01em;
  padding: .95rem 1.6rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.btn-primary { background: var(--g-sky); color: #fff; box-shadow: var(--shadow-m); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-l); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-outline { background: var(--c-paper); color: var(--c-navy); border-color: var(--c-chrome); box-shadow: var(--shadow-s); }
.btn-outline:hover { border-color: var(--c-sky); transform: translateY(-2px); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

/* ============================================================
   Header
   ============================================================ */
.masthead {
  position: sticky; top: 0; z-index: 100;
  background: rgba(242,246,250,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.masthead.is-scrolled { border-color: var(--c-chrome); background: rgba(242,246,250,.94); }
.mast-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-family: var(--f-display); font-size: 1.4rem; font-weight: 600; color: var(--c-navy); letter-spacing: -.02em; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--g-deep);
  position: relative; box-shadow: var(--shadow-s); flex: none;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 7px; border-radius: 5px;
  border: 1.5px solid var(--c-sky-soft); border-bottom-color: transparent; border-right-color: transparent;
  transform: rotate(45deg);
}
.nav { display: flex; align-items: center; gap: .3rem; }
.nav a {
  text-decoration: none; color: var(--c-graphite); font-weight: 500; font-size: .96rem;
  padding: .5rem .8rem; border-radius: 999px; transition: color .25s, background .25s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--c-navy); background: var(--c-mist); }
.nav .btn { margin-left: .5rem; padding: .6rem 1.15rem; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0;
    padding: 10px; cursor: pointer;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--c-navy); border-radius: 2px; transition: transform .3s, opacity .3s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--c-paper); padding: 1rem 1.25rem 1.5rem; gap: .35rem;
    border-bottom: 1px solid var(--c-chrome); box-shadow: var(--shadow-m);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .3s var(--ease);
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: .8rem 1rem; }
  .nav .btn { margin: .4rem 0 0; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; overflow: hidden; background: var(--g-deep); color: #fff; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, var(--c-navy-deep) 8%, rgba(14,28,52,.6) 48%, rgba(14,28,52,.15));
}
.hero-inner { position: relative; z-index: 2; padding: clamp(4.5rem, 12vw, 8.5rem) 0 clamp(4rem, 9vw, 7rem); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero .eyebrow { color: var(--c-sky-soft); }
.hero .eyebrow::before { background: rgba(255,255,255,.4); }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); letter-spacing: -.02em; }
.hero h1 em { font-style: italic; color: var(--c-sky-soft); }
.hero p.lead { color: rgba(233,240,247,.85); margin-top: 1.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero-meta { display: flex; gap: 2rem; margin-top: 2.6rem; flex-wrap: wrap; }
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta strong { font-family: var(--f-display); font-size: 1.7rem; color: #fff; }
.hero-meta span { font-size: .82rem; color: rgba(233,240,247,.7); letter-spacing: .04em; }
.hero-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-lg); padding: 1.4rem; backdrop-filter: blur(6px);
}
.hero-card .ratio { aspect-ratio: 4 / 5; border-radius: var(--r-md); overflow: hidden; background: var(--c-navy); }
.hero-card .ratio img { width: 100%; height: 100%; object-fit: cover; }
.hero-card figcaption { margin-top: .9rem; font-size: .88rem; color: rgba(233,240,247,.8); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero-card { max-width: 360px; }
}

/* ============================================================
   Lifestyle overview — split
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split.rev .split-media { order: 2; }
.split-media { position: relative; }
.split-media .frame {
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-l);
  aspect-ratio: 4 / 3; background: var(--c-chrome);
}
.split-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.split-media .badge {
  position: absolute; bottom: -18px; right: -12px; background: var(--c-paper);
  border-radius: var(--r-md); padding: .9rem 1.15rem; box-shadow: var(--shadow-m);
  display: flex; gap: .7rem; align-items: center; border: 1px solid var(--c-mist);
}
.split-media .badge .dot { width: 34px; height: 34px; border-radius: 10px; background: var(--g-sky); flex: none; }
.split-media .badge small { display: block; color: var(--c-muted); font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; }
.split-media .badge b { font-family: var(--f-display); font-size: 1.05rem; color: var(--c-navy); }
.split h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.mini-list { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 1rem; }
.mini-list li { display: flex; gap: .85rem; align-items: flex-start; }
.mini-list .tick { width: 24px; height: 24px; flex: none; border-radius: 7px; background: var(--c-mist); display: grid; place-items: center; color: var(--c-blue); font-size: .8rem; margin-top: .15rem; }
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
  .split.rev .split-media { order: 0; }
  .split-media .badge { right: 12px; }
}

/* ============================================================
   Product presentation
   ============================================================ */
.product { background: var(--g-chrome); border-radius: var(--r-xl); box-shadow: var(--shadow-m); overflow: hidden; }
.product-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; align-items: stretch; }
.product-visual {
  background: var(--g-deep); display: grid; place-items: center; padding: clamp(2rem,5vw,3.5rem);
  position: relative; overflow: hidden;
}
.product-visual::before {
  content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(111,168,214,.5), transparent 65%); filter: blur(10px);
}
.product-visual img { position: relative; width: min(78%, 300px); height: auto; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(0,0,0,.4)); }
.product-body { padding: clamp(2rem, 5vw, 3.5rem); }
.product-body h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.price-row { display: flex; align-items: baseline; gap: .6rem; margin: 1.4rem 0; }
.price-row .price { font-family: var(--f-display); font-size: 2.6rem; color: var(--c-navy); }
.price-row .unit { color: var(--c-muted); font-size: .95rem; }
.spec { list-style: none; padding: 0; margin: 1.4rem 0 2rem; display: grid; gap: .8rem; }
.spec li { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .8rem; border-bottom: 1px dashed var(--c-silver); font-size: .96rem; }
.spec li span:first-child { color: var(--c-muted); }
.spec li span:last-child { font-weight: 600; color: var(--c-graphite); }
@media (max-width: 780px) { .product-grid { grid-template-columns: 1fr; } .product-visual { min-height: 320px; } }

/* ============================================================
   Daily routine — numbered timeline
   ============================================================ */
.routine-head { max-width: 62ch; margin-bottom: 3rem; }
.routine { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; }
.step {
  background: var(--c-paper); border: 1px solid var(--c-mist); border-radius: var(--r-lg);
  padding: 1.6rem 1.4rem; box-shadow: var(--shadow-s); position: relative;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); border-color: var(--c-sky-soft); }
.step .num { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .1em; color: var(--c-blue); }
.step .num::before { counter-increment: step; content: "0" counter(step); }
.step .time { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--c-silver); margin-top: 1rem; }
.step h3 { font-size: 1.2rem; margin: .3rem 0 .5rem; color: var(--c-navy); }
.step p { font-size: .93rem; color: var(--c-muted); margin: 0; }
.step .bar { height: 4px; border-radius: 4px; background: var(--g-sky); width: 42px; margin-top: 1.1rem; opacity: .7; }
@media (max-width: 900px) { .routine { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .routine { grid-template-columns: 1fr; } }

/* ============================================================
   Wellness principles — pillars on deep panel
   ============================================================ */
.pillars-panel { background: var(--g-deep); color: #fff; border-radius: var(--r-xl); overflow: hidden; position: relative; }
.pillars-panel .inner { padding: clamp(2.5rem, 6vw, 4.5rem); }
.pillars-panel h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.pillars-panel .eyebrow { color: var(--c-sky-soft); }
.pillars-panel .eyebrow::before { background: rgba(255,255,255,.4); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin-top: 2.6rem; }
.pillar {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-lg); padding: 1.7rem; transition: background .3s, transform .3s var(--ease);
}
.pillar:hover { background: rgba(255,255,255,.12); transform: translateY(-4px); }
.pillar .icon { width: 46px; height: 46px; border-radius: 12px; background: var(--g-sky); display: grid; place-items: center; margin-bottom: 1.1rem; }
.pillar .icon svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 1.8; }
.pillar h3 { font-size: 1.25rem; color: #fff; margin-bottom: .5rem; }
.pillar p { font-size: .93rem; color: rgba(233,240,247,.78); margin: 0; }
@media (max-width: 820px) { .pillars { grid-template-columns: 1fr; } }

/* ============================================================
   Nutrition overview — feature list + image
   ============================================================ */
.nutri { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.nutri-media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-l); aspect-ratio: 4 / 3; background: var(--c-chrome); }
.nutri-media img { width: 100%; height: 100%; object-fit: cover; }
.nutri-cards { display: grid; gap: 1rem; }
.ncard { background: var(--c-paper); border: 1px solid var(--c-mist); border-radius: var(--r-md); padding: 1.3rem 1.4rem; box-shadow: var(--shadow-s); }
.ncard h3 { font-size: 1.12rem; color: var(--c-navy); margin-bottom: .35rem; display: flex; align-items: center; gap: .6rem; }
.ncard h3 .pip { width: 10px; height: 10px; border-radius: 50%; background: var(--c-sky); flex: none; }
.ncard p { font-size: .92rem; color: var(--c-muted); margin: 0; }
@media (max-width: 820px) { .nutri { grid-template-columns: 1fr; } }

/* ============================================================
   Healthy habits teaser
   ============================================================ */
.habits-teaser { background: var(--g-chrome); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-m); }
.ht-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: stretch; }
.ht-body { padding: clamp(2rem, 5vw, 3.6rem); align-self: center; }
.ht-body h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--c-navy); }
.ht-media { min-height: 340px; }
.ht-media img { width: 100%; height: 100%; object-fit: cover; }
.chip-row { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.4rem 0 1.8rem; }
.chip { background: var(--c-paper); border: 1px solid var(--c-silver); border-radius: 999px; padding: .45rem .95rem; font-size: .85rem; color: var(--c-graphite); }
@media (max-width: 780px) { .ht-grid { grid-template-columns: 1fr; } .ht-media { min-height: 260px; order: -1; } }

/* ============================================================
   FAQ
   ============================================================ */
.faq-head { max-width: 60ch; margin-bottom: 2.6rem; }
.faq { display: grid; gap: .9rem; max-width: 860px; }
.qa { background: var(--c-paper); border: 1px solid var(--c-mist); border-radius: var(--r-md); box-shadow: var(--shadow-s); overflow: hidden; }
.qa summary {
  list-style: none; cursor: pointer; padding: 1.15rem 1.4rem; font-weight: 600; color: var(--c-navy);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 1.03rem;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary .plus { width: 24px; height: 24px; flex: none; position: relative; transition: transform .3s var(--ease); }
.qa summary .plus::before, .qa summary .plus::after { content: ""; position: absolute; inset: 0; margin: auto; background: var(--c-blue); }
.qa summary .plus::before { width: 14px; height: 2px; }
.qa summary .plus::after { width: 2px; height: 14px; transition: transform .3s var(--ease); }
.qa[open] summary .plus::after { transform: scaleY(0); }
.qa .answer { padding: 0 1.4rem 1.2rem; color: var(--c-muted); font-size: .96rem; }

/* ============================================================
   Contact & order form
   ============================================================ */
.order { background: var(--g-deep); color: #fff; border-radius: var(--r-xl); overflow: hidden; }
.order-grid { display: grid; grid-template-columns: 1fr 1fr; }
.order-info { padding: clamp(2.2rem, 5vw, 4rem); }
.order-info h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.order-info .eyebrow { color: var(--c-sky-soft); }
.order-info .eyebrow::before { background: rgba(255,255,255,.4); }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; color: rgba(233,240,247,.85); font-size: .96rem; }
.contact-list .ci { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.1); display: grid; place-items: center; flex: none; }
.contact-list .ci svg { width: 20px; height: 20px; stroke: var(--c-sky-soft); fill: none; stroke-width: 1.7; }
.contact-list a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); }
.order-form { background: var(--c-paper); color: var(--c-ink); padding: clamp(2.2rem, 5vw, 3.4rem); }
.order-form h3 { font-size: 1.4rem; color: var(--c-navy); margin-bottom: .4rem; }
.order-form .sub { color: var(--c-muted); font-size: .93rem; margin-bottom: 1.6rem; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--c-graphite); margin-bottom: .45rem; }
.field input {
  width: 100%; padding: .9rem 1rem; font: inherit; color: var(--c-ink);
  border: 1px solid var(--c-silver); border-radius: var(--r-sm); background: var(--c-light);
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.field input:focus { outline: none; border-color: var(--c-sky); background: #fff; box-shadow: var(--ring); }
.field input:user-invalid { border-color: #c0553f; }
.field .err { display: none; color: #c0553f; font-size: .8rem; margin-top: .4rem; }
.field input:user-invalid ~ .err { display: block; }
.order-form .btn-primary { width: 100%; margin-top: .4rem; }
.form-note { font-size: .8rem; color: var(--c-muted); margin-top: 1rem; text-align: center; }
@media (max-width: 820px) { .order-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Footer
   ============================================================ */
.site-foot { background: var(--c-navy-deep); color: rgba(233,240,247,.72); padding: clamp(3rem,6vw,4.5rem) 0 2rem; margin-top: clamp(3.5rem,8vw,7rem); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.foot-brand .brand { color: #fff; }
.foot-brand p { font-size: .92rem; margin-top: 1rem; max-width: 32ch; }
.foot-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--c-sky-soft); margin-bottom: 1rem; }
.foot-col ul { list-style: none; padding: 0; display: grid; gap: .6rem; }
.foot-col a { text-decoration: none; color: rgba(233,240,247,.72); font-size: .93rem; transition: color .2s; }
.foot-col a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.6rem; padding-top: 1.6rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: rgba(233,240,247,.55); }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Inner / legal pages
   ============================================================ */
.page-hero { background: var(--g-deep); color: #fff; padding: clamp(3.5rem,8vw,6rem) 0 clamp(2.5rem,6vw,4rem); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.page-hero p { color: rgba(233,240,247,.82); max-width: 62ch; margin-top: 1rem; }
.page-hero .crumbs { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .08em; color: var(--c-sky-soft); margin-bottom: 1.2rem; }
.page-hero .crumbs a { color: rgba(233,240,247,.75); text-decoration: none; }

.doc { display: grid; grid-template-columns: 240px 1fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
.doc-nav { position: sticky; top: 90px; background: var(--c-paper); border: 1px solid var(--c-mist); border-radius: var(--r-lg); padding: 1.3rem; box-shadow: var(--shadow-s); }
.doc-nav h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--c-muted); margin-bottom: .9rem; }
.doc-nav ul { list-style: none; padding: 0; display: grid; gap: .3rem; }
.doc-nav a { text-decoration: none; color: var(--c-graphite); font-size: .9rem; padding: .4rem .55rem; border-radius: 8px; display: block; transition: background .2s, color .2s; }
.doc-nav a:hover { background: var(--c-mist); color: var(--c-navy); }
.doc-body h2 { font-size: 1.5rem; color: var(--c-navy); margin: 2.4rem 0 .8rem; scroll-margin-top: 90px; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body p, .doc-body li { color: var(--c-graphite); font-size: 1rem; }
.doc-body ul { padding-left: 1.2rem; margin: 0 0 1rem; display: grid; gap: .5rem; }
.doc-body .updated { font-size: .85rem; color: var(--c-muted); font-family: var(--f-mono); }
.callout { background: var(--g-chrome); border: 1px solid var(--c-chrome); border-left: 4px solid var(--c-blue); border-radius: var(--r-md); padding: 1.2rem 1.4rem; margin: 1.6rem 0; }
.callout strong { color: var(--c-navy); }
@media (max-width: 800px) { .doc { grid-template-columns: 1fr; } .doc-nav { position: static; } }

/* success page */
.success-wrap { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.success-card { background: var(--c-paper); border: 1px solid var(--c-mist); border-radius: var(--r-xl); box-shadow: var(--shadow-l); padding: clamp(2.5rem,6vw,4rem); max-width: 560px; }
.success-card .mark { width: 84px; height: 84px; border-radius: 50%; background: var(--g-sky); display: grid; place-items: center; margin: 0 auto 1.6rem; box-shadow: var(--shadow-m); }
.success-card .mark svg { width: 40px; height: 40px; stroke: #fff; fill: none; stroke-width: 2.4; }
.success-card h1 { font-size: clamp(1.8rem,4vw,2.6rem); color: var(--c-navy); }
.success-card p { color: var(--c-muted); margin-top: .9rem; }
.success-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.8rem; }

/* healthy-habits feature card */
.feature-card { background: var(--c-paper); border: 1px solid var(--c-mist); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-m); display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.feature-card .fc-media { min-height: 320px; }
.feature-card .fc-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-card .fc-body { padding: clamp(2rem,5vw,3.2rem); align-self: center; }
.feature-card h2 { color: var(--c-navy); font-size: clamp(1.6rem,3.5vw,2.3rem); }
@media (max-width: 780px) { .feature-card { grid-template-columns: 1fr; } .feature-card .fc-media { min-height: 240px; order: -1; } }

.habit-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.3rem; }
.habit { background: var(--c-paper); border: 1px solid var(--c-mist); border-radius: var(--r-lg); padding: 1.7rem; box-shadow: var(--shadow-s); transition: transform .3s var(--ease), box-shadow .3s; }
.habit:hover { transform: translateY(-5px); box-shadow: var(--shadow-m); }
.habit .hicon { width: 44px; height: 44px; border-radius: 12px; background: var(--c-mist); display: grid; place-items: center; margin-bottom: 1rem; color: var(--c-blue); }
.habit .hicon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.habit h3 { font-size: 1.15rem; color: var(--c-navy); margin-bottom: .4rem; }
.habit p { font-size: .92rem; color: var(--c-muted); margin: 0; }
@media (max-width: 820px) { .habit-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .habit-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Cookie consent
   ============================================================ */
.cookie {
  position: fixed; left: 50%; bottom: 1.4rem; transform: translateX(-50%) translateY(140%);
  width: min(100% - 2rem, 720px); background: var(--c-paper); border: 1px solid var(--c-chrome);
  border-radius: var(--r-lg); box-shadow: var(--shadow-l); padding: 1.4rem 1.5rem; z-index: 150;
  display: grid; grid-template-columns: 1fr auto; gap: 1.2rem; align-items: center;
  transition: transform .5s var(--ease); opacity: 0;
}
.cookie.is-visible { transform: translateX(-50%) translateY(0); opacity: 1; }
.cookie h4 { font-size: 1.05rem; color: var(--c-navy); margin-bottom: .3rem; }
.cookie p { font-size: .88rem; color: var(--c-muted); margin: 0; }
.cookie p a { color: var(--c-blue); }
.cookie-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.cookie-actions .btn { padding: .7rem 1.15rem; font-size: .9rem; }
@media (max-width: 620px) { .cookie { grid-template-columns: 1fr; } .cookie-actions .btn { flex: 1; } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
