/* ============================================================
   Silkalumi — Scandinavian wellness brand
   Palette: light, saturated, silver, chrome, mint, green, dark green
   ============================================================ */

:root {
  /* Greens */
  --dark-green: #12271f;
  --forest: #1e3d32;
  --forest-2: #29513f;
  --green: #3a7a5c;
  --green-saturated: #2f9e6b;

  /* Mint & sage */
  --mint: #c6e0d0;
  --mint-soft: #e3f0e8;
  --sage: #9ab39e;

  /* Silver & chrome */
  --silver: #ced6d6;
  --chrome: #b0bec0;
  --chrome-deep: #8fa2a4;

  /* Neutrals */
  --warm-white: #f6f4ee;
  --paper: #fbfaf5;
  --beige: #e6dcca;
  --charcoal: #262c2a;
  --gray-soft: #6d7a76;

  /* Roles */
  --bg: var(--paper);
  --ink: var(--charcoal);
  --ink-soft: var(--gray-soft);
  --accent: var(--green-saturated);

  --chrome-grad: linear-gradient(135deg, #eef3f2 0%, #c7d2d2 38%, #9fb0b1 62%, #d7dede 100%);
  --green-grad: linear-gradient(150deg, var(--forest) 0%, var(--dark-green) 100%);
  --mint-grad: linear-gradient(160deg, var(--mint-soft) 0%, var(--mint) 100%);

  --shadow-sm: 0 2px 10px rgba(18, 39, 31, .06);
  --shadow-md: 0 14px 40px rgba(18, 39, 31, .10);
  --shadow-lg: 0 30px 70px rgba(18, 39, 31, .16);

  --radius-s: 12px;
  --radius: 20px;
  --radius-l: 32px;

  --maxw: 1200px;
  --gutter: clamp(1.1rem, 4vw, 3rem);

  --serif: Georgia, "Times New Roman", "Iowan Old Style", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --step--1: clamp(.82rem, .78rem + .2vw, .9rem);
  --step-0: clamp(1rem, .96rem + .25vw, 1.12rem);
  --step-1: clamp(1.2rem, 1.1rem + .5vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3rem);
  --step-4: clamp(2.6rem, 1.9rem + 3.4vw, 4.6rem);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
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 {
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
/* Skyddsregel: bilder i ramar/kort fyller sin behållare utan att sträckas */
.frame img, .hcard--img img, .content-card__media img, .hero__bg img,
.nutri__media .frame img, .split__media .frame img { height: 100%; object-fit: cover; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--forest); letter-spacing: -.01em; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sans); font-size: var(--step--1); font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--green);
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--sage);
}

.lede { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.55; }

/* ---------- buttons ---------- */
.btn {
  --pad: .9rem 1.7rem;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: var(--pad); border: none; border-radius: 100px;
  font-family: var(--sans); font-size: var(--step-0); font-weight: 600;
  cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  will-change: transform;
}
.btn:focus-visible { outline: 3px solid var(--green-saturated); outline-offset: 3px; }
.btn--primary { background: var(--green-grad); color: var(--warm-white); box-shadow: var(--shadow-md); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn--ghost { background: transparent; color: var(--forest); box-shadow: inset 0 0 0 1.5px var(--sage); }
.btn--ghost:hover { background: var(--mint-soft); transform: translateY(-2px); }
.btn--chrome { background: var(--chrome-grad); color: var(--dark-green); box-shadow: var(--shadow-sm); }
.btn--chrome:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(140%) blur(12px);
  background: rgba(251, 250, 245, .78);
  border-bottom: 1px solid rgba(154, 179, 158, .28);
  transition: box-shadow .3s ease, background .3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); background: rgba(251, 250, 245, .92); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }

.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--serif); font-weight: 600; font-size: var(--step-1); color: var(--forest); }
.brand .mark {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--green-grad); position: relative; flex: none;
  box-shadow: inset 0 0 0 3px rgba(198,224,208,.35);
}
.brand .mark::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 3px; height: 15px; background: var(--mint); border-radius: 3px;
  transform: translateY(-1px);
}

