/* Tabbiee · landing. Layout: skewed animated-gradient hero with stacked product
   mockups, then alternating feature splits, one dark band, demo form. */
:root {
  --ink: #14112B;
  --ink-2: #4A4766;
  --ink-3: #8A87A3;
  --paper: #FFFFFF;
  --soft: #F6F4FB;
  --line: #E7E4F0;
  --orange: #FF6A2B;
  --pink: #FF3D8B;
  --violet: #6E4BFF;
  --mint: #19C3A0;
  --sun: #FFC83D;
  --ok: #129B6A;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --r: 14px;
  --r-lg: 22px;
  --shadow: 0 30px 60px -20px rgba(20, 17, 43, .25), 0 18px 36px -18px rgba(20, 17, 43, .3);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; }
h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.025em; line-height: 1.04; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(42px, 6.4vw, 82px); }
h2 { font-size: clamp(32px, 4.2vw, 52px); }
p { margin: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.sub { color: var(--ink-2); font-size: 19px; max-width: 40em; margin-top: 16px; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; transition: transform .15s ease, background .15s ease; font-family: var(--body); }
.btn:hover { transform: translateY(-1px); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #2A2550; }
.btn-ghost { background: rgba(255, 255, 255, .7); color: var(--ink); backdrop-filter: blur(8px); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 15px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .78); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid rgba(231, 228, 240, .7); }
.top-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 25px; letter-spacing: -.03em; }
.logo svg { width: 30px; height: 30px; }
.logo.small { font-size: 20px; }
.logo.small svg { width: 22px; height: 22px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 150px; }
.hero-bg { position: absolute; inset: -14% 0 -4% 0; transform: skewY(-9deg); transform-origin: 0 0; overflow: hidden;
  background: linear-gradient(120deg, var(--sun), var(--orange) 30%, var(--pink) 58%, var(--violet) 85%); }
