/* Cabin POS website. White pages, big light headlines in Geist (the app's own font),
   black pill buttons and one warm ember glow. */
:root {
  --bg: #ffffff;
  --bg-2: #f7f5f3;
  --card: #faf8f6;
  --text: #0c0a09;
  --text-2: rgb(12 10 9 / 0.68);
  --muted: rgb(12 10 9 / 0.5);
  --dim: rgb(12 10 9 / 0.28);
  --line: rgb(12 10 9 / 0.09);
  --line-2: rgb(12 10 9 / 0.16);
  --ember: #e8590c;
  --ember-2: #c2410c;
  --band: #fbf1e8;
  --btn-fg: #ffffff;
  --btn-hover: #2c2724;
  --ghost-hover: rgb(12 10 9 / 0.04);
  --header-bg: rgb(255 255 255 / 0.82);
  --shade: rgb(80 40 10 / 0.3);
  --stage-bg: linear-gradient(#fffaf6, #ffeadb);
  --pc-bg: linear-gradient(160deg, #fbf3ec, #f2e1d3);
  --tile-bg: #ffffff;
  --cta-bg: linear-gradient(#fffaf6, #ffeadb);
  --glow: 0.42;
  --footer-bg: #f6f3f0;
  --mark-back-1: #b8360a;
  --mark-back-1-a: 0.8;
  --mark-back-2: #4a1606;
  --mark-back-3: #2a0c04;
  color-scheme: light;

  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --wrap: 1260px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}
/* Dark: follows the device unless the visitor picked light or dark (script.js sets data-theme). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #070605;
    --bg-2: #0f0d0b;
    --card: #141110;
    --text: #ffffff;
    --text-2: rgb(255 255 255 / 0.68);
    --muted: rgb(255 255 255 / 0.46);
    --dim: rgb(255 255 255 / 0.3);
    --line: rgb(255 255 255 / 0.1);
    --line-2: rgb(255 255 255 / 0.18);
    --ember: #ff6b1a;
    --ember-2: #ff8a3d;
    --band: #1d0b04;
    --btn-fg: #000000;
    --btn-hover: #e9e6e3;
    --ghost-hover: rgb(255 255 255 / 0.08);
    --header-bg: rgb(7 6 5 / 0.72);
    --shade: rgb(0 0 0 / 0.7);
    --stage-bg: linear-gradient(#120b07, #1a0d06);
    --pc-bg: linear-gradient(160deg, #241812, #120b08);
    --tile-bg: rgb(0 0 0 / 0.38);
    --cta-bg: linear-gradient(#120b07, #1d0d05);
    --glow: 0.55;
    --footer-bg: #0d0b0a;
    --mark-back-1: #d9520f;
    --mark-back-1-a: 0.85;
    --mark-back-2: #8a2e0c;
    --mark-back-3: #5e1e08;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #070605;
  --bg-2: #0f0d0b;
  --card: #141110;
  --text: #ffffff;
  --text-2: rgb(255 255 255 / 0.68);
  --muted: rgb(255 255 255 / 0.46);
  --dim: rgb(255 255 255 / 0.3);
  --line: rgb(255 255 255 / 0.1);
  --line-2: rgb(255 255 255 / 0.18);
  --ember: #ff6b1a;
  --ember-2: #ff8a3d;
  --band: #1d0b04;
  --btn-fg: #000000;
  --btn-hover: #e9e6e3;
  --ghost-hover: rgb(255 255 255 / 0.08);
  --header-bg: rgb(7 6 5 / 0.72);
  --shade: rgb(0 0 0 / 0.7);
  --stage-bg: linear-gradient(#120b07, #1a0d06);
  --pc-bg: linear-gradient(160deg, #241812, #120b08);
  --tile-bg: rgb(0 0 0 / 0.38);
  --cta-bg: linear-gradient(#120b07, #1d0d05);
  --glow: 0.55;
  --footer-bg: #0d0b0a;
  --mark-back-1: #d9520f;
  --mark-back-1-a: 0.85;
  --mark-back-2: #8a2e0c;
  --mark-back-3: #5e1e08;
  color-scheme: dark;
}

*,
*::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(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
h3 {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
p {
  margin: 0;
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  padding: 8px 12px;
  background: var(--text);
  color: var(--bg);
  border-radius: 8px;
  z-index: 100;
}
.skip:focus {
  left: 8px;
}
:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ── Type helpers ── */
.eyebrow,
.label {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}
/* A small ember dot that breathes, like a light left on. */
.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 0 0 rgb(255 107 26 / 0.6);
  animation: ping 2.4s 1s infinite;
}
.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text-2);
  max-width: 30em;
}
.section-head {
  max-width: 1040px;
  margin-bottom: clamp(32px, 4.5vw, 60px);
}
/* Two-tone headings: the point in white, the rest in grey. */
.section-head h2,
.cta h2 {
  font-size: clamp(2.3rem, 5.4vw, 4.6rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.04;
}
.section-head h2 span,
.cta h2 span {
  color: var(--dim);
}
.section-lede {
  margin-top: 22px;
  font-size: 1.12rem;
  color: var(--text-2);
  max-width: 34em;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border: 1.5px solid var(--text);
  border-radius: 999px;
  background: var(--text);
  color: var(--btn-fg);
  font-weight: 550;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.btn:hover {
  background: var(--btn-hover);
  border-color: var(--btn-hover);
}
.btn:active {
  transform: scale(0.98);
}
.btn-small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.92rem;
}
.btn-large {
  min-height: 54px;
  padding: 0 28px;
  font-size: 1.05rem;
}
.btn-block {
  width: 100%;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-2);
}
.btn-ghost:hover {
  background: var(--ghost-hover);
  border-color: var(--text);
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.brand em {
  font-style: normal;
  font-weight: 400;
  color: var(--ember);
}
.brand-small {
  font-size: 1.05rem;
}
.mark {
  flex: none;
  display: block;
}
.nav {
  display: flex;
  gap: 32px;
}
.nav a {
  font-size: 0.97rem;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s;
}
.nav a:hover {
  color: var(--text);
}
.header-row > .btn {
  margin-left: -28px;
}
.menu-toggle {
  display: none;
}
.mobile-nav {
  display: none;
}

/* ── Hero ── */
.hero {
  padding: clamp(40px, 6vw, 88px) 0 0;
  overflow: hidden;
}
.hero h1 {
  max-width: 12.5em;
  font-size: clamp(2.9rem, 7vw, 6.3rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.hero h1 em {
  font-style: normal;
  color: var(--ember);
}
.hero-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 48px;
  margin-top: clamp(26px, 3vw, 40px);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* The app window standing in a warm glow; the panel cuts it off at the bottom. */
.stage {
  position: relative;
  margin: clamp(44px, 6vw, 72px) 0 0;
  height: clamp(320px, 39vw, 540px);
  padding: clamp(28px, 5vw, 64px) clamp(16px, 5vw, 64px) 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: clamp(18px, 2.4vw, 28px);
  background:
    radial-gradient(60% 70% at 50% 108%, rgb(255 107 26 / var(--glow)), transparent 70%),
    radial-gradient(40% 50% at 12% 0%, rgb(255 180 120 / 0.14), transparent 70%),
    var(--stage-bg);
}
.stage-frame {
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  border: 1px solid var(--line-2);
  border-bottom: 0;
  background: #fff;
  box-shadow: 0 -10px 80px -20px rgb(255 107 26 / 0.35), 0 30px 70px -30px var(--shade);
}
.frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  background: #efe9e2;
  border-bottom: 1px solid #e2d8cc;
}
.frame-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d5c8b8;
}
.frame-bar span {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #7a6c60;
}

/* Live order notes floating over the window, like the real screens. */
.toasts {
  position: absolute;
  right: clamp(16px, 3vw, 40px);
  bottom: clamp(16px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  width: min(340px, 70%);
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  background: rgb(18 14 12 / 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgb(255 255 255 / 0.1);
  color: rgb(255 255 255 / 0.7);
  border-radius: 16px;
  box-shadow: 0 24px 48px -16px rgb(0 0 0 / 0.7);
  font-size: 0.86rem;
  line-height: 1.35;
  animation: toast-in 0.6s var(--ease) both;
}
.toast.leaving {
  animation: toast-out 0.45s var(--ease) forwards;
}
.toast b {
  display: block;
  font-weight: 550;
  color: #fff;
}
.toast small {
  color: rgb(255 255 255 / 0.5);
  font-size: 0.8rem;
}
.toast-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--ember);
  color: #fff;
}
.toast-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.toast-time {
  margin-left: auto;
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: rgb(255 255 255 / 0.5);
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
}
@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(-12px) scale(0.97);
  }
}

