/* Earth Essentials - design system
   ---------------------------------------------------------------
   Type:   Newsreader (editorial serif, display only)
           Schibsted Grotesk (UI and body)
   Colour: warm paper, near-black ink, one burnt-sienna accent.

   SIZES COME FROM THE SCALE BELOW. Do not write a literal px font
   size anywhere in this file. Ten steps is enough for a shop. If a
   step is missing, the design is wrong, not the scale.

   Contrast ratios next to the ink tokens are measured, not guessed.
   Keep them true if you change a colour.
   --------------------------------------------------------------- */

:root {
  /* type scale, the only font sizes allowed */
  --t-12: 12px;   /* legal, eyebrows, tags */
  --t-14: 14px;   /* meta, notes, secondary */
  --t-16: 16px;   /* body and UI default */
  --t-18: 18px;   /* lede, large body */
  --t-21: 21px;   /* card names, small headings */
  --t-24: 24px;   /* prices, modal titles, wordmark */
  --t-28: 28px;   /* bundle headings */
  --t-34: 34px;   /* section heading, small screens */
  --t-44: 44px;   /* section heading, large screens */
  --t-68: 68px;   /* hero */

  /* surfaces */
  --paper:      #FBFAF7;
  --paper-2:    #F2EFE8;
  --card:       #FFFFFF;
  --deep:       #1C241F;
  --deep-2:     #27312A;

  /* ink, measured against --paper */
  --ink:        #18180F;   /* 16.79:1  headings and body */
  --ink-2:      #54524A;   /*  7.61:1  secondary text */
  --ink-3:      #6E6B61;   /*  5.12:1  smallest meta text */
  --ink-ph:     #767367;   /*  4.55:1  input placeholders */

  /* ink on --deep */
  --on-deep:    #F7F4ED;   /* 14.20:1 */
  --on-deep-2:  #BFC6BD;   /*  9.10:1 */

  /* accent */
  --accent:     #A8491A;   /* 5.54:1 on paper, safe for text */
  --accent-ink: #8E3D15;
  --accent-up:  #E2A072;   /* 7.19:1 on --deep, 6.10:1 on --deep-2 */
  --accent-wash:#F7E9DF;

  /* lines. --line is decorative, --line-3 bounds a control. */
  --line:       #E4DFD4;   /* 1.21:1, dividers only, never a control edge */
  --line-2:     #D3CCBD;   /* 1.53:1, soft edges on non-essential boxes */
  --line-3:     #938770;   /* 3.39:1 on paper, meets AA for UI boundaries */

  --warn:       #7A4E0C;   /* 6.02:1 on --warn-wash */
  --warn-wash:  #FAEFD8;

  /* type faces */
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans:  "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* shape and rhythm */
  --r:      14px;
  --r-sm:   9px;
  --r-pill: 999px;
  --gutter: 20px;
  --maxw:   1140px;
  --tap:    44px;          /* minimum touch target */
  --shadow:    0 1px 2px rgba(24,24,15,.05), 0 8px 24px rgba(24,24,15,.06);
  --shadow-lg: 0 24px 60px rgba(24,24,15,.18);

  /* legacy aliases so order-builder.html keeps working unchanged */
  --cream: var(--paper);
  --sand: var(--paper-2);
  --forest: var(--deep);
  --gold: var(--accent);
  --gold-soft: var(--accent-wash);
  --ink-soft: var(--ink-2);
  --olive: var(--accent);
  --white: #FFFFFF;
  --r-lg: 20px;
  --wrap: var(--maxw);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-16);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--accent); text-underline-offset: 2px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; line-height: 1.12; }
p { margin: 0; }
.hidden { display: none !important; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
/* the paper accent is invisible on the dark bands, so flip it there */
.hero :focus-visible,
.band.dark :focus-visible,
.site-footer :focus-visible,
.bundle :focus-visible { outline-color: var(--accent-up); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--ink-2); }
.center { text-align: center; }

