/* ==========================================================================
   Pillora — orasit.com/pillora/
   Design system built on the Pillora brand contract.
   ========================================================================== */

/* --- 1. Tokens ----------------------------------------------------------- */
:root {
  /* Brand */
  --page-bg:    #EDE5D0;
  --card-bg:    #FFFFFF;
  --hero-tan:   #C9B89A;
  --surface:    #F5F0E8;
  --nav-dark:   #1F2A18;
  --primary:    #3A5C38;
  --mid-green:  #6A9456;
  --sage:       #A8C48A;
  --amber:      #E8832A;
  --sand:       #D4C5A0;
  --peach:      #E8A87C;
  --error:      #D95F3B;
  --text-dark:  #2A2A1A;
  --text-muted: #7A7060;
  --text-white: #FFFFFF;

  /* Derived */
  --line:        rgba(42, 42, 26, 0.12);
  --line-soft:   rgba(42, 42, 26, 0.07);
  --line-dark:   rgba(237, 229, 208, 0.16);
  --cream-dim:   rgba(237, 229, 208, 0.66);
  --cream-faint: rgba(237, 229, 208, 0.42);

  /* Type */
  --font-display: 'DM Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body:    'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Elevation — layered, never a single flat blur */
  --sh-sm: 0 1px 2px rgba(31, 42, 24, .05), 0 2px 8px rgba(31, 42, 24, .05);
  --sh-md: 0 2px 4px rgba(31, 42, 24, .05), 0 8px 24px rgba(31, 42, 24, .08);
  --sh-lg: 0 4px 8px rgba(31, 42, 24, .06), 0 18px 48px rgba(31, 42, 24, .12);
  --sh-xl: 0 8px 16px rgba(31, 42, 24, .07), 0 32px 80px rgba(31, 42, 24, .18);

  /* Rhythm */
  --gutter: clamp(20px, 5vw, 48px);
  --maxw: 1180px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --- 2. Reset / base ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Paper grain — the single most "not-a-template" detail. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .28;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--amber); color: #fff; }

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

/* --- 3. Layout primitives ------------------------------------------------ */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 820px; }

.section { padding-block: clamp(72px, 10vw, 132px); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 92px); }

.section--dark {
  background: var(--nav-dark);
  color: var(--cream-dim);
}
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--page-bg); }

.section--surface { background: var(--surface); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -60px; left: 16px; z-index: 200;
  background: var(--nav-dark); color: var(--page-bg);
  padding: 12px 20px; border-radius: 0 0 12px 12px;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

/* --- 4. Typography scale ------------------------------------------------- */
.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: '';
  width: 26px; height: 2px;
  background: var(--amber);
  border-radius: 2px;
  flex: none;
}
.section--dark .eyebrow { color: var(--sage); }
.eyebrow--center { justify-content: center; }

.display  { font-size: clamp(2.55rem, 6.4vw, 4.6rem); letter-spacing: -0.038em; }
.h2       { font-size: clamp(2rem, 4.3vw, 3.15rem); letter-spacing: -0.032em; }
.h3       { font-size: clamp(1.28rem, 2.2vw, 1.65rem); letter-spacing: -0.022em; }
.h4       { font-size: 1.06rem; letter-spacing: -0.015em; }