/* ── Entrance animations ── */
/* Headline words rise from a mask, one after another (script.js wraps each word). */
[data-split] .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
[data-split] .w > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 0.95s var(--ease) forwards;
  animation-delay: calc(0.1s + var(--i) * 50ms);
}
@keyframes rise {
  to {
    transform: none;
  }
}
[data-anim] {
  animation: fade-up 0.9s var(--ease) both;
  animation-delay: var(--delay, 0s);
}
.stage {
  animation: fade-up 1.2s var(--ease) both;
  animation-delay: 0.6s;
}
.stage-frame {
  animation: frame-up 1.4s var(--ease) both;
  animation-delay: 0.75s;
}
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}
@keyframes frame-up {
  from {
    transform: translateY(80px);
  }
}
@keyframes ping {
  70% {
    box-shadow: 0 0 0 10px rgb(255 107 26 / 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgb(255 107 26 / 0);
  }
}
/* Sections fade up as they scroll into view. */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
[data-reveal].shown {
  opacity: 1;
  transform: none;
}
.no-js [data-reveal],
.no-js [data-split] .w > span {
  opacity: 1;
  transform: none;
  animation: none;
}

/* ── Statement: words light up as you scroll past ── */
.statement {
  padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 6vw, 80px);
}
.glow-text {
  max-width: 22em;
  font-size: clamp(1.8rem, 3.9vw, 3.5rem);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--text);
}
.glow-text .g {
  color: var(--dim);
  transition: color 0.4s ease;
}
.glow-text .g.on {
  color: var(--text);
}
.no-js .glow-text .g {
  color: var(--text);
}

