:root {
  --orange: #ff571a;
  --orange-dark: #d93d00;
  --ink: #20201f;
  --muted: #6e6962;
  --cream: #fff8ef;
  --paper: #fffdf9;
  --peach: #ffe5d5;
  --line: rgba(32, 32, 31, 0.14);
  --radius: 26px;
  --shadow: 0 24px 70px rgba(111, 55, 22, 0.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.55; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { display: block; max-width: 100%; }
em { color: var(--orange); font-style: normal; }

.skip-link { position: fixed; z-index: 999; top: 8px; left: 8px; padding: 10px 14px; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.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; }

.site-header { position: fixed; z-index: 50; left: 50%; top: 18px; width: min(1180px, calc(100% - 34px)); transform: translateX(-50%); display: flex; align-items: center; justify-content: space-between; padding: 11px 12px 11px 17px; background: rgba(255, 253, 249, 0.86); border: 1px solid rgba(32,32,31,.1); border-radius: 18px; box-shadow: 0 10px 34px rgba(53, 32, 21, .08); backdrop-filter: blur(18px); transition: .25s ease; }
.site-header.scrolled { top: 9px; background: rgba(255,253,249,.95); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; position: relative; overflow: hidden; color: white; background: white url('./assets/kappy-logo.png') center 41% / 68px 68px no-repeat; box-shadow: inset 0 0 0 1px rgba(255,87,26,.12); }
.brand-mark > span, .brand-mark b { display: none; }
.brand-word { color: var(--orange); font-size: 1.35rem; font-weight: 900; letter-spacing: .025em; }
.main-nav { display: flex; align-items: center; gap: 28px; font-size: .9rem; font-weight: 700; }
.main-nav a { transition: color .2s ease; }
.main-nav a:hover { color: var(--orange); }
.main-nav .nav-cta { padding: 11px 17px; color: white; background: var(--ink); border-radius: 11px; }
.main-nav .nav-cta:hover { color: white; background: var(--orange); }
.menu-toggle { display: none; border: 0; background: transparent; width: 44px; height: 44px; padding: 12px; }
.menu-toggle span { display: block; height: 2px; background: var(--ink); margin: 6px 0; }

.section { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section-kicker { margin: 0 0 20px; color: var(--orange); font-size: .76rem; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.section-kicker.light { color: #ffd6c5; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 52px; padding: 0 22px; border: 1px solid transparent; border-radius: 14px; font-weight: 800; cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease, border .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--orange); box-shadow: 0 13px 30px rgba(255,87,26,.22); }
.button-primary:hover { background: var(--orange-dark); }
.button-secondary { border-color: rgba(32,32,31,.2); background: rgba(255,255,255,.64); }
.button-secondary:hover { border-color: var(--ink); }
.hero .button-secondary { color: white; border-color: rgba(255,255,255,.52); background: rgba(15,13,12,.28); backdrop-filter: blur(10px); }
.hero .button-secondary:hover { color: var(--ink); border-color: white; background: white; }
.button-light { color: var(--orange-dark); background: white; }
.text-link { display: inline-flex; gap: 10px; margin-top: 16px; color: var(--orange); font-weight: 900; }

.hero { position: relative; min-height: 900px; padding: 170px max(20px, calc((100vw - 1180px)/2)) 112px; display: flex; align-items: center; color: white; background: #211c1a url('./assets/kappy-hero-v2.png') 62% center / cover no-repeat; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,18,18,.92) 0%, rgba(20,18,18,.72) 34%, rgba(20,18,18,.2) 60%, rgba(20,18,18,.06) 100%); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,13,12,.24) 0%, transparent 32%, rgba(15,13,12,.18) 100%); }
.hero-copy { position: relative; z-index: 3; width: min(680px, 58vw); padding-bottom: 28px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 20px; color: rgba(255,255,255,.74); font-size: .78rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow span { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 6px rgba(255,87,26,.12); }
.hero h1 { max-width: 720px; margin: 0; font-size: clamp(3.2rem, 6.2vw, 6rem); line-height: .95; letter-spacing: -.068em; }
.hero-intro { max-width: 600px; margin: 29px 0; color: rgba(255,255,255,.78); font-size: clamp(1.02rem, 1.7vw, 1.24rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { display: flex; align-items: center; gap: 12px; margin-top: 30px; color: rgba(255,255,255,.68); font-size: .83rem; line-height: 1.4; }
.hero-note p { margin: 0; }
.hero-note strong { color: white; }
.mini-orbit { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--orange); font-size: .69rem; font-weight: 900; box-shadow: 0 0 0 7px rgba(255,87,26,.18); }
.hero-rail { position: absolute; z-index: 3; bottom: 0; left: 0; right: 0; height: 62px; display: flex; align-items: center; justify-content: center; gap: clamp(18px, 4vw, 58px); padding: 0 20px; color: white; background: rgba(255,87,26,.94); font-weight: 900; letter-spacing: .025em; white-space: nowrap; backdrop-filter: blur(8px); }
.hero-rail i { width: 6px; height: 6px; border-radius: 50%; background: #ffc6ad; }

.statement { padding: 145px 0 80px; }
.statement-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 110px; align-items: end; }
.statement h2 { margin: 0; font-size: clamp(2.5rem, 5vw, 4.8rem); line-height: 1.02; letter-spacing: -.055em; }
.statement p { margin: 0 0 7px; color: var(--muted); font-size: 1.08rem; }

.feature-grid { display: grid; grid-template-columns: 1.05fr .95fr 1fr; gap: 16px; padding-bottom: 140px; }
.feature-card { min-height: 540px; display: flex; flex-direction: column; justify-content: space-between; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature-card-map { background: #231f1c; color: white; }
.feature-card-deal { background: var(--peach); }
.feature-card-reward { background: var(--orange); color: white; }
.feature-number { align-self: flex-end; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid currentColor; border-radius: 50%; font-size: .8rem; font-weight: 900; opacity: .7; }
.feature-card h3 { margin: 0 0 8px; font-size: 1.55rem; line-height: 1.08; }
.feature-card p { margin: 0; opacity: .75; }
.map-art { position: relative; height: 245px; margin: 18px -25px; overflow: hidden; background: #2b2724; }
.street { position: absolute; background: #48413c; border-radius: 999px; }
.street-a { width: 150%; height: 17px; left: -28%; top: 39%; transform: rotate(-17deg); }
.street-b { width: 20px; height: 140%; left: 65%; top: -20%; transform: rotate(18deg); }
.street-c { width: 120%; height: 12px; left: -8%; top: 68%; transform: rotate(12deg); }
.map-pin { position: absolute; width: 24px; height: 24px; border-radius: 50% 50% 50% 3px; transform: rotate(-45deg); background: var(--orange); box-shadow: 0 0 0 7px rgba(255,87,26,.18); }
.map-pin::after { content: ""; position: absolute; width: 7px; height: 7px; top: 8px; left: 8px; border-radius: 50%; background: white; }
.pin-a { left: 23%; top: 31%; }.pin-b { right: 20%; top: 57%; }.pin-c { right: 36%; top: 19%; }
.you-are-here { position: absolute; left: 44%; top: 55%; padding: 6px 10px; color: var(--ink); background: white; border-radius: 8px; font-size: .7rem; font-weight: 900; }
.deal-ticket { position: relative; margin: 25px 4px; padding: 28px; min-height: 235px; display: flex; flex-direction: column; justify-content: space-between; background: white; border-radius: 22px; box-shadow: 0 22px 38px rgba(131,64,25,.12); transform: rotate(-3deg); }
.deal-ticket::after { content:""; position:absolute; width:58px; height:58px; right:22px; top:20px; border-radius:50%; background:var(--orange); }
.deal-ticket small { color: var(--muted); }
.deal-ticket strong { max-width: 250px; font-size: 1.65rem; line-height: 1.05; }
.deal-ticket span { color: var(--orange); font-weight: 900; }
.stamp-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 25px 0; }
.stamp-row span { width: 70px; height: 70px; display: grid; place-items: center; border: 2px dashed rgba(255,255,255,.7); border-radius: 50%; font-size: 1.5rem; font-weight: 900; opacity: .55; }
.stamp-row .stamped { color: var(--orange); background: white; border-style: solid; opacity: 1; box-shadow: 0 10px 20px rgba(171,42,0,.2); }

.how { padding-bottom: 150px; display: grid; grid-template-columns: .76fr 1.24fr; gap: 100px; }
.how-heading { position: sticky; top: 130px; align-self: start; }
.how h2 { margin: 0; font-size: clamp(2.5rem, 4.4vw, 4.4rem); line-height: 1; letter-spacing: -.055em; }
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 62px 1fr; gap: 22px; padding: 44px 0; border-bottom: 1px solid var(--line); }
.step > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--orange); font-weight: 900; }
.step h3 { margin: 0 0 9px; font-size: 2rem; }
.step p { margin: 0; max-width: 500px; color: var(--muted); font-size: 1.02rem; }

.passport { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; padding: 60px 0 150px; }
.passport-visual { min-height: 520px; display: grid; place-items: center; border-radius: 32px; background: var(--peach); overflow: hidden; }
.passport-book { width: 450px; height: 310px; display: grid; grid-template-columns: 1fr 1fr; transform: rotate(-4deg); filter: drop-shadow(0 28px 34px rgba(89,48,26,.18)); }
.passport-cover, .passport-page { padding: 35px; }
.passport-cover { display: flex; flex-direction: column; justify-content: space-between; color: white; background: var(--orange); border-radius: 18px 3px 3px 18px; }
.passport-cover strong { font-size: 2.4rem; line-height: .95; }
.passport-page { background: white; border-radius: 3px 18px 18px 3px; }
.passport-page p { margin-top: 0; font-weight: 900; }
.passport-page small { color: var(--muted); }
.venue-stamps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 28px 0; }
.venue-stamps span { display: grid; place-items: center; height: 68px; border: 2px dashed var(--orange); border-radius: 50%; font-size: 1.5rem; }
.passport-copy h2 { margin: 0 0 22px; font-size: clamp(2.5rem, 4.6vw, 4.4rem); line-height: 1; letter-spacing: -.055em; }
.passport-copy > p:not(.section-kicker) { color: var(--muted); font-size: 1.05rem; }

.restaurants { color: white; background: var(--ink); }
.restaurant-top { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; align-items: center; padding-top: 135px; padding-bottom: 95px; }
.restaurant-copy h2 { margin: 0 0 24px; font-size: clamp(2.8rem, 5.2vw, 5.2rem); line-height: .97; letter-spacing: -.06em; }
.restaurant-copy > p:not(.section-kicker) { max-width: 530px; margin-bottom: 30px; color: #c8c2bb; }
.dashboard-card { padding: 25px; color: var(--ink); background: #fffaf3; border-radius: 27px; box-shadow: 0 35px 90px rgba(0,0,0,.28); transform: rotate(1.5deg); }
.dashboard-header { display: flex; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); font-weight: 900; }
.dashboard-header small { color: var(--muted); font-weight: 600; }
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 18px 0; }
.metric-grid > div { padding: 17px; background: white; border: 1px solid var(--line); border-radius: 15px; }
.metric-grid small { display: block; color: var(--muted); }
.metric-grid strong { display: block; margin: 4px 0; font-size: 2rem; line-height: 1; }
.metric-grid span { color: var(--orange-dark); font-size: .75rem; font-weight: 900; }
.activity-chart { height: 110px; display: flex; align-items: end; gap: 9px; padding: 16px; background: #2a2521; border-radius: 16px; }
.activity-chart span { flex: 1; min-width: 9px; border-radius: 5px 5px 2px 2px; background: var(--orange); }
.dashboard-disclaimer { display: block; margin-top: 10px; color: var(--muted); text-align: right; }
.merchant-benefits { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.14); }
.merchant-benefits article { min-height: 260px; padding: 40px 34px 55px; border-right: 1px solid rgba(255,255,255,.14); }
.merchant-benefits article:last-child { border-right: 0; }
.merchant-benefits span { color: var(--orange); font-weight: 900; }
.merchant-benefits h3 { margin: 65px 0 10px; font-size: 1.5rem; }
.merchant-benefits p { margin: 0; color: #aaa39d; }

.partner { padding: 140px 0; }
.partner-card { display: grid; grid-template-columns: 1fr 1fr; background: white; border: 1px solid var(--line); border-radius: 32px; box-shadow: var(--shadow); overflow: hidden; }
.partner-price, .partner-list { padding: clamp(36px, 6vw, 76px); }
.partner-price { background: var(--peach); }
.partner-price h2 { margin: 0; color: var(--orange); font-size: clamp(4.5rem, 8vw, 7.5rem); line-height: 1; letter-spacing: -.08em; }
.partner-price h2 span { font-size: .38em; vertical-align: top; }
.partner-price h2 small { color: var(--ink); font-size: .18em; letter-spacing: 0; }
.partner-price > p:not(.section-kicker) { max-width: 400px; font-size: 1.04rem; }
.partner-price > small { color: var(--muted); }
.partner-list h3 { margin: 0 0 28px; font-size: 1.8rem; }
.partner-list ul { list-style: none; margin: 0 0 35px; padding: 0; display: grid; gap: 14px; }
.partner-list li { display: flex; gap: 12px; align-items: center; }
.partner-list li span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--orange); font-size: .7rem; }

.early-access { min-height: 620px; display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 70px; padding-bottom: 120px; }
.early-art { height: 500px; overflow: hidden; border-radius: 30px; background: var(--peach); }
.early-art img { width: 100%; height: 100%; object-fit: cover; object-position: 47% 50%; }
.early-copy h2 { margin: 0 0 20px; font-size: clamp(2.7rem, 5.4vw, 5rem); line-height: .98; letter-spacing: -.058em; }
.early-copy > p:not(.section-kicker):not(.form-status) { max-width: 600px; color: var(--muted); font-size: 1.05rem; }
.launch-pill { width: fit-content; display: inline-flex; align-items: center; gap: 13px; margin-top: 26px; padding: 11px 18px 11px 11px; color: white; background: var(--ink); border-radius: 15px; box-shadow: 0 16px 38px rgba(32,32,31,.16); }
.launch-pill-icon { width: 42px; height: 42px; display: grid; place-items: center; color: white; background: var(--orange); border-radius: 11px; font-size: 1.1rem; font-weight: 950; }
.launch-pill small, .launch-pill strong { display: block; line-height: 1.15; }
.launch-pill small { color: #c9c4be; font-size: .67rem; }
.launch-pill strong { margin-top: 2px; font-size: 1rem; }

.footer { display: grid; grid-template-columns: 1fr auto auto; gap: 80px; align-items: end; padding: 50px max(20px, calc((100vw - 1180px)/2)); color: white; background: var(--orange); }
.brand-footer .brand-mark { color: var(--orange); }
.brand-footer .brand-word { color: white; }
.footer-brand p { margin: 12px 0 0; opacity: .8; }
.footer-links { display: grid; gap: 8px; font-weight: 750; }
.footer-meta { margin: 0; text-align: right; opacity: .75; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .site-header { width: calc(100% - 24px); }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: calc(100% + 8px); left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 10px; }
  .main-nav .nav-cta { margin-top: 5px; text-align: center; }
  .hero { min-height: 820px; padding-top: 150px; background-position: 66% center; }
  .hero::before { background: linear-gradient(90deg, rgba(20,18,18,.9) 0%, rgba(20,18,18,.65) 50%, rgba(20,18,18,.12) 100%); }
  .hero-copy { width: min(650px, 72vw); padding-bottom: 0; }
  .statement-grid, .how, .passport, .restaurant-top, .early-access { grid-template-columns: 1fr; gap: 55px; }
  .statement-grid { gap: 34px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-card:last-child { grid-column: span 2; min-height: 390px; }
  .how-heading { position: static; }
  .passport-visual { order: 2; }
  .merchant-benefits { grid-template-columns: 1fr; }
  .merchant-benefits article { min-height: auto; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .merchant-benefits h3 { margin-top: 30px; }
  .partner-card { grid-template-columns: 1fr; }
  .early-art { height: 460px; }
  .footer { grid-template-columns: 1fr 1fr; }
  .footer-meta { grid-column: span 2; text-align: left; }
}

@media (max-width: 640px) {
  .section { width: min(100% - 28px, 1180px); }
  .hero { min-height: 800px; padding: 132px 20px 96px; align-items: end; background-position: 71% center; }
  .hero::before { background: linear-gradient(180deg, rgba(16,14,13,.22) 0%, rgba(16,14,13,.28) 30%, rgba(16,14,13,.9) 72%, rgba(16,14,13,.97) 100%); }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.4rem); }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-rail { justify-content: flex-start; overflow: hidden; font-size: .79rem; }
  .hero-rail span:last-child, .hero-rail i:last-of-type { display: none; }
  .statement { padding-top: 95px; }
  .feature-grid { grid-template-columns: 1fr; padding-bottom: 95px; }
  .feature-card, .feature-card:last-child { grid-column: auto; min-height: 480px; }
  .how { padding-bottom: 100px; }
  .step { grid-template-columns: 50px 1fr; }
  .passport { padding-bottom: 100px; }
  .passport-visual { min-height: 420px; padding: 18px; }
  .passport-book { width: 410px; height: 280px; transform: rotate(-4deg) scale(.82); }
  .restaurant-top { padding-top: 95px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-grid strong { font-size: 1.55rem; }
  .partner { padding: 90px 0; }
  .partner-price, .partner-list { padding: 35px 25px; }
  .early-access { padding-bottom: 90px; }
  .early-art { height: 360px; }
  .footer { grid-template-columns: 1fr; gap: 32px; }
  .footer-meta { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
