/* VoraTill landing page
   Colours mirror the app's own tokens (src/index.css) so site and app feel like one product. */

:root {
  --sand: hsl(36 20% 97.5%);
  --sand-2: hsl(36 16% 93%);
  --line: hsl(36 12% 85%);
  --ink: hsl(164 22% 14%);
  --ink-2: hsl(164 10% 34%);
  --pine: hsl(160 45% 26%);
  --pine-hover: hsl(161 50% 21%);
  --pine-subtle: hsl(148 32% 90%);
  --deep: hsl(165 45% 14%);
  --deep-2: hsl(165 38% 19%);
  --mint: hsl(156 55% 62%);
  --amber: hsl(36 78% 38%);
  --amber-subtle: hsl(40 80% 92%);
  --paper: #fff;
  --thermal: hsl(36 6% 42%);

  --display: "Bricolage Grotesque", "Inter Tight", system-ui, sans-serif;
  --sans: "Inter Tight", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --shadow-device: 0 1px 0 hsl(0 0% 100% / .08) inset, 0 30px 60px -20px hsl(165 40% 10% / .35), 0 12px 24px -12px hsl(165 40% 10% / .25);
  --shadow-paper: 0 18px 30px -18px hsl(36 20% 20% / .28);
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -.035em; line-height: 1; text-wrap: balance; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--pine); outline-offset: 3px; border-radius: 6px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: hsl(36 20% 97.5% / .86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 12px var(--gutter);
  display: flex; align-items: center; gap: 32px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 18px var(--display); letter-spacing: -.02em; }
.brand img { border-radius: 9px; box-shadow: 0 0 0 1px var(--line); }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-download {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 999px;
  background: var(--ink); color: var(--sand);
  text-decoration: none; font-weight: 600; font-size: 15px;
}
.nav-download svg { width: 15px; height: 15px; margin-top: -2px; }
.nav-download:hover { background: var(--pine); }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-inner { gap: 12px; }
  .nav-download { margin-left: auto; }
  .nav-toggle {
    display: grid; place-content: center; gap: 5px;
    width: 42px; height: 42px; padding: 0; border: 0; border-radius: 10px;
    background: var(--sand-2); cursor: pointer;
  }
  .nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--sand); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 14px 0; font-size: 18px; color: var(--ink); border-bottom: 1px solid var(--line); }
}

