/* ============================================================================
   MILK marketing — "The Spec Sheet" redesign
   Editorial, calm, premium. Built on the MILK "Aerated Canvas" tokens.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800&display=swap');

:root {
  /* Brand */
  --milk-primary: #4EB0C9;
  --milk-dark: #3A8FA5;
  --milk-blue-dark: #287692;
  --milk-ink: #0F1B2D;

  /* Two blues, two jobs (2026-09-25). --milk-primary is the brand: logo,
     lines, markers, icon tiles and big display type. Against white it is
     only 2.5:1, so anything you READ or PRESS at normal size — buttons,
     links, labels, tags, the blue CTA block — uses --milk-action (5.1:1,
     hover 7.1:1). On the ink band the brand blue is already 6.9:1, so it
     stays there. */
  --milk-action: var(--milk-blue-dark);
  --milk-action-hover: #1F5F75;

  /* Text */
  --fg1: #2A3437;
  --fg-secondary: #2D3234;
  --fg2: #627A8C;
  --on-primary: #FFFFFF;

  /* Surfaces */
  --surface: #FFFFFF;
  --surface-low: #F0F4F5;
  --mainback: #FBFCFE;
  --mist: #F4F8FA;
  --chip: #F2F4F7;

  /* Lines */
  --line: #E2EAEE;
  --divider: #E0E5EB;

  /* Status */
  --green: #7FB177;
  --yellow: #C49958;
  --primary-wash: rgba(78, 176, 201, 0.12);

  /* Type */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --tracking-display: -0.035em;
  --tracking-tight: -0.01em;
  --tracking-label: 0.05em;
  --tracking-wide: 0.18em;

  --radius: 2px;

  /* Editorial rhythm */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--fg1);
  background: var(--mainback);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01';
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

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

section { position: relative; }

.band-mist { background: var(--mist); }
.band-ink { background: var(--milk-ink); color: #fff; }
.band-white { background: var(--surface); }

.hairline { border-top: 1px solid var(--line); }
.hairline-ink { border-top: 1px solid rgba(255,255,255,0.12); }

/* ---- Type ---------------------------------------------------------------- */
.display {
  font-weight: 800;
  letter-spacing: var(--tracking-display);
  line-height: 1.0;
  color: var(--fg-secondary);
  margin: 0;
  text-wrap: balance;
}
.ink .display, .band-ink .display { color: #fff; }

/* Full stops in display type. At this weight Plus Jakarta's period carries
   ~0.13em of space on its left — about three times a letter's — so at
   headline size "café." reads as "café ." site.js wraps each one in .stop
   and this pulls it back to ordinary letter spacing. */
.display .stop { margin-left: -0.08em; }

h1.display { font-size: clamp(46px, 7.4vw, 104px); }
h2.display { font-size: clamp(34px, 4.6vw, 60px); }
h3.display { font-size: clamp(26px, 3vw, 40px); }

.lead {
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.62;
  color: var(--fg1);
  margin: 0;
}
.band-ink .lead { color: rgba(255,255,255,0.76); }

p { line-height: 1.62; }

.eyebrow {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--milk-action);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.band-ink .eyebrow { color: var(--milk-primary); }
.label {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--fg2);
}

/* The signature index marker — a numbered tag like a print contents page */
.index-no {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--fg2);
  font-variant-numeric: tabular-nums;
}

/* ---- Section header block (eyebrow + index, editorial) ------------------- */
.sec-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 22px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--line);
}
.band-ink .sec-head { border-color: rgba(255,255,255,0.14); }
.sec-head .index-no { margin-left: auto; }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
  font-family: inherit;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); transition-duration: .06s; }
