/* Tabski website
   A navy opening where a printed tab sits beside the phone, light sections
   that pair plain copy with live app screens, one tangerine band for tone,
   and an emerald close. */

:root {
  --tangerine: #F97316;
  --tangerine-deep: #C2410C;
  --navy: #172554;
  --ink: #171717;
  --slate: #475569;
  --cloud: #F8FAFC;
  --line: #E2E8F0;
  --emerald: #047857;
  --blue: #1D4ED8;
  --serif: ui-serif, 'Source Serif 4', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', Inter, system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cloud); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; color-scheme: light; }
img, svg, iframe { display: block; }
svg { flex: none; }
button { font: inherit; color: inherit; }
a { color: var(--blue); }
a:hover { color: #1E40AF; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { list-style: none; margin: 0; padding: 0; }
figure { margin: 0; }

:focus-visible { outline: 3px solid #FBBF24; outline-offset: 3px; }
.section--white :focus-visible, .section--cloud :focus-visible, .doc :focus-visible, .site-footer :focus-visible { outline-color: var(--blue); }
.section--tangerine :focus-visible { outline-color: var(--ink); }

.wrap { box-sizing: content-box; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: #FFFFFF; color: var(--navy); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(23, 37, 84, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.nav { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; }
.brand img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: #E2E8F0; font-size: 16px; font-weight: 500; text-decoration: none; }
.nav-links a:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 6px; }
.btn { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 12px; font-size: 16px; font-weight: 600; text-decoration: none; }
.btn-brand, .btn-brand:hover { color: var(--ink); }
.btn-brand { background: var(--tangerine); }
.btn-brand:hover { background: #FB923C; }

/* Store buttons */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 24px 0 16px; border-radius: 14px; background: #000000; border: 1px solid rgba(255, 255, 255, .34); color: #FFFFFF; text-decoration: none; }
.store:hover { color: #FFFFFF; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6); }
.store[data-store="google-play"] { padding-right: 18px; }
.store-text { display: flex; flex-direction: column; line-height: 1.15; }
.store-text small { font-size: 12px; color: #E2E8F0; }
.store-text strong { font-size: 21px; font-weight: 600; letter-spacing: -.2px; }
.soon { padding: 3px 9px; border-radius: 999px; background: #FEF3C7; color: #92400E; font-size: 12px; font-weight: 700; line-height: 1.5; }

/* Hero */
.hero { background: var(--navy); color: #FFFFFF; overflow: hidden; }
.hero > .wrap { padding-top: clamp(40px, 6vw, 72px); }
.hero-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.hero-copy { flex: 1 1 400px; min-width: 0; max-width: 540px; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: clamp(46px, 4.8vw, 70px); line-height: 1.02; letter-spacing: -.025em; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: #CBD5E1; max-width: 30em; }
.fine { font-size: 15px; color: #A9B6D3; }

.hero-stage { position: relative; flex: 0 0 auto; width: 750px; height: 650px; margin-inline: auto; }
.tab { position: absolute; left: 0; top: 92px; z-index: 1; width: 272px; transform: rotate(-6deg); transform-origin: 50% 0; }
.tab-paper { background: var(--tangerine); color: var(--ink); padding: 22px 24px 18px; border-radius: 4px 4px 0 0; display: flex; flex-direction: column; gap: 14px; }
.tab-head, .tab-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tab-title { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.tab-date { font-size: 13px; font-weight: 600; }
.tab-rule { border-top: 2px dashed rgba(23, 23, 23, .4); }
.tab-line { display: flex; flex-direction: column; gap: 1px; }
.tab-item, .tab-total span { font-size: 15px; font-weight: 600; }
.tab-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-variant-numeric: tabular-nums; }
.tab-row b { font-weight: 600; }
.tab-total b { font-family: var(--serif); font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; }

.even-card { position: absolute; left: 594px; top: 452px; z-index: 3; width: 156px; padding: 18px 16px; border-radius: 22px; background: #FFFFFF; color: var(--ink); box-shadow: 0 24px 50px -20px rgba(2, 6, 23, .75); display: flex; flex-direction: column; gap: 10px; }
.even-check { position: relative; width: 44px; height: 44px; border-radius: 22px; background: var(--emerald); display: flex; align-items: center; justify-content: center; }
.even-ring { position: absolute; inset: 0; border-radius: 22px; border: 2px solid var(--emerald); opacity: 0; }
.even-title { font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.15; }
.even-sub { font-size: 14px; line-height: 1.4; color: var(--slate); }

.works-with { margin-top: clamp(40px, 5vw, 64px); padding: 28px 0 36px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; }
.works-with p { font-size: 15px; color: #CBD5E1; }
.works-with ul { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.works-with li { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; }
.tile { flex: none; width: 32px; height: 32px; border-radius: 10px; background: rgba(255, 255, 255, .12); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; }
.tile--light { width: 40px; height: 40px; border-radius: 12px; background: #FFFFFF; border: 1px solid var(--line); font-size: 16px; color: #334155; }

/* Phones: each frame holds a live app screen drawn at 390 x 844 and scaled by --s */
.phone { --s: .72; --pad: 10px; --r: 50px; flex: none; width: calc(390px * var(--s) + 2 * var(--pad)); padding: var(--pad); border-radius: var(--r); background: #171717; }
.screen { position: relative; width: calc(390px * var(--s)); height: calc(844px * var(--s)); border-radius: calc(var(--r) - var(--pad)); clip-path: inset(0 round calc(var(--r) - var(--pad))); overflow: hidden; background: var(--cloud); }
.screen iframe { position: absolute; left: 0; top: 0; width: 390px; height: 844px; border: 0; transform: scale(var(--s)); transform-origin: 0 0; pointer-events: none; }
.phone--hero { position: absolute; left: 284px; top: 6px; z-index: 2; box-shadow: 0 44px 80px -32px rgba(2, 6, 23, .85), inset 0 0 0 1px rgba(255, 255, 255, .16); }
.phone--how { --s: .68; --r: 48px; box-shadow: 0 30px 60px -28px rgba(124, 45, 18, .6); }
.phone--feature { --s: .62; --r: 46px; }
.panel--blue .phone { box-shadow: 0 30px 60px -28px rgba(29, 78, 216, .55); }
.panel--emerald .phone { box-shadow: 0 30px 60px -28px rgba(4, 120, 87, .55); }
.phone--gallery { --s: .5; --pad: 8px; --r: 40px; background: #0F172A; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.shot { opacity: 0; }
.shot.is-on { opacity: 1; }

/* Sections */
.section { padding-block: clamp(72px, 9vw, 120px); }
.section--white { background: #FFFFFF; }
.section--cloud { background: var(--cloud); }
.section--receipts { padding-bottom: clamp(88px, 10vw, 136px); }
.section--tangerine { background: var(--tangerine); color: var(--ink); padding-block: clamp(72px, 9vw, 112px); }
.section--navy { background: var(--navy); color: #FFFFFF; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.section-head h2 { font-size: clamp(36px, 4.2vw, 56px); line-height: 1.06; letter-spacing: -.02em; }
.section-head p { font-size: 19px; color: var(--slate); }
.section--navy .section-head p { color: #CBD5E1; }
.section-head--row { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; max-width: none; }
.section-head--row > div:first-child { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }

.panel { flex: 0 1 470px; min-width: 0; display: flex; justify-content: center; padding: clamp(28px, 4vw, 48px) 20px; border-radius: 36px; }
.panel--tangerine { background: #FFEDD5; }
.panel--blue { background: #DBEAFE; }
.panel--emerald { background: #ECFDF5; }

/* How it works */
.how-grid { margin-top: clamp(40px, 5vw, 64px); display: flex; flex-wrap: wrap; align-items: center; gap: clamp(32px, 5vw, 72px); }
.steps { flex: 1 1 420px; min-width: 0; max-width: 600px; display: flex; flex-direction: column; gap: 12px; }
.step { width: 100%; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; align-items: start; text-align: left; padding: 22px 24px; border-radius: 22px; border: 1.5px solid var(--line); background: #FFFFFF; cursor: pointer; }
.step:hover { border-color: #FDBA74; }
.step[aria-pressed="true"] { background: #FFF7ED; border-color: var(--tangerine); }
.step-num { width: 48px; height: 48px; border-radius: 24px; display: flex; align-items: center; justify-content: center; background: #F1F5F9; font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--ink); }
.step[aria-pressed="true"] .step-num { background: var(--tangerine); }
.step-body { display: flex; flex-direction: column; gap: 6px; }
.step-title { font-family: var(--serif); font-size: 25px; font-weight: 600; line-height: 1.2; }
.step-text { font-size: 17px; line-height: 1.5; color: var(--slate); }
.step-haptic { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--tangerine-deep); }

/* Example tabs: five receipts, three on the first row and two centered under them */
.receipts { margin-top: 48px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 44px 28px; align-items: start; }
.receipt { grid-column: span 2; position: relative; background: #FFFFFF; border-radius: 20px 20px 0 0; box-shadow: 0 22px 44px -30px rgba(15, 23, 42, .45); }
.receipt:nth-child(4) { grid-column: 2 / span 2; }
.receipt:nth-child(5) { grid-column: 4 / span 2; }
@media (max-width: 1023px) {
  .receipts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .receipt:nth-child(4) { grid-column: span 2; }
  .receipt:nth-child(5) { grid-column: 2 / span 2; }
}
@media (max-width: 679px) {
  .receipts { grid-template-columns: minmax(0, 1fr); }
  .receipt:nth-child(n) { grid-column: auto; }
}
.receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -12px; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='12'%3E%3Cpath d='M0 0H16L8 12Z' fill='%23FFFFFF'/%3E%3C/svg%3E") left top / 16px 12px repeat-x; }
.receipt-band { height: 136px; border-radius: 20px 20px 0 0; background: var(--band); display: flex; align-items: center; justify-content: center; }
.receipt-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 16px; }
.receipt h3 { font-size: 25px; line-height: 1.15; }
.receipt-setup { margin-top: -10px; font-size: 15px; line-height: 1.5; color: var(--slate); }
.receipt-amount { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding: 12px 0; border-block: 2px dashed var(--line); }
.receipt-amount span { font-size: 15px; font-weight: 600; }
.receipt-amount b { font-family: var(--serif); font-size: 32px; font-weight: 600; font-variant-numeric: tabular-nums; }
.receipt-amount .in { color: var(--emerald); }
.receipt-amount .out { color: var(--tangerine-deep); }
.timeline li { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline li > span:last-child { font-size: 15px; line-height: 1.45; }
.when { font-size: 13px; color: var(--slate); font-variant-numeric: tabular-nums; }
.chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.chip--even, .chip--confirmed { background: #ECFDF5; color: var(--emerald); }
.chip--part { background: #DBEAFE; color: var(--blue); }
.chip--waiting { background: #FEF3C7; color: #92400E; }
.chip--due { background: #FFEDD5; color: #9A3412; }

/* Feature sections */
.feature-grid { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(40px, 6vw, 88px); }
.feature-grid--reverse { justify-content: space-between; }
.feature-grid .panel { flex-basis: 460px; }
.feature-copy { flex: 1 1 420px; min-width: 0; max-width: 560px; display: flex; flex-direction: column; gap: 22px; }
.feature-copy h2, .tone-copy h2 { font-size: clamp(34px, 3.8vw, 50px); line-height: 1.08; letter-spacing: -.02em; }
.feature-lead { font-size: 19px; line-height: 1.55; color: var(--slate); }
.feature-note { font-size: 16px; color: var(--slate); }
.choices { display: flex; flex-direction: column; gap: 18px; }
.choices li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: start; }
.choices li > span:last-child { display: flex; flex-direction: column; gap: 2px; font-size: 16px; color: var(--slate); }
.choices strong { font-size: 18px; font-weight: 600; color: var(--ink); }
.icon-tile { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.icon-tile--blue { background: #DBEAFE; color: var(--blue); }
.icon-tile--emerald { background: #ECFDF5; color: var(--emerald); }
.icon-tile--amber { background: #FEF3C7; color: #92400E; }
.methods { border-top: 1px solid var(--line); }
.methods li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.method-text { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.method-name { font-weight: 600; }
.method-note { color: var(--slate); }

/* Tone */
.tone-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: clamp(40px, 6vw, 88px); }
.tone-copy { flex: 1 1 380px; min-width: 0; max-width: 500px; display: flex; flex-direction: column; gap: 22px; }
.section--tangerine .feature-lead { color: var(--ink); }
.tones { display: flex; flex-wrap: wrap; gap: 10px; }
.tone { height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font-size: 16px; font-weight: 600; cursor: pointer; }
.tone:hover { background: rgba(23, 23, 23, .08); }
.tone[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; }
.message { flex: 1 1 440px; min-width: 0; max-width: 580px; display: flex; flex-direction: column; gap: 12px; }
.message-to, .message-from { font-size: 15px; font-weight: 600; }
.message-from { display: flex; align-items: center; gap: 8px; }
.bubble { background: #FFFFFF; border-radius: 28px 28px 28px 8px; padding: 26px 28px; box-shadow: 0 30px 60px -30px rgba(124, 45, 18, .65); font-size: clamp(19px, 1.8vw, 23px); line-height: 1.5; }
.bubble-link { display: block; margin-top: 8px; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* Screens gallery */
.gallery-controls { display: flex; gap: 10px; }
.round-btn { width: 48px; height: 48px; border-radius: 24px; border: 1.5px solid rgba(255, 255, 255, .4); background: transparent; color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.round-btn:hover { background: rgba(255, 255, 255, .1); }
.round-btn[aria-disabled="true"] { opacity: .35; cursor: default; background: transparent; }
.gallery { margin-top: 44px; display: flex; gap: 28px; overflow-x: auto; padding: 6px 4px 28px; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-color: var(--slate) transparent; }
.gallery li { flex: 0 0 auto; scroll-snap-align: start; }
.gallery figure { width: 211px; display: flex; flex-direction: column; gap: 14px; }
.gallery figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: #CBD5E1; }
.gallery figcaption strong { font-size: 16px; font-weight: 600; color: #FFFFFF; }

/* Questions */
.faq { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 40px 48px; }
.qa { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 2px solid var(--ink); }
.qa h3 { font-size: 22px; line-height: 1.25; }
.qa p { font-size: 16px; color: var(--slate); }

/* Download */
.cta { background: var(--emerald); color: #FFFFFF; padding-block: clamp(72px, 9vw, 112px); }
.cta-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 48px; }
.cta-copy { flex: 1 1 460px; min-width: 0; max-width: 680px; display: flex; flex-direction: column; gap: 24px; }
.cta h2 { font-size: clamp(40px, 5vw, 68px); line-height: 1.04; letter-spacing: -.025em; }
.cta p { font-size: 19px; line-height: 1.5; color: #ECFDF5; }
.app-icon { flex: none; width: 168px; height: 168px; border-radius: 40px; background: #FFFFFF; display: flex; align-items: center; justify-content: center; box-shadow: 0 30px 60px -24px rgba(2, 44, 34, .85); transform: rotate(-6deg); }
.app-icon img { width: 104px; height: auto; }

/* Footer */
.site-footer { background: var(--cloud); padding: 48px 0 56px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-row > img { height: 32px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; font-size: 15px; }
.footer-links a { color: #334155; }
.legal { margin-top: 20px; font-size: 13px; line-height: 1.6; color: var(--slate); max-width: 72ch; }

/* Privacy and terms pages */
.doc { background: #FFFFFF; padding-block: clamp(56px, 8vw, 104px); }
.doc .wrap > * { max-width: 640px; }
.doc h1 { font-size: clamp(36px, 4.2vw, 52px); line-height: 1.06; letter-spacing: -.02em; }
.doc p { margin-top: 18px; font-size: 18px; color: var(--slate); }

/* Narrow screens */
@media (max-width: 1499px) { .hero-stage { zoom: .86; } }
@media (max-width: 1100px) { .hero-stage { zoom: .8; } }
@media (max-width: 760px) { .nav-links { display: none; } .hero-stage { zoom: .62; } }
@media (max-width: 520px) { .hero-stage { zoom: .46; } }
@media (max-width: 400px) { .hero-stage { zoom: .42; } }
@media (max-width: 350px) { .hero-stage { zoom: .38; } }
@media (max-width: 480px) {
  .step { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 18px; }
  .step-num { width: 40px; height: 40px; font-size: 20px; }
  .step-title { font-size: 22px; }
  .bubble { padding: 22px; }
}
@media (max-width: 359px) {
  .phone--how { --s: .6; }
  .phone--feature { --s: .58; }
}

/* One orchestrated load in the hero, plus feedback on the controls */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .a-print { animation: tabPrint 1s cubic-bezier(.2, .8, .2, 1) both; }
  .a-line { animation: lineIn .45s ease var(--d, 0s) both; }
  .a-rise { animation: rise .9s cubic-bezier(.2, .8, .2, 1) .15s both; }
  .a-pop { animation: pop .65s cubic-bezier(.3, 1.4, .5, 1) 1.9s both; }
  .a-ring { animation: ring 1.6s ease-out 2.5s 2 both; }
  .store { transition: transform .2s ease, box-shadow .2s ease; }
  .store:hover { transform: translateY(-2px); }
  .step { transition: background-color .25s ease, border-color .25s ease; }
  .shot { transition: opacity .45s ease; }
  .tone { transition: background-color .2s ease, color .2s ease; }
}
@keyframes tabPrint { from { clip-path: inset(0 0 100% 0); transform: rotate(-6deg) translateY(-18px); } to { clip-path: inset(0 0 0 0); transform: rotate(-6deg); } }
@keyframes lineIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { opacity: 0; transform: translateY(14px) scale(.92); } 60% { opacity: 1; transform: translateY(-3px) scale(1.03); } 100% { opacity: 1; transform: none; } }
@keyframes ring { 0% { opacity: .6; transform: scale(1); } 100% { opacity: 0; transform: scale(1.9); } }