.eyebrow {
  display: inline-block; font-family: var(--sans); font-size: var(--t-12); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.band.dark .eyebrow, .hero .eyebrow { color: var(--accent-up); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: var(--t-16); font-weight: 600; line-height: 1;
  min-height: var(--tap);
  padding: 13px 20px; border-radius: var(--r-pill); border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .08s ease;
  white-space: nowrap; text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: #000; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-ink); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line-3); }
.btn-quiet:hover { border-color: var(--ink); background: rgba(24,24,15,.03); }
.btn-light { background: var(--on-deep); color: var(--deep); }
.btn-light:hover { background: #fff; }
.btn-outline-light { border-color: rgba(247,244,237,.55); color: var(--on-deep); }
.btn-outline-light:hover { border-color: var(--on-deep); background: rgba(247,244,237,.08); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 24px; min-height: 52px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn[disabled]:active { transform: none; }

/* ---------- banners ---------- */
.banner { background: var(--warn-wash); color: var(--warn); border-bottom: 1px solid #E8D6AE; font-size: var(--t-14); padding: 8px 0; }
.banner .wrap { display: flex; align-items: center; gap: 16px; justify-content: space-between; }
.banner button {
  font-size: var(--t-14); font-weight: 700; color: var(--warn); text-decoration: underline;
  flex-shrink: 0; min-height: var(--tap); padding: 0 8px;
}
.banner.alert { background: #F6DED6; border-bottom-color: #E2B8AA; color: #6B2410; }
.banner.alert button { color: #6B2410; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251,250,247,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.wordmark {
  font-family: var(--serif); font-size: var(--t-24); font-weight: 500; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none; margin-right: auto;
}
.nav { display: flex; gap: 28px; }
.nav a {
  font-size: var(--t-16); font-weight: 500; color: var(--ink-2); text-decoration: none;
  transition: color .15s ease; display: inline-flex; align-items: center; min-height: var(--tap);
}
.nav a:hover { color: var(--ink); }
.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--t-16); font-weight: 600; color: var(--ink); min-height: var(--tap);
  border: 1px solid var(--line-3); border-radius: var(--r-pill); padding: 9px 16px;
}
.cart-btn:hover { border-color: var(--ink); }
.cart-count {
  display: none; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-pill);
  background: var(--accent); color: #fff; font-size: var(--t-12); font-weight: 700;
}

/* ---------- hero ---------- */
.hero { background: var(--deep); color: var(--on-deep); padding: 84px 0 0; }
.hero h1 { font-size: clamp(var(--t-34), 7vw, var(--t-68)); font-weight: 400; letter-spacing: -0.03em; max-width: 15ch; margin: 18px 0 0; }
.hero .lede { font-size: var(--t-18); color: var(--on-deep-2); max-width: 48ch; margin: 20px 0 0; line-height: 1.6; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 0; }
.trust { display: flex; flex-wrap: wrap; margin-top: 56px; border-top: 1px solid rgba(247,244,237,.18); }
.trust div { flex: 1 1 210px; padding: 22px 24px 26px 0; font-size: var(--t-14); color: var(--on-deep-2); }
.trust strong { display: block; color: var(--on-deep); font-weight: 600; font-size: var(--t-16); margin-bottom: 4px; }

/* ---------- sections ---------- */
section { scroll-margin-top: 78px; }
.band { padding: 80px 0; }
.band.alt { background: var(--paper-2); }
.band.dark { background: var(--deep); color: var(--on-deep); }
.band.dark h2, .band.dark h3 { color: var(--on-deep); }
.band.dark p { color: var(--on-deep-2); }

.sec-head { max-width: 58ch; margin-bottom: 36px; }
.sec-head h2 { font-size: clamp(var(--t-28), 4.2vw, var(--t-44)); font-weight: 400; margin: 12px 0 0; }
.sec-head p { font-size: var(--t-18); color: var(--ink-2); margin-top: 14px; }
.band.dark .sec-head p { color: var(--on-deep-2); }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  font-size: var(--t-14); font-weight: 600; color: var(--ink-2); min-height: var(--tap);
  border: 1px solid var(--line-3); border-radius: var(--r-pill); padding: 8px 18px;
  background: transparent; transition: all .15s ease;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.card:hover { border-color: var(--line-3); box-shadow: var(--shadow); transform: translateY(-2px); }

/* The photo tile is a placeholder until real photography lands. It has
   an inset rule so it reads as a deliberate frame, not a failed image. */
.photo { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--paper-2); overflow: hidden; flex-shrink: 0; }
.photo::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(24,24,15,.14); border-radius: 4px; pointer-events: none; }
.photo.has-img::after { display: none; }
.photo.has-img img { width: 100%; height: 100%; object-fit: cover; }
/* An ingredient strip: two or three honest photographs side by side,
   used where one frame cannot show what is actually in a blend. */
.photo.is-strip { display: grid; gap: 3px; }
.photo.is-strip img { min-width: 0; }
/* A diagram is shown whole, never cropped to fill the tile. */
.photo.is-diagram { background: #fff; }
.photo.is-diagram img { object-fit: contain; padding: 14px; }
.photo-mark { font-family: var(--serif); font-size: var(--t-68); font-weight: 400; line-height: 1; color: rgba(24,24,15,.55); user-select: none; }
.photo-cat {
  position: absolute; left: 12px; top: 12px; z-index: 1;
  font-size: var(--t-12); font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-2); background: rgba(255,255,255,.92); border-radius: var(--r-pill); padding: 5px 10px;
}
.tint-coffee   { background: #EADFD1; }
.tint-tea      { background: #DFE8DB; }
.tint-mushroom { background: #EEDFD8; }
.tint-daily    { background: #E1E5EA; }

.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card-name { font-size: var(--t-21); font-weight: 500; }
.card-tag { font-size: var(--t-16); color: var(--ink); margin-top: 6px; line-height: 1.4; }
.card-size { font-size: var(--t-14); color: var(--ink-2); margin-top: 6px; }
.card-eta  { font-size: var(--t-14); font-weight: 600; color: var(--accent); margin-top: 10px; }
.card-price { margin-top: 16px; }
.price-now { font-family: var(--serif); font-size: var(--t-28); font-weight: 500; }
.price-sub { display: block; font-size: var(--t-14); color: var(--ink-2); margin-top: 3px; }
.card-actions { display: flex; gap: 8px; margin-top: 18px; }
.card-actions .btn { flex: 1; padding-left: 12px; padding-right: 12px; }

/* ---------- bundles ---------- */
.bundles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bundle {
  background: var(--deep-2); color: var(--on-deep); border-radius: var(--r);
  padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 26px;
}
.bundle h3 { font-size: var(--t-28); font-weight: 400; margin-top: 10px; }
.bundle-items { font-size: var(--t-16); color: var(--on-deep); margin-top: 10px; font-weight: 500; }
.bundle-blurb { font-size: var(--t-14); color: var(--on-deep-2); margin-top: 8px; }
.bundle-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bundle-price { font-family: var(--serif); font-size: var(--t-28); font-weight: 500; display: block; }
.bundle-save { font-size: var(--t-14); color: var(--on-deep-2); }
.bundle .btn-solid { background: var(--on-deep); color: var(--deep); }
.bundle .btn-solid:hover { background: #fff; }

/* ---------- monthly ---------- */
.monthly { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.monthly-points { list-style: none; padding: 0; margin: 24px 0 0; }
.monthly-points li { position: relative; padding-left: 26px; margin-bottom: 13px; font-size: var(--t-16); color: var(--on-deep-2); }
.monthly-points li::before { content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-up); }
.monthly-points strong { color: var(--on-deep); font-weight: 600; }
.monthly-card { background: var(--on-deep); color: var(--ink); border-radius: var(--r); padding: 30px; }
/* This card is a LIGHT panel sitting inside a dark band, so the
   .band.dark heading and paragraph colours must be overridden here.
   Without the .band.dark prefix those rules win on specificity and
   put near-white text on a near-white card at 1.59:1. */
.band.dark .monthly-card h3 { color: var(--ink); font-size: var(--t-24); }
.band.dark .monthly-card p { color: var(--ink-2); margin-top: 12px; font-size: var(--t-16); }
.monthly-card .btn { margin-top: 18px; }

/* ---------- reviews + feedback ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.fb-single { max-width: 620px; }
.fb-card { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); padding: 26px; }
.fb-card h3 { font-size: var(--t-21); margin-bottom: 6px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: var(--t-14); font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 14px; min-height: var(--tap);
  border: 1px solid var(--line-3); border-radius: var(--r-sm);
  background: var(--paper); color: var(--ink); font-size: var(--t-16);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-ph); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stars { display: flex; gap: 2px; }
.stars button {
  font-size: var(--t-24); line-height: 1; color: var(--ink-3); transition: color .12s ease;
  min-width: var(--tap); min-height: var(--tap);
}
.stars button.on { color: var(--accent); }
.checkrow { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-16); margin-bottom: 10px; padding: 6px 0; }
.checkrow input { margin-top: 4px; flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--accent); }
.fb-note { font-size: var(--t-14); color: var(--ink-2); margin-top: 12px; line-height: 1.5; }
.fb-hint { font-size: var(--t-14); font-weight: 600; color: var(--accent); margin-top: 6px; }
.fb-ok { background: var(--accent-wash); border-radius: var(--r); padding: 22px; font-size: var(--t-16); }

/* ---------- faq ---------- */
.faq { max-width: 760px; }
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
details summary {
  font-family: var(--serif); font-size: var(--t-21); font-weight: 500; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center;
  min-height: var(--tap);
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-family: var(--sans); font-size: var(--t-24); color: var(--ink-2); flex-shrink: 0; }
details[open] summary::after { content: "\2212"; }
details p { margin-top: 12px; color: var(--ink-2); font-size: var(--t-16); max-width: 62ch; }
details p + p { margin-top: 10px; }

/* ---------- footer ---------- */
.site-footer { background: var(--deep); color: var(--on-deep-2); padding: 64px 0 40px; font-size: var(--t-16); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.site-footer h4 { font-family: var(--sans); font-size: var(--t-12); letter-spacing: .12em; text-transform: uppercase; color: var(--on-deep); margin-bottom: 14px; font-weight: 700; }
.site-footer a { color: var(--on-deep-2); text-decoration: none; display: block; margin-bottom: 9px; }
.site-footer a:hover { color: var(--on-deep); text-decoration: underline; }
.site-footer .btn-linklike { display: block; margin-bottom: 9px; color: var(--on-deep-2); font: inherit; text-align: left; }
.site-footer .btn-linklike:hover { color: var(--on-deep); text-decoration: underline; }
.foot-mark { font-family: var(--serif); font-size: var(--t-24); color: var(--on-deep); margin-bottom: 10px; }
.legal { margin-top: 48px; padding-top: 26px; border-top: 1px solid rgba(247,244,237,.18); font-size: var(--t-12); line-height: 1.7; color: #A6ACA4; }
.legal p + p { margin-top: 10px; }

/* ---------- drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(18,20,17,.5); opacity: 0; pointer-events: none; transition: opacity .22s ease; z-index: 60; }
.overlay.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw);
  background: var(--paper); z-index: 70; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .28s cubic-bezier(.22,.8,.3,1), visibility .28s;
  box-shadow: var(--shadow-lg); visibility: hidden;
}
.drawer.show { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px var(--gutter); border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: var(--t-21); }
.icon-btn { font-size: var(--t-24); line-height: 1; color: var(--ink-2); min-width: var(--tap); min-height: var(--tap); }
.icon-btn:hover { color: var(--ink); }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px var(--gutter); }
.cart-empty { text-align: center; padding: 48px 0; color: var(--ink-2); }
.cart-empty p { margin-bottom: 16px; }
.cart-line { display: grid; grid-template-columns: 68px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line .photo { aspect-ratio: 1; border-radius: var(--r-sm); }
.cart-line .photo::after { inset: 6px; }
.cart-line .photo-mark { font-size: var(--t-28); }
.cart-line .photo-cat { display: none; }
.ci-name { font-weight: 600; font-size: var(--t-16); }
.ci-mode { font-size: var(--t-14); color: var(--ink-2); margin-top: 2px; }
.ci-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-3); border-radius: var(--r-pill); }
.qty button { font-size: var(--t-18); color: var(--ink); line-height: 1; min-width: 38px; min-height: 38px; }
.qty button:hover { color: var(--accent); }
.qty span { font-size: var(--t-16); font-weight: 600; min-width: 18px; text-align: center; }
.addon { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--accent-wash); border-radius: var(--r); padding: 14px 16px; margin-top: 18px; }
.addon-body strong { display: block; font-size: var(--t-16); }
.addon-body span { font-size: var(--t-14); color: var(--ink-2); }
.drawer-foot { border-top: 1px solid var(--line); padding: 18px var(--gutter); background: var(--card); }
.progress { font-size: var(--t-14); color: var(--ink-2); margin-bottom: 8px; }
.bar { height: 5px; background: var(--line-2); border-radius: var(--r-pill); overflow: hidden; margin-bottom: 16px; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: var(--r-pill); transition: width .3s ease; width: 0; }
.sumline { display: flex; justify-content: space-between; font-size: var(--t-16); padding: 5px 0; color: var(--ink-2); }
.sumline span:last-child { color: var(--ink); font-weight: 600; }
.sumline.total { font-family: var(--serif); font-size: var(--t-21); font-weight: 500; color: var(--ink); border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.drawer-note { font-size: var(--t-14); color: var(--ink-2); margin-top: 10px; line-height: 1.5; }
.drawer-note strong { color: var(--ink); }

/* ---------- modals ---------- */
.modal {
  position: fixed; z-index: 80; left: 50%; top: 50%; transform: translate(-50%, -46%) scale(.98);
  width: min(560px, calc(100vw - 32px)); max-height: 88vh; overflow-y: auto;
  background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.modal.show { opacity: 1; pointer-events: auto; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.modal-head {
  position: sticky; top: 0; background: var(--paper); z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px; border-bottom: 1px solid var(--line);
}
.modal-head h3 { font-size: var(--t-21); }
.modal-body { padding: 22px; }

.pm-head { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: center; margin-bottom: 22px; }
.pm-head .photo { aspect-ratio: 1; border-radius: var(--r-sm); }
.pm-head .photo-mark { font-size: var(--t-44); }
.pm-head .photo-cat { display: none; }
.pm-name { font-size: var(--t-24); font-weight: 500; }
.pm-size { font-size: var(--t-16); color: var(--ink-2); margin-top: 4px; }
.pm-copy { font-size: var(--t-16); color: var(--ink-2); margin-bottom: 14px; }
.pm-desc { font-size: var(--t-18); line-height: 1.55; color: var(--ink); margin-bottom: 4px; }
.pm-list { margin: 0 0 20px; }
.pm-list dt { font-size: var(--t-12); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-top: 16px; }
.pm-list dd { margin: 5px 0 0; font-size: var(--t-16); color: var(--ink); line-height: 1.55; }
.pm-sealed { background: var(--paper-2); border-radius: var(--r-sm); padding: 13px 15px; font-size: var(--t-14); color: var(--ink-2); }
.pm-warn { background: var(--warn-wash); color: var(--warn); border-radius: var(--r-sm); padding: 13px 15px; font-size: var(--t-14); margin-bottom: 14px; }
.pm-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }

.block-title { font-family: var(--sans); font-size: var(--t-12); font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--ink-2); margin: 26px 0 12px; }
.block-title:first-child { margin-top: 0; }
.opt {
  display: flex; gap: 13px; align-items: flex-start; cursor: pointer;
  border: 1px solid var(--line-3); border-radius: var(--r); padding: 14px 16px; margin-bottom: 9px;
  transition: border-color .15s ease, background .15s ease;
}
.opt:hover { border-color: var(--ink); }
.opt.sel { border-color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 1px var(--ink); }
.opt-dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-3); flex-shrink: 0; margin-top: 3px; position: relative; }
.opt.sel .opt-dot { border-color: var(--ink); }
.opt.sel .opt-dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--ink); }
.opt-title { display: block; font-size: var(--t-16); font-weight: 600; }
.opt-sub { display: block; font-size: var(--t-14); color: var(--ink-2); margin-top: 3px; }
.tag { display: inline-block; font-size: var(--t-12); font-weight: 700; letter-spacing: .04em; background: var(--accent-wash); color: var(--accent-ink); border-radius: var(--r-pill); padding: 3px 9px; margin-left: 4px; vertical-align: 1px; }
.form-note { font-size: var(--t-14); color: var(--ink-2); margin-top: 10px; line-height: 1.5; }
.terms-box { background: var(--paper-2); border-radius: var(--r); padding: 16px 18px; font-size: var(--t-16); color: var(--ink-2); margin-top: 18px; }
.terms-box strong { color: var(--ink); }
.terms-box ul { margin: 10px 0 0; padding-left: 18px; }
.terms-box li { margin-bottom: 6px; }
.terms-box p { margin-top: 8px; }
.terms-box .checkrow { margin: 14px 0 0; color: var(--ink); font-weight: 500; }
.pay-foot { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.pay-foot .btn { margin-top: 14px; }
.done { text-align: center; padding: 14px 0 6px; }
.done-mark { font-family: var(--serif); font-size: var(--t-28); }
.done-num { font-size: var(--t-14); color: var(--ink-2); margin-top: 6px; }

/* ---------- preview gate ---------- */
/* Hidden unless html[data-locked] is set by the head script. */
#previewGate { display: none; }
html[data-locked] body > *:not(#previewGate) { display: none !important; }
html[data-locked] #previewGate {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 200;
  background: var(--deep); padding: var(--gutter);
}
html[data-locked] { overflow: hidden; }
.gate-card { width: min(420px, 100%); text-align: left; }
.gate-card h2 { font-size: var(--t-34); font-weight: 400; color: var(--on-deep); margin: 10px 0 0; }
.gate-card p { font-size: var(--t-16); color: var(--on-deep-2); margin: 12px 0 22px; }
.gate-card .field label { color: var(--on-deep-2); }
.gate-card .field input { background: var(--on-deep); border-color: transparent; }
.gate-card .btn-solid { background: var(--on-deep); color: var(--deep); margin-top: 6px; }
.gate-card .btn-solid:hover { background: #fff; }
.gate-err { font-size: var(--t-14); font-weight: 600; color: var(--accent-up); margin-bottom: 10px; }

/* ---------- maintenance mode ---------- */
body.maint .card-actions, body.maint #goCheckout, body.maint .bundle .btn { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .bundles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .monthly { grid-template-columns: 1fr; gap: 36px; }
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  /* the nav scrolls instead of disappearing: on a phone this is the
     only route to the answers that close a pay-first sale */
  .site-header .wrap { flex-wrap: wrap; gap: 10px 16px; padding-top: 10px; padding-bottom: 4px; }
  .nav {
    order: 3; flex-basis: 100%; gap: 22px; overflow-x: auto;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { min-height: 38px; white-space: nowrap; }
  .hero { padding-top: 56px; }
  .band { padding: 56px 0; }
  .bundles { grid-template-columns: 1fr; }
  .trust { margin-top: 40px; }
  .trust div { flex-basis: 100%; padding: 16px 0; border-bottom: 1px solid rgba(247,244,237,.14); }
  .trust div:last-child { border-bottom: 0; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .grid { grid-template-columns: 1fr; gap: 18px; }
  .photo { aspect-ratio: 16 / 10; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .row2 { grid-template-columns: 1fr; }
  .card-actions { flex-direction: column; }
  .pm-head { grid-template-columns: 84px 1fr; gap: 14px; }
  .modal { width: calc(100vw - 20px); max-height: 92vh; }
  .hero-cta .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