.btn-primary { background: var(--milk-action); color: #fff; }
.btn-primary:hover { background: var(--milk-action-hover); }
.btn-ink { background: var(--milk-ink); color: #fff; }
.btn-ink:hover { background: #1b2c44; }
.btn-ghost { color: var(--fg-secondary); padding-inline: 8px; }
.btn-ghost:hover { color: var(--milk-action); }
.btn-ghost .arrow { transition: transform .2s ease; }
.btn-ghost:hover .arrow { transform: translateX(4px); }
.btn-onlight-white { background: #fff; color: var(--milk-ink); }
.btn-onlight-white:hover { background: var(--mist); }
.btn-outline {
  background: transparent; color: var(--fg-secondary); border-color: var(--line);
}
.btn-outline:hover { border-color: var(--milk-action); color: var(--milk-action); }

/* ---- Tags / badges ------------------------------------------------------- */
.tag {
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: var(--radius);
  line-height: 1;
  white-space: nowrap;
}
.tag-live { background: var(--milk-action); color: #fff; }
.tag-beta { background: var(--primary-wash); color: var(--milk-action); }
.tag-soon { border: 1px solid var(--line); color: var(--fg2); }
.band-ink .tag-soon { border-color: rgba(255,255,255,0.25); color: rgba(255,255,255,0.7); }

/* ---- Cards / frames ------------------------------------------------------ */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* ---- Product screenshot frame (browser chrome) --------------------------- */
.shot {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 40px -8px rgba(15, 27, 45, 0.10);
}
.shot-bar {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--mainback);
}
.shot-dot { width: 9px; height: 9px; border-radius: 999px; background: var(--divider); }
.shot-url {
  margin-left: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--fg2);
  background: var(--surface-low);
  padding: 4px 12px;
  border-radius: 999px;
}
image-slot { display: block; width: 100%; }

/* ---- Reveal-on-scroll ----------------------------------------------------
   Content is ALWAYS visible by default. The entrance is a pure, additive
   animation that only PLAYS when .in is added — so if JS never fires (or a
   page is jumped/anchored to), content simply shows with no animation.
   It can never be stuck at opacity:0.

   --reveal-delay is set by site.js when several blocks reveal in the same
   frame, so they cascade gently instead of rising as one slab. fill-mode
   `both` holds a delayed block hidden only AFTER .in lands, so the no-JS
   guarantee still holds. */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal].in {
    animation: milk-rise .7s cubic-bezier(.2,.6,.2,1) both;
    animation-delay: var(--reveal-delay, 0s);
  }
  /* Staggered groups (data-stagger): the container keeps still and its
     direct children rise in sequence. Children 7+ share the final step. */
  [data-reveal][data-stagger].in { animation: none; }
  [data-reveal][data-stagger].in > * {
    animation: milk-rise .6s cubic-bezier(.2,.6,.2,1) both;
    animation-delay: calc(var(--reveal-delay, 0s) + .36s);
  }
  [data-reveal][data-stagger].in > :nth-child(1) { animation-delay: var(--reveal-delay, 0s); }
  [data-reveal][data-stagger].in > :nth-child(2) { animation-delay: calc(var(--reveal-delay, 0s) + .06s); }
  [data-reveal][data-stagger].in > :nth-child(3) { animation-delay: calc(var(--reveal-delay, 0s) + .12s); }
  [data-reveal][data-stagger].in > :nth-child(4) { animation-delay: calc(var(--reveal-delay, 0s) + .18s); }
  [data-reveal][data-stagger].in > :nth-child(5) { animation-delay: calc(var(--reveal-delay, 0s) + .24s); }
  [data-reveal][data-stagger].in > :nth-child(6) { animation-delay: calc(var(--reveal-delay, 0s) + .30s); }
  /* Safety valve (set by site.js): if the animation timeline is frozen — e.g.
     the page loaded in a background tab — strip the entrance so nothing can
     sit hidden at the `from` state of fill-mode `both`. */
  [data-reveal].reveal-done.in,
  [data-reveal].reveal-done.in > * { animation: none !important; }
}
@keyframes milk-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* ---- Nav ----------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251,252,254,0.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: 8px; }
/* Designer's logo, used as-is — the brand-blue bottle next to the "milk."
   wordmark. No box, no recolour. */
.brand-bottle { height: 30px; width: auto; }
/* Carton mark lockup (Ronin, 2026-10-06): the carton is CENTRED on the
   wordmark's letters, at the image's own height. The wordmark SVG's glyphs
   don't sit in the middle of its canvas (they span 10.7%–78.6% of its
   height, centre at 44.65%), so centring the two boxes would sit the carton
   low. The top margin moves the wordmark's box down by exactly the gap
   between the glyph centre and the canvas centre: (0.5 − 0.4465) × 2 × 30px. */
.brand-carton { height: 30px; width: auto; }
.brand-wordmark { height: 30px; width: auto; margin-top: 3.2px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--fg-secondary);
  transition: color .16s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--milk-action); }