/* ── Three people, three screens ── */
.roles {
  padding-bottom: clamp(56px, 7vw, 96px);
}
.role-cards {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 16px;
}
.role-media {
  position: relative;
  height: clamp(300px, 30vw, 420px);
  overflow: hidden;
  border-radius: 18px;
  margin-bottom: 22px;
}
.role-media img {
  position: absolute;
  transition: transform 0.8s var(--ease);
}
.role:hover .role-media img {
  transform: translateY(-10px);
}
.role-media-phone {
  background: linear-gradient(165deg, #ff8a3d, #c2410c 70%, #8a2a06);
}
/* The waiter's phone: an iPhone drawn in CSS around the screenshot (metal frame, antenna bands, side
   buttons, Dynamic Island, home bar). .iphone sets the size; everything inside is in cqw, a share of
   the phone's own width, so it looks the same at any size. */
.iphone {
  position: absolute;
  left: 50%;
  top: 12%;
  width: 66%;
  margin-left: -33%;
  aspect-ratio: 37 / 76;
  container-type: inline-size;
  transition: transform 0.8s var(--ease);
}
.iphone-body {
  --metal: hsl(24 14% 82%);
  --metal-edge: hsl(24 12% 32%);
  position: absolute;
  inset: 0;
  padding: 3.2cqw;
  background: #050505;
  border-radius: 17cqw;
  box-shadow:
    0 0 0.3cqw 0.7cqw var(--metal-edge),
    0 0 0 1.4cqw var(--metal),
    0 30px 60px -20px rgb(0 0 0 / 0.6);
}
.role:hover .role-media .iphone {
  transform: translateY(-10px);
}
/* Antenna bands across the frame, top and bottom. */
.iphone-body::before {
  content: '';
  position: absolute;
  top: 17cqw;
  bottom: 17cqw;
  left: -1.4cqw;
  right: -1.4cqw;
  border-block: 0.9cqw solid var(--metal-edge);
  pointer-events: none;
}
.iphone-btn {
  position: absolute;
  width: 1.1cqw;
  background: linear-gradient(90deg, hsl(24 10% 62%), var(--metal) 45%, hsl(24 10% 70%));
  border-radius: 0.4cqw;
  box-shadow: inset 0 0.4cqw 0.2cqw rgb(255 255 255 / 0.5), inset 0 -0.4cqw 0.2cqw rgb(0 0 0 / 0.35);
}
.iphone-btn-action,
.iphone-btn-vol-up,
.iphone-btn-vol-down {
  left: -2.4cqw;
}
.iphone-btn-action {
  top: 34cqw;
  height: 6cqw;
}
.iphone-btn-vol-up {
  top: 46cqw;
  height: 12cqw;
}
.iphone-btn-vol-down {
  top: 61cqw;
  height: 12cqw;
}
.iphone-btn-power {
  right: -2.4cqw;
  top: 51cqw;
  height: 19cqw;
}
.iphone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 13.8cqw;
  /* The app's own background, so the status bar blends into the screenshot below it. */
  background: #fbfaf9;
}
/* Status bar beside the Dynamic Island: the time on the left, signal, Wi-Fi and battery on the right. */
.iphone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 15cqw;
  padding: 1.5cqw 9cqw 0 11cqw;
  color: #0c0a09;
  font-size: 5.2cqw;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.iphone-status svg {
  width: 17cqw;
  height: auto;
}
.role-media .iphone-screen img {
  position: static;
  display: block;
  width: 100%;
  /* Below the status bar, above the home-bar strip; the whole screenshot fits, nothing cut off. */
  height: calc(100% - 15cqw - 7cqw);
  object-fit: contain;
  object-position: top center;
  transition: none;
}
.role:hover .role-media .iphone-screen img {
  transform: none;
}
/* The Dynamic Island, with its camera lens. */
.iphone-island {
  position: absolute;
  top: 3cqw;
  left: 50%;
  width: 32cqw;
  height: 9cqw;
  margin-left: -16cqw;
  background: #000;
  border-radius: 999px;
}
.iphone-island::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 3cqw;
  width: 3.2cqw;
  height: 3.2cqw;
  margin-top: -1.6cqw;
  border-radius: 50%;
  background:
    radial-gradient(#6667ac, transparent 50%) no-repeat 33% 10% / 75% 50%,
    radial-gradient(#3e3f86, transparent 50%) no-repeat 60% 85% / 50% 50%,
    #080928;
  box-shadow: inset 0 0 0.3cqw #4c4da3;
}
/* Home bar, on the light strip at the bottom of the screen. */
.iphone-screen::after {
  content: '';
  position: absolute;
  bottom: 2.6cqw;
  left: 50%;
  width: 36cqw;
  height: 1.3cqw;
  margin-left: -18cqw;
  border-radius: 1cqw;
  background: #0c0a09;
}
.role-media-pc {
  background:
    radial-gradient(70% 80% at 80% 100%, rgb(255 107 26 / 0.3), transparent 70%),
    var(--pc-bg);
}
.role-media-pc img {
  left: 9%;
  top: 12%;
  width: 125%;
  max-width: none;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 60px -24px var(--shade);
}
.role-media-tab {
  background: linear-gradient(165deg, #3c5a45, #1d3226 75%);
}
/* The owner's tablet: an iPad drawn in CSS (silver edge with volume buttons on top, dark bezel, home
   bar), peeking out of the card. Sizes are in cqw, a share of the tablet's own width. */
.ipad {
  position: absolute;
  left: 12%;
  top: 14%;
  width: 100%;
  container-type: inline-size;
  transition: transform 0.8s var(--ease);
}
.role:hover .role-media .ipad {
  transform: translateY(-10px);
}
.ipad-body {
  position: relative;
  padding: 0.5cqw;
  background: linear-gradient(160deg, #d6d2ce, #a8a39e 60%, #c9c5c1);
  border-radius: 5.8cqw;
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.6);
}
/* Volume buttons on the top edge. */
.ipad-body::before,
.ipad-body::after {
  content: '';
  position: absolute;
  top: -0.7cqw;
  width: 3.8cqw;
  height: 0.7cqw;
  background: #c4bfba;
  border-radius: 0.4cqw 0.4cqw 0 0;
}
.ipad-body::before {
  left: 7.5cqw;
}
.ipad-body::after {
  left: 12.5cqw;
}
.ipad-bezel {
  position: relative;
  padding: 2.6cqw;
  background: #1c1b1a;
  border-radius: 5.3cqw;
}
/* Home bar in the bezel. */
.ipad-bezel::after {
  content: '';
  position: absolute;
  bottom: 1cqw;
  left: 50%;
  width: 25cqw;
  height: 0.5cqw;
  margin-left: -12.5cqw;
  border-radius: 1cqw;
  background: rgb(255 255 255 / 0.5);
}
.role-media .ipad-bezel img {
  position: static;
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  border-radius: 2cqw;
  transition: none;
}
.role:hover .role-media .ipad-bezel img {
  transform: none;
}
.role h3 {
  margin-bottom: 6px;
}
.role p {
  color: var(--text-2);
  font-size: 0.97rem;
  max-width: 30em;
}

/* ── Proof band ── */
.proof {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
}
.proof-grid > div {
  padding: 40px 28px;
  border-left: 1px solid var(--line);
}
.proof-grid > div:first-child {
  padding-left: 0;
  border-left: 0;
}
.proof-lead p {
  margin-top: 12px;
  font-size: 1.35rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text-2);
}
.proof-lead strong {
  font-weight: 500;
  color: var(--text);
}
.proof-stat b {
  display: block;
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
}
.proof-stat span {
  display: block;
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ── Night timeline: the line draws across in ember, then each stop lights up ── */
.night {
  padding: clamp(64px, 8vw, 112px) 0;
}
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-2);
}
.timeline::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--text), var(--ember));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.8s var(--ease);
}
.timeline.shown::before {
  transform: scaleX(1);
}
.timeline li {
  position: relative;
  padding: 36px 32px 0 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.timeline.shown li {
  opacity: 1;
  transform: none;
}
.timeline.shown li:nth-child(2) {
  transition-delay: 0.35s;
}
.timeline.shown li:nth-child(3) {
  transition-delay: 0.7s;
}
.timeline.shown li:nth-child(4) {
  transition-delay: 1.05s;
}
.timeline li::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--text);
}
.timeline li:last-child::before {
  background: var(--ember);
  border-color: var(--ember);
}
.timeline.shown li:last-child::before {
  animation: ping 2.4s 1.8s infinite;
}
.timeline time {
  display: block;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--ember);
  margin-bottom: 14px;
}
.timeline h3 {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}
.timeline p {
  color: var(--text-2);
  font-size: 0.97rem;
}

