:root {
  --brand: #ea580c;
  --brand-dark: #c2410c;
  --brand-soft: #fff7ed;
  --brand-line: #fed7aa;
  --ink: #1c1917;
  --ink-soft: #44403c;
  --mute: #78716c;
  --line: #e7e5e4;
  --bg: #fffdf9;
  --card: #ffffff;
  --alt: #fbf7f1;
  --ok: #15803d;
  --radius: 14px;
  color-scheme: light;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.55; }
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
a { color: var(--brand-dark); }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .9em; background: var(--brand-soft); border: 1px solid var(--brand-line); border-radius: 5px; padding: 1px 5px; overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: rgba(255, 253, 249, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .25s ease; }
.top.scrolled { box-shadow: 0 6px 24px -12px rgba(124, 45, 18, .25); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.brand img { border-radius: 8px; }
.top nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.top nav a { color: var(--ink-soft); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 15px; }
.top nav a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.top nav .nav-login { border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 600; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 20px; border-radius: 10px; font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s, border-color .15s; }
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand-line); background: var(--brand-soft); }
.btn[aria-disabled="true"] { background: #f5f5f4; color: var(--mute); border-color: var(--line); cursor: not-allowed; pointer-events: none; }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--brand-line); outline-offset: 2px; }

/* Hero */
.hero { position: relative; padding-block: 24px 40px; background: var(--bg); }
.hero-card { border-radius: 28px; padding: 40px 56px 48px; background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%); border: 1px solid #fed7aa; box-shadow: 0 24px 60px -36px rgba(124, 45, 18, .35); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow { margin: 0 0 14px; color: var(--brand-dark); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 3.75rem); line-height: 1.04; letter-spacing: -.025em; font-weight: 800; color: var(--ink); }
.hero h1 > span { display: block; }
.hero h1 em { font-style: normal; }
.lead { font-size: 1.15rem; color: var(--ink-soft); margin: 20px 0 28px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { color: var(--mute); font-size: 14px; margin: 16px 0 0; }

.bill { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 24px 48px -24px rgba(124, 45, 18, .25), 0 2px 6px rgba(28, 25, 23, .05); width: 100%; }
.bill-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.pill { background: #dcfce7; color: var(--ok); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.bill ul { list-style: none; margin: 0; padding: 12px 0; display: grid; gap: 8px; }
.bill li, .bill-sub, .bill-total { display: flex; justify-content: space-between; gap: 12px; }
.bill li span:last-child, .bill-sub span:last-child, .bill-total span:last-child { font-variant-numeric: tabular-nums; }
.bill-sub { color: var(--mute); font-size: 14px; padding-top: 10px; border-top: 1px dashed var(--line); }
.bill-sub.tax { padding-top: 4px; border-top: 0; }
.bill-total { font-weight: 800; font-size: 20px; padding-top: 8px; }
.bill-pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.bill-pay span { text-align: center; padding: 9px 0; border-radius: 9px; background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; font-size: 14px; }
.bill-pay span:first-child { background: var(--brand); color: #fff; }

/* Sections */
.section { padding-block: 72px; }
.section-alt { background: var(--alt); border-block: 1px solid var(--line); }
.section h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -.01em; }
.section-lead { color: var(--ink-soft); margin: 10px 0 0; max-width: 46em; }
.status { color: var(--mute); font-size: 14px; margin: 8px 0 24px; min-height: 1.5em; }

/* Download cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.card-icon { width: 44px; height: 44px; border-radius: 11px; background: var(--brand-soft); display: grid; place-items: center; margin-bottom: 8px; }
.card-icon svg { width: 24px; height: 24px; fill: var(--brand); }
.card h3 { font-size: 20px; }
.card .for { margin: 0; color: var(--brand-dark); font-weight: 600; font-size: 14px; }
.card p { margin: 4px 0; color: var(--ink-soft); }
.req { margin: 6px 0 14px; padding-left: 18px; color: var(--mute); font-size: 14px; }
.card .dl { margin-top: auto; }
.meta { font-size: 13px; color: var(--mute) !important; min-height: 1.3em; }
.meta details { margin-top: 4px; }
.meta summary { cursor: pointer; }
.meta .hash { display: block; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12px; overflow-wrap: anywhere; margin-top: 4px; color: var(--ink-soft); }

.help { margin-top: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 20px; }
.help summary { cursor: pointer; font-weight: 600; }
.help p { color: var(--ink-soft); margin: 10px 0 0; }

/* Steps */
.steps { list-style: none; counter-reset: step; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 14px; }
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; margin-top: 32px; }
.feature { border-top: 3px solid var(--brand-line); padding-top: 16px; }
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--ink-soft); }