.lede {
  font-size: clamp(1.06rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 56ch;
}
.section--dark .lede { color: var(--cream-faint); }

.accent { color: var(--amber); }
.accent-green { color: var(--mid-green); }

/* --- 5. Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  padding: 14px 24px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
  will-change: transform;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--primary); color: var(--text-white); box-shadow: var(--sh-sm); }
.btn--primary:hover { background: #32502F; box-shadow: var(--sh-md); }

.btn--cta { background: var(--amber); color: var(--text-white); box-shadow: 0 2px 6px rgba(232,131,42,.3); }
.btn--cta:hover { background: #D4741F; box-shadow: 0 8px 24px rgba(232,131,42,.34); }

.btn--ghost { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn--ghost:hover { background: rgba(58,92,56,.07); }

.section--dark .btn--ghost { border-color: var(--sage); color: var(--sage); }
.section--dark .btn--ghost:hover { background: rgba(168,196,138,.12); }

.btn--sm { padding: 10px 18px; font-size: 14px; border-radius: 10px; }

/* Store buttons — custom-drawn, not stock badges */
.stores { display: flex; flex-wrap: wrap; gap: 14px; }

.store {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 12px 22px 12px 18px;
  border-radius: 14px;
  background: var(--nav-dark);
  color: var(--page-bg);
  border: 1.5px solid var(--nav-dark);
  box-shadow: var(--sh-md);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.store:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); background: #16200F; }
.store svg { flex: none; }
.store__txt { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store__sm {
  font-family: var(--font-body); font-size: 10.5px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; opacity: .62;
}
.store__lg { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }

.store--soon {
  background: transparent;
  color: var(--text-dark);
  border-color: var(--line);
  box-shadow: none;
  cursor: default;
}
.store--soon:hover { transform: none; background: rgba(42,42,26,.035); box-shadow: none; }
.store--soon .store__sm { opacity: .55; }
.store--soon svg { opacity: .72; }
.section--dark .store--soon { color: var(--cream-dim); border-color: var(--line-dark); }
.section--dark .store--soon:hover { background: rgba(237,229,208,.06); }

/* --- 6. Header ----------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(237, 229, 208, 0);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  background: rgba(237, 229, 208, .88);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 1px 24px rgba(31,42,24,.06);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: var(--sh-sm); }
.brand__name {
  font-family: var(--font-display); font-weight: 700; font-size: 21px;
  letter-spacing: -0.035em; color: var(--text-dark);
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 9px 13px;
  border-radius: 9px;
  transition: color .16s var(--ease), background-color .16s var(--ease);
}
.nav a:hover { color: var(--text-dark); background: rgba(42,42,26,.05); }

.header__cta { display: flex; align-items: center; gap: 10px; }

/* Bars are absolutely positioned so the open-state translate can be exactly the
   bar spacing — with margin-based stacking the two halves never met and the
   "close" icon rendered as a chevron. */
.burger {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.burger span {
  position: absolute;
  left: 12px;
  width: 18px; height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform .28s var(--ease), opacity .16s var(--ease);
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line-soft);
  background: rgba(237,229,208,.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 12px var(--gutter) 24px;
}
.mobile-nav.is-open { display: block; }
/* :not(.store) — otherwise this rule's higher specificity repainted the store
   button's label in --text-dark, i.e. dark text on the dark green pill. */
.mobile-nav a:not(.store) {
  display: block;
  font-family: var(--font-display); font-weight: 600; font-size: 17px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-dark);
}
.mobile-nav a:not(.store):active { color: var(--primary); }
.mobile-nav .store {
  margin-top: 22px;
  width: 100%;
  justify-content: center;
  color: var(--page-bg);
  padding-block: 14px;
}

/* --- 7. Hero ------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(48px, 7vw, 92px) clamp(64px, 8vw, 108px);
  overflow: hidden;
}
/* Two soft off-canvas blooms; gives depth without a gradient wash. */
.hero::after {
  content: '';
  position: absolute;
  top: -18%; right: -14%;
  width: min(760px, 78vw); aspect-ratio: 1;
  background: radial-gradient(circle at 50% 50%, rgba(201,184,154,.55), rgba(201,184,154,0) 66%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--sand);
  padding: 7px 15px 7px 9px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 26px;
  box-shadow: var(--sh-sm);
}
.hero__badge b { color: var(--primary); font-weight: 700; }
.hero__badge img { width: 24px; height: 24px; border-radius: 7px; }

.hero h1 { margin-bottom: 22px; }
.hero__lede { margin-bottom: 34px; font-size: clamp(1.08rem, 1.55vw, 1.28rem); }

.hero .stores { margin-bottom: 22px; }

.hero__note {
  font-size: 13.5px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
.hero__note span { display: inline-flex; align-items: center; gap: 6px; }
.hero__note svg { flex: none; color: var(--mid-green); }

/* Hero art: phone + orbiting widget chips */
.hero__art { position: relative; display: grid; place-items: center; min-height: 480px; }

.phone {
  position: relative;
  width: min(272px, 62vw);
  border-radius: 40px;
  background: #3B2E22;
  padding: 9px;
  box-shadow: var(--sh-xl), 0 0 0 1px rgba(31,42,24,.1);
}
.phone::after {
  content: '';
  position: absolute; top: 19px; left: 50%; transform: translateX(-50%);
  width: 56px; height: 5px; border-radius: 4px;
  background: rgba(255,255,255,.16);
}
.phone img { border-radius: 32px; width: 100%; }

.hero__phone { transform: rotate(-2.2deg); }

.chip {
  position: absolute;
  background: var(--card-bg);
  border: 1px solid var(--sand);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: var(--sh-lg);
  font-size: 12.5px;
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
  animation: float 7s ease-in-out infinite;
}
.chip strong { font-family: var(--font-display); font-size: 14px; display: block; letter-spacing: -0.02em; }
.chip small { color: var(--text-muted); font-size: 11.5px; }
.chip__dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }

.chip--a { top: 10%;    left: -9%;  animation-delay: -.4s; }
.chip--b { bottom: 30%; right: -9%; animation-delay: -2.6s; }
.chip--c { bottom: 3%;  left: -5%;  animation-delay: -4.8s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-11px); }
}