.nav-links { display: flex; align-items: center; gap: 1.9rem; list-style: none; }
.nav-links a { font-size: var(--step--1); font-weight: 600; letter-spacing: .02em; color: var(--forest-2); position: relative; padding: .3rem 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--green-saturated); transition: width .3s ease;
}
.nav-links a:hover::after, .nav-links a:focus-visible::after { width: 100%; }
.nav-cta { margin-left: .4rem; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; border-radius: 12px; padding: 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--forest); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.nav-toggle span + span { margin-top: 6px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid rgba(154,179,158,.3);
    padding: .5rem var(--gutter) 1.4rem;
    clip-path: inset(0 0 100% 0); opacity: 0; pointer-events: none;
    transition: clip-path .35s ease, opacity .3s ease;
  }
  .nav-links.open { clip-path: inset(0 0 0 0); opacity: 1; pointer-events: auto; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: .85rem 0; width: 100%; border-bottom: 1px solid rgba(154,179,158,.2); }
  .nav-links .nav-cta { margin: 1rem 0 0; }
  .nav-links .nav-cta .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   Section rhythm
   ============================================================ */
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); position: relative; }
.section--tint { background: var(--warm-white); }
.section--forest { background: var(--green-grad); color: var(--mint-soft); }
.section--forest h2, .section--forest h3 { color: var(--warm-white); }
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head h2 { font-size: var(--step-3); margin-top: .8rem; }
.section-head p { margin-top: 1rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }

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

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; color: var(--warm-white); overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(18,39,31,.86) 0%, rgba(30,61,50,.66) 48%, rgba(30,61,50,.28) 100%);
}
.hero__inner { display: grid; gap: 2rem; padding-block: clamp(4.5rem, 11vw, 8.5rem); }
.hero h1 { font-size: var(--step-4); color: var(--warm-white); max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--mint); }
.hero p { max-width: 46ch; color: rgba(246,244,238,.9); font-size: var(--step-1); }
.hero .eyebrow { color: var(--mint); }
.hero .eyebrow::before { background: var(--mint); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .5rem; }
.hero__facts { display: flex; flex-wrap: wrap; gap: clamp(1.4rem, 4vw, 3rem); margin-top: 1.5rem; }
.hero__fact { border-left: 2px solid rgba(198,224,208,.5); padding-left: 1rem; }
.hero__fact b { display: block; font-family: var(--serif); font-size: var(--step-2); color: var(--mint); }
.hero__fact span { font-size: var(--step--1); letter-spacing: .04em; color: rgba(246,244,238,.75); }

/* floating chrome orb signature */
.hero__orb {
  position: absolute; right: -60px; top: 50%; transform: translateY(-50%);
  width: min(46vw, 480px); aspect-ratio: 1; border-radius: 50%;
  background: var(--chrome-grad); z-index: -1; opacity: .5;
  filter: blur(2px); animation: float 9s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(-52%);} 50% { transform: translateY(-46%);} }

/* ============================================================
   Marquee ribbon
   ============================================================ */
.ribbon { background: var(--dark-green); color: var(--mint); overflow: hidden; padding-block: .9rem; }
.ribbon__track { display: flex; gap: 3rem; white-space: nowrap; width: max-content; animation: slide 26s linear infinite; }
.ribbon:hover .ribbon__track { animation-play-state: paused; }
.ribbon span { font-family: var(--serif); font-size: var(--step-1); letter-spacing: .02em; display: inline-flex; align-items: center; gap: 3rem; }
.ribbon span::after { content: "✦"; color: var(--green-saturated); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ============================================================
   Lifestyle split
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--rev .split__media { order: 2; }
.split__media { position: relative; }
.split__media .frame {
  border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5; background: var(--mint-soft);
}
.split__media .frame img { width: 100%; height: 100%; object-fit: cover; }
.split__badge {
  position: absolute; bottom: -22px; left: -22px;
  background: var(--paper); border-radius: var(--radius); padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow-md); max-width: 220px;
}
.split__badge b { font-family: var(--serif); color: var(--green); font-size: var(--step-1); }
.split__badge span { display: block; font-size: var(--step--1); color: var(--ink-soft); margin-top: .2rem; }
.split__body h2 { font-size: var(--step-3); margin: .8rem 0 1rem; }
.split__body p + p { margin-top: 1rem; }
.split__list { list-style: none; margin-top: 1.6rem; display: grid; gap: .9rem; }
.split__list li { display: flex; gap: .8rem; align-items: flex-start; }
.split__list .tick {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--mint-grad); display: grid; place-items: center; margin-top: 2px;
}
.split__list .tick::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--forest); border-bottom: 2px solid var(--forest); transform: rotate(-45deg) translateY(-1px); }
@media (max-width: 780px) {
  .split { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .split__badge { left: 12px; }
}

/* ============================================================
   Pillars (Daily Balance)
   ============================================================ */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.pillar {
  background: var(--paper); border: 1px solid rgba(154,179,158,.3); border-radius: var(--radius);
  padding: 2rem 1.7rem; box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--sage); }