/* ── Features: a warm band with rounded top corners ── */
.features {
  padding: clamp(64px, 8vw, 112px) 0;
  border-radius: clamp(28px, 4vw, 48px) clamp(28px, 4vw, 48px) 0 0;
  background:
    radial-gradient(70% 45% at 50% 0%, rgb(255 107 26 / 0.16), transparent 70%),
    var(--band);
}
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.tile {
  grid-column: span 5;
  overflow: hidden;
  background: var(--tile-bg);
  border: 1px solid var(--line);
  border-radius: 22px;
  transition: border-color 0.3s;
}
.tile:hover {
  border-color: var(--line-2);
  box-shadow: 0 24px 50px -30px var(--shade);
}
.tile-wide {
  grid-column: span 7;
}
.tile-media {
  height: clamp(220px, 23vw, 320px);
  padding: 28px 0 0 28px;
  overflow: hidden;
  background: radial-gradient(80% 90% at 0% 0%, rgb(255 107 26 / 0.18), transparent 70%);
}
.tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  border-top-left-radius: 10px;
  border: 1px solid var(--line);
  border-right: 0;
  border-bottom: 0;
  box-shadow: 0 20px 40px -20px var(--shade);
  transition: transform 0.7s var(--ease);
  transform-origin: 0 0;
}
.tile:hover .tile-media img {
  transform: scale(1.03);
}
.tile-copy {
  padding: 26px 28px 30px;
}
.tile-copy h3 {
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}
.tile-copy p {
  color: var(--text-2);
  font-size: 0.97rem;
  max-width: 34em;
}
.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 56px;
  margin: clamp(48px, 6vw, 80px) 0 0;
  padding: 0;
  list-style: none;
}
.feature-list svg {
  width: 26px;
  height: 26px;
  margin-bottom: 16px;
  fill: none;
  stroke: var(--ember);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s var(--ease);
}
.feature-list li:hover svg {
  transform: translateY(-3px) rotate(-6deg);
}
.feature-list h3 {
  margin-bottom: 6px;
}
.feature-list p {
  color: var(--text-2);
  font-size: 0.95rem;
}