/* --- 8. Stat rail -------------------------------------------------------- */
.rail {
  border-block: 1px solid var(--line-soft);
  background: rgba(255,255,255,.35);
}
.rail__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding-block: 30px;
}
.rail__item { text-align: center; padding-inline: 10px; position: relative; }
.rail__item + .rail__item::before {
  content: ''; position: absolute; left: 0; top: 12%; height: 76%;
  width: 1px; background: var(--line-soft);
}
.rail__n {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  letter-spacing: -0.035em; color: var(--primary);
  line-height: 1;
}
.rail__l {
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  letter-spacing: .075em; text-transform: uppercase; margin-top: 8px;
}

/* --- 9. Section headers -------------------------------------------------- */
.shead { max-width: 700px; margin-bottom: clamp(40px, 5vw, 64px); }
.shead--center { margin-inline: auto; text-align: center; }
.shead--center .lede { margin-inline: auto; }
.shead h2 { margin-bottom: 20px; }

/* --- 10. Escalation timeline --------------------------------------------- */
.escal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 4px;
  margin-top: 8px;
  counter-reset: step;
}
.escal__step {
  position: relative;
  padding: 26px 22px 24px;
  background: rgba(237,229,208,.05);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-md);
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.escal__step:hover { background: rgba(237,229,208,.09); transform: translateY(-3px); }
.escal__t {
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 12px;
  display: flex; align-items: center; gap: 9px;
}
.escal__t::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 0 4px rgba(232,131,42,.18);
}
.escal__step:nth-child(4) .escal__t { color: var(--error); }
.escal__step:nth-child(4) .escal__t::before { background: var(--error); box-shadow: 0 0 0 4px rgba(217,95,59,.2); }
.escal__step h3 { font-size: 1.05rem; color: var(--page-bg); margin-bottom: 8px; }
.escal__step p { font-size: 14.5px; color: var(--cream-faint); line-height: 1.55; }

.callout {
  margin-top: 40px;
  padding: 22px 26px;
  border-left: 3px solid var(--sage);
  background: rgba(168,196,138,.07);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 15.5px;
  color: var(--cream-dim);
}
.callout strong { color: var(--page-bg); font-weight: 700; }

/* --- 11. Feature rows (alternating) -------------------------------------- */
.frow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.frow + .frow { margin-top: clamp(72px, 9vw, 124px); }
.frow--flip .frow__media { order: -1; }

.frow h2 { margin-bottom: 20px; }
.frow .lede { margin-bottom: 28px; }

.flist { display: grid; gap: 16px; }
.flist li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 14px;
  align-items: start;
  font-size: 15.5px;
  line-height: 1.55;
}
.flist .tick {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(106,148,86,.14);
  display: grid; place-items: center;
  margin-top: 2px;
  flex: none;
}
.flist .tick svg { color: var(--primary); }
.flist b { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.012em; }
.flist span { color: var(--text-muted); }

.frow__media { position: relative; display: grid; place-items: center; }
.frow__media .phone { width: min(280px, 74vw); }
.frow__media--plain img {
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  border: 1px solid var(--sand);
}

/* --- 12. Theme switcher -------------------------------------------------- */
.themes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}
.themes__stage { display: grid; place-items: center; position: relative; }
.themes__stage .phone { width: min(258px, 66vw); }
.themes__stage .phone img {
  transition: opacity .28s var(--ease);
  aspect-ratio: 560 / 1244;
  object-fit: cover;
  background: var(--surface);
}
.themes__stage.is-swapping .phone img { opacity: 0; }

