/* Home page only. Privacy and Terms use style.css, which is also copied into the app. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin.woff2") format("woff2");
  font-weight: 600 800;
  font-stretch: 100% 125%;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink-950: #0B0D10;
  --ink-900: #111419;
  --ink-800: #181C22;
  --ink-700: #232830;
  --paper-50: #FAF8F4;
  --paper-100: #F4F0EA;
  --paper-200: #E9E3DA;
  --orange-500: #E8590C;
  --orange-400: #FB7A2E;
  --orange-700: #C2410C;
  --orange-soft: #FDEEE4;

  --font-display: "Archivo", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1200px;
  --gutter: 16px;
  --section: clamp(80px, 12vw, 152px);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(11, 13, 16, .06), 0 2px 6px rgba(11, 13, 16, .05);
  --shadow-md: 0 2px 4px rgba(11, 13, 16, .05), 0 12px 32px rgba(11, 13, 16, .10);
  --shadow-device: 0 2px 6px rgba(0, 0, 0, .22), 0 30px 60px -20px rgba(0, 0, 0, .45), 0 60px 120px -40px rgba(0, 0, 0, .35);

  --dur-fast: 160ms;
  --dur-base: 280ms;
  --dur-slow: 700ms;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-emph: cubic-bezier(.3, 0, 0, 1);

  color-scheme: light;
  interpolate-size: allow-keywords;
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1200px) { :root { --gutter: 32px; } }

/* Section themes: every section sets its own colours, so the page keeps its rhythm in any OS theme. */
.dark {
  --bg: var(--ink-900);
  --surface: var(--ink-800);
  --surface-2: var(--ink-700);
  --fg: #F4F1EC;
  --muted: #9EA3AB;
  --line: rgba(255, 255, 255, .09);
  --accent: var(--orange-400);
  color-scheme: dark;
}
.light, .paper {
  --bg: var(--paper-100);
  --surface: #FFFFFF;
  --surface-2: var(--paper-50);
  --fg: #17150F;
  --muted: #5E5850;
  --line: rgba(23, 21, 15, .11);
  --accent: var(--orange-700);
}
.paper { --bg: var(--paper-50); --surface-2: var(--paper-100); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink-950);
  color: #17150F;
  font: 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