.hero-bg canvas { width: 100%; height: 100%; display: block; }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.hero-copy h1 { color: var(--ink); mix-blend-mode: normal; }
.lede { font-size: 20px; color: #2B2745; margin-top: 22px; max-width: 30em; }
.cta-row { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

.hero-visual { position: relative; min-height: 470px; }
.device { background: #0F0D20; border-radius: 26px; padding: 10px; box-shadow: var(--shadow); }
.tablet { position: absolute; right: 0; top: 10px; width: 560px; max-width: 100%; aspect-ratio: 4 / 3; }
.phone { position: absolute; left: -10px; bottom: -30px; width: 190px; aspect-ratio: 9 / 19; border-radius: 32px; padding: 8px; }
.phone.solo { position: relative; left: auto; bottom: auto; width: 270px; margin: 0 auto; }

/* POS mock */
.pos { display: grid; grid-template-columns: 40px minmax(0, 1fr) 150px; height: 100%; background: #F5F3EE; border-radius: 18px; overflow: hidden; font-size: 10px; line-height: 1.3; }
.pos-rail { background: #15131F; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 0; }
.rail-logo { width: 20px; height: 20px; border-radius: 6px; background: linear-gradient(135deg, var(--orange), var(--pink)); margin-bottom: 8px; }
.rail-i { width: 18px; height: 18px; border-radius: 6px; background: #2C2940; }
.rail-i.on { background: var(--sun); }
.pos-main { padding: 12px; min-width: 0; }
.pos-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.pill { font-size: 9px; padding: 3px 8px; border-radius: 99px; background: #fff; }
.pill.ok { color: var(--ok); }
.pos-tabs { display: flex; gap: 5px; margin: 10px 0; flex-wrap: nowrap; overflow: hidden; }
.pos-tabs span { background: #fff; padding: 4px 8px; border-radius: 99px; white-space: nowrap; }
.pos-tabs .on { background: var(--ink); color: #fff; }
.pos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.tile { background: #fff; border-radius: 10px; padding: 7px; display: flex; flex-direction: column; gap: 2px; }
.tile em { font-style: normal; color: var(--ink-2); }
.ph { display: block; border-radius: 8px; aspect-ratio: 16 / 10; margin-bottom: 3px; }
.p1 { background: radial-gradient(circle at 40% 45%, #E9A54A 0 35%, #C9782C 36% 55%, #F3E9D8 56%); }
.p2 { background: radial-gradient(ellipse at 50% 50%, #D99649 0 30%, #5B3420 31% 38%, #D99649 39% 52%, #F3E9D8 53%); }
.p3 { background: radial-gradient(circle at 50% 50%, #F7EBDD 0 22%, #B07A4F 23% 38%, #fff 39% 45%, #EDE6F4 46%); }
.p4 { background: radial-gradient(circle at 50% 50%, #EFDCC6 0 25%, #8C5A35 26% 40%, #fff 41% 46%, #E5F3EF 47%); }
.p5 { background: radial-gradient(circle at 50% 50%, #F1CF6A 0 34%, #C88D3B 35% 44%, #FBEFE4 45%); }
.p6 { background: radial-gradient(circle at 45% 50%, #C98C4F 0 30%, #5A3620 31% 34%, #C98C4F 35% 46%, #FDE9EF 47%); }
.pos-ticket { background: #fff; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.tl { display: flex; justify-content: space-between; gap: 6px; }
.tl.muted { color: var(--ink-3); }
.tl.total { font-weight: 700; font-size: 13px; margin-top: auto; padding-top: 6px; border-top: 1px dashed var(--line); }
.pay { background: var(--sun); text-align: center; border-radius: 99px; padding: 8px; font-weight: 700; }

/* Phone app mock */
.app { background: #FBFAFE; border-radius: 26px; height: 100%; padding: 22px 14px 14px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.app-hi { font-family: var(--display); font-weight: 800; font-size: 18px; }
.loyal { border-radius: 16px; padding: 14px; color: #fff; background: linear-gradient(135deg, var(--violet), var(--pink)); display: flex; flex-direction: column; gap: 4px; }
.loyal span { font-size: 11px; opacity: .85; }
.loyal b { font-family: var(--display); font-size: 28px; line-height: 1; }
.loyal small { font-size: 10px; opacity: .9; }
.bar { height: 6px; background: rgba(255, 255, 255, .3); border-radius: 9px; overflow: hidden; }
.bar i { display: block; height: 100%; background: #fff; border-radius: 9px; }
.qr { margin: 4px auto 0; width: 92px; aspect-ratio: 1; border-radius: 10px; background: #fff url("/qr.svg") center / 100% no-repeat; box-shadow: 0 6px 16px -10px rgba(20, 17, 43, .5); }
.offer { border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.offer small { color: var(--ink-2); font-size: 11.5px; line-height: 1.35; }
.o1 { background: #FFF1E6; } .o2 { background: #EEE9FF; } .o3 { background: #E3F8F2; }

/* Toasts */
.toast { position: absolute; display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow); font-size: 13px; line-height: 1.3; }
.toast small { display: block; color: var(--ink-2); font-size: 12px; }
.t1 { right: -14px; bottom: 34px; }
.t2 { left: 160px; top: -6px; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.dot.uber { background: #06C167; } .dot.ok { background: var(--ok); }
@media (prefers-reduced-motion: no-preference) {
  .t1 { animation: float 6s ease-in-out infinite; }
  .t2 { animation: float 7s ease-in-out -2s infinite; }
}
@keyframes float { 50% { transform: translateY(-8px); } }

/* Works with */
.works { padding: 8px 0 40px; }
.works p { text-align: center; color: var(--ink-3); font-size: 14px; font-weight: 500; }
.works ul { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; }
.works li { font-family: var(--display); font-weight: 700; font-size: 19px; color: #5D5A78; letter-spacing: -.01em; }

/* System */
.system { padding: 80px 0 40px; }
.quad { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.q { text-decoration: none; padding: 22px; border-radius: var(--r-lg); background: var(--soft); display: flex; flex-direction: column; gap: 4px; transition: transform .15s ease, background .15s ease; }
.q:hover { transform: translateY(-3px); background: #EFEBFA; }
.q b { font-family: var(--display); font-size: 22px; margin-top: 12px; }
.q small { color: var(--ink-2); font-size: 15px; }
.qi { width: 42px; height: 42px; border-radius: 12px; }
.qi-1 { background: linear-gradient(135deg, var(--sun), var(--orange)); }
.qi-2 { background: linear-gradient(135deg, var(--orange), var(--pink)); }
.qi-3 { background: linear-gradient(135deg, var(--pink), var(--violet)); }
.qi-4 { background: linear-gradient(135deg, var(--mint), #2B8CFF); }

/* Feature splits */
.feature { padding: 90px 0; }
.feature:nth-of-type(odd) { background: linear-gradient(180deg, #fff, var(--soft)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.split.rev .copy { order: 2; }
.copy p { color: var(--ink-2); font-size: 18px; margin-top: 18px; max-width: 32em; }
.copy h2 { margin-top: 14px; }
.tag { display: inline-block; font-weight: 600; font-size: 14px; padding: 4px 12px; border-radius: 99px; }
.c1 { background: #FFF1DA; color: #9A5B00; } .c2 { background: #FFE5DA; color: #A63B0E; }
.c3 { background: #EEE9FF; color: #4B2DC8; } .c4 { background: #DDF6EF; color: #0B7458; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; font-size: 16px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.ticks.small li { font-size: 15px; }
.art { min-width: 0; display: flex; justify-content: center; }
.card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); }

/* Payment mock */
.pay-card { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; width: 100%; max-width: 500px; }
.pay-left { background: var(--ink); color: #fff; padding: 26px; display: flex; flex-direction: column; gap: 6px; }
.pay-left small { opacity: .7; font-size: 13px; }
.pay-left > b { font-family: var(--display); font-size: 46px; color: var(--sun); line-height: 1; }
.paid { margin-top: auto; display: flex; justify-content: space-between; font-size: 13px; opacity: .85; border-top: 1px solid #2E2A4A; padding-top: 10px; }
.pay-right { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.keys span { background: var(--soft); border-radius: 10px; text-align: center; padding: 10px 0; font-weight: 600; }
.methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.m { background: var(--ink); color: #fff; text-align: center; border-radius: 10px; padding: 12px 0; font-size: 13px; font-weight: 600; }
.m.on { background: var(--sun); color: var(--ink); }

/* Dark band */
.band { background: var(--ink); color: #fff; padding: 96px 0; position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; width: 640px; height: 640px; right: -200px; top: -320px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 61, 139, .45), transparent 65%); }
.band .sub { color: #C9C5DE; }
.flow { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; position: relative; }
.flow li { counter-increment: s; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.flow li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: linear-gradient(135deg, var(--orange), var(--pink)); margin-bottom: 8px; }
.flow b { font-family: var(--display); font-size: 21px; }
.flow small { color: #C9C5DE; font-size: 15px; }

/* Kiosk mock */
.kiosk { width: 290px; aspect-ratio: 9 / 16; border-radius: 22px; padding: 12px; }
.k-screen { background: #FFFBF4; border-radius: 14px; height: 100%; padding: 22px 16px 16px; display: flex; flex-direction: column; gap: 14px; }
.k-hello { font-size: 14px; color: var(--ink-2); }
.k-hello b { font-family: var(--display); font-size: 30px; color: var(--ink); line-height: 1.05; }
.k-items { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.k-items div { background: #fff; border-radius: 12px; padding: 8px; display: flex; flex-direction: column; font-size: 13px; font-weight: 600; box-shadow: 0 6px 14px -10px rgba(20, 17, 43, .4); }
.k-items em { font-style: normal; color: var(--ink-2); font-weight: 500; }
.k-pay { margin-top: auto; background: var(--orange); color: #fff; text-align: center; border-radius: 99px; padding: 14px; font-weight: 700; }

/* Board mock */
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; background: #F1EFF7; border-radius: var(--r-lg); padding: 12px; width: 100%; max-width: 540px; box-shadow: var(--shadow); }
.col p { font-weight: 600; font-size: 13px; display: flex; gap: 6px; align-items: center; margin: 4px 4px 8px; }
.col p span { background: #fff; border-radius: 99px; padding: 0 7px; font-size: 12px; }
.order { background: #fff; border-radius: 12px; padding: 10px; margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.order b { font-family: var(--display); font-size: 20px; }
.order small { width: 100%; color: var(--ink-2); font-size: 11.5px; }
.chip { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; color: #fff; }
.chip.uber { background: #06C167; } .chip.roo { background: #00A39A; } .chip.deli { background: #7A3FF2; }
.chip.kiosk { background: var(--sun); color: var(--ink); } .chip.app { background: #E4E9FF; color: #3247B8; }

/* Law */
.law { padding: 96px 0; }
.journal { width: 100%; max-width: 520px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 10px; font-size: 14px; }
.jr { display: grid; grid-template-columns: 34px 92px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px; border-radius: 10px; }
.jr:nth-child(odd) { background: var(--soft); }
.jr code { font-size: 12px; color: var(--ink-3); }
.k { font-size: 12px; font-weight: 600; border-radius: 99px; padding: 2px 8px; justify-self: start; }
.k.t { background: #FFF1DA; color: #9A5B00; } .k.a { background: #FFE3EE; color: #B0205C; } .k.z { background: #E4E9FF; color: #3247B8; }
.jr.ok { color: var(--ok); font-weight: 600; background: #E3F8F2; }
.jr.ok span:nth-child(2) { grid-column: 1 / -1; }

/* Who */
.who { padding: 90px 0; background: var(--soft); }
.who-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.who-grid div { background: #fff; border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.who-grid b { font-family: var(--display); font-size: 19px; line-height: 1.15; }
.who-grid small { color: var(--ink-2); font-size: 14px; }

/* Pricing */
.pricing { padding: 96px 0; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.plan { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.plan > b { font-family: var(--display); font-size: 25px; }
.plan > p { color: var(--ink-2); margin-top: 6px; }
.plan.hl { border: 0; background: linear-gradient(var(--paper), var(--paper)) padding-box, linear-gradient(135deg, var(--orange), var(--pink), var(--violet)) border-box; border: 2px solid transparent; box-shadow: var(--shadow); }
.note { margin-top: 26px; color: var(--ink-2); font-size: 15px; }

/* Demo */
.demo { padding: 96px 0 110px; background: radial-gradient(1200px 500px at 85% 0%, #FFE9DD, transparent 60%), radial-gradient(900px 500px at 0% 100%, #ECE6FF, transparent 60%), var(--paper); }
.form { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 28px; display: grid; gap: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.opt { color: var(--ink-3); font-weight: 400; }
input, select, textarea { font: inherit; font-weight: 400; font-size: 16px; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; background: #FCFBFF; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--violet); outline-offset: 0; border-color: transparent; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form .btn { justify-self: start; }
.form-msg { font-size: 15px; font-weight: 600; min-height: 1.4em; }
.form-msg.ok { color: var(--ok); } .form-msg.err { color: #C0263E; }
.legal { color: var(--ink-3); font-size: 13px; }

/* Footer */
.foot { background: var(--ink); color: #CFCBE3; padding: 40px 0; }
.foot-in { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.foot .logo { color: #fff; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot nav a { text-decoration: none; font-size: 14px; }
.foot small { margin-left: auto; font-size: 13px; color: #8F8AAD; }

/* Responsive */
@media (max-width: 1000px) {
  .hero-in, .split { grid-template-columns: minmax(0, 1fr); }
  .split.rev .copy { order: 0; }
  .hero-visual { min-height: 440px; max-width: 600px; width: 100%; margin: 0 auto; }
  .quad { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .who-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { gap: 40px; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .top-in .btn { margin-left: auto; }
  .hero { padding: 40px 0 70px; }
  .hero-bg { inset: -6% 0 30% 0; }
  h1 { font-size: clamp(36px, 10.5vw, 48px); }
  .top-in { gap: 12px; }
  .logo { font-size: 22px; }
  .hero-visual { min-height: 330px; }
  .tablet { width: 100%; top: 0; }
  .phone { width: 120px; left: -6px; bottom: -40px; border-radius: 22px; padding: 5px; }
  .phone .app { border-radius: 18px; padding: 12px 8px; gap: 6px; }
  .phone .app-hi { font-size: 12px; }
  .phone .loyal { padding: 8px; border-radius: 10px; }
  .phone .loyal b { font-size: 18px; }
  .phone .qr { width: 54px; }
  .pos { grid-template-columns: 26px minmax(0, 1fr) 104px; font-size: 7.5px; }
  .pos-grid { gap: 4px; }
  .tile { padding: 4px; }
  .t2 { left: auto; right: 0; top: -18px; }
  .t1 { right: 0; bottom: -36px; }
  .toast { font-size: 11.5px; padding: 8px 10px; }
  .toast small { font-size: 10.5px; }
  .feature, .law, .who, .pricing, .band { padding: 64px 0; }
  .quad, .who-grid, .plans, .flow, .row2, .board, .pay-card { grid-template-columns: minmax(0, 1fr); }
  .jr { grid-template-columns: 28px 76px minmax(0, 1fr); }
  .jr code { display: none; }
  .foot small { margin-left: 0; }
  body { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .q { transition: none; }
}
