:root {
  /* Brand palette, from the RichDesigns swatch */
  --blush: #F4C9D4;
  --blush-soft: #FCEAEF;
  --sky: #9CCBEA;
  --sky-soft: #E6F2FB;
  --navy: #0D2F5F;
  --navy-deep: #061A3A;

  /* Soft slate neutrals: a navy-tinted dark gray, easy on the eyes day or night */
  --bg: #1A1E27;
  --bg-deep: #141720;
  --ink: #ECEEF2;
  --gray: #A3A9B6;
  --soft: #C9CDD6;
  --line: rgba(255,255,255,.12);
  --tile: #232833;
  --raised: #2E3441;
  color-scheme: dark;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);

  --gutter: max(16px, env(safe-area-inset-left), 4vw);
  --max: 1080px;
}

/* Device mockups and "paper" objects keep light colors, like real screens on a dark Apple page */
.browser, .phone-screen, .mini, .label, .serp {
  --ink: #1D1D1F; --gray: #6E6E73; --line: #D2D2D7; --tile: #F5F5F7;
  color: var(--ink); color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.5 var(--font);
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 24px; border: 0; border-radius: 999px;
  background: var(--sky); color: var(--navy-deep);
  font-size: 1.0625rem; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .1s ease-out, background-color .2s ease;
  user-select: none;
}
.btn:hover { background: #BBDDF3; }
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 32px; padding: 0 14px; font-size: .875rem; }
.btn-light { background: rgba(255,255,255,.12); color: #fff; }
.btn-light:hover { background: rgba(255,255,255,.2); }
.btn-blush { background: var(--blush); color: var(--navy-deep); }
.btn-blush:hover { background: #fff; }

.more { color: var(--sky); font-size: 1.0625rem; text-decoration: none; font-weight: 500; }
.more::after { content: " ›"; }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }

.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.brand span { font-weight: 650; font-size: 1.0625rem; letter-spacing: -.02em; color: var(--ink); }

/* ---------- Global nav: thin bar, links spread evenly, scrolls away ---------- */
.gnav { position: relative; z-index: 45; height: 44px; }
/* Blur lives on a pseudo-layer: backdrop-filter on .gnav itself would trap the fixed mobile menu inside the bar */
.gnav::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(20,23,32,.8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.gnav-inner { max-width: 1024px; height: 100%; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; }
.gnav-logo { display: grid; place-items: center; height: 44px; padding: 0 8px; opacity: .9; transition: opacity .2s; }
.gnav-logo:hover { opacity: 1; }
.gnav-links { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; justify-content: space-between; max-width: 840px; margin-left: 32px; }
.gnav-links a { display: block; padding: 0 8px; line-height: 44px; font-size: .75rem; letter-spacing: -.01em; color: rgba(255,255,255,.8); text-decoration: none; transition: color .2s; }
.gnav-links a:hover { color: #fff; }
/* Language switch: set apart from the section links */
.gnav-lang a { margin-left: 8px; padding: 0 10px; line-height: 24px; margin-top: 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.gnav-menu { display: none; width: 44px; height: 44px; margin-right: -12px; border: 0; background: none; cursor: pointer; position: relative; }
.gnav-menu span { position: absolute; left: 14px; width: 17px; height: 1.5px; border-radius: 1px; background: var(--ink); transition: transform .3s var(--ease), top .3s var(--ease); }
.gnav-menu span:first-child { top: 18px; }
.gnav-menu span:last-child { top: 25px; }
.gnav.open .gnav-menu span:first-child { top: 21.5px; transform: rotate(45deg); }
.gnav.open .gnav-menu span:last-child { top: 21.5px; transform: rotate(-45deg); }

/* ---------- Local nav: sticky product bar ---------- */
.lnav { position: sticky; top: 0; z-index: 40; height: 52px; background: rgba(26,30,39,.75); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); box-shadow: inset 0 -1px 0 rgba(255,255,255,.1); }
.lnav-inner { max-width: var(--max); height: 100%; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lnav-title { font-size: 1.3125rem; font-weight: 650; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.lnav-right { display: flex; align-items: center; gap: 24px; }
.lnav-link { font-size: .75rem; color: rgba(255,255,255,.72); text-decoration: none; }
.lnav-link:hover { color: var(--sky); }
.btn-xs { min-height: 28px; padding: 0 12px; font-size: .75rem; font-weight: 500; }

@media (prefers-reduced-transparency: reduce) { .gnav::before, .lnav { background: var(--bg-deep); backdrop-filter: none; } }

/* ---------- Section heads ---------- */
section { scroll-margin-top: 52px; }
@media (max-width: 900px) { section { scroll-margin-top: 96px; } }
.section-head { text-align: center; max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }
.section-head h2 {
  font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700;
  line-height: 1.05; letter-spacing: -.035em;
}
.section-head p { margin-top: 18px; font-size: clamp(1.125rem, 2vw, 1.375rem); color: var(--gray); line-height: 1.4; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) var(--gutter) clamp(80px, 10vw, 140px); text-align: center; overflow: hidden; }

/* Logo mark builds itself on load */
.mark { display: block; width: clamp(56px, 7vw, 76px); height: auto; margin: 0 auto 22px; overflow: visible; }
.mark-stem { transform-box: fill-box; transform-origin: 50% 100%; animation: stem-in .7s var(--ease) both; }
.mark-arm { transform-box: fill-box; transform-origin: 0% 100%; animation: arm-in .8s var(--spring) .25s both; }
.mark-dot { transform-box: fill-box; transform-origin: 50% 50%; animation: dot-in .7s var(--spring) .55s both; }
@keyframes stem-in { from { transform: scaleY(0); } to { transform: none; } }
@keyframes arm-in { from { transform: rotate(-100deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes dot-in { from { transform: translateY(-60px) scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.hero-title {
  font-size: clamp(3rem, 10vw, 7.5rem); font-weight: 750;
  line-height: .98; letter-spacing: -.035em; max-width: 12ch; margin: 0 auto;
}
.hero-title .w { display: inline-block; animation: word-in 1s var(--ease) both; animation-delay: calc(var(--i) * 80ms + 100ms); }
.hero-title .w:last-child {
  background: linear-gradient(100deg, var(--sky) 10%, #C9C3EF 50%, var(--blush) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .06em;
}
@keyframes word-in {
  from { opacity: 0; transform: translateY(.35em); filter: blur(12px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
.hero-sub {
  max-width: 34ch; margin: 28px auto 0; color: var(--gray);
  font-size: clamp(1.1875rem, 2.2vw, 1.5rem); line-height: 1.35; letter-spacing: -.015em;
  animation: fade-up .9s var(--ease) .55s both;
}
.hero-cta { margin-top: 32px; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 24px; animation: fade-up .9s var(--ease) .7s both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Stage: browser + phone + toast. Tilt is driven by scroll in main.js */
.stage {
  position: relative; max-width: 980px; margin: clamp(56px, 8vw, 96px) auto 0;
  perspective: 1600px;
  animation: stage-in 1.2s var(--ease) .8s both;
}
@keyframes stage-in { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }
.browser {
  transform-origin: 50% 100%;
  transform: rotateX(var(--tilt, 14deg)) scale(var(--scale, .94));
  border-radius: 18px; overflow: hidden; background: #fff; text-align: left;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 40px 100px -30px rgba(13,47,95,.45), 0 18px 40px -20px rgba(13,47,95,.25);
  will-change: transform;
}
.browser-bar { height: 40px; display: flex; align-items: center; gap: 12px; padding: 0 14px; background: #F2F2F4; border-bottom: 1px solid #E5E5EA; }
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.dots i:nth-child(2) { background: #FEBC2E; }
.dots i:nth-child(3) { background: #28C840; }
.url { flex: 0 1 320px; margin: 0 auto; padding: 4px 12px; border-radius: 8px; background: #fff; font-size: .8125rem; color: var(--gray); text-align: center; transform: translateX(-30px); }

/* Right padding leaves room for the phone that overlaps the browser */
.site { padding: clamp(16px, 3vw, 28px); padding-right: 22%; }
/* Restaurant hero: real photo with a dark fade so the text reads */
.site-hero { position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: clamp(150px, 26vw, 270px); padding: clamp(18px, 3.5vw, 36px); border-radius: 14px; background: #2B1A12; }
.site-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.site-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25,14,8,.82) 0%, rgba(25,14,8,.45) 55%, rgba(25,14,8,0) 100%); }
.site-hero-copy { position: relative; z-index: 1; }
.site-name { font-size: clamp(1.25rem, 3.4vw, 2.5rem); font-weight: 750; letter-spacing: -.035em; color: #fff; }
.site-tag { margin-top: 4px; color: rgba(255,255,255,.82); font-size: clamp(.75rem, 1.5vw, 1rem); }
.site-btn { display: inline-block; margin-top: 14px; padding: 8px 16px; border-radius: 999px; background: #F2B33D; color: #2B1A12; font-size: clamp(.6875rem, 1.3vw, .875rem); font-weight: 650; }
.site-menu { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dish { position: relative; padding: 8px 8px 12px; border-radius: 12px; background: var(--tile); display: grid; gap: 2px; }
.dish-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; margin-bottom: 6px; background: #E8E2DC; }
.dish b, .dish em { padding: 0 4px; }
.dish b { font-size: clamp(.6875rem, 1.4vw, .9375rem); font-weight: 600; }
.dish em { font-style: normal; font-size: clamp(.625rem, 1.2vw, .8125rem); color: var(--gray); }
.add { position: absolute; right: 10px; bottom: 10px; width: 24px; height: 24px; border-radius: 50%; background: #2B1A12; color: #fff; display: grid; place-items: center; font-style: normal; font-weight: 600; }

/* Phone mockup */
.phone {
  width: 260px; aspect-ratio: 9 / 19; padding: 9px;
  border-radius: 46px; background: #1D1D1F;
  box-shadow: inset 0 0 0 1.5px #4a4a4f, 0 40px 80px -30px rgba(13,47,95,.55);
}
.phone-screen { position: relative; height: 100%; border-radius: 38px; background: #fff; overflow: hidden; }
.island { position: absolute; top: 10px; left: 50%; width: 84px; height: 24px; margin-left: -42px; border-radius: 999px; background: #000; z-index: 3; }

.phone-hero { position: absolute; right: -2%; bottom: -12%; width: clamp(130px, 24%, 230px); animation: phone-in 1.2s var(--ease) 1.1s both; }
@keyframes phone-in { from { opacity: 0; transform: translateY(80px) rotate(4deg); } to { opacity: 1; transform: none; } }
.status-card { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px 14px; }
.sc-shop { font-weight: 650; font-size: clamp(.75rem, 1.6vw, 1rem); letter-spacing: -.02em; }
.sc-id { color: var(--gray); font-size: clamp(.5625rem, 1.1vw, .75rem); margin-top: 2px; }
.sc-ring { position: relative; width: 56%; aspect-ratio: 1; margin: 18px 0 12px; }
.sc-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.sc-ring circle { fill: none; stroke: var(--tile); stroke-width: 4; }
.sc-ring .sc-ring-fill { stroke: var(--navy); stroke-linecap: round; stroke-dasharray: 119.4; stroke-dashoffset: var(--ring, 0); transition: stroke-dashoffset .8s var(--ease), stroke .4s; }
.sc-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(1rem, 3vw, 2rem); font-weight: 700; color: var(--navy); }
.sc-state { font-weight: 650; font-size: clamp(.6875rem, 1.5vw, 1rem); letter-spacing: -.02em; }
.sc-total { color: var(--gray); font-size: clamp(.5625rem, 1.1vw, .75rem); margin-top: 2px; }

/* Notification toast */
.toast {
  display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 10px 16px 10px 10px; border-radius: 18px;
  background: rgba(44,46,54,.78);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 20px 40px -16px rgba(0,0,0,.6);
}
.toast img { border-radius: 7px; background: var(--navy); }
.toast b { display: block; font-size: .875rem; font-weight: 600; }
.toast span { display: block; font-size: .8125rem; color: var(--gray); }
.toast-hero { position: absolute; left: -3%; top: -30px; z-index: 2; animation: toast-in .9s var(--spring) 1.9s both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-24px) scale(.9); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(40px) scale(.98); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Story (sticky phone) ---------- */
.story { padding: clamp(96px, 12vw, 160px) var(--gutter) clamp(40px, 6vw, 80px); background: var(--tile); }
.story-grid { max-width: var(--max); margin: clamp(48px, 7vw, 96px) auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.story-step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; max-width: 30ch; opacity: .25; transition: opacity .5s ease; }
.story-step.is-active { opacity: 1; }
.story-step h3 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.08; }
.story-step p { margin-top: 14px; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--gray); line-height: 1.45; }
.story-device { position: sticky; top: max(64px, calc(50vh - 290px)); height: max-content; display: flex; justify-content: center; align-self: start; }
.phone-story { width: min(300px, 100%); }

.screen { position: absolute; inset: 0; padding: 52px 16px 16px; opacity: 0; transform: scale(.96); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.screen.is-active { opacity: 1; transform: none; }
.screen-dark { background: #111214; color: #fff; }
.scr-title { font-size: 1.5rem; font-weight: 750; letter-spacing: -.03em; margin-bottom: 14px; }

.row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #EFEFF2; }
.row-img { flex: none; width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: #E8E2DC; }
.row div { flex: 1; display: grid; }
.row b { font-size: .875rem; font-weight: 600; }
.row em { font-style: normal; font-size: .75rem; color: var(--gray); }
.pill-add { font-style: normal; font-size: .75rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--tile); color: var(--navy); }
.pill-add.is-added { background: var(--navy); color: #fff; }
.cart-bar { position: absolute; left: 14px; right: 14px; bottom: 16px; display: flex; justify-content: space-between; padding: 14px 16px; border-radius: 16px; background: var(--navy); color: #fff; font-size: .875rem; font-weight: 500; }

.seg { display: flex; padding: 3px; border-radius: 10px; background: var(--tile); margin-bottom: 14px; }
.seg > * { flex: 1; text-align: center; padding: 7px; border-radius: 8px; font-size: .8125rem; font-weight: 500; color: var(--gray); border: 0; background: none; }
.seg .on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.line { display: flex; justify-content: space-between; padding: 9px 0; font-size: .875rem; border-bottom: 1px solid #EFEFF2; }
.line span { color: var(--gray); }
.line.total { border: 0; font-size: 1rem; }
.line.total span { color: var(--ink); font-weight: 600; }
.pay-sheet { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 16px 22px; border-radius: 22px 22px 0 0; background: #fff; box-shadow: 0 -10px 30px rgba(0,0,0,.08); }
.pay-methods { display: flex; gap: 6px; margin-bottom: 12px; }
.pay-methods span { flex: 1; text-align: center; padding: 7px 0; border-radius: 9px; border: 1px solid var(--line); font-size: .6875rem; font-weight: 600; }
.pay-methods span:first-child { border-color: var(--ink); }
.pay-btn { padding: 14px; border-radius: 12px; background: #000; color: #fff; text-align: center; font-weight: 600; }

.kitchen-ticket { padding: 16px; border-radius: 16px; background: #1F2024; margin-bottom: 10px; font-size: .875rem; }
.kitchen-ticket p { color: #C7C7CC; margin-top: 4px; }
.kt-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.kt-head b { font-size: 1.0625rem; }
.kt-head span { font-size: .75rem; color: #8E8E93; }
.kt-meta { margin-top: 10px; font-size: .75rem; color: var(--sky); }
.kt-accept { margin-top: 14px; padding: 11px; border-radius: 10px; background: var(--blush); color: var(--navy-deep); text-align: center; font-weight: 600; }
.kitchen-ticket.ghost { opacity: .45; }

.done { margin-top: 30%; text-align: center; }
.done-check { width: 92px; height: 92px; margin: 0 auto; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 2.75rem; font-weight: 700; }
.screen.is-active .done-check { animation: pop .7s var(--spring) .15s both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.done-title { margin-top: 18px; font-size: 1.375rem; font-weight: 700; letter-spacing: -.03em; }
.done-sub { color: var(--gray); font-size: .875rem; margin-top: 4px; }
.track { position: absolute; left: 16px; right: 16px; bottom: 26px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.track span { padding-top: 10px; border-top: 4px solid var(--line); font-size: .625rem; color: var(--gray); text-align: center; }
.track .on { border-color: var(--navy); color: var(--ink); font-weight: 600; }

/* ---------- Features (bento) ---------- */
.features { padding: clamp(96px, 12vw, 160px) var(--gutter); }
.bento { max-width: var(--max); margin: clamp(48px, 6vw, 80px) auto 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { position: relative; overflow: hidden; border-radius: 28px; padding: 32px; background: var(--tile); min-height: 340px; }
.tile h3 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.12; }
.tile p { margin-top: 8px; color: var(--gray); font-size: 1rem; }

.t-design { grid-column: span 4; display: flex; flex-direction: column; background: linear-gradient(160deg, rgba(244,201,212,.18), var(--tile) 70%); }
.t-speed { grid-column: span 2; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.t-pay, .t-mode, .t-soldout { grid-column: span 2; }
.t-alerts { grid-column: span 3; background: #17294A; color: #fff; }
.t-alerts p { color: #9FB3D1; }
.t-search { grid-column: span 3; background: linear-gradient(160deg, rgba(156,203,234,.18), var(--tile) 70%); }

/* Fanned mini sites */
.fan { position: relative; flex: 1; min-height: 200px; margin-top: 24px; }
.mini {
  position: absolute; bottom: -60px; left: 50%; width: 46%; aspect-ratio: 4 / 3; padding: 14px;
  border-radius: 14px; background: #fff; box-shadow: 0 24px 50px -20px rgba(13,47,95,.35);
  display: flex; flex-direction: column; gap: 8px;
  transform: translateX(-50%) rotate(0deg); transition: transform 1.1s var(--ease);
}
.mini i { height: 42%; border-radius: 8px; }
.mini b { height: 8px; border-radius: 4px; background: var(--tile); width: 70%; }
.mini b + b { width: 45%; }
.mini span { margin-top: auto; width: 34%; height: 16px; border-radius: 999px; }
.m1 i { background: linear-gradient(120deg, #FFE7D6, #F9C9A9); } .m1 span { background: #5A2A1A; }
.m2 i { background: linear-gradient(120deg, var(--sky-soft), var(--sky)); } .m2 span { background: var(--navy); }
.m3 i { background: linear-gradient(120deg, #E6F4EA, #A8D5B5); } .m3 span { background: #1E5631; }
.t-design.in .m1 { transform: translateX(-118%) translateY(24px) rotate(-8deg); }
.t-design.in .m3 { transform: translateX(18%) translateY(24px) rotate(8deg); }
.t-design.in .m2 { transform: translateX(-50%) translateY(-6px); z-index: 1; }

/* Speed gauge */
.gauge { position: relative; width: 150px; height: 150px; margin: 4px auto 20px; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 10; }
.gauge .gauge-fill { stroke: #3CC37A; stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset 1.6s var(--ease); }
.t-speed.in .gauge-fill { stroke-dashoffset: 6.5; }
/* The word lands just as the ring finishes filling */
.gauge-num { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.25rem; font-weight: 750; letter-spacing: -.04em; color: #5DD893; opacity: 0; transform: scale(.6); transition: opacity .3s ease 1.1s, transform .5s var(--spring) 1.1s; }
.t-speed.in .gauge-num { opacity: 1; transform: none; }

/* Pay */
.pay-demo { margin-top: 28px; display: grid; gap: 10px; }
.pay-chip { padding: 14px 16px; border-radius: 14px; background: var(--raised); font-weight: 600; font-size: .9375rem; opacity: 0; transform: translateX(-16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.pay-chip:first-child { background: #fff; color: #000; }
.t-pay.in .pay-chip { opacity: 1; transform: none; }
.t-pay.in .pay-chip:nth-child(2) { transition-delay: .12s; }
.t-pay.in .pay-chip:nth-child(3) { transition-delay: .24s; }

/* Pickup / delivery */
.seg-big { margin: 28px 0 14px; background: var(--raised); position: relative; }
.seg-big .on { background: #3A3E4A; color: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.seg-big button { cursor: pointer; padding: 10px; font-size: .9375rem; transition: background-color .25s, color .25s, box-shadow .25s; }
.seg-big button:active { transform: scale(.97); }
.seg-big .soon { margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: rgba(244,201,212,.18); color: var(--blush); font-size: .6875rem; font-weight: 700; letter-spacing: .02em; vertical-align: 1px; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slots span { padding: 8px 12px; border-radius: 10px; background: var(--raised); font-size: .875rem; font-weight: 500; transition: background-color .3s, color .3s; }
.slots .on { background: var(--sky); color: var(--navy-deep); }

/* Sold-out card: the middle switch flips, the row greys out, a stamp lands */
.label { position: relative; margin-top: 26px; padding: 6px 16px; border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.18); transform: rotate(-2deg); }
.so-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; font-size: .875rem; }
.so-row + .so-row { border-top: 1px solid var(--line); }
.so-row b { transition: opacity .3s ease .5s; }
.so-switch { position: relative; flex: none; width: 34px; height: 20px; border-radius: 999px; background: #E3E5EA; transition: background-color .25s ease .4s; }
.so-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .3s var(--spring) .4s; }
.t-soldout.in .so-target .so-switch { background: var(--blush); }
.t-soldout.in .so-target .so-switch::after { transform: translateX(14px); }
.t-soldout.in .so-target b { opacity: .4; }
.label-stamp {
  position: absolute; right: 54px; top: 50%; padding: 3px 10px; border: 3px solid #D9577A; border-radius: 8px;
  color: #D9577A; font-weight: 800; font-size: 1rem; letter-spacing: .02em; white-space: nowrap;
  transform: translateY(-50%) rotate(-10deg) scale(2); opacity: 0; transition: transform .5s var(--spring) .8s, opacity .2s ease .8s;
}
.t-soldout.in .label-stamp { transform: translateY(-50%) rotate(-10deg) scale(1); opacity: 1; }

/* Alerts */
.alerts { margin-top: 28px; display: grid; gap: 10px; }
.alert {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.08);
  opacity: 0; transform: translateY(-18px) scale(.96);
  transition: opacity .6s var(--ease), transform .7s var(--spring);
}
.alert.show { opacity: 1; transform: none; }
.alert img { border-radius: 6px; background: var(--navy); }
.alert b { display: block; font-size: .9375rem; font-weight: 600; }
.alert span { display: block; font-size: .8125rem; color: #9FB3D1; }

/* Search */
.serp { margin-top: 26px; }
.serp-bar { padding: 12px 18px; border-radius: 999px; background: #fff; font-size: .9375rem; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.serp-card { margin-top: 12px; padding: 16px 18px; border-radius: 16px; background: #fff; display: grid; gap: 3px; box-shadow: 0 10px 30px -18px rgba(13,47,95,.4); }
.serp-card b { font-size: 1.0625rem; }
.stars { color: #F5A623; font-size: .875rem; letter-spacing: .05em; }
.stars em { font-style: normal; color: var(--gray); letter-spacing: 0; }
.serp-meta { font-size: .8125rem; color: var(--gray); }
.serp-btn { justify-self: start; margin-top: 8px; padding: 7px 14px; border-radius: 999px; background: var(--sky-soft); color: var(--navy); font-size: .8125rem; font-weight: 600; }

/* ---------- Packages (dark) ---------- */
.packages { padding: clamp(96px, 12vw, 160px) var(--gutter); background: var(--bg-deep); color: var(--ink); }
.packages .section-head h2 { background: linear-gradient(180deg, #fff 30%, #A9C4E4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.packages .section-head p { color: var(--gray); }
.plans { max-width: var(--max); margin: clamp(48px, 6vw, 80px) auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 36px 32px 32px; border-radius: 28px; background: var(--tile); }
.plan h3 { font-size: 1.75rem; font-weight: 700; letter-spacing: -.03em; }
.plan-for { margin-top: 6px; color: var(--gray); }
.plan ul { list-style: none; margin: 28px 0 32px; padding: 0; display: grid; gap: 12px; }
.plan li { position: relative; padding-left: 28px; color: var(--soft); }
.plan li::before { content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; border-radius: 50%; background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23061A3A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.plan .btn { margin-top: auto; align-self: stretch; }
.plan-featured { background: linear-gradient(var(--tile), var(--tile)) padding-box, linear-gradient(140deg, var(--blush), var(--sky)) border-box; border: 2px solid transparent; }
.plan-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: .75rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--blush); color: var(--navy-deep); }

/* ---------- Process ---------- */
.process { padding: clamp(96px, 12vw, 160px) var(--gutter) clamp(48px, 6vw, 80px); }
.steps { list-style: none; counter-reset: s; max-width: var(--max); margin: clamp(48px, 6vw, 72px) auto 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
/* Line runs from the first dot to the last: ends one column width (minus a dot radius) from the right */
.steps::before { content: ""; position: absolute; top: 21px; left: 22px; right: calc((100% - 72px) / 4 - 22px); height: 2px; background: var(--tile); }
.steps::after { content: ""; position: absolute; top: 21px; left: 22px; right: calc((100% - 72px) / 4 - 22px); height: 2px; background: var(--sky); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .3s; }
.steps.in::after { transform: scaleX(1); }
.steps li { counter-increment: s; position: relative; padding-top: 64px; }
.steps li::before {
  content: counter(s); position: absolute; top: 0; left: 0; z-index: 1;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); border: 2px solid var(--line); color: var(--gray); font-weight: 650;
  transition: background-color .4s, color .4s, border-color .4s;
}
.steps.in li::before { background: var(--sky); border-color: var(--sky); color: var(--navy-deep); }
.steps.in li:nth-child(1)::before { transition-delay: .3s; }
.steps.in li:nth-child(2)::before { transition-delay: .75s; }
.steps.in li:nth-child(3)::before { transition-delay: 1.2s; }
.steps.in li:nth-child(4)::before { transition-delay: 1.65s; }
.steps h3 { font-size: 1.375rem; font-weight: 700; letter-spacing: -.025em; }
.steps p { margin-top: 6px; color: var(--gray); }

/* ---------- Work ---------- */
.work { padding: clamp(80px, 10vw, 140px) var(--gutter) clamp(48px, 6vw, 80px); }
.project {
  max-width: var(--max); margin: clamp(48px, 6vw, 72px) auto 0; padding: clamp(20px, 3vw, 32px);
  display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center;
  border-radius: 32px; background: linear-gradient(135deg, rgba(244,201,212,.12), rgba(156,203,234,.12));
}
/* Same window as the hero, but flat: no tilt, no scroll effect */
.project-shot { --tilt: 0deg; --scale: 1; will-change: auto; border-radius: 14px; }
.project-shot .browser-bar { height: 32px; }
.project-shot .dots i { width: 9px; height: 9px; }
.project-shot .url { transform: translateX(-24px); font-size: .75rem; }
.project-shot img { display: block; width: 100%; height: auto; }
.wip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(244,201,212,.14); color: var(--blush); font-size: .8125rem; font-weight: 600; }
.wip span { width: 8px; height: 8px; border-radius: 50%; background: var(--blush); animation: wip-pulse 1.8s ease-in-out infinite; }
@keyframes wip-pulse { 50% { opacity: .35; } }
.project-copy h3 { margin-top: 16px; font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.08; }
.project-meta { margin-top: 6px; color: var(--sky); font-weight: 500; }
.project-copy > p:not(.wip):not(.project-meta) { margin-top: 16px; color: var(--soft); font-size: 1.0625rem; line-height: 1.55; }
.project-tags { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.project-tags li { padding: 6px 12px; border-radius: 999px; background: var(--raised); font-size: .8125rem; font-weight: 500; }
/* More screens from the same site, under the main preview */
.project-gallery { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(12px, 2vw, 20px); }
.project-gallery li { display: grid; gap: 10px; }
.project-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 12px; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 18px 40px -24px rgba(0,0,0,.6); transition: transform .4s var(--ease); }
.project-gallery li:hover img { transform: translateY(-4px); }
.project-gallery span { color: var(--soft); font-size: .875rem; font-weight: 500; }
@media (max-width: 640px) { .project-gallery { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .project-gallery img { transition: none; } }
.work-cta { max-width: var(--max); margin: clamp(32px, 4vw, 48px) auto 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 24px; text-align: center; }
.work-cta p { color: var(--soft); font-size: 1.125rem; }
@media (max-width: 860px) { .project { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .wip span { animation: none; } }

/* ---------- About ---------- */
.about { padding: clamp(80px, 10vw, 140px) var(--gutter); }
.about-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.about-photo { aspect-ratio: 4 / 5; border-radius: 32px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(160deg, rgba(244,201,212,.16), rgba(156,203,234,.16)); }
.about-photo img { width: 38%; height: auto; }
img.about-photo { width: 100%; object-fit: cover; }
.about-copy h2 { font-size: clamp(2.5rem, 5.5vw, 4rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.02; }
.about-copy > p { margin-top: 20px; font-size: clamp(1.125rem, 1.8vw, 1.3125rem); line-height: 1.45; color: var(--soft); max-width: 40ch; }
.promises { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 18px; }
.promises li { display: grid; gap: 2px; padding-left: 20px; border-left: 3px solid var(--blush); }
.promises li:nth-child(2) { border-color: var(--sky); }
.promises li:nth-child(3) { border-color: #fff; }
.promises b { font-weight: 650; font-size: 1.0625rem; }
.promises span { color: var(--gray); }

/* ---------- FAQ: accordion ---------- */
.faq { padding: clamp(80px, 10vw, 140px) var(--gutter); background: var(--tile); }
.faq-list { max-width: 780px; margin: clamp(40px, 6vw, 64px) auto 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 24px 48px 24px 0; font-size: clamp(1.125rem, 2vw, 1.375rem); font-weight: 600; letter-spacing: -.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border-right: 2px solid var(--gray); border-bottom: 2px solid var(--gray);
  transform: rotate(45deg); transition: transform .35s var(--ease), margin-top .35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
.faq summary:hover { color: var(--sky); }
.faq-a { overflow: hidden; }
.faq details[open] .faq-a { animation: fade-up .45s var(--ease); }
.faq-a p { padding: 0 48px 26px 0; color: var(--soft); font-size: 1.0625rem; line-height: 1.55; max-width: 62ch; }

/* ---------- Contact ---------- */
.contact { padding: clamp(96px, 12vw, 160px) var(--gutter); }
.contact-form { max-width: 720px; margin: clamp(40px, 6vw, 64px) auto 0; padding: clamp(24px, 4vw, 44px); border-radius: 28px; background: var(--tile); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.contact-form label > span, .contact-form legend { display: block; margin-bottom: 6px; font-size: .875rem; font-weight: 500; color: var(--soft); }
.contact-form input:not([type="checkbox"]), .contact-form select, .contact-form textarea {
  width: 100%; min-height: 50px; padding: 13px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  font: 400 1rem/1.4 var(--font); transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(156,203,234,.25); }
.contact-form [aria-invalid="true"] { border-color: #F07A9A; }
.contact-form fieldset, .contact-form .full, .form-end { grid-column: 1 / -1; }
.contact-form fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.contact-form legend { width: 100%; padding: 0; }
.chip { cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: .9375rem; transition: background-color .2s, color .2s, border-color .2s, transform .1s; user-select: none; }
.chip:active span { transform: scale(.96); }
.chip input:checked + span { background: var(--sky); border-color: var(--sky); color: var(--navy-deep); }
.chip input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.form-end { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.form-status { color: var(--soft); }

/* ---------- Footer ---------- */
.footer { background: var(--tile); border-top: 1px solid var(--line); font-size: .75rem; color: var(--gray); }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) 24px; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.footer-brand p { margin-top: 10px; max-width: 28ch; line-height: 1.5; }
.footer .brand span { font-size: 1rem; }
.footer nav { display: flex; flex-direction: column; gap: 10px; }
.footer h3 { font-size: .75rem; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.footer nav a { color: var(--soft); text-decoration: none; }
.footer nav a:hover { text-decoration: underline; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  /* Global nav becomes a full-screen menu behind the two-line button */
  .gnav-menu { display: block; }
  .gnav-links {
    position: fixed; inset: 44px 0 0; margin: 0; max-width: none; z-index: 60;
    flex-direction: column; justify-content: flex-start; padding: 20px 40px;
    background: rgba(20,23,32,.98);
    visibility: hidden; opacity: 0; transition: opacity .3s ease, visibility 0s .3s;
  }
  .gnav.open .gnav-links { visibility: visible; opacity: 1; transition: opacity .3s ease; }
  .gnav-links li { opacity: 0; transform: translateY(-8px); transition: opacity .3s ease, transform .4s var(--ease); }
  .gnav.open .gnav-links li { opacity: 1; transform: none; }
  .gnav.open .gnav-links li:nth-child(2) { transition-delay: .03s; }
  .gnav.open .gnav-links li:nth-child(3) { transition-delay: .06s; }
  .gnav.open .gnav-links li:nth-child(4) { transition-delay: .09s; }
  .gnav.open .gnav-links li:nth-child(5) { transition-delay: .12s; }
  .gnav.open .gnav-links li:nth-child(6) { transition-delay: .15s; }
  .gnav.open .gnav-links li:nth-child(7) { transition-delay: .18s; }
  .gnav.open .gnav-links li:nth-child(8) { transition-delay: .21s; }
  .gnav-lang a { margin: 16px 0 0; padding: 8px 0; line-height: 1.2; border-radius: 0; box-shadow: none; font-size: 1.125rem !important; font-weight: 500 !important; color: var(--sky) !important; }
  .gnav-links a { padding: 8px 0; line-height: 1.2; font-size: 1.75rem; font-weight: 650; letter-spacing: -.03em; color: var(--ink); }
  .gnav { position: sticky; top: 0; z-index: 50; }
  .lnav { top: 44px; }
  .lnav-link { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; aspect-ratio: 1; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .t-design, .t-alerts, .t-search { grid-column: span 2; }
  .t-speed, .t-pay, .t-mode, .t-soldout { grid-column: span 1; }
  .plans { grid-template-columns: 1fr; max-width: 520px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before, .steps::after { display: none; }
}
@media (max-width: 720px) {
  /* Story: phone stays pinned at the top, steps scroll under it */
  .story-grid { grid-template-columns: 1fr; gap: 0; }
  .story-device { order: -1; top: 96px; z-index: 2; padding: 8px 0 16px; background: linear-gradient(var(--tile) 85%, rgba(35,40,51,0)); }
  /* Same 300px phone, scaled down; negative margin gives back the space the scale frees */
  .phone-story { width: 300px; flex: none; transform: scale(.52); transform-origin: top center; margin-bottom: -304px; }
  /* Text sits in the lower part of the screen, below the pinned phone */
  .story-step { min-height: 75vh; max-width: none; text-align: center; align-items: center; justify-content: flex-end; padding-bottom: 10vh; }
  .phone-hero { right: -4%; bottom: -18%; }
  .toast-hero { left: 0; top: -40px; transform-origin: left; scale: .85; }
  .toast-hero span { display: none; }
  .site { padding-right: 26%; }
  .site-menu .dish:nth-child(3) { display: none; }
  .site-menu { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .tile, .t-design, .t-alerts, .t-search, .t-speed, .t-pay, .t-mode, .t-soldout { grid-column: auto; }
  .tile { min-height: 0; padding: 28px 24px; }
  .t-design .fan { min-height: 180px; }
  .steps { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .form-end .btn { width: 100%; }
  .hero-cta { flex-direction: column; gap: 18px; }
}

/* ---------- Reduced motion: no tilt, no slides; content just appears ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .browser { transform: none; }
  .screen { transition: opacity .25s ease; transform: none; }
  .mini, .pay-chip, .alert, .label-stamp, .gauge-num, .so-row b, .so-switch, .so-switch::after, .steps::after, .gauge-fill { transition: none !important; }
}

/* ---------- Display type ----------
   Headlines and section headings use Playfair Display so the brand doesn't read as Apple's
   system font. Last in the file so its spacing wins over each heading's own rule.
   The mockups of client sites keep their own type. */
.hero-title, .section-head h2, .about-copy h2, .story-step h3, .tile h3, .plan h3, .steps h3, .project-copy h3, .gauge-num {
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: -.01em;
}
.hero-title { font-weight: 800; line-height: 1.02; }
.section-head h2, .about-copy h2 { line-height: 1.08; }

/* Finished project: green "Live" badge and a link to the real site */
.wip-live { background: rgba(76, 209, 138, .14); color: #7FE0AB; }
.wip-live span { background: #4CD18A; }
.project-link {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: 20px; padding: 0 20px;
  border-radius: 999px; background: var(--sky); color: var(--navy-deep);
  font-weight: 600; text-decoration: none; transition: background-color .2s, transform .1s ease-out;
}
.project-link:hover { background: #BBDDF3; }
.project-link:active { transform: scale(.97); }