.pillar__num { font-family: var(--serif); font-size: var(--step-1); color: var(--sage); }
.pillar__icon {
  width: 52px; height: 52px; border-radius: 16px; margin: 1rem 0 1.2rem;
  background: var(--mint-grad); display: grid; place-items: center; color: var(--forest);
}
.pillar__icon svg { width: 26px; height: 26px; }
.pillar h3 { font-size: var(--step-1); margin-bottom: .6rem; }
.pillar p { color: var(--ink-soft); font-size: var(--step-0); }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

/* ============================================================
   Habits strip (image cards)
   ============================================================ */
.habit-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.4rem; }
.habit-grid .col { display: grid; gap: 1.4rem; }
.hcard {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); background: var(--forest); color: var(--warm-white);
  min-height: 220px; display: flex;
}
.hcard--img { min-height: 320px; }
.hcard--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hcard--img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,39,31,.05) 30%, rgba(18,39,31,.8) 100%); }
.hcard--solid { background: var(--mint-grad); color: var(--forest); }
.hcard--chrome { background: var(--chrome-grad); color: var(--dark-green); }
.hcard__body { position: relative; z-index: 2; margin-top: auto; padding: 1.5rem 1.6rem; }
.hcard__body h3 { font-size: var(--step-1); margin-bottom: .4rem; color: inherit; }
.hcard--img .hcard__body h3, .hcard--img .hcard__body p { color: var(--warm-white); }
.hcard__body p { font-size: var(--step--1); opacity: .9; }
@media (max-width: 780px) { .habit-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Nutrition inspiration (chips + list)
   ============================================================ */
.nutri { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.nutri__media .frame { border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 7/5; box-shadow: var(--shadow-md); }
.nutri__media .frame img { width: 100%; height: 100%; object-fit: cover; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.4rem 0 1.8rem; }
.chip { padding: .5rem 1rem; border-radius: 100px; background: var(--mint-soft); color: var(--forest); font-size: var(--step--1); font-weight: 600; border: 1px solid rgba(154,179,158,.4); }
.nutri__rows { list-style: none; display: grid; gap: 1.1rem; }
.nutri__rows li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: baseline; padding-bottom: 1.1rem; border-bottom: 1px solid rgba(154,179,158,.3); }
.nutri__rows b { font-family: var(--serif); color: var(--green); font-size: var(--step-1); }
.nutri__rows span { color: var(--ink-soft); }
@media (max-width: 820px) { .nutri { grid-template-columns: 1fr; } }

/* ============================================================
   FAQ (accordion)
   ============================================================ */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid rgba(154,179,158,.4); }
.faq__q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.4rem .2rem; font-family: var(--serif); font-size: var(--step-1); color: var(--forest);
}
.faq__q:focus-visible { outline: 3px solid var(--green-saturated); outline-offset: 3px; border-radius: 6px; }
.faq__sign { position: relative; flex: none; width: 24px; height: 24px; }
.faq__sign::before, .faq__sign::after { content: ""; position: absolute; inset: 0; margin: auto; background: var(--green); border-radius: 2px; }
.faq__sign::before { width: 16px; height: 2px; }
.faq__sign::after { width: 2px; height: 16px; transition: transform .3s ease; }
.faq__q[aria-expanded="true"] .faq__sign::after { transform: rotate(90deg); }
.faq__a { overflow: hidden; max-height: 0; transition: max-height .35s ease; }
.faq__a p { padding: 0 .2rem 1.4rem; color: var(--ink-soft); max-width: 68ch; }

/* ============================================================
   Product presentation
   ============================================================ */
