/* Lowcart home page, Apple style
   Loaded after site.css on the home page only (html:root), so the rest of the site is unchanged.
   Type: the platform's system font, with tracking set per size.
   Material: a translucent header and cookie sheet over the content.
   Motion: transform and opacity only, strong ease-out curves, reveals that play once, gentler fades under reduced motion. */

:root {
  /* palette: warm white, near black text, amber for the brand */
  --paper: #fbfaf8;
  --paper-2: #f2f0ec;
  --paper-3: #e7e3dc;
  --card: #fff;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --ink-3: #6e6e73;
  --accent: #9c5a0c;
  --line: rgba(0, 0, 0, .09);
  --line-2: rgba(0, 0, 0, .16);
  --dark: #0b0b0d;
  --dark-2: #1c1c1e;
  --on-dark: #f5f5f7;
  --on-dark-2: #a1a1a6;
  --gold: linear-gradient(100deg, #9c5a0c 0%, #c9862a 55%, #b8731a 100%);
  --gold-on-dark: linear-gradient(100deg, #f0c27d 0%, #e0a24e 50%, #c9862a 100%);

  /* the system font first, Instrument Sans where there is none */
  --sf: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --sf-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --font: var(--sf);
  --serif: var(--sf-display);
  --mono: var(--sf);

  /* motion */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);

  --header-h: 52px;
  --wrap: 1180px;
}

:root body { font: 400 17px/1.47 var(--sf); letter-spacing: -0.012em; background: var(--paper); }
:root body::after { content: none; }
:root ::selection { background: rgba(201, 134, 42, .32); color: var(--ink); }
:root :focus-visible { outline: 2px solid #c9862a; outline-offset: 3px; }

/* ---------- header: a translucent layer the page scrolls under ---------- */
:root .site-header {
  background: rgba(251, 250, 248, .8);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0);
  transition: box-shadow 200ms ease;
}
:root .site-header.scrolled { background: rgba(251, 250, 248, .8); box-shadow: 0 1px 0 var(--line); }
:root .nav { height: var(--header-h); }
:root .brand { gap: 9px; font: 600 19px/1 var(--sf-display); letter-spacing: -0.022em; }
:root .brand .mark { height: 21px; }
:root .nav-links { gap: 30px; font-size: 13.5px; color: var(--ink-2); letter-spacing: -0.005em; }
:root .nav-links a::after { content: none; }
:root .nav > .btn-sm { height: 32px; padding: 0 14px; font-size: 13.5px; }
:root .nav > .btn-sm .arrow { display: none; }

/* ---------- buttons: calm pills, pressed on pointer down ---------- */
:root .btn { font: 500 15px/1 var(--sf); letter-spacing: -0.01em; transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease, transform 160ms var(--ease-out); }
:root .btn::before { content: none; }
:root .btn:active { transform: scale(.97); transition-duration: 100ms; }
:root .btn-primary, :root .btn-primary:hover { background: var(--ink); color: #fff; }
:root .btn-secondary, :root .btn-secondary:hover { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
:root .btn-amber, :root .btn-amber:hover { background: #c9862a; color: var(--ink); }
:root .btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
:root .btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
@media (hover: hover) and (pointer: fine) {
  :root .btn-primary:hover { background: #3a3a3c; }
  :root .btn-secondary:hover { background: var(--paper-2); }
  :root .btn-amber:hover { background: #d6973f; }
  :root .btn:hover .arrow { transform: translateX(3px); }
}
:root .btn .arrow { transition: transform 200ms var(--ease-out); }

:root .more-link { display: inline-flex; align-items: center; gap: 3px; font-size: 17px; font-weight: 500; color: var(--accent); }
:root .more-link svg { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  :root .more-link:hover span { text-decoration: underline; text-underline-offset: 3px; }
  :root .more-link:hover svg { transform: translateX(3px); }
}

/* small labels above headings */
:root .kicker { display: block; font: 600 17px/1.25 var(--sf-display); letter-spacing: -0.01em; color: var(--accent); }

/* ---------- hero ---------- */
:root .hero { padding-top: clamp(56px, 8.5vw, 112px); text-align: center; }
:root .hero > .wrap.hero-inner { display: flex; flex-direction: column; align-items: center; }
:root .hero-kicker { font-size: clamp(17px, 1.5vw, 21px); }
:root .hero h1 {
  margin-top: 14px; width: auto;
  font: 600 clamp(46px, 8.2vw, 108px)/1.02 var(--sf-display); letter-spacing: -0.03em;
  text-wrap: balance;
}
:root .hero h1 .ln { display: block; width: fit-content; overflow: visible; padding: 0 0 .04em; margin: 0 auto; }
:root .hero h1 .ln + .ln {
  background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .08em;
}
:root .hero .lede {
  margin-top: clamp(18px, 2vw, 26px); max-width: 34ch;
  font-size: clamp(19px, 1.75vw, 24px); line-height: 1.38; letter-spacing: -0.016em; color: var(--ink-3); text-wrap: balance;
}
:root .hero-ask { width: 100%; max-width: 720px; margin-top: clamp(30px, 3.6vw, 44px); }
:root .covers { margin-top: 22px; max-width: 64ch; text-wrap: balance; font-size: 13.5px; line-height: 1.55; color: var(--ink-3); letter-spacing: -0.003em; }

/* the message box */
:root .composer {
  padding: 16px 12px 12px 22px; border-radius: 26px; background: var(--card);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 2px 4px rgba(0, 0, 0, .03), 0 24px 60px -26px rgba(0, 0, 0, .24);
  transition: box-shadow 200ms var(--ease-out);
}
:root .composer:focus-within { box-shadow: 0 0 0 1px rgba(0, 0, 0, .14), 0 0 0 5px rgba(201, 134, 42, .2), 0 28px 70px -26px rgba(0, 0, 0, .3); }
:root .hero-chat textarea { font-size: 19px; letter-spacing: -0.016em; caret-color: #c9862a; }
:root .composer-hint { font-size: 13px; }
:root .icon-btn, :root .icon-btn:hover { background: transparent; color: var(--ink-2); transition: background-color 200ms ease, transform 160ms var(--ease-out); }
:root .icon-btn:active { transform: scale(.94); }
:root .send, :root .send:hover:not([disabled]) { background: var(--ink); color: #fff; transition: background-color 200ms ease, transform 160ms var(--ease-out); }
:root .send:active:not([disabled]) { transform: scale(.94); transition-duration: 100ms; }
:root .send[disabled] { background: var(--paper-3); color: var(--ink-3); }
@media (hover: hover) and (pointer: fine) {
  :root .icon-btn:hover { background: var(--paper-2); color: var(--ink); }
  :root .send:hover:not([disabled]) { background: #c9862a; color: var(--ink); }
}

/* examples */
:root .suggest { justify-content: center; gap: 8px; margin-top: 16px; }
:root .suggest span { margin-right: 2px; font: 500 14px/1 var(--sf); letter-spacing: -0.005em; text-transform: none; color: var(--ink-3); }
:root .suggest button, :root .suggest button:hover {
  height: 34px; padding: 0 14px; background: var(--paper-2); box-shadow: none; color: var(--ink-2); font-size: 14px;
  transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
:root .suggest button:active { transform: scale(.96); transition-duration: 100ms; }
@media (hover: hover) and (pointer: fine) { :root .suggest button:hover { background: var(--paper-3); color: var(--ink); } }

/* the latest real check, rising into place as the page scrolls (app.js sets --tilt and --lift) */
:root .stage { position: relative; margin-top: clamp(56px, 7vw, 96px); padding: 0 0 clamp(80px, 10vw, 140px); background: none; }
:root .stage::before {
  content: ""; position: absolute; left: 50%; top: 4%; z-index: 0; width: min(1100px, 92vw); height: 78%;
  transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(201, 134, 42, .2), rgba(201, 134, 42, 0));
}
:root .showcase { position: relative; z-index: 1; }
:root .device {
  max-width: 1000px; border-radius: 24px; background: var(--card);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .07), 0 2px 6px rgba(0, 0, 0, .04), 0 60px 120px -48px rgba(0, 0, 0, .38);
}
:root .device-bar { padding: 12px 14px; background: rgba(242, 240, 236, .85); border-bottom-color: var(--line); }
:root .device-search { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; }
:root .device-search span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:root .device-country { font: 500 12.5px/1 var(--sf); letter-spacing: 0; text-transform: none; color: var(--ink-3); }
:root .device .rc { padding: 28px 28px 12px; }

/* the results card inside it */
:root .rc-title { font: 600 clamp(24px, 2.3vw, 30px)/1.12 var(--sf-display); letter-spacing: -0.02em; }
:root .rc-meta { font-size: 13.5px; }
:root .tag { background: var(--paper-2); color: var(--ink-2); font-size: 12.5px; font-weight: 500; }
:root .picks { border-radius: 18px; }
:root .pick { padding: 18px 20px; }
:root .pick-k { font: 600 12.5px/1.3 var(--sf); letter-spacing: -0.005em; text-transform: none; color: var(--ink-3); }
:root .pick.is-best { background: var(--ink); }
:root .pick.is-best .pick-k { background: #c9862a; color: var(--ink); }
:root .pick-v { font: 600 34px/1.05 var(--sf-display); letter-spacing: -0.03em; }
:root .row-rank { font: 500 13px/24px var(--sf); color: var(--ink-3); }
:root .row-store { font-weight: 600; letter-spacing: -0.015em; }
:root .row-meta .code { font-family: var(--sf); font-weight: 600; }
:root .row-price b { font: 600 21px/26px var(--sf-display); letter-spacing: -0.02em; }
:root .line-total > span:last-child { font: 600 21px/1 var(--sf-display); letter-spacing: -0.02em; }
:root .code-chip { font: 600 12px/26px var(--sf); background: var(--paper-2); }
@media (hover: hover) and (pointer: fine) { :root .row summary:hover { background: var(--paper-2); } }

/* ---------- sections ---------- */
:root .section { padding: clamp(96px, 12vw, 168px) 0; }
:root .section-tight { padding-top: 0; }
:root .section-tint { background: var(--paper-2); }
:root .head { max-width: 880px; margin-bottom: clamp(44px, 5.6vw, 80px); }
:root .head-center { margin-left: auto; margin-right: auto; text-align: center; }
:root .head .kicker { margin-bottom: 12px; }
:root .head h2 { font: 600 clamp(38px, 5.4vw, 72px)/1.05 var(--sf-display); letter-spacing: -0.026em; text-wrap: balance; }
:root .head .sub { margin-top: 20px; max-width: 52ch; font-size: clamp(18px, 1.55vw, 21px); line-height: 1.42; letter-spacing: -0.014em; color: var(--ink-3); }
:root .head-center .sub { margin-left: auto; margin-right: auto; }

/* why: four cells */
:root .bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
:root .cell-b {
  display: flex; flex-direction: column; gap: 12px; min-height: 320px;
  padding: clamp(28px, 3.2vw, 44px); border-radius: 28px; background: var(--paper-2);
}
:root .cell-wide { grid-column: span 2; }
:root .cell-k { font: 600 15px/1.3 var(--sf); letter-spacing: -0.008em; color: var(--ink-3); }
:root .cell-b h3 { max-width: 17ch; font: 600 clamp(28px, 3vw, 42px)/1.08 var(--sf-display); letter-spacing: -0.024em; text-wrap: balance; }
:root .cell-b > p:not(.cell-k):not(.cell-big) { max-width: 40ch; font-size: 17px; line-height: 1.45; color: var(--ink-2); }
:root .cell-big {
  margin: auto 0 4px; font: 700 clamp(76px, 9vw, 132px)/.95 var(--sf-display); letter-spacing: -0.045em;
  background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent;
}
:root .cell-dark { background: var(--dark); color: var(--on-dark); }
:root .cell-dark .cell-k, :root .cell-dark > p:not(.cell-k):not(.cell-big) { color: var(--on-dark-2); }
:root .cell-warm { background: linear-gradient(140deg, #f7e6c9 0%, #f2f0ec 70%); }
:root .sum { margin-top: auto; padding-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
:root .sum span { height: 36px; display: inline-flex; align-items: center; padding: 0 15px; border-radius: 999px; background: rgba(255, 255, 255, .09); font-size: 15px; font-weight: 500; color: var(--on-dark); }
:root .sum i { font-style: normal; font-size: 17px; color: #6e6e73; }
:root .sum .sum-total { background: #c9862a; color: var(--dark); font-weight: 600; }

/* how it works */
:root .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
:root .steps li { padding: clamp(28px, 3vw, 40px); border-top: 0; border-radius: 28px; background: var(--card); box-shadow: 0 0 0 1px rgba(0, 0, 0, .04); }
:root .step-n {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  background: var(--ink); color: #fff; font: 600 18px/1 var(--sf-display); letter-spacing: 0;
}
:root .steps h3 { margin-top: 28px; font: 600 clamp(22px, 2vw, 26px)/1.18 var(--sf-display); letter-spacing: -0.018em; }
:root .steps p { margin-top: 10px; max-width: 34ch; font-size: 17px; line-height: 1.45; color: var(--ink-3); }

/* the delivered total: a statement that lights up line by line as it scrolls through */
:root #total .kicker { margin-bottom: 14px; }
:root .say { max-width: 22em; font: 600 clamp(32px, 4.4vw, 60px)/1.12 var(--sf-display); letter-spacing: -0.026em; text-wrap: pretty; }
:root .split { margin-top: clamp(48px, 6vw, 88px); grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(40px, 6vw, 96px); align-items: start; }
:root .split.split-solo { grid-template-columns: minmax(0, 1fr); }
:root .parts { margin-top: 0; border-bottom: 1px solid var(--line); }
:root .parts > div { grid-template-columns: minmax(130px, 170px) minmax(0, 1fr); padding: 22px 0; border-top: 1px solid var(--line); }
:root .parts dt { font: 600 21px/1.2 var(--sf-display); letter-spacing: -0.016em; }
:root .parts dd { font-size: 17px; color: var(--ink-3); }
:root .receipt { font-family: var(--sf); border-radius: 4px; box-shadow: 0 0 0 1px var(--line), 0 40px 80px -44px rgba(0, 0, 0, .35); }
:root .receipt-head small { font: 600 11.5px/1.3 var(--sf); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
:root .receipt-head strong { font: 600 20px/1.2 var(--sf-display); letter-spacing: -0.016em; }
:root .receipt .lines { font-size: 14px; }
:root .receipt .line-total > span:last-child { font: 600 44px/1 var(--sf-display); letter-spacing: -0.035em; }

/* delivery: a dark section */
:root .section-dark { background: var(--dark); color: var(--on-dark); }
:root .section-dark .kicker { color: #e0a24e; }
:root .section-dark .sub { color: var(--on-dark-2); }
:root .tiles { gap: 20px; }
:root .tile { border-radius: 28px; padding: clamp(30px, 3.6vw, 52px); background: var(--dark-2); color: var(--on-dark); gap: 12px; }
:root .tile.is-local { background: linear-gradient(160deg, #3a2709 0%, #1c1c1e 62%); color: var(--on-dark); }
:root .tile-k, :root .tile.is-local .tile-k { font: 600 15px/1.3 var(--sf); letter-spacing: -0.008em; text-transform: none; color: var(--on-dark-2); }
:root .tile-v { font: 600 clamp(44px, 5.2vw, 76px)/1 var(--sf-display); white-space: nowrap; letter-spacing: -0.04em; color: var(--on-dark); }
:root .tile.is-local .tile-v { background: var(--gold-on-dark); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root .tile p, :root .tile.is-local p { color: var(--on-dark-2); font-size: 17px; }
:root .section-dark .tiles-note { margin: 28px auto 0; text-align: center; color: var(--on-dark-2); }
:root .section-dark .tiles-note + .tiles-source { margin-top: 6px; font: 400 13px/1.5 var(--sf); letter-spacing: 0; color: #6e6e73; }

/* popular checks: a row of cards that scrolls sideways */
:root .head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
:root .head-row .head { margin-bottom: 0; }
:root .paddles { display: flex; gap: 10px; flex: none; }
:root .paddles[hidden] { display: none !important; }
:root .paddle {
  width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: var(--paper-2); color: var(--ink);
  transition: background-color 200ms ease, opacity 200ms ease, transform 160ms var(--ease-out);
}
:root .paddle:active:not([disabled]) { transform: scale(.92); transition-duration: 100ms; }
:root .paddle[disabled] { opacity: .35; cursor: default; }
@media (hover: hover) and (pointer: fine) { :root .paddle:hover:not([disabled]) { background: var(--paper-3); } }
:root .gallery { margin-top: clamp(36px, 4vw, 56px); }
:root .home-links {
  --pad: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  display: flex; gap: 20px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
  padding: 4px var(--pad) 24px; border-top: 0; scrollbar-width: none;
}
:root .home-links::-webkit-scrollbar { display: none; }
:root .home-links a, :root .home-links a:hover {
  flex: 0 0 clamp(250px, 24vw, 296px); min-height: 330px; scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 0; padding: 28px; border: 0; border-radius: 28px; background: var(--paper-2);
  transition: background-color 200ms ease, transform 160ms var(--ease-out);
}
:root .home-links a::before { order: 0; font: 600 13px/1 var(--sf); letter-spacing: 0; color: var(--ink-3); }
:root .home-links span { order: 1; margin-top: 18px; font: 500 15px/1.3 var(--sf); letter-spacing: -0.008em; text-transform: none; text-align: left; white-space: normal; color: var(--accent); }
:root .home-links b { order: 2; margin-top: 8px; font: 600 clamp(22px, 2vw, 26px)/1.16 var(--sf-display); letter-spacing: -0.02em; }
:root .home-links a::after {
  order: 3; margin-top: auto; align-self: flex-start; width: 38px; height: 38px; opacity: 1; transform: none; border-radius: 50%;
  background: var(--card) no-repeat center / 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1d1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  transition: transform 200ms var(--ease-out);
}
:root .home-links a:active { transform: scale(.98); transition-duration: 100ms; }
@media (hover: hover) and (pointer: fine) {
  :root .home-links a:hover { background: var(--paper-3); }
  :root .home-links a:hover::after { transform: translateX(4px); }
}
:root .home-more { margin-top: 18px; }

/* for shops */
:root .shops-band {
  display: block; text-align: center; padding: clamp(52px, 7vw, 104px) clamp(24px, 5vw, 64px); border-radius: 32px;
  background: radial-gradient(120% 150% at 50% 0%, #f6e2c2 0%, #f2f0ec 58%);
}
:root .shops-band .kicker { margin: 0; max-width: none; font-size: 17px; color: var(--accent); }
:root .shops-band h2 { margin: 12px auto 0; max-width: 16ch; font: 600 clamp(36px, 4.8vw, 64px)/1.05 var(--sf-display); letter-spacing: -0.026em; text-wrap: balance; }
:root .shops-band p:not(.kicker) { margin: 18px auto 0; max-width: 48ch; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.42; color: var(--ink-2); }
:root .shops-act { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; }

/* questions */
:root .faq-wrap { display: block; max-width: calc(860px + var(--gutter) * 2); }
:root .faq-wrap .head { position: static; margin-bottom: clamp(36px, 4vw, 56px); }
:root .faq { max-width: none; border-top: 1px solid var(--line-2); }
:root .faq details { border-bottom-color: var(--line-2); }
:root .faq summary, :root .faq summary:hover { padding: 24px 0; font: 600 clamp(19px, 1.7vw, 22px)/1.3 var(--sf-display); letter-spacing: -0.014em; color: var(--ink); }
@media (hover: hover) and (pointer: fine) { :root .faq summary:hover { color: var(--ink-2); } }
:root .faq .plus::before, :root .faq .plus::after { height: 2px; top: 8px; border-radius: 2px; transition: transform 250ms var(--ease-out); }
:root .faq details p { padding-right: 40px; font-size: 17px; line-height: 1.5; color: var(--ink-3); }
:root .faq details[open] p { animation: none; }
:root .faq code { font-family: var(--sf); font-size: 1em; font-weight: 500; color: var(--ink); }
@supports (interpolate-size: allow-keywords) and selector(::details-content) {
  :root .faq { interpolate-size: allow-keywords; }
  :root .faq details::details-content {
    block-size: 0; overflow: clip; opacity: 0;
    transition: block-size 250ms var(--ease-out), opacity 200ms ease, content-visibility 250ms allow-discrete;
  }
  :root .faq details[open]::details-content { block-size: auto; opacity: 1; }
}

/* ---------- footer: light, quiet, small type ---------- */
:root .site-footer { padding-top: clamp(64px, 8vw, 104px); background: var(--paper-2); color: var(--ink-3); font-size: 13.5px; }
:root .foot-top { border-bottom-color: var(--line); }
:root .foot-say { font: 600 clamp(34px, 4.8vw, 60px)/1.06 var(--sf-display); letter-spacing: -0.026em; color: var(--ink); }
:root .foot-say em { font-style: normal; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root .site-footer .brand { color: var(--ink); }
:root .foot-col h4 { margin-bottom: 14px; font: 600 13px/1.2 var(--sf); letter-spacing: -0.005em; text-transform: none; color: var(--ink); }
:root .foot-col ul { gap: 10px; }
:root .foot-col a, :root .foot-col .linklike, :root .foot-col a:hover, :root .foot-col .linklike:hover { color: var(--ink-3); text-decoration: none; transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { :root .foot-col a:hover, :root .foot-col .linklike:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; } }
:root .site-footer .email-copy code { color: var(--ink); font-family: var(--sf); }
:root .site-footer .copy-btn, :root .site-footer .copy-btn:hover { color: var(--ink-2); background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
:root .foot-mark .mark { fill: rgba(0, 0, 0, .06); }
:root .foot-mark .mark circle { fill: rgba(201, 134, 42, .5); }
:root .foot-bottom { border-top-color: var(--line); font: 400 12.5px/1.4 var(--sf); letter-spacing: 0; text-transform: none; color: var(--ink-3); }

/* ---------- cookie sheet and dialog: the same material as the header ---------- */
:root .cookie {
  border-radius: 22px; background: rgba(255, 255, 255, .74);
  -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 30px 60px -22px rgba(0, 0, 0, .3);
  font-size: 13.5px; color: var(--ink-2);
}
:root .cookie b { font: 600 17px/1.25 var(--sf-display); letter-spacing: -0.012em; }
:root .modal h2 { font: 600 26px/1.15 var(--sf-display); letter-spacing: -0.02em; }

/* ---------- motion ---------- */
@keyframes home-in { from { opacity: 0; transform: translateY(16px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes home-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes home-material { from { opacity: 0; transform: translateY(10px) scale(.97); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes home-lit { from { opacity: .18; } to { opacity: 1; } }

@media (prefers-reduced-motion: no-preference) {
  /* the hero arrives once, in reading order, 60ms apart */
  :root .hero .composer, :root .suggest { animation: none; }
  :root .hero-kicker, :root .hero h1 .ln, :root .hero .lede, :root .hero-ask, :root .covers { animation: home-in 900ms var(--ease-out) both; }
  :root .hero-kicker { animation-delay: 40ms; }
  :root .hero h1 .ln { animation-delay: calc(100ms + var(--i, 0) * 60ms); }
  :root .hero .lede { animation-delay: 220ms; }
  :root .hero-ask { animation-delay: 280ms; }
  :root .covers { animation-delay: 340ms; }
  :root .showcase { animation: home-in 1100ms var(--ease-out) 380ms both; }

  /* sections rise once as they come into view (app.js adds .rv-wait, then .in), cells 70ms apart */
  :root.reveal-ready .rv-wait {
    opacity: 0; transform: translateY(28px);
    transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  :root.reveal-ready .rv-wait.in { opacity: 1; transform: none; }

  /* the sum in the first cell builds left to right once the cell is in */
  :root.reveal-ready .cell-dark.rv-wait .sum > * { opacity: 0; transform: translateY(8px); transition: opacity 400ms var(--ease-out), transform 500ms var(--ease-out); }
  :root.reveal-ready .cell-dark.rv-wait.in .sum > * { opacity: 1; transform: none; }
  :root .sum > :nth-child(1) { transition-delay: 300ms; }
  :root .sum > :nth-child(2) { transition-delay: 340ms; }
  :root .sum > :nth-child(3) { transition-delay: 380ms; }
  :root .sum > :nth-child(4) { transition-delay: 420ms; }
  :root .sum > :nth-child(5) { transition-delay: 460ms; }
  :root .sum > :nth-child(6) { transition-delay: 500ms; }
  :root .sum > :nth-child(7) { transition-delay: 540ms; }
  :root .sum > :nth-child(8) { transition-delay: 580ms; }
  :root .sum > :nth-child(9) { transition-delay: 640ms; }

  /* the cookie sheet materialises: blur and scale together, not only a fade */
  :root .cookie:not([hidden]) { animation: home-material 450ms var(--ease-out) 600ms both; }
}

/* the statement lights up as you read down it, where the browser can tie motion to scrolling */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    :root .say span { animation: home-lit linear both; animation-timeline: view(); animation-range: entry 30% cover 45%; }
  }
}

/* reduced motion: a short fade instead of movement */
@media (prefers-reduced-motion: reduce) {
  :root .hero-kicker, :root .hero h1 .ln, :root .hero .lede, :root .hero-ask, :root .covers, :root .showcase, :root .cookie:not([hidden]) {
    animation: home-fade 300ms ease both !important;
  }
  :root .faq details::details-content { transition: none; }
}

/* reduced transparency and more contrast: solid surfaces */
@media (prefers-reduced-transparency: reduce) {
  :root .site-header, :root .site-header.scrolled { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
  :root .cookie { background: var(--card); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root .site-header, :root .site-header.scrolled { background: var(--card); box-shadow: 0 1px 0 var(--ink); }
  :root .cookie { background: var(--card); box-shadow: 0 0 0 1px var(--ink); }
  :root .hero .lede, :root .head .sub, :root .covers { color: var(--ink-2); }
}

/* ---------- smaller screens ---------- */
@media (max-width: 1024px) {
  :root .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :root .cell-wide { grid-column: 1 / -1; }
  :root .split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  :root .section { padding: clamp(72px, 16vw, 96px) 0; }
  :root .section-tight { padding-top: 0; }
  :root .bento, :root .steps { grid-template-columns: minmax(0, 1fr); }
  :root .cell-b { min-height: 0; }
  :root .cell-big { margin-top: 8px; }
  :root .head-row { align-items: flex-start; }
  :root .paddles { display: none; }
  :root .home-links { gap: 14px; }
  :root .home-links a, :root .home-links a:hover { flex-basis: 76vw; min-height: 260px; padding: 24px; }
  :root .parts > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  :root .shops-band { border-radius: 26px; }
}
@media (max-width: 640px) {
  :root .hero h1 { font-size: clamp(40px, 11.6vw, 60px); letter-spacing: -0.032em; }
  :root .hero .lede { font-size: 18px; }
  :root .hero-chat textarea { font-size: 17px; }
  :root .composer { border-radius: 22px; padding: 14px 10px 10px 18px; }
  :root .device { border-radius: 18px; }
  :root .device .rc { padding: 20px 16px 8px; }
  :root .say { font-size: clamp(28px, 8vw, 40px); }
  :root .sum span { height: 32px; padding: 0 12px; font-size: 14px; }
  :root .foot-say { font-size: clamp(32px, 9vw, 44px); }
}

/* ---------- the rest of the site ---------- */
:root h1 em, :root h2 em, :root h3 em, :root .foot-say em { font-style: normal; color: var(--accent); }
:root .eyebrow { font: 600 15px/1.3 var(--sf); letter-spacing: -0.005em; text-transform: none; color: var(--accent); }
:root .eyebrow b { color: var(--ink-3); font-weight: 600; }
:root .eyebrow b::after { content: none; }
:root .beta-tag { font: 600 11px/1 var(--sf); letter-spacing: 0; text-transform: none; }
:root .field input, :root .field select, :root .input { border-radius: 12px; background: var(--card); }
:root .where-panel, :root dialog.modal { border-radius: 22px; }
/* the message box shows focus as a whole, not on the text inside it */
:root .composer textarea:focus-visible { outline: none; }
/* the hero's message box fills its column, the chat's stays at reading width */
:root .hero-ask .composer { max-width: none; }
/* in a conversation the message box sits at the bottom of the window, not under the last message */
:root .chat-page[data-chat="live"] .chat { flex: 1 0 auto; }
/* chat: where the prices are calculated for, beside the message box */
:root .where-note {
  display: inline-flex; align-items: center; gap: 6px; min-width: 0; height: 32px; padding: 0 12px; margin-right: 6px;
  border-radius: 999px; background: var(--paper-2); color: var(--ink-2);
  font: 500 13px/1 var(--sf); letter-spacing: -0.005em; white-space: nowrap; overflow: hidden;
}
:root .where-note svg { flex: none; color: var(--accent); }
:root .where-note span { overflow: hidden; text-overflow: ellipsis; }
:root .where-note { border: 0; cursor: pointer; transition: background-color 200ms ease, transform 160ms var(--ease-out); }
:root .where-note:active { transform: scale(.97); transition-duration: 100ms; }
:root .where-note .where-chev { color: var(--ink-3); transition: transform 200ms var(--ease-out); }
:root .where-note[aria-expanded="true"] .where-chev { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) { :root .where-note:hover { background: var(--paper-3); color: var(--ink); } }
/* the panel grows out of the label, from the bottom left */
:root .where-panel {
  transform-origin: 30% 100%; border-radius: 22px; background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 30px 70px -24px rgba(0, 0, 0, .3);
  animation: where-in 220ms var(--ease-out) both;
}
:root .where-panel h2 { font: 600 22px/1.2 var(--sf-display); letter-spacing: -0.016em; }
@keyframes where-in { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { :root .where-panel { animation: home-fade 200ms ease both !important; } }
@media (prefers-reduced-transparency: reduce) { :root .where-panel { background: var(--card); -webkit-backdrop-filter: none; backdrop-filter: none; } }
:root .where-field input:focus-visible, :root .where-field select:focus-visible { outline: none; }

/* ---------- comparison table (shopify-app.html) ---------- */
:root .cmp { overflow-x: auto; border-radius: 22px; box-shadow: 0 0 0 1px var(--line); background: var(--card); }
:root .cmp-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
:root .cmp-table th, :root .cmp-table td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
:root .cmp-table tr:last-child th, :root .cmp-table tr:last-child td { border-bottom: 0; }
:root .cmp-table thead th { font-size: 13px; color: var(--ink-3); font-weight: 600; }
:root .cmp-table tbody th { font-weight: 600; color: var(--ink); width: 26%; }
:root .cmp-table td:nth-child(2) { color: var(--ink); font-weight: 600; }
:root .cmp-table td:nth-child(3) { color: var(--ink-3); }

/* Shopify app page: plain question and answer pairs, no cards */
:root .facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 2.25rem 3rem; margin: 2.5rem 0 0; }
:root .facts dt { font-weight: 650; font-size: 19px; letter-spacing: -0.01em; color: var(--ink); }
:root .facts dd { margin: 0.5rem 0 0; color: var(--ink-2); line-height: 1.5; }
:root .cmp-table.cmp-plans td, :root .cmp-table.cmp-plans thead th { color: var(--ink); font-weight: 500; }

/* ---------- the rail: a dark strip down the left (a bar on phones) and the menu that slides out of it ---------- */
@font-face { font-family: "Bebas Neue"; src: url(/assets/fonts/bebas-neue.woff2) format("woff2"); font-display: swap; }
:root { --rail: 64px; --rail-bg: #1c1b19; --rail-ink: #f3efe6; --rail-accent: #e0893a; --cond: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --slide: cubic-bezier(.32, .72, 0, 1); --header-h: 0px; }
:root body { padding-left: var(--rail); }
:root .site-header.rail, :root .site-header.rail.scrolled, :root .chat-page .site-header.rail {
  position: fixed; z-index: 60; top: 0; bottom: 0; left: 0; width: var(--rail); height: auto;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 22px 0 18px;
  background: var(--rail-bg); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
:root .rail-mark { display: block; color: var(--rail-ink); }
:root .rail-mark .mark { display: block; height: 26px; fill: currentColor; }
:root .rail-cta { writing-mode: vertical-rl; transform: rotate(180deg); font: 400 16px/1 var(--cond); letter-spacing: .16em; text-transform: uppercase; color: var(--rail-accent); padding: 8px 0; transition: color 160ms ease; }
:root .rail-cta:hover { color: var(--rail-ink); }
:root .rail-menu { width: 40px; height: 40px; border: 0; border-radius: 8px; background: none; display: grid; place-content: center; gap: 5px; cursor: pointer; }
:root .rail-menu:hover { background: rgba(255, 255, 255, .07); }
:root .rail-menu span { display: block; width: 18px; height: 2px; border-radius: 1px; background: var(--rail-accent); transition: transform 360ms var(--slide), opacity 200ms ease; }
:root .rail-menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
:root .rail-menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
:root .rail-menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
:root .rail :focus-visible, :root .site-menu :focus-visible { outline-color: var(--rail-accent); }
:root .menu-scrim { position: fixed; inset: 0; z-index: 58; background: rgba(28, 27, 25, .42); opacity: 0; transition: opacity 420ms ease; }
:root .menu-scrim.on { opacity: 1; }
:root .site-menu { position: fixed; z-index: 59; top: 0; bottom: 0; left: var(--rail); width: min(460px, calc(100vw - var(--rail))); overflow-y: auto;
  display: flex; flex-direction: column; justify-content: space-between; padding: 28px 40px 22px; background: var(--rail-bg); color: var(--rail-ink);
  border-left: 1px solid rgba(255, 255, 255, .07); transform: translateX(-100%); transition: transform 520ms var(--slide); }
:root .site-menu.open { transform: none; }
:root .site-menu .menu-links { list-style: none; margin: 0; padding: 0; }
:root .site-menu .menu-links li { opacity: 0; transform: translateX(-18px); transition: opacity 280ms ease, transform 460ms var(--slide); }
:root .site-menu.open .menu-links li { opacity: 1; transform: none; transition-delay: calc(120ms + var(--i) * 45ms); }
:root .site-menu .menu-links a { display: inline-block; padding: 2px 0; color: var(--rail-ink); font: 400 clamp(44px, 5.6vw, 64px)/1.02 var(--cond); letter-spacing: .01em; text-transform: uppercase; transition: color 160ms ease, transform 220ms var(--slide); }
:root .site-menu .menu-links a:hover, :root .site-menu .menu-links a:focus-visible { color: var(--rail-accent); transform: translateX(6px); }
:root .site-menu .menu-foot { margin: 24px 0 0; font-size: 13px; color: var(--rail-accent); }
@media (max-width: 899px) {
  :root { --header-h: 56px; }
  :root body { padding-left: 0; }
  :root .site-header.rail, :root .site-header.rail.scrolled, :root .chat-page .site-header.rail {
    position: sticky; top: 0; bottom: auto; width: auto; height: 56px; flex-direction: row; padding: 0 10px 0 18px; }
  :root .rail-mark .mark { height: 22px; }
  :root .rail-cta { writing-mode: horizontal-tb; transform: none; margin-left: auto; margin-right: 6px; font-size: 17px; letter-spacing: .08em; }
  :root .site-menu { top: 56px; left: 0; width: 100%; padding: 22px 22px 26px; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 520ms var(--slide); }
  :root .site-menu.open { clip-path: inset(0 0 0 0); }
  :root .site-menu .menu-links li { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  :root .site-menu, :root .site-menu.open { transform: none; clip-path: none; opacity: 0; transition: opacity 200ms ease; }
  :root .site-menu.open { opacity: 1; }
  :root .site-menu .menu-links li, :root .site-menu.open .menu-links li { opacity: 1; transform: none; transition: none; }
  :root .rail-menu span, :root .site-menu .menu-links a { transition: none; }
}
:root .chat-tools { position: fixed; z-index: 50; top: 14px; right: 18px; }
@media (max-width: 899px) { :root .chat-tools { top: 66px; right: 12px; } }