.nav-cta {
  background: var(--milk-action);
  color: #fff !important;
  padding: 9px 16px;
  border-radius: var(--radius);
  font-weight: 600 !important;
  font-size: 14px !important;
}
.nav-cta:hover { background: var(--milk-action-hover); }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; color: var(--fg-secondary); padding: 6px; }
.nav-mobile { display: none; border-top: 1px solid var(--line); background: var(--surface); }
.nav-mobile.open { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .nav-mobile.open .nav-mobile-inner { animation: milk-drop .22s ease both; }
}
@keyframes milk-drop {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.nav-mobile-inner { display: flex; flex-direction: column; gap: 4px; padding: 14px 0 20px; }
.nav-mobile a { padding: 11px 0; font-weight: 500; color: var(--fg-secondary); font-size: 15px; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
}

/* ---- Footer -------------------------------------------------------------- */
.footer { background: var(--mist); border-top: 1px solid var(--line); margin-top: 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-block: 64px;
}
.footer h4 {
  font-size: 11px; text-transform: uppercase; letter-spacing: var(--tracking-label);
  color: var(--fg2); margin: 0 0 16px; font-weight: 700;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer ul a { font-size: 14px; color: var(--fg1); transition: color .16s; }
.footer ul a:hover { color: var(--milk-action); }
.footer-blurb { font-size: 14px; color: var(--fg2); max-width: 30ch; line-height: 1.6; margin: 14px 0 0; }
.footer-base {
  border-top: 1px solid var(--line);
}
.footer-base-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding-block: 20px; font-size: 12.5px; color: var(--fg2); flex-wrap: wrap; gap: 8px;
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---- Shared CTA block ---------------------------------------------------- */
.cta-block {
  background: var(--milk-action); color: #fff; border-radius: var(--radius);
  padding: clamp(40px, 6vw, 80px);
  display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap;
}
.cta-block h2 { color: #fff; }
.cta-block p { margin: 16px 0 0; font-size: 18px; line-height: 1.55; color: rgba(255,255,255,0.95); max-width: 38ch; }

/* ---- Utilities ----------------------------------------------------------- */
.text-primary { color: var(--milk-primary); }
.muted { color: var(--fg2); }
.numeric { font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.divider-v { width: 1px; background: var(--line); align-self: stretch; }

/* ============================================================================
   SERVICE TIMELINE + IMAGE SLOT — added 2026-09-07
   The paper-stock surface and the till-docket motif that shipped here on
   2026-09-08 were rolled back the same day: too close to Bustle's look.
   Don't reintroduce a paper band or a receipt graphic without checking.
   What's left keeps the house rules: flat only, no gradients, 2px corners,
   brand blue as the only accent, motion in the milkPopIn/data-reveal
   vocabulary.
   ========================================================================== */

:root {
  /* Till-roll type. No webfont: a system mono is what a receipt printer
     looks like anyway, and it costs nothing to download. */
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* ---- Service timeline ---------------------------------------------------
   A café day, hour by hour, and which part of MILK is doing the work. The
   rail is a single hairline with a marker per hour. */
.day-rail { border-top: 1px solid var(--line); }
.day-row {
  display: grid;
  grid-template-columns: 108px 24px 1fr;
  gap: 0 22px;
  align-items: start;
  padding: 26px 8px;
  border-bottom: 1px solid var(--line);
  transition: background .2s ease;
}
.day-row:hover { background: var(--mist); }
.day-time {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--fg-secondary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  padding-top: 1px;
}
.day-mark { position: relative; height: 100%; display: flex; justify-content: center; }
.day-mark::before {
  content: '';
  width: 1px;
  background: var(--line);
  position: absolute;
  top: -26px;
  bottom: -26px;
}
.day-row:first-child .day-mark::before { top: 10px; }
.day-row:last-child .day-mark::before { bottom: calc(100% - 10px); }
.day-dot {
  width: 9px; height: 9px;
  border-radius: 999px;
  background: var(--milk-primary);
  margin-top: 5px;
  position: relative;
  box-shadow: 0 0 0 4px var(--surface);
}
.day-row:hover .day-dot { box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--primary-wash); }
.day-body h3 { margin: 0; font-size: 18px; font-weight: 700; color: var(--fg-secondary); letter-spacing: -0.01em; }
.day-body p { margin: 8px 0 0; font-size: 15px; color: var(--fg1); max-width: 62ch; }
.day-who {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: var(--tracking-label);
  text-transform: uppercase; color: var(--milk-action);
}
.day-who svg { width: 13px; height: 13px; }

@media (max-width: 640px) {
  .day-row { grid-template-columns: 1fr; gap: 0; padding: 22px 4px; }
  .day-mark { display: none; }
  .day-time { font-size: 13px; color: var(--milk-action); margin-bottom: 8px; }
}

/* ---- Image slot fallback ------------------------------------------------
   <image-slot> is a design-tool scaffold whose script never shipped to the
   site, so every one of these rendered as a blank box. The custom element is
   now upgraded by site.js into a labelled frame — or the real screenshot,
   the moment a `src` is put on it. */
image-slot {
  display: block;
  width: 100%;
  background: var(--surface-low);
  position: relative;
  overflow: hidden;
}
image-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slot-empty {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 20px; text-align: center;
  background: var(--surface-low);
  border-top: 0;
}
.slot-empty .si {
  width: 34px; height: 34px; border-radius: var(--radius);
  background: var(--surface); color: var(--milk-primary);
  display: grid; place-items: center; border: 1px solid var(--line);
}
.slot-empty .si svg { width: 17px; height: 17px; }
.slot-empty .sl {
  font-size: 11px; font-weight: 700; letter-spacing: var(--tracking-label);
  text-transform: uppercase; color: var(--fg2);
}