.product { background: var(--green-grad); color: var(--mint-soft); border-radius: var(--radius-l); overflow: hidden; }
.product__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; padding: clamp(2rem,5vw,4rem); }
.product__media { display: grid; place-items: center; position: relative; }
.product__media::before {
  content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(198,224,208,.5), rgba(198,224,208,0) 70%);
}
.product__media img { position: relative; max-height: 480px; width: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); }
.product__body h2 { color: var(--warm-white); font-size: var(--step-3); }
.product__body .eyebrow { color: var(--mint); }
.product__body .eyebrow::before { background: var(--mint); }
.product__desc { margin: 1rem 0 1.6rem; color: rgba(246,244,238,.9); max-width: 46ch; }
.product__feats { list-style: none; display: grid; gap: .7rem; margin-bottom: 1.8rem; }
.product__feats li { display: flex; gap: .7rem; align-items: center; font-size: var(--step-0); }
.product__feats li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--green-saturated); box-shadow: 0 0 0 4px rgba(47,158,107,.25); }
.price-row { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.price {
  font-family: var(--serif); font-size: var(--step-4); color: var(--mint);
  display: inline-flex; align-items: baseline; gap: .2rem; line-height: 1;
}
.price small { font-size: var(--step-1); color: rgba(246,244,238,.7); }
.price-note { font-size: var(--step--1); color: rgba(246,244,238,.7); max-width: 22ch; }
@media (max-width: 820px) { .product__inner { grid-template-columns: 1fr; } .product__media { order: -1; } }

/* ============================================================
   Contact / form
   ============================================================ */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
.contact__info h2 { font-size: var(--step-3); margin: .8rem 0 1rem; }
.contact__cards { display: grid; gap: 1rem; margin-top: 1.8rem; }
.info-card {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--paper); border: 1px solid rgba(154,179,158,.3); border-radius: var(--radius-s);
  padding: 1.1rem 1.2rem; box-shadow: var(--shadow-sm);
}
.info-card .ic {
  flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--mint-grad);
  display: grid; place-items: center; color: var(--forest);
}
.info-card .ic svg { width: 22px; height: 22px; }
.info-card b { display: block; color: var(--forest); font-family: var(--serif); }
.info-card span, .info-card a { color: var(--ink-soft); font-size: var(--step-0); }
.info-card a:hover { color: var(--green); }