/* ---------- App Store badge ---------- */
.appstore {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 11px 22px 11px 18px; border-radius: 14px;
  background: #000; color: #fff; text-decoration: none;
  transition: transform .15s ease, background .15s;
}
.appstore svg { width: 28px; height: 28px; margin-top: -3px; }
.appstore span { display: flex; flex-direction: column; font: 600 22px/1 -apple-system, "SF Pro Display", var(--sans); letter-spacing: -.02em; }
.appstore small { font-size: 12px; font-weight: 500; letter-spacing: 0; margin-bottom: 3px; }
.appstore:hover { background: var(--pine-hover); }
.appstore:active { transform: scale(.98); }
.appstore-dark { background: var(--pine); }
.appstore-dark:hover { background: var(--pine-hover); }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(40px, 7vw, 96px) var(--gutter) 0;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px); align-items: start;
}
.hero-copy { padding-top: clamp(0px, 3vw, 40px); }
.hero h1 {
  font-size: clamp(48px, 6.6vw, 92px);
  font-weight: 800; letter-spacing: -.045em; line-height: .93;
  font-variation-settings: "opsz" 96;
}
.hero-lede { margin-top: 28px; max-width: 34ch; font-size: clamp(18px, 1.5vw, 20px); color: var(--ink-2); }
.hero-cta { margin-top: 36px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.trial-note { font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.trial-note strong { color: var(--ink); }
.hero-facts {
  list-style: none; margin: 40px 0 0; padding: 22px 0 0;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  font-size: 15px; font-weight: 500;
}
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts li::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  background: var(--pine-subtle) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23244e40' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center/11px no-repeat;
}

.hero-stage { position: relative; padding-top: clamp(0px, 3vw, 48px); padding-bottom: 40px; }

/* iPad device. Everything inside scales with the device width via container units. */
.ipad {
  position: relative; z-index: 2;
  container-type: inline-size;
  padding: 2.1%;
  border-radius: 5.2% / 7%;
  background: linear-gradient(160deg, hsl(165 10% 22%), hsl(165 14% 10%));
  box-shadow: var(--shadow-device), 0 0 0 1.5px hsl(165 8% 40%) inset;
}
.ipad-screen {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 3.4% / 4.5%;
  background: var(--sand);
  font-size: 1.7cqw;
  display: grid; grid-template-columns: 4.6em minmax(0, 1fr) 17em;
  line-height: 1.25;
}

.app-rail {
  background: var(--deep); color: hsl(160 20% 70%);
  display: flex; flex-direction: column; align-items: center; gap: 1.1em;
  padding: 1.1em 0;
}
.rail-logo { width: 2.4em; height: 2.4em; border-radius: .7em; display: grid; place-items: center; background: var(--deep); color: var(--mint); font: 800 .9em var(--display); margin-bottom: .6em; }
.rail-logo img { width: 2.2em; height: 2.2em; object-fit: contain; }
.rail-item { width: 2.6em; height: 2.6em; border-radius: .7em; display: grid; place-items: center; }
.rail-item svg { width: 1.35em; height: 1.35em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rail-item.is-active { background: hsl(156 40% 30% / .55); color: #fff; }
.rail-user { margin-top: auto; width: 2.2em; height: 2.2em; border-radius: 50%; display: grid; place-items: center; background: hsl(36 60% 80%); color: var(--deep); font: 700 .8em var(--sans); }

.app-sell { padding: 1.3em 1.3em 1em; display: flex; flex-direction: column; gap: .9em; min-width: 0; }
.sell-head { display: flex; justify-content: space-between; align-items: flex-end; }
.sell-head b { display: block; font: 700 1.9em/1 var(--display); letter-spacing: -.03em; }
.sell-kicker { display: block; font-size: .8em; color: var(--ink-2); margin-bottom: .3em; }
.sell-online { display: inline-flex; align-items: center; gap: .4em; font-size: .8em; color: var(--pine); font-weight: 600; }
.sell-online i { width: .55em; height: .55em; border-radius: 50%; background: var(--pine); }
.sell-search {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: .6em;
  height: 2.8em; padding: 0 .9em;
  background: var(--paper); border: 1px solid var(--line); border-radius: .8em;
  color: var(--ink-2); font-size: .95em;
}
.sell-search > svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.search-scan { margin-left: auto; width: 1.4em; height: 1.1em; border: 2px solid var(--ink-2); border-radius: .25em; position: relative; }
.search-scan i { position: absolute; left: 15%; right: 15%; top: 45%; height: 2px; background: var(--ink-2); }
.sell-search.is-scanning { border-color: var(--pine); color: var(--ink); box-shadow: 0 0 0 3px var(--pine-subtle); }
.sell-search.is-scanning .search-scan { border-color: var(--pine); }
.sell-search.is-scanning .search-scan i { background: var(--pine); animation: scanline .5s ease-in-out infinite alternate; }
@keyframes scanline { from { transform: translateY(-.25em); } to { transform: translateY(.25em); } }

.sell-cats { display: flex; gap: .45em; font-size: .85em; }
.sell-cats > * { padding: .4em .9em; border-radius: 999px; background: var(--sand-2); color: var(--ink-2); }
.sell-cats b { background: var(--ink); color: var(--sand); font-weight: 600; }

.sell-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65em; flex: 1; }

/* Product tile, shared by iPad and iPhone mockups */
.tile {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: .7em .75em; border-radius: .8em;
  background: var(--tile, var(--sand-2));
  color: var(--ink);
  transition: transform .18s ease, box-shadow .18s ease;
}
.tile em { font-style: normal; font-weight: 600; font-size: .92em; line-height: 1.15; }
.tile span { font: 500 .82em var(--mono); color: hsl(164 22% 14% / .7); margin-top: .25em; }
.tile small { position: absolute; top: .6em; right: .6em; font-size: .7em; font-weight: 700; padding: .15em .5em; border-radius: 999px; background: var(--amber-subtle); color: var(--amber); }
.tile.is-tapped { transform: scale(.94); box-shadow: 0 0 0 .2em var(--pine); }
.t-clay { --tile: hsl(18 45% 86%); }
.t-wax { --tile: hsl(44 70% 84%); }
.t-linen { --tile: hsl(36 22% 88%); }
.t-sage { --tile: hsl(140 22% 85%); }
.t-sky { --tile: hsl(205 40% 88%); }
.t-honey { --tile: hsl(38 80% 80%); }
.t-rose { --tile: hsl(345 40% 89%); }
.t-ink { --tile: hsl(165 18% 82%); }
.t-low { --tile: hsl(36 16% 91%); }

.app-cart {
  background: var(--paper); border-left: 1px solid var(--line);
  padding: 1.3em 1.15em 1.1em;
  display: flex; flex-direction: column; min-width: 0;
}
.cart-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .9em; }
.cart-head b { font: 700 1.25em var(--display); letter-spacing: -.02em; }
.cart-head span { font-size: .8em; color: var(--ink-2); }
.cart-lines { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; gap: .15em; }
.cart-lines li {
  display: flex; justify-content: space-between; gap: .5em;
  padding: .6em 0; border-bottom: 1px dashed var(--line);
  font-size: .9em;
  animation: line-in .35s cubic-bezier(.2, .8, .2, 1) both;
}
.cart-lines li b { font: 500 1em var(--mono); white-space: nowrap; }
@keyframes line-in { from { opacity: 0; transform: translateX(1em); } }
.cart-empty { color: var(--ink-2); font-size: .85em; padding-top: 1.5em; text-align: center; border: 0 !important; animation: none !important; justify-content: center !important; }
.cart-sums { border-top: 1px solid var(--line); padding-top: .7em; display: grid; gap: .35em; }
.cart-sums p { display: flex; justify-content: space-between; font-size: .8em; color: var(--ink-2); }
.cart-sums b { font: 500 1em var(--mono); }
.cart-sums .cart-total { font-size: 1.05em; color: var(--ink); font-weight: 600; }
.cart-sums .cart-total b { font-weight: 700; }
.cart-charge {
  margin-top: .9em; padding: .85em; border-radius: .8em;
  background: var(--pine); color: #fff; text-align: center; font-weight: 600;
  transition: transform .15s, background .15s;
}
.cart-charge b { font-family: var(--mono); font-weight: 600; }
.cart-charge.is-pressed { transform: scale(.96); background: var(--pine-hover); }
.cart-charge.is-done { background: var(--ink); }
.cart-park { margin-top: .5em; text-align: center; font-size: .8em; color: var(--ink-2); padding: .4em; border: 1px solid var(--line); border-radius: .7em; }

.pay-sheet {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: hsl(165 30% 10% / .4);
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.pay-sheet.is-open { opacity: 1; visibility: visible; }
.pay-card {
  width: 20em; padding: 1.8em 1.5em 1.6em; border-radius: 1.2em;
  background: var(--paper); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: .4em;
  transform: translateY(1em) scale(.97); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
  box-shadow: 0 1.5em 3em -1em hsl(165 40% 10% / .4);
}
.pay-sheet.is-open .pay-card { transform: none; }
.pay-amount { font: 700 2.4em/1 var(--mono); letter-spacing: -.04em; }
.pay-method { font-size: .85em; color: var(--ink-2); }
.pay-wait, .pay-ok { margin-top: .8em; padding: .6em 1em; border-radius: 999px; font-weight: 600; font-size: .9em; }
.pay-wait { background: var(--sand-2); }
.pay-ok { display: none; align-items: center; gap: .4em; background: var(--pine-subtle); color: var(--pine); }
.pay-ok svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pay-sheet.is-approved .pay-wait { display: none; }
.pay-sheet.is-approved .pay-ok { display: inline-flex; }

/* Receipt printing out from under the iPad */
.print-slot {
  position: relative; z-index: 1;
  width: 40%; margin: -2px 4% 0 auto;
  overflow: hidden;
  padding: 0 14px 24px;
}
.hero-receipt {
  position: relative;
  padding: 22px 18px 26px;
  background: var(--paper);
  font: 400 12.5px/1.5 var(--mono);
  color: hsl(0 0% 15%);
  filter: drop-shadow(0 12px 14px hsl(36 20% 20% / .16));
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
  transform: translateY(-101%);
}
.hero-receipt.is-printed { transform: none; }
.hero-receipt.is-printing { transition: transform 2.2s steps(22, end); transform: none; }
.hero-receipt.is-tearing { transition: transform .5s ease-in, opacity .5s; transform: translateY(30px) rotate(3deg); opacity: 0; }
.r-shop { text-align: center; font-weight: 700; letter-spacing: .12em; }
.r-sub { text-align: center; color: var(--thermal); font-size: 11px; margin-top: 4px; }
.r-lines { list-style: none; margin: 14px 0 10px; padding: 10px 0; border-block: 1px dashed hsl(0 0% 70%); }
.r-lines li, .r-total { display: flex; justify-content: space-between; gap: 8px; }
.r-total { font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.r-barcode {
  height: 28px; margin: 14px 8px 0;
  background: repeating-linear-gradient(90deg, #222 0 2px, transparent 2px 4px, #222 4px 5px, transparent 5px 8px, #222 8px 11px, transparent 11px 12px);
}

/* ---------- Section scaffolding ---------- */
.section-head { max-width: 760px; }
.section-head h2, .sync h2, .pricing h2, .faq h2, .final h2 { font-size: clamp(36px, 4.6vw, 64px); }
.section-head p { margin-top: 20px; font-size: 19px; color: var(--ink-2); max-width: 54ch; }

/* ---------- Features as receipt ---------- */
.features {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(72px, 10vw, 140px) var(--gutter);
}
.features-layout {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(32px, 6vw, 96px); align-items: start;
}
.receipt-roll { filter: drop-shadow(var(--shadow-paper)); }
.receipt-paper {
  --z: 9px;
  background: var(--paper);
  padding: 40px clamp(20px, 4vw, 48px) 44px;
  mask:
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% 0 / calc(var(--z) * 2) 51% repeat-x,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% 100% / calc(var(--z) * 2) 51% repeat-x;
  -webkit-mask:
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% 0 / calc(var(--z) * 2) 51% repeat-x,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% 100% / calc(var(--z) * 2) 51% repeat-x;
}
.roll-head { text-align: center; font-family: var(--mono); padding-bottom: 22px; border-bottom: 1px dashed var(--line); }
.roll-head p:first-child { font-weight: 700; letter-spacing: .14em; }
.roll-head p:last-child { font-size: 13px; color: var(--thermal); margin-top: 4px; }

.roll-lines { display: flex; flex-direction: column; }
.roll-line {
  display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 0 12px;
  width: 100%; padding: 18px 12px; margin: 0 -12px; width: calc(100% + 24px);
  border: 0; border-bottom: 1px dashed var(--line); border-radius: 0;
  background: none; color: var(--ink); text-align: left; cursor: pointer;
  font: inherit;
  transition: background .15s;
}
.roll-line:hover { background: var(--sand); }
.line-name { font: 700 clamp(19px, 2vw, 24px)/1.2 var(--display); letter-spacing: -.02em; }
.line-dots { border-bottom: 2px dotted hsl(36 10% 75%); transform: translateY(-5px); }
.line-price { font: 500 14px var(--mono); color: var(--thermal); }
.line-desc {
  grid-column: 1 / -1;
  display: grid; grid-template-rows: 0fr; opacity: 0;
  color: var(--ink-2); font-size: 16px; max-width: 52ch;
  transition: grid-template-rows .3s ease, opacity .3s ease, margin .3s ease;
}
.line-desc > span { overflow: hidden; min-height: 0; }
.roll-line.is-active { background: var(--pine-subtle); }
.roll-line.is-active .line-desc { grid-template-rows: 1fr; opacity: 1; margin-top: 8px; }
.roll-line.is-active .line-price { color: var(--pine); font-weight: 700; }
.roll-line.is-active .line-dots { border-color: hsl(150 25% 70%); }

.roll-total {
  display: flex; justify-content: space-between;
  margin-top: 22px; padding-top: 16px; border-top: 2px solid var(--ink);
  font: 700 18px var(--mono);
}

/* iPhone mockup */
.phone-wrap { position: sticky; top: 100px; }
.phone {
  container-type: inline-size;
  width: 100%; max-width: 340px; margin: 0 auto;
  padding: 3.6%;
  border-radius: 15% / 7.2%;
  background: linear-gradient(160deg, hsl(165 10% 22%), hsl(165 14% 10%));
  box-shadow: var(--shadow-device), 0 0 0 1.5px hsl(165 8% 40%) inset;
}
.phone-screen {
  position: relative; overflow: hidden;
  aspect-ratio: 9 / 19.5;
  border-radius: 12% / 5.6%;
  background: var(--sand);
  font-size: 4.3cqw;
  line-height: 1.3;
  padding: 0 1.1em 1em;
  display: flex; flex-direction: column;
}
.p-status { display: flex; justify-content: space-between; align-items: center; height: 3.1em; padding: 0 .6em; font-size: .85em; }
.p-status span:last-child { font-size: .55em; letter-spacing: .1em; }
.p-island { width: 6.6em; height: 2em; border-radius: 999px; background: #000; }
.p-view { display: flex; flex-direction: column; gap: .7em; flex: 1; min-height: 0; animation: view-in .35s cubic-bezier(.2, .8, .2, 1); }
.p-view[hidden] { display: none; }
@keyframes view-in { from { opacity: 0; transform: translateY(.6em); } }
.p-title { font: 700 1.75em/1.1 var(--display); letter-spacing: -.03em; margin: .3em 0 .2em; }
.p-center { text-align: center; }
.p-muted { color: var(--ink-2); font-size: .85em; }
.p-mono { font-family: var(--mono); font-weight: 600; }
.p-search { display: flex; justify-content: space-between; align-items: center; padding: .65em .8em; border-radius: .7em; background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); font-size: .9em; }
.p-scan-icon { width: 1.2em; height: .95em; border: 2px solid var(--pine); border-radius: .2em; }
.p-chips { display: flex; gap: .35em; font-size: .78em; }
.p-chips > * { padding: .35em .8em; border-radius: 999px; background: var(--sand-2); color: var(--ink-2); }
.p-chips b { background: var(--ink); color: var(--sand); }
.p-tiles { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 5.4em; gap: .5em; }
.p-tiles .tile { font-size: .95em; }
.p-ticketbar {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: center; gap: .6em;
  padding: .7em .7em .7em 1em; border-radius: 1em;
  background: var(--deep); color: #fff; font-size: .9em;
}
.p-ticketbar small { color: var(--mint); font-size: .8em; }
.p-ticketbar b { padding: .55em .9em; border-radius: .7em; background: var(--mint); color: var(--deep); font-weight: 700; }
.p-ticketbar.is-wide { justify-content: center; background: var(--pine); padding: .9em; }
.p-ticketbar.is-wide b { background: none; color: #fff; padding: 0; }
.p-card { background: var(--paper); border: 1px solid var(--line); border-radius: .9em; padding: .8em .9em; display: grid; gap: .45em; }
.p-row { display: flex; justify-content: space-between; align-items: center; gap: .5em; }
.p-row small { color: var(--ink-2); font-size: .75em; }
.p-btn { padding: .4em .9em; border-radius: .6em; background: var(--pine); color: #fff; font-weight: 600; font-size: .8em; }
.p-btn-ghost { background: var(--sand-2); color: var(--ink); }
.p-btn-warn { background: hsl(8 58% 42%); }
.p-note { text-align: center; font-size: .78em; color: var(--ink-2); padding: .5em; border: 1px dashed var(--line); border-radius: .7em; }
.p-pill { font-size: .72em; font-weight: 700; padding: .25em .7em; border-radius: 999px; background: var(--pine-subtle); color: var(--pine); }
.p-pill-gold { background: hsl(44 80% 86%); color: hsl(36 78% 30%); }
.p-health { background: var(--amber-subtle); border-radius: .9em; padding: .8em .9em; display: grid; gap: .1em; }
.p-health b { color: hsl(36 78% 28%); }
.p-health small { color: hsl(36 40% 32%); font-size: .78em; }
.p-stock { display: grid; grid-template-columns: 1fr auto; gap: .3em .5em; font-size: .9em; padding-bottom: .55em; border-bottom: 1px solid var(--line); }
.p-stock i { grid-column: 1 / -1; height: .32em; border-radius: 999px; background: var(--sand-2); position: relative; overflow: hidden; }
.p-stock i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 100%); background: var(--pine); border-radius: inherit; }
.p-stock.is-low b { color: var(--amber); }
.p-stock.is-low i::after { background: var(--amber); }
.p-order { display: flex; justify-content: space-between; align-items: center; gap: .5em; padding: .6em 0; border-bottom: 1px solid var(--line); font-size: .9em; }
.p-order span small { display: block; color: var(--ink-2); font-size: .8em; }
.p-order.is-open { border-bottom: 0; padding-bottom: 0; }
.p-order-total { border-bottom: 2px solid var(--ink); font-weight: 700; }
.p-detail { margin-top: -.2em; }
.p-actions { display: flex; gap: .4em; justify-content: flex-end; }
.p-variance { display: flex; justify-content: space-between; padding: .8em .9em; border-radius: .9em; background: var(--amber-subtle); color: hsl(36 78% 28%); font-weight: 600; }
.p-profile { display: flex; flex-direction: column; align-items: center; gap: .35em; padding: .4em 0; }
.p-avatar { width: 3.6em; height: 3.6em; border-radius: 50%; display: grid; place-items: center; background: hsl(18 45% 86%); font: 700 1.1em var(--display); }
.p-profile b { font-size: 1.15em; }
.p-points { display: flex; align-items: baseline; justify-content: center; gap: .3em; }
.p-points b { font-size: 2.2em; letter-spacing: -.04em; }
.p-points span { color: var(--ink-2); }
.p-progress { height: .45em; border-radius: 999px; background: var(--sand-2); overflow: hidden; }
.p-progress i { display: block; height: 100%; width: calc(var(--v) * 100%); background: hsl(40 75% 50%); border-radius: inherit; }
.p-pin { display: flex; justify-content: center; gap: .8em; margin: .4em 0; }
.p-pin i { width: .8em; height: .8em; border-radius: 50%; border: 2px solid var(--ink); }
.p-pin i.on { background: var(--ink); }
.p-keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5em; padding: 0 .6em; }
.p-keypad span { aspect-ratio: 1.5; display: grid; place-items: center; border-radius: .8em; background: var(--paper); font: 500 1.25em var(--display); }
.p-keypad span:empty { background: none; }
.p-roles { margin-top: auto; display: flex; flex-wrap: wrap; gap: .3em; justify-content: center; font-size: .72em; }
.p-roles span { padding: .3em .7em; border-radius: 999px; background: var(--pine-subtle); color: var(--pine); font-weight: 600; }

/* ---------- Sync (dark) ---------- */
.sync {
  background: var(--deep); color: hsl(36 20% 94%);
  padding: clamp(72px, 10vw, 140px) var(--gutter);
}
.sync-inner, .hardware { max-width: var(--wrap); margin: 0 auto; }
.sync-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.sync-copy p { margin-top: 20px; font-size: 19px; color: hsl(156 15% 78%); max-width: 46ch; }
.pairing { display: flex; align-items: center; gap: 0; }
.pair-device {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: var(--deep-2); border: 1px solid hsl(160 25% 28%);
  text-align: center;
}
.pair-ipad { flex: 1.5; aspect-ratio: 4 / 3; border-radius: 22px; padding: 20px; }
.pair-phone { flex: .7; aspect-ratio: 9 / 18; border-radius: 26px; padding: 14px; }
.pair-label { font-size: 13px; color: hsl(156 15% 72%); }
.pair-code { display: flex; gap: 6px; }
.pair-code b {
  width: clamp(26px, 3vw, 38px); aspect-ratio: .8;
  display: grid; place-items: center; border-radius: 8px;
  background: hsl(165 45% 10%); color: var(--mint);
  font: 600 clamp(18px, 2.2vw, 26px) var(--mono);
}
.pair-hint { font-size: 12px; color: hsl(156 12% 68%); }
.pair-ok { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--deep); }
.pair-ok svg { width: 24px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pair-link { flex: .35; height: 2px; background: repeating-linear-gradient(90deg, var(--mint) 0 6px, transparent 6px 12px); background-size: 24px 2px; animation: dash 1.2s linear infinite; }
@keyframes dash { to { background-position: 24px 0; } }
@media (prefers-reduced-motion: reduce) { .pair-link { animation: none; } }

.hardware {
  list-style: none; padding: 0; margin-top: clamp(56px, 7vw, 96px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  border-top: 1px solid hsl(160 25% 26%);
}
.hardware li { padding: 26px 24px 0 0; display: grid; gap: 8px; align-content: start; }
.hardware li + li { padding-left: 24px; border-left: 1px solid hsl(160 25% 26%); }
.hardware b { font: 700 19px var(--display); letter-spacing: -.01em; color: #fff; }
.hardware span { font-size: 15px; color: hsl(156 12% 74%); }

/* ---------- Worldwide ---------- */

.world { background: var(--sand-2); padding: clamp(72px, 10vw, 140px) var(--gutter); }
.world-inner, .world-facts, .world-note { max-width: var(--wrap); margin: 0 auto; }
.world-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.world h2 { font-size: clamp(36px, 4.6vw, 64px); }
.world-copy p { margin-top: 20px; font-size: 19px; color: var(--ink-2); max-width: 46ch; }
.world-receipts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.mini-receipt {
  margin: 0; padding: 18px 14px 24px;
  background: var(--paper);
  font: 400 11.5px/1.5 var(--mono);
  color: hsl(0 0% 15%);
  filter: drop-shadow(var(--shadow-paper));
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 12px 100%;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 12px 100%;
}
.mini-receipt:nth-child(2) { transform: translateY(28px); }
.mini-receipt:nth-child(3) { transform: translateY(8px); }
.mini-receipt figcaption {
  font: 600 11px var(--sans); letter-spacing: .06em; text-transform: uppercase;
  color: var(--pine); text-align: center; margin-bottom: 10px;
}
.mini-receipt .r-sub { font-size: 10.5px; }
.mini-receipt .r-lines { margin: 10px 0 8px; padding: 8px 0; }
.mini-receipt .r-lines li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-receipt .r-total { font-size: 13px; margin-bottom: 4px; }
.r-tax { color: var(--thermal); font-size: 10.5px; margin-bottom: 8px; }
.r-tax-added { display: flex; justify-content: space-between; color: inherit; font-size: inherit; margin-bottom: 4px; }

.world-facts {
  list-style: none; padding: 0; margin-top: clamp(64px, 8vw, 104px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  border-top: 1px solid var(--line);
}
.world-facts li { padding: 26px 24px 0 0; display: grid; gap: 8px; align-content: start; }
.world-facts li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.world-facts b { font: 700 19px var(--display); letter-spacing: -.01em; }
.world-facts span { font-size: 15px; color: var(--ink-2); }
.world-note {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; align-items: baseline;
  padding: 20px 24px; border-radius: var(--radius);
  background: var(--amber-subtle); color: hsl(36 60% 22%);
}
.world-note b { font: 700 16px var(--display); white-space: nowrap; }
.world-note p { font-size: 15px; max-width: 90ch; }

/* ---------- Steps ---------- */
.steps { max-width: var(--wrap); margin: 0 auto; padding: clamp(72px, 10vw, 140px) var(--gutter) 0; }
.step-list { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.step-list li { display: grid; gap: 10px; align-content: start; }
.step-n {
  font: 800 clamp(72px, 9vw, 120px)/.85 var(--display); letter-spacing: -.06em;
  color: var(--pine); margin-bottom: 12px;
}
.step-list h3 { font-size: 24px; letter-spacing: -.02em; line-height: 1.15; }
.step-list p { color: var(--ink-2); max-width: 34ch; }

/* ---------- Pricing ---------- */
.pricing {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(72px, 10vw, 140px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: clamp(40px, 6vw, 96px); align-items: center;
}
.pricing-copy p { margin-top: 20px; font-size: 19px; color: var(--ink-2); max-width: 46ch; }
.price-receipt {
  --z: 8px;
  background: var(--paper); padding: 40px 32px 44px;
  font: 400 15px/1.6 var(--mono);
  filter: drop-shadow(var(--shadow-paper));
  mask:
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% 0 / calc(var(--z) * 2) 51% repeat-x,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% 100% / calc(var(--z) * 2) 51% repeat-x;
  -webkit-mask:
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% 0 / calc(var(--z) * 2) 51% repeat-x,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% 100% / calc(var(--z) * 2) 51% repeat-x;
}
.pr-head { text-align: center; font-weight: 700; letter-spacing: .12em; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.price-receipt ul { list-style: none; margin: 0; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.price-receipt li, .pr-total { display: flex; justify-content: space-between; gap: 12px; }
.price-receipt li span:last-child { color: var(--thermal); }
.pr-total { padding: 16px 0 6px; font-weight: 700; font-size: 22px; }
.pr-after { font-size: 13px; color: var(--thermal); margin-bottom: 26px; }
.price-receipt .appstore { width: 100%; justify-content: center; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; padding: 0 var(--gutter) clamp(72px, 10vw, 140px); }
.faq-list { margin-top: 36px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font: 600 clamp(18px, 1.8vw, 21px)/1.3 var(--sans);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--sand-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c2e29' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/14px no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px 24px 0; color: var(--ink-2); max-width: 64ch; }

/* ---------- Final CTA ---------- */
.final {
  margin: 0 var(--gutter);
  max-width: var(--wrap);
  padding: clamp(56px, 8vw, 104px) var(--gutter);
  border-radius: 28px;
  background: var(--pine-subtle);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px;
}
@media (min-width: 1281px) { .final { margin: 0 auto; } }
.final img { border-radius: 22px; box-shadow: 0 10px 24px -10px hsl(165 40% 10% / .35); margin-bottom: 8px; }
.final h2 { max-width: 16ch; }
.final p { font-size: 19px; color: var(--ink-2); margin-bottom: 10px; }

/* ---------- Footer ---------- */
.footer {
  max-width: var(--wrap); margin: 0 auto;
  padding: 40px var(--gutter) 48px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px;
  font-size: 14px; color: var(--ink-2);
}
.footer .brand { font-size: 16px; color: var(--ink); }
.footer .brand img { border-radius: 7px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { color: var(--ink); text-decoration: underline; }
.footer p { margin-left: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding-top: 0; }
  .hero-lede { max-width: 44ch; }
  .hero-stage { max-width: 760px; }
  .features-layout { grid-template-columns: minmax(0, 1fr) 280px; }
  .hardware { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hardware li:nth-child(3) { padding-left: 0; border-left: 0; }
  .hardware li:nth-child(n + 3) { padding-top: 32px; }
  .world-inner { grid-template-columns: 1fr; }
  .world-receipts { max-width: 640px; }
  .world-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .world-facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .world-facts li:nth-child(n + 3) { padding-top: 32px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .print-slot { width: 52%; margin-right: 2%; }
  .hero-receipt { font-size: 11px; padding: 16px 12px 22px; }
  .features-layout { grid-template-columns: 1fr; }
  .phone-wrap { position: static; order: -1; }
  .phone { max-width: 260px; }
  .sync-inner, .pricing { grid-template-columns: 1fr; }
  .step-list { grid-template-columns: 1fr; gap: 36px; }
  .step-list li { grid-template-columns: auto 1fr; column-gap: 20px; }
  .step-n { grid-row: span 2; font-size: 64px; margin: 0; }
  .price-receipt { transform: none; padding: 32px 22px 40px; }
  .faq details p { padding-right: 0; }
  .footer p { margin-left: 0; }
}

@media (max-width: 520px) {
  .hardware { grid-template-columns: 1fr; }
  .hardware li, .hardware li + li { padding: 22px 0 0; border-left: 0; }
  .hardware li:nth-child(n + 3) { padding-top: 22px; }
  .world-receipts { grid-template-columns: repeat(3, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 36px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .world-receipts::-webkit-scrollbar { display: none; }
  .mini-receipt { scroll-snap-align: center; }
  .world-facts { grid-template-columns: 1fr; }
  .world-facts li, .world-facts li + li { padding: 22px 0 0; border-left: 0; }
  .world-facts li:nth-child(n + 3) { padding-top: 22px; }
  .world-note { grid-template-columns: 1fr; padding: 18px; }
  .hero-facts { gap: 10px 18px; font-size: 14px; }
  .appstore span { font-size: 20px; }
  .print-slot { width: 64%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