.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
  gap: 10px;
  margin-top: 26px;
}
.swatch {
  position: relative;
  border: 1.5px solid var(--sand);
  border-radius: 13px;
  padding: 0;
  background: var(--card-bg);
  cursor: pointer;
  overflow: hidden;
  transition: border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
  display: block;
  text-align: center;
  font: inherit;
}
/* The alert's own aspect ratio — so the thumbnail shows the WHOLE screen,
   buttons included, instead of cropping the bottom off. */
.swatch img {
  display: block;
  width: 100%;
  aspect-ratio: 560 / 1244;
  object-fit: cover;
}
.swatch__cap {
  display: block;
  padding: 7px 4px 8px;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--text-dark);
  border-top: 1px solid var(--line-soft);
}
/* Badge sits on the thumbnail (top-left, clear of the mock-up's speaker icon)
   so a long name and the tag can never fight for the same row. */
.swatch__tag {
  position: absolute;
  top: 5px; left: 5px;
  font-family: var(--font-body);
  font-size: 8px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  line-height: 1;
  padding: 3px 5px; border-radius: 5px;
  background: var(--primary); color: #fff;
  box-shadow: 0 1px 3px rgba(31,42,24,.25);
}
.swatch__tag--pro { background: var(--amber); color: #fff; }
.swatch:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--mid-green); }
.swatch[aria-pressed="true"] {
  border-color: var(--primary);
  box-shadow: 0 0 0 2.5px rgba(58,92,56,.2), var(--sh-md);
}

/* --- 13. Widget board ---------------------------------------------------- */
.board {
  background: var(--nav-dark);
  border-radius: var(--r-xl);
  padding: clamp(24px, 4vw, 44px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--sh-lg);
}
.board::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(680px 340px at 12% 0%, rgba(106,148,86,.2), transparent 62%),
    radial-gradient(560px 300px at 88% 100%, rgba(232,131,42,.13), transparent 62%);
  pointer-events: none;
}
.board__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.wcard {
  background: rgba(237,229,208,.055);
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  padding: 14px;
  transition: transform .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease);
}
.wcard:hover {
  transform: translateY(-4px);
  background: rgba(237,229,208,.1);
  border-color: rgba(168,196,138,.34);
}
.wcard img { border-radius: 11px; width: 100%; box-shadow: 0 6px 18px rgba(0,0,0,.22); }
.wcard__meta { margin-top: 12px; }
.wcard__meta h3 {
  font-size: 14.5px; color: var(--page-bg); margin-bottom: 3px;
  display: flex; align-items: center; gap: 7px; letter-spacing: -0.015em;
}
.wcard__meta p { font-size: 12.5px; color: var(--cream-faint); line-height: 1.45; }
.pro {
  font-family: var(--font-body); font-size: 8.5px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  background: var(--amber); color: #fff; padding: 2px 5px; border-radius: 4px;
}

.span-2 { grid-column: span 2; }
.span-4 { grid-column: span 4; }

/* --- 14. Gallery --------------------------------------------------------- */
/* Full-bleed scroller. It sits OUTSIDE .wrap — a negative margin inside the
   container would widen the document and break the mobile layout. The padding
   keeps the first card optically aligned with the rest of the page. */
.gallery-bleed { width: 100%; }

.gallery {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-block: 8px 30px;
  padding-inline: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)));
  scrollbar-width: thin;
  scrollbar-color: var(--sand) transparent;
}
.gallery::-webkit-scrollbar { height: 8px; }
.gallery::-webkit-scrollbar-track { background: transparent; }
.gallery::-webkit-scrollbar-thumb { background: var(--sand); border-radius: 8px; }
/* Store screenshots are shown whole — they already contain their own device
   mock-up, so they get a plain card, never a phone frame and never a crop. */
.gallery__item {
  flex: none;
  width: min(300px, 72vw);
  scroll-snap-align: center;
}
.gallery__item img {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--sand);
  box-shadow: var(--sh-md);
  background: var(--surface);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.gallery__item:hover img { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.gallery__item figcaption {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 14px; font-weight: 600;
  letter-spacing: -0.012em;
}
.gallery__item figcaption span { display: block; font-family: var(--font-body); font-weight: 400; font-size: 13px; color: var(--text-muted); margin-top: 2px; }

.gallery-nav { display: flex; gap: 10px; }
.gnav {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--line);
  background: rgba(255,255,255,.6);
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--text-dark);
  transition: background-color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.gnav:hover { background: var(--card-bg); border-color: var(--primary); transform: translateY(-2px); }