section { background: var(--bg); color: var(--fg); position: relative; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--orange-400); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--orange-500); color: var(--ink-950); padding: 10px 16px; border-radius: var(--radius); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Type ---------- */
.display-xl, .display-l, .display-m, .spec-value, .brand span, .plan h3, .plan-price {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 800;
}
.display-xl { font-size: clamp(44px, 7.4vw, 96px); line-height: .96; letter-spacing: -0.035em; margin: 0 0 24px; }
.display-l { font-size: clamp(34px, 5vw, 62px); line-height: 1.0; letter-spacing: -0.03em; margin: 0 0 20px; text-wrap: balance; }
.display-m { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.12; letter-spacing: -0.015em; font-weight: 700; margin: 0 0 10px; text-wrap: balance; }
.display-xl em { font-style: normal; color: var(--orange-400); }
.hero .display-xl { font-size: clamp(38px, 8.4vw, 64px); }
@media (min-width: 900px) { .hero .display-xl { font-size: clamp(46px, 5.1vw, 72px); } }
@media (max-width: 639px) { .hero .display-xl { font-stretch: 100%; } }
.display-xl .line { display: block; }
.lead { font-size: clamp(18px, 1.55vw, 21px); line-height: 1.5; color: var(--muted); margin: 0 0 28px; max-width: 34em; text-wrap: pretty; }
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font: 700 12.5px/1.2 var(--font-display);
  font-stretch: 125%;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px;
  border-radius: var(--radius);
  font: 600 16px/1 var(--font-body);
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast), border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { background: var(--orange-500); color: var(--ink-950); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 20px -6px rgba(232, 89, 12, .55); }
.btn-primary:hover { background: #F06A1F; transform: translateY(-1px); }
.btn-ghost { color: var(--fg); border: 1px solid var(--line); background: transparent; }
.btn-ghost:hover { border-color: currentColor; transform: translateY(-1px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }

.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 8px 20px 8px 16px;
  border-radius: var(--radius);
  background: #F4F1EC; color: var(--ink-950);
  font: 700 21px/1.05 var(--font-body); letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform .15s ease;
}
.store-badge:hover { transform: translateY(-1px); }
.store-badge:focus-visible { outline: 2px solid var(--orange-500); outline-offset: 3px; }
.store-badge small { display: block; font-size: 11.5px; font-weight: 500; letter-spacing: 0; opacity: .75; }
.light .store-badge, .paper .store-badge { background: var(--ink-950); color: #F4F1EC; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: #F4F1EC;
  transition: background-color var(--dur-base), box-shadow var(--dur-base), backdrop-filter var(--dur-base);
}
.nav.is-scrolled, .nav.is-open {
  background: rgba(11, 13, 16, .82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .07);
}
.nav-inner { max-width: var(--wrap); margin: 0 auto; padding: 12px var(--gutter); display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-size: 19px; letter-spacing: -0.01em; }
.brand img { border-radius: 8px; }
.brand span { font-weight: 800; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { color: #C9CCD1; text-decoration: none; font-size: 15px; padding: 10px 12px; border-radius: 8px; transition: color var(--dur-fast), background-color var(--dur-fast); }
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav-toggle { display: none; }

@media (max-width: 899px) {
  .nav-cta { margin-left: auto; }
  .nav-toggle {
    display: inline-grid; place-content: center; gap: 6px;
    width: 44px; height: 44px; margin-right: -8px;
    background: none; border: 0; color: inherit; cursor: pointer; border-radius: 10px;
  }
  .nav-toggle span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform var(--dur-base) var(--ease-emph); }
  .nav.is-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav-toggle span:last-child { transform: translateY(-4px) 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: rgba(11, 13, 16, .96);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .07), 0 24px 40px -20px rgba(0, 0, 0, .6);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity var(--dur-base), transform var(--dur-base) var(--ease-out), visibility 0s linear var(--dur-base);
  }
  .nav-links a { font-size: 18px; padding: 14px 4px; border-bottom: 1px solid rgba(255, 255, 255, .07); border-radius: 0; }
  .nav.is-open .nav-links { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .no-js .nav-links { display: none; }
  .no-js .nav-toggle { display: none; }
}
@media (max-width: 459px) { .nav-cta { display: none; } .nav-toggle { margin-left: auto; } }

/* ---------- Device frame ---------- */
.device {
  position: relative;
  width: 100%;
  padding: 2.6%;
  border-radius: 15.5% / 7.2%;
  background: linear-gradient(145deg, #3A3F47 0%, #15181C 40%, #23272D 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), inset 0 0 0 3px #0A0B0D, var(--shadow-device);
  margin: 0;
}
.device-screen { position: relative; overflow: hidden; border-radius: 13.4% / 6.2%; background: #000; }
.device-screen img { width: 100%; }
.device-screen::after {
  /* Dynamic Island */
  content: ""; position: absolute; top: 1.3%; left: 50%;
  width: 29%; height: 3.6%;
  transform: translateX(-50%);
  border-radius: 999px; background: #000;
}

/* ---------- Hero ---------- */
.hero { --bg: var(--ink-950); overflow: hidden; padding-top: 96px; }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 78% 30%, rgba(232, 89, 12, .22), transparent 70%),
    radial-gradient(40% 40% at 10% 0%, rgba(255, 255, 255, .05), transparent 70%);
}
.hero-glow::after {
  /* faint tape-measure grid */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(70% 60% at 60% 30%, #000 20%, transparent 75%);
}
.hero-grid { position: relative; display: grid; gap: 24px; padding-top: 24px; }
.hero-copy { position: relative; z-index: 2; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.hero-note { color: var(--muted); font-size: 14px; margin: 0; }

.hero-visual { position: relative; height: 430px; margin: -8px calc(var(--gutter) * -1) 0; }
.hero-visual .device { position: absolute; bottom: 0; }
.spec-value .nw { white-space: nowrap; }
@media (max-width: 899px) {
  /* Phones are cut cleanly at the bottom of the hero instead of spilling past the spec plates. */
  .hero-visual { overflow: hidden; }
  .hero-visual::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56px; z-index: 5; background: linear-gradient(transparent, var(--ink-950)); pointer-events: none; }
  .specs { margin-top: 0; }
}
.device-front { width: 236px; left: 50%; margin-left: -118px; bottom: -150px !important; z-index: 3; }
.device-back { width: 190px; z-index: 1; filter: brightness(.62) saturate(.9); }
.device-left { left: 50%; margin-left: -250px; bottom: -110px !important; transform: rotate(-7deg); }
.device-right { left: 50%; margin-left: 60px; bottom: -110px !important; transform: rotate(7deg); }

.chip-float {
  position: absolute; z-index: 4;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 12px;
  border-radius: 14px;
  background: rgba(24, 28, 34, .86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .55);
  color: #F4F1EC; font-size: 13px; line-height: 1.25;
}
.chip-float strong { display: block; font-weight: 650; }
.chip-float span { white-space: nowrap; }
.chip-float small { color: #9EA3AB; font-size: 12px; }
.chip-paid { right: 12px; top: 70px; }
@media (min-width: 640px) and (max-width: 899px) { .chip-paid { right: auto; left: calc(50% + 70px); } }
.chip-offline { right: calc(50% + 50px); top: 210px; color: #F4F1EC; }
.chip-offline svg { color: var(--orange-400); flex: none; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot-green { background: #22C55E; box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }

@media (min-width: 900px) {
  .hero { padding-top: 120px; }
  .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr); align-items: center; min-height: 640px; gap: 32px; }
  .hero-visual { height: 640px; margin: 0; }
  .device-front { width: 292px; margin-left: -146px; bottom: 10px !important; }
  .device-back { width: 230px; }
  .device-left { margin-left: -262px; bottom: 50px !important; }
  .device-right { margin-left: 32px; bottom: 50px !important; }
  .chip-paid { right: auto; left: min(calc(50% + 70px), calc(100% - 200px)); top: 120px; }
  .chip-offline { right: calc(50% + 110px); top: auto; bottom: 140px; }
}

/* Spec plates */
.specs {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  position: relative; z-index: 3;
  background: var(--ink-950);
}
.spec { padding: 22px 16px 26px; border-bottom: 1px solid var(--line); position: relative; }
.spec:nth-child(odd) { border-right: 1px solid var(--line); }
.spec::before {
  /* tape ticks along the top edge */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 7px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .22) 0 1px, transparent 1px 12px);
}
.spec-label { display: block; font: 700 11.5px/1 var(--font-display); font-stretch: 125%; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-400); margin: 16px 0 10px; }
.spec-value { display: block; font-size: clamp(19px, 2.1vw, 26px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; margin-bottom: 8px; }
.spec-note { display: block; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
@media (min-width: 900px) {
  .specs { grid-template-columns: repeat(4, 1fr); margin-top: 8px; }
  .spec, .spec:nth-child(odd) { padding: 28px 24px 40px; border-right: 1px solid var(--line); border-bottom: 0; }
  .spec:first-child { padding-left: 0; }
  .spec:last-child { border-right: 0; }
}
.hero > .wrap:last-child { padding-bottom: clamp(48px, 7vw, 88px); }

/* ---------- Job lifecycle ---------- */
.flow { padding-top: var(--section); }
.flow-head { max-width: var(--wrap); }
.flow-head .lead { margin-bottom: 40px; }

.flow-rail { position: relative; height: 18px; margin-bottom: 6px; }
.rail-ticks {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 10px) bottom / 100% 8px no-repeat,
    repeating-linear-gradient(90deg, rgba(23, 21, 15, .3) 0 1px, transparent 1px 50px) bottom / 100% 16px no-repeat;
  border-bottom: 2px solid var(--line);
}
.rail-fill {
  position: absolute; left: 0; bottom: -2px; height: 2px; width: var(--fill, 12.5%);
  background: var(--orange-500);
  box-shadow: 0 0 12px rgba(232, 89, 12, .5);
  transition: width var(--dur-base) var(--ease-out);
}
.rail-fill::after { content: ""; position: absolute; right: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--orange-500); box-shadow: 0 0 0 4px rgba(232, 89, 12, .2); }
.flow-tabs { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 28px; }
.flow-tab {
  appearance: none; border: 0; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-height: 48px; padding: 8px 4px;
  font: 700 clamp(15px, 1.6vw, 19px)/1.1 var(--font-display); font-stretch: 112%;
  color: var(--muted);
  transition: color var(--dur-base);
}
.tab-num { font-size: 11px; letter-spacing: .14em; font-stretch: 125%; opacity: .7; }
.flow-tab.is-active, .flow-tab:hover { color: var(--fg); }
.flow-tab.is-active .tab-num { color: var(--accent); opacity: 1; }

.flow-steps { list-style: none; margin: 0; padding: 0 0 var(--section); }
.step { display: grid; gap: 28px; }
.step-copy { max-width: 30em; }
.step-copy p { color: var(--muted); margin: 0 0 18px; }
.step-action {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px !important; border-radius: var(--radius);
  background: var(--orange-500); color: var(--ink-950) !important;
  font-weight: 650; font-size: 15px;
  box-shadow: 0 8px 24px -10px rgba(232, 89, 12, .7);
}
.step-action span { font: 700 10.5px/1 var(--font-display); font-stretch: 125%; letter-spacing: .12em; text-transform: uppercase; background: rgba(11, 13, 16, .14); padding: 6px 8px; border-radius: 6px; }
.step-phone { margin: 0; }
.step-phone .device { width: min(250px, 66vw); margin: 0 auto; }

.status {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 13px/1 var(--font-body);
  padding: 6px 10px; border-radius: 999px; margin-bottom: 14px;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-neutral { background: #EEEEF2; color: #52525B; }
.status-accent { background: #FFEDD5; color: #9A3412; }
.status-info { background: #DBEAFE; color: #1E40AF; }
.status-warning { background: #FEF3C7; color: #92400E; }
.status-success { background: #DCFCE7; color: #166534; }
.status-danger { background: #FEE2E2; color: #991B1B; }

/* Mobile: a swipeable sequence */
@media (max-width: 899px) {
  .js .flow-steps {
    display: flex; gap: 12px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding: 4px var(--gutter) var(--section);
    margin: 0 calc(var(--gutter) * -1);
    scrollbar-width: none;
  }
  .js .flow-steps::-webkit-scrollbar { display: none; }
  .js .step {
    flex: 0 0 min(86%, 420px); scroll-snap-align: center;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 24px 20px 0; overflow: hidden;
    box-shadow: var(--shadow-sm);
    align-content: start;
  }
  .js .step .display-m { font-size: 22px; }
  .js .step-copy p { font-size: 15.5px; margin-bottom: 14px; }
  .js .step-copy .step-action { white-space: nowrap; font-size: 14.5px; gap: 8px; }
  .js .step-copy .step-action span { font-size: 9.5px; padding: 5px 6px; }
  /* Show the lower part of the phone, where the app's orange next-step button sits. */
  .js .step-phone { height: 260px; overflow: hidden; margin: 0 -20px; padding-bottom: 20px; display: flex; justify-content: center; align-items: flex-end; mask-image: linear-gradient(transparent, #000 22%); }
  .js .step-phone .device { flex: none; width: 210px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .4), inset 0 0 0 1px rgba(255, 255, 255, .14), inset 0 0 0 3px #0A0B0D; }
  .no-js .step { padding-bottom: 56px; }
}

/* Desktop: pinned stage, the scroll moves the job along */
@media (min-width: 900px) {
  .flow-steps { padding-bottom: 0; }
  .no-js .flow-steps { display: grid; gap: 96px; padding-bottom: var(--section); }
  .no-js .step { grid-template-columns: 1fr 1fr; align-items: center; }
  .js .flow-track { height: 330vh; }
  .js .flow-stage { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding-top: 56px; }
  .js .flow-stage > .wrap { width: 100%; }
  .js .flow-steps { --stage-h: min(600px, calc(100vh - 230px)); position: relative; height: var(--stage-h); }
  .js .step {
    position: absolute; inset: 0;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 48px;
    visibility: hidden;
    transition: visibility 0s linear var(--dur-slow);
  }
  .js .step-copy { opacity: 0; transform: translateY(24px); transition: opacity var(--dur-base), transform var(--dur-slow) var(--ease-emph); }
  .js .step-phone { opacity: 0; transform: translateY(40px) scale(.97); transition: opacity var(--dur-base), transform var(--dur-slow) var(--ease-emph); }
  .js .step-phone .device { width: calc(var(--stage-h) * .47); }
  .js .step.is-active { visibility: visible; transition-delay: 0s; }
  .js .step.is-active .step-copy, .js .step.is-active .step-phone { opacity: 1; transform: none; transition-delay: 80ms; }
  .js .step.is-active .step-copy { transition-delay: 0s; }
  .step-copy .display-m { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.025em; font-weight: 800; }
  .step-copy p { font-size: 18px; }
}

/* ---------- Features ---------- */
.feature { padding: var(--section) 0; overflow: hidden; }
.feature-grid { display: grid; gap: 48px; align-items: center; }
.feature-head { max-width: 760px; margin-bottom: 40px; }
.feature-phone { margin: 0; }
.feature-phone .device { width: min(280px, 72vw); margin: 0 auto; }
@media (min-width: 900px) {
  .feature-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
  .feature-phone .device { width: 320px; }
}

/* Quoting: phone with the quote laid over it */
.quote-visual { position: relative; display: grid; justify-items: center; }
.ticket {
  position: relative; z-index: 2;
  width: min(420px, 100%); margin-top: -260px;
  background: var(--surface); border-radius: var(--radius-lg);
  border: 1px solid var(--line); box-shadow: 0 30px 60px -24px rgba(11, 13, 16, .35), var(--shadow-sm);
  padding: 4px 20px 0;
  font-size: 15px;
}
.ticket-head { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 14px 0 12px; border-bottom: 2px solid var(--fg); font-size: 12.5px; color: var(--muted); }
.ticket-head span:first-child { white-space: nowrap; font: 700 12px/1.4 var(--font-display); font-stretch: 125%; letter-spacing: .1em; text-transform: uppercase; color: var(--fg); }
.ticket-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ticket-row strong { display: block; font-weight: 600; line-height: 1.3; }
.ticket-row small { color: var(--muted); font-size: 13px; }
.ticket-row .num { font-weight: 600; white-space: nowrap; }
.ticket-sum { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 12px 0; color: var(--muted); }
.ticket-sum .num { text-align: right; }
.ticket-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 0 -20px; padding: 16px 20px;
  background: var(--ink-950); color: #F4F1EC;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  font-weight: 600;
}
.ticket-total .num { font: 800 26px/1 var(--font-display); font-stretch: 105%; letter-spacing: -0.02em; color: #fff; }
.feature-quote .ticks { margin-top: -4px; }
@media (min-width: 900px) {
  .quote-visual { display: block; min-height: 700px; }
  .quote-visual .feature-phone { position: absolute; left: 0; top: 0; }
  .quote-visual .feature-phone .device { width: 300px; transform: rotate(-4deg); }
  .ticket { position: absolute; right: 0; bottom: 20px; margin: 0; width: 380px; }
}

/* Invoicing: paper with callouts */
.feature-invoice { --bg: var(--ink-900); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; line-height: 1.45; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 6px;
  background: rgba(232, 89, 12, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23FB7A2E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.light .ticks li::before, .paper .ticks li::before {
  background-color: var(--orange-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23C2410C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.paper-doc { margin: 0; perspective: 1600px; }
.paper-sheet {
  position: relative; max-width: 520px; margin: 0 auto;
  border-radius: 6px; background: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 40px 80px -30px rgba(0, 0, 0, .7), 0 20px 40px -20px rgba(0, 0, 0, .5);
  transform: rotate(2deg);
  transition: transform var(--dur-slow) var(--ease-emph);
}
.paper-sheet img { border-radius: 6px; }
.paper-sheet:hover { transform: rotate(0.5deg) translateY(-4px); }
.callout {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 8px; border-radius: 999px;
  background: var(--orange-500); color: var(--ink-950);
  font: 700 12px/1 var(--font-display); font-stretch: 112%; letter-spacing: .02em; white-space: nowrap;
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .5);
}
.callout i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-950); box-shadow: 0 0 0 3px rgba(11, 13, 16, .2); }
.callout-logo { top: -16px; left: 6%; }
.callout-gst { top: 20.5%; right: -6px; }
.callout-total { top: 63%; right: -6px; }
.callout-bank { top: 72%; left: -6px; }
@media (min-width: 900px) {
  .feature-invoice .feature-copy { order: 0; }
  .callout-gst { top: 16%; right: -40px; }
  .callout-total { right: -44px; }
  .callout-bank { left: -48px; }
}

/* Payments */
.pay-grid { display: grid; gap: 40px; align-items: center; }
.pills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; font-weight: 550; box-shadow: var(--shadow-sm); }
.pay-visual { position: relative; display: grid; justify-items: center; }
.sms {
  margin: -120px 0 0; position: relative; z-index: 2;
  width: min(360px, 92%);
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 14px 14px 12px; box-shadow: var(--shadow-md);
}
.sms figcaption { font-size: 12px; color: var(--muted); text-align: center; margin-bottom: 10px; font-weight: 600; }
.bubble {
  margin: 0 0 8px auto; max-width: 92%;
  background: #1E7B34; color: #fff;
  padding: 10px 14px; border-radius: 18px 18px 4px 18px;
  font-size: 14.5px; line-height: 1.4;
}
.sms-meta { margin: 0; text-align: right; font-size: 12px; color: var(--muted); }
@media (min-width: 900px) {
  .pay-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; }
  .pay-visual { grid-template-columns: auto 1fr; align-items: center; justify-items: start; }
  .pay-visual .feature-phone .device { width: 300px; }
  .sms { margin: 0 0 0 -60px; width: 380px; }
}

/* Reports duo */
.feature-reports { --bg: var(--ink-950); }
.pro-note { display: flex; align-items: center; gap: 10px; color: var(--muted); margin: 0; }
.tag { font: 700 11px/1 var(--font-display); font-stretch: 125%; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-950); background: var(--orange-400); padding: 5px 8px; border-radius: 6px; }
.duo { position: relative; height: 560px; margin: 0; }
.duo .device { position: absolute; }
.duo-back { width: 200px; right: 50%; margin-right: -10px; top: 0; transform: rotate(-5deg); filter: brightness(.75); }
.duo-front { width: 230px; left: 50%; margin-left: -40px; top: 60px; }
@media (min-width: 900px) {
  .duo { height: 680px; }
  .duo-back { width: 260px; margin-right: 0; }
  .duo-front { width: 300px; margin-left: -60px; top: 70px; }
}

/* ---------- Bento ---------- */
.details { padding: var(--section) 0; }
.bento { display: grid; gap: 16px; }
.card {
  position: relative; overflow: hidden;
  background: var(--surface); color: var(--fg);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card p { color: var(--muted); margin: 0; }
.card-head p { max-width: 34em; }
.card.dark { --surface: var(--ink-900); }
.card.accent { --surface: var(--orange-soft); --line: rgba(194, 65, 12, .18); }

.gst { margin-top: 28px; }
.seg { display: inline-grid; grid-template-columns: repeat(3, auto); gap: 4px; padding: 4px; border-radius: 12px; background: var(--paper-100); border: 1px solid var(--line); }
.seg button {
  appearance: none; border: 0; cursor: pointer;
  min-height: 44px; padding: 4px 14px; border-radius: 9px;
  background: transparent; color: var(--muted);
  font: 600 14.5px/1.15 var(--font-body);
  transition: background-color var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-fast);
}
@media (max-width: 479px) { .seg { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; } .seg button { padding: 4px 6px; font-size: 14px; } }
.seg button[aria-checked="true"] { background: #fff; color: var(--fg); box-shadow: var(--shadow-sm); }
.gst-sum { margin: 20px 0 0; display: grid; gap: 0; max-width: 420px; }
.gst-sum div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.gst-sum dt { color: var(--muted); }
.gst-sum dd { margin: 0; font-weight: 600; }
.gst-total { border-bottom: 0 !important; padding-top: 14px !important; }
.gst-total dt { color: var(--fg); font-weight: 600; }
.gst-total dd { font: 800 clamp(28px, 3.2vw, 40px)/1 var(--font-display); font-stretch: 105%; letter-spacing: -0.025em; }
.gst-sum dd.is-flip { animation: flip var(--dur-base) var(--ease-out); }
@keyframes flip { from { opacity: 0; transform: translateY(8px); } }

.card-offline { padding: 0; min-height: 440px; display: flex; align-items: flex-end; border-color: transparent; }
.card-photo, .card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 13, 16, .1) 20%, rgba(11, 13, 16, .92) 78%); }
.card-offline .card-body { position: relative; padding: 28px; }
.signal { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #F4F1EC !important; background: rgba(11, 13, 16, .6); border: 1px solid rgba(255, 255, 255, .12); padding: 6px 10px; border-radius: 999px; margin-bottom: 14px !important; }
.signal svg { color: var(--orange-400); }
.card-offline:hover .card-photo img { transform: scale(1.03); }
.card-photo img { transition: transform 1.2s var(--ease-out); }

.owed { display: flex; flex-direction: column; margin: 18px 0 14px !important; color: var(--muted); font-size: 14px; }
.owed-label { font: 700 11px/1 var(--font-display); font-stretch: 125%; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
.owed strong { font: 800 40px/1 var(--font-display); font-stretch: 105%; letter-spacing: -0.03em; color: var(--fg); margin-bottom: 4px; }
.owed-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.owed-chips .status { margin: 0; }

.bars { display: flex; align-items: flex-end; gap: 8px; height: 140px; margin: 22px 0 10px; padding-bottom: 22px; }
.bars span { position: relative; flex: 1; height: calc(var(--h) * 100%); border-radius: 6px; background: var(--paper-200); transform-origin: bottom; }
.bars span.now { background: var(--orange-500); }
.bars i { position: absolute; bottom: -22px; left: 0; right: 0; text-align: center; font-style: normal; font-size: 12px; color: var(--muted); }
.js .bars span { transform: scaleY(.05); transition: transform 900ms var(--ease-emph); }
.js .card-chart.is-in .bars span { transform: none; }
.js .card-chart.is-in .bars span:nth-child(2) { transition-delay: 60ms; }
.js .card-chart.is-in .bars span:nth-child(3) { transition-delay: 120ms; }
.js .card-chart.is-in .bars span:nth-child(4) { transition-delay: 180ms; }
.js .card-chart.is-in .bars span:nth-child(5) { transition-delay: 240ms; }
.js .card-chart.is-in .bars span:nth-child(6) { transition-delay: 300ms; }
.card-foot { font-size: 12.5px; margin-top: 8px !important; }

.card-data { display: grid; gap: 24px; align-items: center; }
.backup { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.file {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 12.5px; color: var(--muted); max-width: 230px;
}
.file b { font: 800 16px/1 var(--font-display); font-stretch: 112%; color: var(--fg); }
.arrow { font-size: 22px; color: var(--orange-700); }
.dests { display: flex; flex-direction: column; gap: 6px; }
.dests span { padding: 6px 12px; border-radius: 8px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }

@media (min-width: 640px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .card-gst, .card-offline, .card-data { grid-column: span 2; }
  .card-offline { min-height: 380px; }
}
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .card-gst { grid-column: span 4; }
  .card-offline { grid-column: span 2; grid-row: span 2; min-height: 0; }
  .card-owed, .card-chart { grid-column: span 2; }
  .card-data { grid-column: span 6; grid-template-columns: 1fr auto; padding: 32px 36px; }
}

/* ---------- Pricing ---------- */
.pricing { padding: var(--section) 0 0; }
.plans { display: grid; gap: 16px; }
.plan {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 28px; box-shadow: var(--shadow-sm);
}
.plan header { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px dashed var(--line); }
.plan h3 { margin: 0 0 14px; font-size: 22px; letter-spacing: -0.015em; }
.plan-price { margin: 0 0 6px; font-size: 48px; line-height: 1; letter-spacing: -0.03em; }
.plan-price-sm { font-size: 30px; }
.plan-sub { margin: 0; color: var(--muted); font-size: 15px; }
.plan-note { margin: 22px 0 0; color: var(--muted); font-size: 14px; }
.plan-pro { background: var(--ink-950); color: #F4F1EC; --muted: #A4A9B1; --line: rgba(255, 255, 255, .12); border-color: transparent; position: relative; overflow: hidden; box-shadow: var(--shadow-md); }
.plan-pro::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 100% 0%, rgba(232, 89, 12, .28), transparent 70%); pointer-events: none; }
.plan-pro > * { position: relative; }
.plan-pro .ticks li::before {
  background-color: rgba(232, 89, 12, .2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23FB7A2E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.plate {
  display: inline-block; margin: 0 0 16px;
  font: 700 11px/1 var(--font-display); font-stretch: 125%; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange-400); padding: 8px 10px; border: 1px solid rgba(251, 122, 46, .45); border-radius: 4px;
}
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; gap: 20px; } .plan { padding: 40px; } }

/* ---------- FAQ ---------- */
.faq { padding: var(--section) 0; }
.faq-grid { display: grid; gap: 24px; }
.faq-more { color: var(--muted); margin: 0; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 64px; padding: 16px 0;
  font-weight: 650; font-size: 18px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M9 14h10M14 9v10' stroke='%23C2410C' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 28px no-repeat;
  border: 1px solid var(--line);
  transition: transform var(--dur-base) var(--ease-emph);
}
details[open] summary::after { transform: rotate(45deg); }
summary:hover { color: var(--accent); }
details::details-content { block-size: 0; overflow: hidden; transition: block-size var(--dur-base) var(--ease-out), content-visibility var(--dur-base) allow-discrete; }
details[open]::details-content { block-size: auto; }
.answer p { color: var(--muted); margin: 0; padding: 0 44px 22px 0; max-width: 40em; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; } }

/* ---------- Final CTA ---------- */
.final { --bg: var(--ink-950); overflow: hidden; padding: clamp(120px, 16vw, 200px) 0; isolation: isolate; }
.final-photo, .final-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 60%; z-index: -2; }
.final::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, var(--ink-950) 0%, rgba(11, 13, 16, .15) 18%, rgba(11, 13, 16, 0) 60%, var(--ink-950) 100%),
    linear-gradient(90deg, rgba(11, 13, 16, .94) 0%, rgba(11, 13, 16, .72) 42%, rgba(11, 13, 16, .2) 78%, rgba(11, 13, 16, 0) 100%);
}
.final-inner { max-width: var(--wrap); }
.final .display-xl { max-width: 11em; }
.final .lead { color: #C3C7CD; }
@media (max-width: 899px) {
  .final::before { background: linear-gradient(180deg, var(--ink-950) 0%, rgba(11, 13, 16, .7) 30%, rgba(11, 13, 16, .85) 100%); }
}

/* ---------- Footer ---------- */
.foot { --bg: var(--ink-950); background: var(--ink-950); color: #F4F1EC; padding: 56px 0 40px; border-top: 1px solid rgba(255, 255, 255, .07); }
.foot-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.foot-brand { grid-column: 1 / -1; }
.foot-brand p { color: #9EA3AB; margin: 12px 0 0; max-width: 26em; font-size: 15px; }
.foot h2 { font: 700 11.5px/1 var(--font-display); font-stretch: 125%; letter-spacing: .14em; text-transform: uppercase; color: #9EA3AB; margin: 6px 0 14px; }
.foot nav a, .foot-grid > div:last-child a { display: block; color: #E4E1DC; text-decoration: none; padding: 6px 0; font-size: 15px; }
.foot nav a:hover, .foot-grid > div:last-child a:hover { color: var(--orange-400); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .07); color: #8A8F97; font-size: 13px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; } .foot-brand { grid-column: auto; } }

/* ---------- Mobile dock: the download prompt once the hero has gone ---------- */
.dock { display: none; }
@media (max-width: 899px) {
  .js .dock {
    position: fixed; z-index: 40;
    left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom));
    display: flex; align-items: center; gap: 12px;
    padding: 10px 10px 10px 12px;
    border-radius: 18px;
    background: rgba(17, 20, 25, .9);
    -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .6);
    color: #F4F1EC;
    transform: translateY(calc(100% + 24px)); opacity: 0;
    transition: transform var(--dur-slow) var(--ease-emph), opacity var(--dur-base);
  }
  .js .dock.is-shown { transform: none; opacity: 1; }
  .dock img { border-radius: 9px; flex: none; }
  .dock p { margin: 0; flex: 1; min-width: 0; line-height: 1.25; }
  .dock strong { display: block; font: 800 15px/1.2 var(--font-display); font-stretch: 112%; }
  .dock span { display: block; font-size: 13px; color: #9EA3AB; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dock .btn { flex: none; min-height: 44px; }
}

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.js .rise { animation: rise var(--dur-slow) var(--ease-emph) both; }
.js .hero-copy .rise:nth-child(2) { animation-delay: 80ms; }
.js .hero-copy .rise:nth-child(3) { animation-delay: 180ms; }
.js .hero-copy .rise:nth-child(4) { animation-delay: 260ms; }
.js .hero-copy .rise:nth-child(5) { animation-delay: 320ms; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-emph); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

.js .hero-visual .device, .js .chip-float { opacity: 0; transition: opacity 900ms var(--ease-out), translate 1100ms var(--ease-emph); translate: 0 60px; }
.js .hero.is-in .hero-visual .device, .js .hero.is-in .chip-float { opacity: 1; translate: 0 0; }
.js .hero.is-in .device-front { transition-delay: 250ms; }
.js .hero.is-in .device-back { transition-delay: 400ms; }
.js .hero.is-in .chip-paid { transition-delay: 900ms; }
.js .hero.is-in .chip-offline { transition-delay: 1050ms; }
.hero .device-back { opacity: .95; }

@keyframes float { 50% { transform: translateY(-8px); } }
.hero.is-in .float { animation: float 7s ease-in-out 1.6s infinite; }
.hero.is-paused .float { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .hero-visual .device, .js .chip-float { transform: none; translate: none; }
}