.form-card {
  background: var(--paper); border-radius: var(--radius-l); padding: clamp(1.6rem, 4vw, 2.6rem);
  box-shadow: var(--shadow-md); border: 1px solid rgba(154,179,158,.3);
}
.form-card h3 { font-size: var(--step-2); margin-bottom: .4rem; }
.form-card > p { color: var(--ink-soft); margin-bottom: 1.6rem; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: var(--step--1); font-weight: 600; color: var(--forest); margin-bottom: .45rem; letter-spacing: .02em; }
.field input {
  width: 100%; padding: .95rem 1.1rem; font-size: var(--step-0); font-family: inherit;
  color: var(--ink); background: var(--warm-white);
  border: 1.5px solid rgba(154,179,158,.5); border-radius: var(--radius-s);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.field input::placeholder { color: #9aa8a2; }
.field input:focus { outline: none; border-color: var(--green-saturated); box-shadow: 0 0 0 4px rgba(47,158,107,.15); }
.field input:user-invalid { border-color: #c0533f; }
.field .err { display: none; color: #c0533f; font-size: var(--step--1); margin-top: .4rem; }
.field.invalid .err { display: block; }
.field.invalid input { border-color: #c0533f; }
.form-card .btn { width: 100%; justify-content: center; margin-top: .4rem; }
.form-note { font-size: var(--step--1); color: var(--ink-soft); margin-top: 1rem; text-align: center; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--dark-green); color: rgba(246,244,238,.78); padding-block: clamp(3rem,6vw,4.5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer .brand { color: var(--warm-white); }
.site-footer .brand .mark { box-shadow: inset 0 0 0 3px rgba(198,224,208,.5); }
.footer-about { margin-top: 1rem; max-width: 34ch; font-size: var(--step-0); color: rgba(246,244,238,.7); }
.footer-col h4 { color: var(--mint); font-family: var(--sans); font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: grid; gap: .6rem; }
.footer-col a, .footer-col address { color: rgba(246,244,238,.72); font-size: var(--step-0); font-style: normal; line-height: 1.7; }
.footer-col a:hover { color: var(--mint); }
.footer-bottom {
  margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid rgba(198,224,208,.18);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: var(--step--1); color: rgba(246,244,238,.6);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Cookie banner
   ============================================================ */
.cookie {
  position: fixed; left: clamp(1rem, 4vw, 2rem); right: clamp(1rem, 4vw, 2rem); bottom: clamp(1rem, 4vw, 2rem);
  max-width: 560px; margin-inline: auto; z-index: 200;
  background: var(--paper); border: 1px solid rgba(154,179,158,.4); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 1.4rem 1.5rem;
  display: grid; gap: 1rem; transform: translateY(140%); transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.cookie.show { transform: none; }
.cookie p { font-size: var(--step--1); color: var(--ink-soft); }
.cookie b { color: var(--forest); font-family: var(--serif); font-size: var(--step-0); }
.cookie__actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.cookie__actions .btn { --pad: .7rem 1.3rem; font-size: var(--step--1); }

/* ============================================================
   Legal / content pages
   ============================================================ */
.page-hero { background: var(--mint-grad); padding-block: clamp(3rem, 7vw, 5rem); }
.page-hero .eyebrow::before { background: var(--sage); }
.page-hero h1 { font-size: var(--step-3); margin-top: .7rem; max-width: 20ch; }
.page-hero p { margin-top: .8rem; max-width: 60ch; color: var(--forest-2); }

.doc { max-width: 820px; }
.doc .toc {
  background: var(--warm-white); border: 1px solid rgba(154,179,158,.3); border-radius: var(--radius);
  padding: 1.4rem 1.6rem; margin-bottom: 2.5rem;
}
.doc .toc h2 { font-size: var(--step-1); margin-bottom: .8rem; }
.doc .toc ul { list-style: none; display: grid; gap: .5rem; }
.doc .toc a { color: var(--green); font-size: var(--step-0); }
.doc .toc a:hover { text-decoration: underline; }
.doc h2 { font-size: var(--step-2); margin: 2.4rem 0 .9rem; padding-top: .4rem; }
.doc h3 { font-size: var(--step-1); margin: 1.6rem 0 .6rem; }
.doc p { margin-bottom: 1rem; color: var(--charcoal); }
.doc ul.bullet { margin: 0 0 1.2rem 1.2rem; }
.doc ul.bullet li { margin-bottom: .5rem; }
.doc .note {
  background: var(--mint-soft); border-left: 4px solid var(--green-saturated);
  border-radius: 0 var(--radius-s) var(--radius-s) 0; padding: 1.2rem 1.4rem; margin: 1.6rem 0;
}
.doc address { font-style: normal; line-height: 1.8; }

/* content page card */
.content-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius-l);
  overflow: hidden; box-shadow: var(--shadow-md); background: var(--paper); margin: 2.5rem 0;
}
.content-card__media { position: relative; min-height: 280px; }
.content-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.content-card__body { padding: clamp(1.6rem, 4vw, 2.8rem); }
.content-card__body h2 { font-size: var(--step-2); margin-bottom: .8rem; }
.content-card__body p { color: var(--ink-soft); }
@media (max-width: 720px) { .content-card { grid-template-columns: 1fr; } .content-card__media { min-height: 220px; } }

/* success page */
.success { min-height: 72vh; display: grid; place-items: center; text-align: center; background: var(--mint-grad); }
.success__box { max-width: 560px; padding: var(--gutter); }
.success__ring {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 1.6rem;
  background: var(--green-grad); display: grid; place-items: center; box-shadow: var(--shadow-md);
  animation: pop .6s cubic-bezier(.2,.8,.2,1) both;
}
.success__ring svg { width: 46px; height: 46px; }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.success h1 { font-size: var(--step-3); margin-bottom: 1rem; }
.success p { color: var(--forest-2); font-size: var(--step-1); margin-bottom: 2rem; max-width: 46ch; margin-inline: auto; }

/* habit list page grid */
.tips-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2rem; }
.tip {
  background: var(--paper); border: 1px solid rgba(154,179,158,.3); border-radius: var(--radius);
  padding: 1.8rem 1.6rem; box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease;
}
.tip:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.tip .tip__ic { width: 46px; height: 46px; border-radius: 14px; background: var(--mint-grad); display: grid; place-items: center; color: var(--forest); margin-bottom: 1rem; }
.tip .tip__ic svg { width: 24px; height: 24px; }
.tip h3 { font-size: var(--step-1); margin-bottom: .5rem; }
.tip p { color: var(--ink-soft); font-size: var(--step-0); }
@media (max-width: 860px) { .tips-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tips-grid { grid-template-columns: 1fr; } }

/* skip link */
.skip { position: absolute; left: -999px; top: 0; background: var(--forest); color: #fff; padding: .7rem 1.2rem; border-radius: 0 0 10px 0; z-index: 300; }
.skip:focus { left: 0; }