/* --- 15. Bento (health tracking) ----------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.bcard {
  background: var(--card-bg);
  border: 1px solid var(--sand);
  border-radius: var(--r-md);
  padding: 24px;
  box-shadow: var(--sh-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.bcard:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.bcard h3 { font-size: 1.08rem; margin-bottom: 9px; }
.bcard p { font-size: 14.5px; color: var(--text-muted); line-height: 1.55; }
.bcard__ico {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(106,148,86,.13);
  color: var(--primary);
  margin-bottom: 16px;
}
.bcard--amber .bcard__ico { background: rgba(232,131,42,.14); color: #C56A16; }
.bcard--peach .bcard__ico { background: rgba(232,168,124,.2); color: #B96C3C; }
.bcard--wide { grid-column: span 3; }
.bcard--half { grid-column: span 2; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips li {
  font-size: 12.5px; font-weight: 600;
  padding: 5px 11px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--sand);
  color: var(--text-muted);
}

/* --- 16. Pricing --------------------------------------------------------- */
.compare {
  background: var(--card-bg);
  border: 1px solid var(--sand);
  border-radius: var(--r-lg);
  overflow-x: auto;               /* scrolls rather than clips on very small phones */
  box-shadow: var(--sh-md);
  margin-bottom: clamp(40px, 5vw, 60px);
  -webkit-overflow-scrolling: touch;
}
.compare table { width: 100%; min-width: 340px; border-collapse: collapse; }
.compare th, .compare td { padding: 15px 20px; text-align: left; font-size: 15px; }
.compare thead th {
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  letter-spacing: .1em; text-transform: uppercase;
  background: var(--nav-dark); color: var(--page-bg);
}
.compare thead th:nth-child(2), .compare thead th:nth-child(3) { text-align: center; width: 21%; }
.compare tbody tr + tr { border-top: 1px solid var(--line-soft); }
.compare tbody tr:hover { background: rgba(245,240,232,.7); }
/* Column 1 is a <th scope="row">, so the value columns are children 2 and 3. */
.compare tbody th { font-weight: 600; font-family: var(--font-body); }
/* nowrap: "1 member" / "All reports" / "4 widgets" otherwise break onto two
   lines on a phone and leave the rows visibly ragged. */
.compare td:nth-child(2), .compare td:nth-child(3) {
  text-align: center; color: var(--text-muted); white-space: nowrap;
}
.compare td:nth-child(3) { color: var(--primary); font-weight: 700; background: rgba(106,148,86,.045); }
.compare thead th:nth-child(3) { background: var(--primary); }
.compare .ico-yes { color: var(--mid-green); display: inline-block; vertical-align: middle; }
.compare .ico-no  { color: var(--sand); display: inline-block; vertical-align: middle; }

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.plan {
  background: var(--card-bg);
  border: 1px solid var(--sand);
  border-radius: var(--r-lg);
  padding: 30px 26px;
  box-shadow: var(--sh-sm);
  position: relative;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.plan--best {
  border: 2px solid var(--primary);
  box-shadow: var(--sh-lg);
  transform: translateY(-10px);
}
.plan--best:hover { transform: translateY(-14px); }
.plan__flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--amber); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 100px;
  box-shadow: 0 4px 12px rgba(232,131,42,.32);
  white-space: nowrap;
}
.plan__name {
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  letter-spacing: .09em; text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 14px;
}
.plan__price {
  font-family: var(--font-display); font-weight: 700;
  font-size: 2.7rem; letter-spacing: -0.04em; line-height: 1;
  color: var(--text-dark);
}
.plan__per { font-size: 15px; font-weight: 400; color: var(--text-muted); letter-spacing: 0; }
.plan__sub { font-size: 14px; color: var(--text-muted); margin-top: 10px; min-height: 42px; }
/* The base .btn is nowrap, which would set a min-content floor wide enough to
   burst the 3-column plan grid on tablets. Inside a plan card the label may wrap. */
.plan .btn { width: 100%; margin-top: 18px; white-space: normal; }
.plan__note { font-size: 12.5px; color: var(--text-muted); margin-top: 12px; text-align: center; }

.plan--best .plan__price { color: var(--primary); }

