/* GiftKin landing page. One stylesheet. Colours, type and shapes are the GiftKin design system's
   tokens (Illucrum-LLC/giftkin, design-system/). No inline styles anywhere: the CSP allows
   style-src 'self' only. */

/* ---------- fonts (self-hosted, OFL; licenses in static/fonts/) ---------- */
@font-face { font-family: "Figtree"; src: url("/static/fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("/static/fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

/* ---------- tokens ---------- */
:root {
  --bg: #f6f4ef; --surface: #ffffff; --surface-2: #eeebe5; --line: #d9d5cc; --outline: #8a867e;
  --ink: #1d1c21; --ink-muted: #5b5961;
  --evergreen: #1d6a5a; --on-evergreen: #ffffff; --evergreen-soft: #dcefe8; --on-evergreen-soft: #0d4236;
  --gift-wrap: #a51c4b; --on-gift-wrap: #ffffff; --gift: #a51c4b; --on-gift: #ffffff;
  --gift-soft: #fbe4eb; --on-gift-soft: #6b0f2f; --gift-paper: #fdf5f7; --ribbon: #e8b647;
  --font-sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --radius-full: 999px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--font-sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: var(--evergreen); }
a:hover { color: var(--on-evergreen-soft); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.eyebrow { font: 700 14px/20px var(--font-sans); letter-spacing: .06em; text-transform: uppercase; }
.h2 { font: 760 clamp(34px, 4.6vw, 56px)/1.06 var(--font-display); letter-spacing: -0.025em; max-width: 860px; }
.muted { color: var(--ink-muted); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- the wrapping: cranberry with a gold ribbon (header, hero, closing band) ---------- */
.wrapped { position: relative; overflow: hidden; background: var(--gift-wrap); color: var(--on-gift-wrap); }
.wrapped a { color: var(--on-gift-wrap); }
.ribbon-v::before { content: ""; position: absolute; top: 0; bottom: 0; left: 84%; width: 28px; background: var(--ribbon); }
.ribbon-h::after { content: ""; position: absolute; left: 0; right: 0; bottom: 48px; height: 28px; background: var(--ribbon); }
.wrapped > .wrap { position: relative; }
@media (max-width: 720px) { .ribbon-v::before { display: none; } }

/* ---------- header ($structure) ---------- */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.site-header .brand img { height: 34px; width: auto; }
.site-header nav { display: flex; align-items: center; gap: 28px; font: 600 15px/20px var(--font-sans); }
.site-header .soon-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: var(--radius-full); background: var(--surface); color: var(--gift-wrap); font: 650 15px/1 var(--font-sans); }
@media (max-width: 720px) { .site-header .nav-link { display: none; } }

/* ---------- hero ---------- */
.hero .wrap { display: flex; flex-direction: column; gap: 28px; padding-top: clamp(24px, 6vw, 80px); padding-bottom: clamp(160px, 17vw, 230px); }
.hero h1 { font: 780 clamp(52px, 8vw, 108px)/0.96 var(--font-display); letter-spacing: -0.035em; max-width: 960px; }
.hero p { max-width: 580px; font-size: 21px; line-height: 32px; }

/* ---------- the gift tag ---------- */
.tag-section { position: relative; margin-top: -132px; padding-bottom: clamp(56px, 8vw, 96px); }
.gift-tag { position: relative; background: var(--surface); border-radius: 28px; padding: clamp(24px, 4vw, 44px); max-width: 640px; box-shadow: 0 24px 60px rgba(29, 28, 33, .16); display: flex; flex-direction: column; gap: 18px; }
.gift-tag::before { content: ""; position: absolute; top: 22px; right: 26px; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 3px var(--line); }
.gift-tag .eyebrow { color: var(--gift); }
.gift-tag h2 { font: 740 32px/38px var(--font-display); letter-spacing: -0.015em; }
.gift-tag .note { font-size: 15px; line-height: 22px; color: var(--ink-muted); }

/* coming-soon labels (not buttons: nothing to click until launch) */
.soon { display: flex; flex-wrap: wrap; gap: 12px; }
.soon span { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--radius-full); font: 650 16px/1 var(--font-sans); }
.soon-paper .soon-main { background: var(--evergreen-soft); color: var(--on-evergreen-soft); }
.soon-paper .soon-next { box-shadow: inset 0 0 0 1.5px var(--outline); color: var(--ink); }
.soon-wrapped .soon-main { background: var(--surface); color: var(--gift-wrap); }
.soon-wrapped .soon-next { box-shadow: inset 0 0 0 2px var(--on-gift-wrap); color: var(--on-gift-wrap); }

/* ---------- three steps ---------- */
.steps { padding-bottom: clamp(56px, 8vw, 96px); }
.steps .wrap { display: flex; flex-direction: column; gap: 40px; }
.step-row { display: flex; flex-wrap: wrap; gap: 40px; }
.step { flex: 1 1 300px; display: flex; flex-direction: column; gap: 14px; }
.step .piece { display: flex; flex-direction: column; justify-content: flex-end; }
.step .eyebrow { margin-top: 10px; color: var(--gift); }
.step h3 { font: 740 26px/32px var(--font-display); letter-spacing: -0.01em; }
.step p { color: var(--ink-muted); }
@media (min-width: 721px) { .step .piece { min-height: 150px; } }

.invite { background: var(--surface); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 0 0 1px var(--line); }
.invite b { font: 650 15px/20px var(--font-sans); }
.invite .link { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 0 6px 0 14px; border-radius: 12px; background: var(--surface-2); font: 500 14px/20px var(--font-sans); color: var(--ink-muted); }
.invite .share { padding: 6px 12px; border-radius: var(--radius-full); background: var(--ink); color: var(--surface); font: 650 13px/1 var(--font-sans); }
.invite .people { display: flex; gap: 6px; }
.lines { display: flex; flex-direction: column; gap: 8px; }

/* ---------- features ---------- */
.features { padding-bottom: clamp(56px, 8vw, 104px); }
.features .wrap { display: flex; flex-direction: column; gap: 28px; }
.bento { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; grid-auto-flow: dense; }
.tile { border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 12px; background: var(--surface); }
.tile h3 { font: 740 26px/32px var(--font-display); }
.tile p { font-size: 17px; line-height: 26px; color: var(--ink-muted); }
.tile-wide { flex-direction: row; flex-wrap: wrap; gap: 28px; align-items: center; }
.tile-wide .text { flex: 1 1 260px; display: flex; flex-direction: column; gap: 12px; }
.tile-wide h3 { font-size: 30px; line-height: 36px; }
.tile-gift { background: var(--gift-wrap); color: var(--on-gift-wrap); overflow: hidden; }
.tile-gift p { color: var(--on-gift-wrap); opacity: .92; }
.tile-green { background: var(--evergreen); color: var(--on-evergreen); }
.tile-green p { color: var(--on-evergreen); opacity: .95; }
.icon-gift { color: var(--gift); }
.icon-green { color: var(--evergreen); }
.tally { flex: 1 1 280px; display: flex; flex-direction: column; gap: 10px; }
.tally .gk-line { background: var(--bg); }
.tally small { font-size: 15px; color: var(--ink-muted); padding: 0 4px; }
.tile-phone { flex: 0 0 auto; margin-bottom: -120px; }
@media (min-width: 721px) { .span-2 { grid-column: span 2; } }

/* ---------- money band (the green, in the middle) ---------- */
.money { background: var(--evergreen); color: var(--on-evergreen); padding: clamp(56px, 8vw, 104px) 0; }
.money .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.money .text { flex: 1 1 380px; display: flex; flex-direction: column; gap: 18px; }
.money .eyebrow { display: inline-flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-weight: 650; }
.money h2 { font: 760 clamp(34px, 4.6vw, 60px)/1.06 var(--font-display); letter-spacing: -0.025em; }
.money p { font-size: 19px; line-height: 30px; opacity: .95; max-width: 520px; }
.money .phone-slot { flex: 1 1 300px; display: flex; justify-content: center; }

/* ---------- questions ---------- */
.faq { background: var(--surface); padding: clamp(56px, 8vw, 96px) 0; }
.faq .wrap { display: flex; flex-wrap: wrap; gap: 48px; }
.faq .intro { flex: 1 1 280px; display: flex; flex-direction: column; gap: 16px; }
.faq .intro img { width: 64px; height: 64px; }
.faq .intro h2 { font: 760 clamp(32px, 4vw, 48px)/1.1 var(--font-display); letter-spacing: -0.02em; }
.faq .list { flex: 2 1 520px; }
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
details summary { cursor: pointer; list-style: none; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font: 650 18px/26px var(--font-sans); }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font: 400 28px/1 var(--font-sans); color: var(--ink-muted); }
details[open] summary::after { content: "\2212"; }
details p { margin: 0 0 18px; max-width: 720px; color: var(--ink-muted); font-size: 17px; line-height: 27px; }

/* ---------- closing band ---------- */
.closing .wrap { display: flex; flex-direction: column; gap: 28px; padding-top: clamp(64px, 9vw, 112px); padding-bottom: clamp(64px, 9vw, 112px); }
.closing h2 { font: 780 clamp(40px, 6vw, 80px)/1 var(--font-display); letter-spacing: -0.03em; max-width: 820px; }

/* ---------- footer ($structure) ---------- */
.site-footer { background: var(--ink); color: var(--surface); padding: 40px 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.site-footer img { height: 30px; width: auto; }
.site-footer small { font: 500 15px/20px var(--font-sans); color: var(--line); }
.site-footer a { color: var(--line); }

/* ---------- 404 ---------- */
.notfound .wrap { display: flex; flex-direction: column; gap: 20px; padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); }
.notfound h1 { font: 760 clamp(40px, 6vw, 72px)/1.04 var(--font-display); letter-spacing: -0.03em; }

/* ---------- app pieces (the design system's components, as mockups) ---------- */
.phone { width: 300px; height: 600px; border-radius: 44px; background: var(--ink); padding: 9px; flex: none; box-shadow: 0 30px 60px rgba(29, 28, 33, .18); }
.phone-tilt { width: 280px; height: 560px; transform: rotate(-4deg); }
.phone .screen { width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: var(--surface); color: var(--ink); display: flex; flex-direction: column; }
.gk-av { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font: 650 15px/1 var(--font-sans); flex: none; }
.gk-av.sm { width: 32px; height: 32px; font-size: 13px; }
.gk-frame { width: 44px; height: 44px; border-radius: 12px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  background:
    linear-gradient(90deg, transparent calc(50% - 3px), var(--ribbon) calc(50% - 3px), var(--ribbon) calc(50% + 3px), transparent calc(50% + 3px)),
    linear-gradient(0deg, transparent calc(50% - 3px), var(--ribbon) calc(50% - 3px), var(--ribbon) calc(50% + 3px), transparent calc(50% + 3px)),
    var(--on-gift-wrap); }
.gk-frame .gk-av { width: 29px; height: 29px; font-size: 12px; box-shadow: 0 0 0 2.5px var(--surface); }
.gk-head { display: flex; align-items: center; gap: 8px; min-height: 60px; padding: 0 8px; background: var(--surface); border-bottom: 1px solid var(--line); }
.gk-head .t { flex: 1; min-width: 0; }
.gk-head b { display: block; font: 650 16px/22px var(--font-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gk-head small { display: block; font-size: 13px; line-height: 18px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gk-head .ic { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.gk-head.gift { background: var(--gift-wrap); color: var(--on-gift-wrap); border-bottom: 0; }
.gk-head.gift small { color: var(--on-gift-wrap); opacity: .88; }
.gk-tabs { display: flex; background: var(--gift-wrap); padding: 0 8px; border-bottom: 6px solid var(--ribbon); }
.gk-tabs span { flex: 1; min-height: 44px; display: flex; align-items: center; justify-content: center; color: var(--on-gift-wrap); font: 600 14px/20px var(--font-sans); opacity: .8; border-bottom: 3px solid transparent; }
.gk-tabs .sel { opacity: 1; border-bottom-color: var(--on-gift-wrap); }
.gk-band { display: flex; align-items: center; gap: 8px; padding: 8px 16px; font: 600 13px/18px var(--font-sans); background: var(--gift-soft); color: var(--on-gift-soft); }
.gk-chat { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 12px; background: var(--gift-paper); }
.gk-day { align-self: center; font: 600 12px/16px var(--font-sans); color: var(--ink-muted); margin: 6px 0 2px; }
.gk-msg { max-width: 78%; display: flex; flex-direction: column; gap: 2px; }
.gk-msg .who { font: 600 12px/16px var(--font-sans); color: var(--ink-muted); padding-left: 12px; }
.gk-msg .b { padding: 9px 14px; border-radius: 18px 18px 18px 6px; font-size: 15px; line-height: 21px; background: var(--gift-soft); color: var(--ink); }
.gk-msg.me { align-self: flex-end; align-items: flex-end; }
.gk-msg.me .b { background: var(--gift); color: var(--on-gift); border-radius: 18px 18px 6px 18px; }
.gk-msg .tm { font: 500 11px/14px var(--font-sans); color: var(--ink-muted); padding: 0 6px; }
.gk-sys { align-self: center; text-align: center; font: 500 13px/18px var(--font-sans); color: var(--ink-muted); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-full); padding: 6px 14px; margin: 6px 0; }
.gk-sys b { color: var(--ink); }
.gk-comp { background: var(--surface); border-top: 1px solid var(--line); }
.gk-who { display: flex; align-items: center; gap: 8px; padding: 8px 16px; font: 600 13px/18px var(--font-sans); background: var(--gift-soft); color: var(--on-gift-soft); }
.gk-comp .bar { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; }
.gk-comp .in { flex: 1; min-height: 44px; border-radius: var(--radius-full); background: var(--surface-2); padding: 0 16px; display: flex; align-items: center; color: var(--ink-muted); font-size: 15px; }
.gk-comp .send { width: 44px; height: 44px; border-radius: 50%; background: var(--gift); color: var(--on-gift); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.gk-line { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--surface); border-radius: 18px; box-shadow: 0 0 0 1px var(--line); }
.gk-line .t { flex: 1; font-size: 16px; }
.gk-line b { font-weight: 650; }
.gk-line .amt { font: 700 16px/24px var(--font-sans); font-variant-numeric: tabular-nums; }
.gk-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 14px 12px; background: var(--bg); }
.gk-hero-amt { background: var(--surface); border-radius: 18px; padding: 18px 16px; display: flex; flex-direction: column; gap: 4px; }
.gk-hero-amt small { font-size: 14px; color: var(--ink-muted); }
.gk-hero-amt .n { font: 700 30px/36px var(--font-sans); font-variant-numeric: tabular-nums; }
.gk-hero-amt .w { font-size: 15px; line-height: 22px; }
.gk-lbl { font: 600 12px/16px var(--font-sans); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); padding: 6px 4px 0; }
.gk-body .gk-line { box-shadow: none; }
.gk-nav { display: flex; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px 8px; }
.gk-nav span { flex: 1; min-height: 52px; display: flex; flex-direction: column; align-items: center; gap: 4px; font: 600 12px/16px var(--font-sans); color: var(--ink-muted); }
.gk-nav .pill { width: 56px; height: 30px; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; }
.gk-nav .cur { color: var(--ink); }
.gk-nav .cur .pill { background: var(--evergreen-soft); color: var(--on-evergreen-soft); }
.gift-header-piece { border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.gift-header-piece .gk-head.gift { border-bottom: 6px solid var(--ribbon); padding-left: 12px; }