/* ── Local ── */
.local {
  padding: clamp(64px, 8vw, 112px) 0;
}
.local-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 48px;
  margin: 0;
}
.local-list div {
  padding: 28px 0 34px;
  border-top: 1px solid var(--line-2);
}
.local-list dt {
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.local-list dd {
  margin: 0;
  color: var(--text-2);
  font-size: 0.97rem;
}
.setup {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: clamp(36px, 5vw, 56px) 0 0;
  padding: 0;
  list-style: none;
}
.kinds {
  margin: 0 0 clamp(32px, 4vw, 48px);
}
.kinds li {
  color: var(--text);
}
.setup li {
  padding: 9px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-2);
}

/* ── Pricing ── */
.pricing {
  padding: clamp(64px, 8vw, 112px) 0;
  border-top: 1px solid var(--line);
}
.pricing .section-head {
  margin-bottom: clamp(32px, 4vw, 48px);
}
/* Plan cards side by side; one card on its own stays card-sized. */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
  align-items: stretch;
}
.plans-1 {
  max-width: 460px;
}
.plans .price-card {
  display: flex;
  flex-direction: column;
}
.plans .checks {
  flex: 1;
}
.price-card.featured {
  border-color: var(--ember);
  box-shadow: 0 0 0 1px var(--ember);
}
.plan-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ember);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 550;
}
.plan-desc {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 0.95rem;
}
.plan-year {
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--text-2);
}
.plan-year b {
  font-weight: 550;
  color: var(--ember);
}
/* Cards drawn from the admin panel fade up one after another. */
.plan-in {
  animation: fade-up 0.8s var(--ease) both;
}
.price-card {
  position: relative;
  overflow: hidden;
  padding: 36px;
  background: radial-gradient(90% 60% at 100% 0%, rgb(255 107 26 / 0.14), transparent 70%), var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
}
.price-top {
  padding-bottom: 26px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.price {
  margin-top: 14px;
  font-size: 2.8rem;
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.price small {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}
.price-note {
  color: var(--muted);
  font-size: 0.92rem;
}
.price-foot {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--muted);
}
.price-foot a {
  color: var(--text);
}
.checks {
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}
.checks li {
  position: relative;
  padding: 7px 0 7px 30px;
  font-size: 0.97rem;
  color: var(--text-2);
}
.checks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 13px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--ember);
  border-bottom: 2px solid var(--ember);
  transform: rotate(-45deg);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 32px;
  margin: clamp(48px, 6vw, 72px) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  border-top: 1px solid var(--line);
}
.steps li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: step;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  grid-row: span 2;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--ember);
  padding-top: 3px;
}
.steps b {
  font-size: 1.08rem;
  font-weight: 500;
}
.steps span {
  color: var(--text-2);
  font-size: 0.95rem;
}