.price-foot {
  margin-top: 26px; text-align: center;
  font-size: 13.5px; color: var(--text-muted);
}

/* --- 17. Ollie strip ----------------------------------------------------- */
.ollies {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 44px;
  max-width: 880px;
  margin-inline: auto;
}
.ollie {
  text-align: center;
  padding: 22px 8px 18px;
  border-radius: var(--r-md);
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.ollie:hover { background: rgba(255,255,255,.6); transform: translateY(-4px); }
.ollie img { width: 118px; margin-inline: auto; filter: drop-shadow(0 10px 20px rgba(31,42,24,.13)); }
.ollie span {
  display: block; margin-top: 14px;
  font-family: var(--font-display); font-size: 13.5px; font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-muted);
}

/* --- 18. FAQ ------------------------------------------------------------- */
.faq { max-width: 860px; margin-inline: auto; }
.qa {
  border-bottom: 1px solid var(--line);
}
.qa:first-child { border-top: 1px solid var(--line); }
.qa__q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 4px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  letter-spacing: -0.018em;
  color: var(--text-dark);
  line-height: 1.4;
  transition: color .18s var(--ease);
}
.qa__q:hover { color: var(--primary); }
.qa__ico {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--sand);
  display: grid; place-items: center;
  margin-top: 2px;
  transition: transform .3s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease);
  position: relative;
}
.qa__ico::before, .qa__ico::after {
  content: ''; position: absolute; background: var(--primary); border-radius: 2px;
  transition: opacity .25s var(--ease), background-color .25s var(--ease);
}
.qa__ico::before { width: 11px; height: 1.8px; }
.qa__ico::after  { width: 1.8px; height: 11px; }
.qa__q[aria-expanded="true"] .qa__ico {
  transform: rotate(180deg); background: var(--primary); border-color: var(--primary);
}
.qa__q[aria-expanded="true"] .qa__ico::before { background: #fff; }
.qa__q[aria-expanded="true"] .qa__ico::after  { opacity: 0; }

.qa__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .34s var(--ease);
}
.qa__a > div { overflow: hidden; }
.qa.is-open .qa__a { grid-template-rows: 1fr; }
.qa__a p {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.68;
  padding: 0 46px 26px 4px;
  max-width: 70ch;
}
.qa__a p + p { padding-top: 14px; }

/* No JS: answers stay open and the toggle affordance is hidden, so the section
   is still fully readable instead of being a wall of dead buttons. */
.no-js .qa__a { grid-template-rows: 1fr; }
.no-js .qa__ico { display: none; }
.no-js .qa__q { cursor: default; }
.no-js .gallery-nav { display: none; }

/* --- 19. Final CTA ------------------------------------------------------- */
.cta-band {
  position: relative;
  background: var(--nav-dark);
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(620px 420px at 22% 108%, rgba(106,148,86,.26), transparent 64%),
    radial-gradient(520px 400px at 82% -8%, rgba(232,131,42,.17), transparent 62%);
}
/* The band is dark but isn't a .section--dark, so it needs its own text colours. */
.cta-band__inner { position: relative; text-align: center; color: rgba(237,229,208,.8); }
.cta-band h2 { color: var(--page-bg); }
.cta-band .lede { color: rgba(237,229,208,.78); }
.cta-band .eyebrow { color: var(--sage); }
.cta-band img.ollie-cta {
  width: 128px; margin: 0 auto 26px;
  filter: drop-shadow(0 14px 28px rgba(0,0,0,.34));
}
.cta-band h2 { margin-bottom: 18px; }
.cta-band .lede { margin-inline: auto; margin-bottom: 34px; }
.cta-band .stores { justify-content: center; }
.cta-band .store--soon { color: var(--cream-dim); border-color: var(--line-dark); }

/* --- 20. Footer ---------------------------------------------------------- */
.footer {
  background: #16200F;
  color: var(--cream-faint);
  padding-block: clamp(52px, 6vw, 76px) 34px;
  font-size: 14.5px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 44px 32px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-dark);
}
.footer .brand__name { color: var(--page-bg); }
.footer__about { margin-top: 18px; max-width: 34ch; line-height: 1.62; }
.footer h4 {
  font-size: 12px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--sage); margin-bottom: 16px; font-weight: 700;
}
.footer li + li { margin-top: 10px; }
.footer a { transition: color .16s var(--ease); }
.footer a:hover { color: var(--page-bg); }