/* Plans */
.plans { display: grid; grid-template-columns: minmax(0, 460px); justify-content: center; margin-top: 40px; }
.plan-foot { margin: 14px 0 0; color: var(--mute); font-size: 14px; text-align: center; }
.plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px 24px; display: flex; flex-direction: column; }
.plan-best { border: 2px solid var(--brand); box-shadow: 0 24px 48px -28px rgba(124, 45, 18, .35); }
.badge { position: absolute; top: -13px; left: 24px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .03em; padding: 4px 12px; border-radius: 99px; }
.plan h3 { font-size: 20px; }
.plan-for { margin: 4px 0 0; color: var(--mute); font-size: 14px; }
.price { margin: 18px 0 16px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price .amt { font-size: 2.25rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price .per { color: var(--mute); font-size: 15px; }
.ticks { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; color: var(--ink-soft); font-size: 15px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }
.plan .buy { margin-top: auto; }
.chosen { margin: 14px 0 0; background: #dcfce7; border: 1px solid #bbf7d0; color: #14532d; border-radius: 10px; padding: 12px 16px; max-width: 46em; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: 28px; color: var(--mute); font-size: 14px; }
.foot-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 18px; }
.foot a { color: var(--ink-soft); text-decoration: none; }
.foot a:hover { color: var(--brand-dark); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .bill-wrap { justify-self: start; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .hero { padding-block: 16px 32px; }
  .hero-card { padding: 28px 20px 32px; border-radius: 22px; }
  .section { padding-block: 52px; }
  .top nav a:not(.nav-login) { display: none; }
  .cta .btn { width: 100%; }
  .steps, .features { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ---------------------------------------------------------------- Motion
   Everything below only applies with html.motion (set by motion.js unless the visitor prefers reduced
   motion), so without JS the page is fully visible and still. */
:root { --ease: cubic-bezier(.2, .8, .2, 1); }

/* Hover and press feedback (always on; the reduced-motion block below turns movement off) */
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(234, 88, 12, .7); }
.btn-ghost:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.99); box-shadow: none; }
.card, .steps li, .plan { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover, .steps li:hover, .plan:hover,
.motion .card.settled:hover, .motion .steps li.settled:hover, .motion .plan.settled:hover {
  transform: translateY(-4px); border-color: var(--brand-line); box-shadow: 0 18px 36px -22px rgba(124, 45, 18, .35);
}
.card-icon { transition: transform .25s var(--ease), background .25s; }
.card:hover .card-icon { transform: rotate(-6deg) scale(1.08); background: #ffedd5; }

.hero-grid { position: relative; z-index: 1; }

/* Hero entry: text rises in, one line after another */
.motion .in { opacity: 0; animation: rise .8s var(--ease) forwards; }
.motion .d1 { animation-delay: .05s; }
.motion .d2 { animation-delay: .15s; }
.motion .d3 { animation-delay: .3s; }
.motion .d4 { animation-delay: .45s; }
.motion .d5 { animation-delay: .6s; }
.motion .d6 { animation-delay: .75s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.hero h1 em { background: linear-gradient(100deg, var(--brand) 30%, #fdba74 45%, var(--brand) 60%); background-size: 200% 100%; background-position: 0 0; -webkit-background-clip: text; background-clip: text; color: transparent; }
.motion .hero h1 em { animation: sheen 6s linear infinite; }
@keyframes sheen { from { background-position: -200% 0; } to { background-position: 200% 0; } }

/* Hero bill: slides in, the items "print" one by one, total counts up, payment confirms */
.bill-wrap { position: relative; justify-self: end; width: 100%; max-width: 380px; }
.motion .bill-wrap { animation: float 7s ease-in-out 3.2s infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.motion .bill { opacity: 0; animation: bill-in .9s var(--ease) .3s forwards; }
@keyframes bill-in { from { opacity: 0; transform: translateX(40px) rotate(3deg) scale(.96); } to { opacity: 1; transform: none; } }
.motion .bill li { opacity: 0; animation: line .45s var(--ease) forwards; }
.motion .bill li:nth-child(1) { animation-delay: .8s; }
.motion .bill li:nth-child(2) { animation-delay: 1s; }
.motion .bill li:nth-child(3) { animation-delay: 1.2s; }
.motion .bill li:nth-child(4) { animation-delay: 1.4s; }
@keyframes line { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.motion .bill-sub, .motion .bill-total, .motion .bill-pay { opacity: 0; animation: rise .5s var(--ease) 1.5s forwards; }
.motion .bill-pay { animation-delay: 1.7s; }
.motion .pill { opacity: 0; animation: pop .5s cubic-bezier(.3, 1.6, .5, 1) 1.9s forwards; }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
.motion .bill-pay span:first-child { animation: tap .5s ease 2.5s 1; }
@keyframes tap { 50% { transform: scale(.92); box-shadow: 0 0 0 6px rgba(234, 88, 12, .25); } }
.toast-kot { width: fit-content; margin: 16px auto 0; display: flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; padding: 10px 14px; border-radius: 12px; box-shadow: 0 14px 30px -12px rgba(28, 25, 23, .5); }
.toast-kot svg { width: 18px; height: 18px; fill: #4ade80; flex: none; }
.motion .toast-kot { opacity: 0; animation: toast-in .6s var(--ease) 2.9s forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.95); } to { opacity: 1; transform: none; } }

/* Sections reveal as they scroll into view (selector list mirrors REVEAL in motion.js) */
.motion :is(.section h2, .section-lead, .card, .help, .steps li, .feature, .plan) {
  opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.motion :is(.section h2, .section-lead, .card, .help, .steps li, .feature, .plan).shown { opacity: 1; transform: none; }
.motion :is(.card, .steps li, .plan).settled { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.motion .steps li.shown::before { animation: pop .5s cubic-bezier(.3, 1.6, .5, 1) .25s both; }
.motion .feature.shown { transition-property: opacity, transform, border-color; }
.feature { transition: border-color .3s ease; }
.feature:hover { border-top-color: var(--brand); }
.chosen:not([hidden]) { animation: rise .45s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  .btn, .card, .steps li, .plan, .card-icon, .feature { transition: none; }
  .btn:hover, .btn:active, .card:hover, .steps li:hover, .plan:hover, .card:hover .card-icon { transform: none; }
  .chosen:not([hidden]) { animation: none; }
}

/* ---------------------------------------------------------------- Hero kitchen (same wok animation as the POS login, on the light page)
   Wok on a flame tossing vegetables, with steam: keyframes copied from the desktop app's rp-* set. */
.kitchen { display: block; width: 100%; max-width: 420px; margin: 0 0 8px -16px; }
.motion .k-flame { transform-origin: 50% 100%; transform-box: fill-box; animation: k-flame .6s ease-in-out infinite; }
.motion .k-steam { transform-box: fill-box; transform-origin: 50% 100%; animation: k-steam 2.6s ease-out infinite; }
.motion .k-toss { transform-box: fill-box; transform-origin: 50% 50%; animation: k-toss 2.4s cubic-bezier(.3, .7, .4, 1) infinite; }
.motion .k-pan { transform-box: fill-box; transform-origin: 85% 60%; animation: k-pan 2.4s ease-in-out infinite; }
.motion .k-glow { animation: k-glow 1.8s ease-in-out infinite; }
.motion .k-steam.s2 { animation-delay: .9s; }
.motion .k-steam.s3 { animation-delay: 1.7s; }
.motion .k-toss.t2 { animation-delay: .12s; }
.motion .k-toss.t3 { animation-delay: .22s; }
.motion .k-toss.t4 { animation-delay: .08s; }
.motion .k-toss.t5 { animation-delay: .3s; }
.motion .k-flame.f2 { animation-delay: .15s; }
.motion .k-flame.f3 { animation-delay: .3s; }
.motion .k-flame.f4 { animation-delay: .45s; }
.motion .k-flame.f5 { animation-delay: .2s; }
.motion .k-flame.f6 { animation-delay: .35s; }
@keyframes k-flame { 0%, 100% { transform: scaleY(1) translateY(0); opacity: .95; } 50% { transform: scaleY(1.25) translateY(-2px); opacity: .75; } }
@keyframes k-steam { 0% { opacity: 0; transform: translateY(8px) scaleX(.9); } 30% { opacity: .7; } 100% { opacity: 0; transform: translateY(-46px) scaleX(1.25); } }
@keyframes k-toss { 0%, 55%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-34px) rotate(160deg); } }
@keyframes k-pan { 0%, 55%, 100% { transform: rotate(0); } 18% { transform: rotate(-7deg); } 32% { transform: rotate(3deg); } }
@keyframes k-glow { 0%, 100% { opacity: .35; } 50% { opacity: .6; } }
@media (max-width: 960px) {
  .bill-wrap { justify-self: center; }
  .kitchen { margin-left: auto; margin-right: auto; }
}