/* ── FAQ ── */
.faq {
  padding: clamp(64px, 8vw, 112px) 0;
  border-top: 1px solid var(--line);
}
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.faq .section-head h2 {
  font-size: clamp(2.3rem, 4.4vw, 3.8rem);
}
.faq-list {
  border-top: 1px solid var(--line-2);
}
.faq details {
  position: relative;
  border-bottom: 1px solid var(--line-2);
}
.faq summary {
  position: relative;
  padding: 24px 48px 24px 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.22rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.35;
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker {
  display: none;
}
/* A plus that turns into a minus. */
.faq summary::before,
.faq summary::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.35s var(--ease);
}
.faq summary::after {
  transform: rotate(90deg);
}
.faq details[open]:not(.closing) summary::after {
  transform: rotate(0deg);
}
.faq summary:hover,
.faq details[open]:not(.closing) summary {
  color: var(--ember);
}
.faq details p {
  overflow: hidden;
  padding: 0 48px 26px 0;
  color: var(--text-2);
}

/* ── Final call ── */
.cta {
  padding: 0 0 clamp(40px, 5vw, 64px);
}
.cta-inner {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 7vw, 100px) clamp(24px, 6vw, 80px);
  text-align: center;
  border: 1px solid var(--line);
  border-radius: clamp(24px, 3vw, 36px);
  background: var(--cta-bg);
  isolation: isolate;
}
/* A slow warm glow drifting up from the bottom edge. */
.cta-inner::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: -70%;
  width: 90%;
  aspect-ratio: 1.6;
  margin-left: -45%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 107 26 / 0.4), transparent);
  animation: drift 9s ease-in-out infinite alternate;
}
@keyframes drift {
  to {
    transform: translateY(-12%) scale(1.08);
  }
}
.cta h2 {
  max-width: 16em;
  margin: 0 auto 22px;
}
.cta p {
  max-width: 32em;
  margin: 0 auto;
  color: var(--text-2);
  font-size: 1.12rem;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

/* ── Footer: brand and link columns, then a bottom bar with the theme switch ── */
.site-footer {
  padding: clamp(48px, 6vw, 72px) 0 28px;
  background: var(--footer-bg);
  border-top: 1px solid var(--line);
  font-size: 0.93rem;
  color: var(--text-2);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 2.7fr);
  gap: 40px clamp(32px, 6vw, 96px);
  padding-bottom: clamp(36px, 5vw, 56px);
}
.footer-top .brand {
  color: var(--text);
}
.footer-tag {
  margin: 14px 0 22px;
  max-width: 24em;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 24px;
}
.footer-cols h4 {
  margin: 0 0 16px;
  font-size: 0.93rem;
  font-weight: 550;
  color: var(--text);
}
.footer-cols ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-cols a,
.footer-bottom a {
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-cols a:hover,
.footer-bottom a:hover {
  color: var(--text);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-bottom .made {
  margin-left: auto;
}
.footer-bottom .made a {
  font-weight: 550;
  color: var(--text);
}

/* Theme switch in the footer: System / Light / Dark. */
.theme-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
}
.theme-switch button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--text-2);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.theme-switch button:hover {
  color: var(--text);
}
.theme-switch button[aria-pressed='true'] {
  background: var(--text);
  color: var(--btn-fg);
}
.theme-switch svg,
.theme-toggle svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Header button: one click flips between light and dark. */
.theme-toggle {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: none;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s;
}
.theme-toggle:hover {
  background: var(--ghost-hover);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
}
.theme-toggle .moon,
.dark .theme-toggle .sun {
  display: none;
}
.dark .theme-toggle .moon {
  display: block;
}