.footer__bottom {
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.langs {
  display: flex; flex-wrap: wrap; gap: 7px;
  margin-top: 16px;
}
.langs li {
  font-size: 11.5px; padding: 3px 9px; border-radius: 100px;
  border: 1px solid var(--line-dark); color: var(--cream-faint);
  margin-top: 0;
}
.disclaimer {
  margin-top: 26px;
  padding: 16px 20px;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-md);
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(237,229,208,.36);
}

/* --- 21. Scroll reveal --------------------------------------------------- */
.rv {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .07s; }
.rv-d2 { transition-delay: .14s; }
.rv-d3 { transition-delay: .21s; }
.rv-d4 { transition-delay: .28s; }

/* --- 22. Responsive ------------------------------------------------------ */
@media (max-width: 1024px) {
  .nav { display: none; }
  .burger { display: grid; }
  .header__cta .store { display: none; }
  .hero__grid { grid-template-columns: 1fr; text-align: left; }
  .hero__art { min-height: 420px; margin-top: 16px; }
  .hero .lede, .hero__note { max-width: none; }
  .frow, .themes { grid-template-columns: 1fr; }
  .frow--flip .frow__media { order: 0; }
  /* Stacked rows are full-bleed wide — don't blow a 700px screenshot up to fill it. */
  .frow__media--plain img { max-width: 400px; }
  .board__grid { grid-template-columns: repeat(2, 1fr); }
  .span-4 { grid-column: span 2; }
  .bento { grid-template-columns: repeat(4, 1fr); }
  .bcard--wide { grid-column: span 2; }
  .bcard--half { grid-column: span 2; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .ollies { grid-template-columns: repeat(4, 1fr); }
}

/* Three plan cards stop fitting comfortably below ~880px, and everything else on
   the page is already single-column by then. */
@media (max-width: 880px) {
  .plans { grid-template-columns: 1fr; gap: 26px; max-width: 520px; margin-inline: auto; }
  .plan--best { transform: none; }
  .plan--best:hover { transform: translateY(-4px); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  html { scroll-padding-top: 76px; }
  .header__inner { height: 68px; }
  .rail__grid { grid-template-columns: repeat(2, 1fr); gap: 22px 0; padding-block: 26px; }
  .rail__item:nth-child(odd)::before { display: none; }
  .rail__item:nth-child(5) { grid-column: span 2; }
  .rail__item:nth-child(5)::before { display: none; }
  .plans { grid-template-columns: 1fr; gap: 26px; }
  .plan--best { transform: none; }
  .plan--best:hover { transform: translateY(-4px); }
  .bento { grid-template-columns: 1fr; }
  .bcard--wide, .bcard--half { grid-column: span 1; }
  /* Keep 2 columns so the square 2×2 widgets stay square-ish instead of being
     stretched to full width; the wide ones span both. */
  .board__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .span-2, .span-4 { grid-column: span 2; }
  .wcard { padding: 11px; }
  .wcard__meta h3 { font-size: 13.5px; }
  .wcard__meta p { font-size: 11.5px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
  .compare th, .compare td { padding: 13px 12px; font-size: 14px; }
  .compare thead th { font-size: 11px; letter-spacing: .06em; }
  .hero__ollie { width: 96px; right: 0; }
  .chip--a { left: -2%; }
  .chip--b { right: -2%; }
  .stores { width: 100%; }
  .store { flex: 1 1 auto; justify-content: center; }
  .qa__a p { padding-right: 8px; }
  .escal { gap: 12px; }
  .ollies { grid-template-columns: repeat(2, 1fr); }
  .ollie img { width: 104px; }
}

@media (max-width: 420px) {
  .chip--c { display: none; }
}

/* Small phones (≈320px): let the comparison table fit rather than scroll. */
@media (max-width: 400px) {
  .compare table { min-width: 0; }
  .compare th, .compare td { padding: 12px 7px; font-size: 13px; }
  .compare thead th { font-size: 10px; letter-spacing: .04em; }
  .plan { padding: 26px 20px; }
  .plan__price { font-size: 2.4rem; }
}

/* --- 23. A11y / motion --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .rv { opacity: 1; transform: none; }
}

@media print {
  body::before, .header, .mobile-nav, .cta-band, .gallery-nav { display: none; }
  .section { padding-block: 24px; }
}