/* ── Legal pages (privacy.html, terms.html) ── */
.legal {
  padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 112px);
}
.legal-grid {
  margin-top: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 720px);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.legal-head h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 300;
  letter-spacing: -0.035em;
  margin-bottom: 14px;
}
.legal-head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 0.95rem;
}
.legal-toc {
  position: sticky;
  top: 100px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}
.legal-toc a {
  display: block;
  padding: 7px 0 7px 14px;
  border-left: 1px solid var(--line-2);
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.legal-toc a:hover {
  color: var(--text);
  border-left-color: var(--ember);
}
.legal-body {
  color: var(--text-2);
}
.legal-body h2 {
  margin: 48px 0 14px;
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
  scroll-margin-top: 96px;
}
.legal-body h2:first-of-type {
  margin-top: 0;
}
.legal-body p,
.legal-body ul {
  margin: 0 0 14px;
}
.legal-body ul {
  padding-left: 20px;
}
.legal-body li {
  margin-bottom: 6px;
}
.legal-body strong {
  font-weight: 550;
  color: var(--text);
}
.legal-body a {
  color: var(--ember);
}
.legal-note {
  margin-bottom: 40px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  font-size: 0.93rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

/* ── Tablet ── */
@media (max-width: 1024px) {
  .legal-grid,
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .role-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .role-wide {
    grid-column: 1 / -1;
    order: -1;
  }
  .proof-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .proof-grid > .proof-lead {
    grid-column: 1 / -1;
    padding: 32px 0 0;
  }
  .proof-grid > .proof-stat:nth-child(2) {
    padding-left: 0;
    border-left: 0;
  }
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 44px 28px;
    border-top: 0;
  }
  .timeline::before {
    display: none;
  }
  .timeline li {
    border-top: 1px solid var(--line-2);
  }
  .timeline li::before {
    display: none;
  }
  .tile,
  .tile-wide {
    grid-column: span 12;
  }
  .feature-list,
  .local-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .legal-toc {
    position: static;
  }
  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── Phone ── */
@media (max-width: 720px) {
  body {
    font-size: 16px;
  }
  .nav,
  .header-row > .btn {
    display: none;
  }
  .header-row {
    height: 64px;
  }
  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0 11px;
    background: none;
    border: 0;
    cursor: pointer;
  }
  .menu-toggle span:not(.sr-only) {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.2s;
  }
  .menu-toggle[aria-expanded='true'] span:nth-of-type(2) {
    transform: translateY(3.5px) rotate(45deg);
  }
  .menu-toggle[aria-expanded='true'] span:nth-of-type(3) {
    transform: translateY(-3.5px) rotate(-45deg);
  }
  .mobile-nav:not([hidden]) {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px var(--gutter) 20px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    animation: fade-up 0.35s var(--ease);
  }
  .mobile-nav a:not(.btn) {
    padding: 12px 0;
    text-decoration: none;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--line);
  }
  .mobile-nav .btn {
    margin-top: 14px;
  }
  .hero h1 {
    font-size: clamp(2.6rem, 12vw, 3.6rem);
  }
  .hero-actions,
  .hero-actions .btn {
    width: 100%;
  }
  .stage {
    height: 300px;
    padding: 22px 14px 0;
  }
  .stage-frame {
    width: 170%;
    border-radius: 10px 10px 0 0;
  }
  .frame-bar {
    height: 26px;
  }
  .toasts {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
  }
  .toast:not(:last-child) {
    display: none;
  }
  .role-cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .role-media {
    height: 320px;
  }
  .iphone {
    width: 52%;
    margin-left: -26%;
  }
  .proof-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .proof-grid > div,
  .proof-grid > div:first-child {
    padding: 24px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .proof-grid > div:first-child {
    border-top: 0;
  }
  .timeline,
  .feature-list,
  .local-list,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .tile-media {
    height: 220px;
    padding: 20px 0 0 20px;
  }
  .tile-copy {
    padding: 22px 22px 26px;
  }
  .price-card {
    padding: 28px 22px;
  }
  .cta-actions .btn {
    width: 100%;
  }
  .theme-toggle {
    margin-left: auto;
  }
  .menu-toggle {
    margin-left: 0;
  }
  .footer-bottom .made {
    margin-left: 0;
  }
}
