/* ============================================================
   Kada public site — one stylesheet for the landing page and the
   legal documents.

   The app's own palette: white ground, near-black text, Kada yellow
   only on the call to action and small accents. DM Sans throughout,
   matching the app shell. Deliberately small — the site says three
   things, so it does not need a design system to say them.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --yellow: #FFC800;
  /* Solid edge under the button. Decorative, never text. */
  --yellow-edge: #E0A800;
  /* Showcase band: same hue as the brand, lifted so the saturated cards read. */
  --yellow-band: #FFE585;
  --ink: #1A1A2E;
  --ink-soft: #6B7280;
  --line: #ECECEF;
  --surface: #FFFFFF;
  --maxw: 1200px;
  --pad: 24px;
}

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--surface);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--yellow-edge); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* ---------------- header ---------------- */
.site-header { border-bottom: 1px solid rgba(26,26,46,0.06); background: var(--surface); }
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
  height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none;
}
.brand img { display: block; width: 36px; height: 36px; border-radius: 10px; }
.header-nav { display: flex; align-items: center; gap: 22px; }
.header-nav a:not(.btn) { font-size: 15px; font-weight: 500; color: var(--ink-soft); text-decoration: none; }
.header-nav a:not(.btn):hover { color: var(--ink); }

/* ---------------- button ----------------
   One button on the site. Flat yellow over a solid darker edge, so a
   press moves it onto its own edge without a shadow or a gradient. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--yellow); color: var(--ink);
  border: none; border-bottom: 4px solid var(--yellow-edge); border-radius: 14px;
  padding: 15px 28px; font-family: inherit; font-size: 16px; font-weight: 700;
  text-decoration: none; cursor: pointer;
  transition: transform 0.08s ease, filter 0.15s ease;
}
.btn:hover { filter: brightness(1.04); }
.btn:active { transform: translateY(2px); border-bottom-width: 2px; }
.btn-sm { padding: 10px 18px; font-size: 15px; border-radius: 11px; border-bottom-width: 3px; }
.btn-lg { padding: 18px 34px; font-size: 18px; border-radius: 16px; }

/* ---------------- hero ----------------
   Mascot left, pitch right, the pair centred in the field under the header.
   Clamped so a short laptop keeps the button above the fold and a tall monitor
   does not stretch the row into a gap. */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 80px;
  min-height: clamp(440px, calc(100vh - 80px - 96px), 660px);
  padding: 48px 0;
}
.hero-mascot { display: block; width: min(480px, 100%); height: auto; margin: 0 auto; }
.hero-copy { max-width: 540px; }
.hero h1 { font-size: clamp(34px, 3.7vw, 52px); line-height: 1.14; letter-spacing: -0.03em; }
.hero p {
  margin: 24px 0 32px;
  font-size: clamp(17px, 1.56vw, 20px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 30em;
}
/* Sized to the reference's CTA block rather than to its own text. */
.hero .btn-lg { width: 100%; max-width: 460px; min-height: 66px; }

/* ---------------- horizontal iOS showcase ----------------
   A native horizontal rail with centered settle positions and circular dots. */
/* A branded yellow band. The cards are themselves #FCC900 marketing headers,
   so the ground is a lighter tone of the same hue — at full brand yellow the
   card edges vanish into the background entirely. */
.showcase {
  padding: 88px 0 72px;
  background: var(--yellow-band);
  border-top: none;
}
.showcase-head { margin-bottom: 48px; }
.showcase-head h2 { font-size: clamp(28px, 2.8vw, 38px); letter-spacing: -0.028em; color: var(--ink); }

.showcase-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  /* JavaScript owns final settling; native gestures keep their momentum. */
  scroll-snap-type: none;
  scroll-behavior: auto;
  scrollbar-width: none;
  touch-action: auto;
  cursor: grab;
  /* Cards ease out of view rather than being chopped at the edge. The fade is
     narrow so the centre of the track is never dimmed. */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.showcase-viewport::-webkit-scrollbar { display: none; }
.showcase-viewport.is-dragging { cursor: grabbing; user-select: none; }
.showcase-viewport:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 8px; }
.showcase-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 128px;
  /* Script measures exact edge padding so the first and last cards center. */
}
.showcase-track figure { margin: 0; flex: none; }

.showcase-track img {
  display: block;
  height: min(78vh, 800px);
  width: auto;
  border-radius: 22px;
  /* Enough separation from a ground of the same hue without drawing a border. */
  box-shadow: 0 10px 30px rgba(90, 60, 0, 0.13);
  /* A native image ghost would fight the pointer gesture. */
  -webkit-user-drag: none; user-select: none; pointer-events: none;
}
/* Circular position dots: secondary to the imagery, never pagination furniture. */
.showcase-dots { display: flex; justify-content: center; gap: 10px; margin-top: 44px; }
.showcase-dot {
  width: 8px; height: 8px; padding: 0; border: none; border-radius: 50%;
  /* Ink at low alpha on the band, solid when active: legible either way
     without introducing a third colour. */
  background: rgba(26, 26, 46, 0.22); cursor: pointer;
  transition: width 0.32s cubic-bezier(0.22, 1.2, 0.36, 1),
              height 0.32s cubic-bezier(0.22, 1.2, 0.36, 1),
              background-color 0.24s ease;
}
.showcase-dot:hover { background: rgba(26, 26, 46, 0.4); }
.showcase-dot.is-active { width: 11px; height: 11px; background: var(--ink); }
.showcase-dot:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .showcase-dot { transition: none; }
}

/* ---------------- footer ---------------- */
.site-footer {
  background: var(--yellow);
  border-top: none;
  padding: 28px 0 calc(28px + env(safe-area-inset-bottom, 0px));
}
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
  display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; justify-content: space-between;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; font-size: 15px; font-weight: 400; }
.footer-links a { color: var(--ink); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-links a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.footer-copy { font-size: 15px; font-weight: 700; color: var(--ink); }

/* ---------------- legal documents ----------------
   One column of text under the same header. No badge, no callout card,
   no marker on every heading — it should read as a document. */
.legal { max-width: 720px; margin: 0 auto; padding: 64px var(--pad) 88px; }
.legal h1 { font-size: clamp(34px, 5.5vw, 46px); }
/* The one accent on the page, and the only thing marking it as Kada's. */
.legal h1::after {
  content: ''; display: block;
  width: 56px; height: 5px; border-radius: 3px;
  background: var(--yellow); margin-top: 20px;
}
.legal .meta { color: var(--ink-soft); font-size: 15px; margin-top: 18px; }
.legal .lede { font-size: 18px; margin-top: 28px; }
.legal h2 { font-size: 21px; margin: 44px 0 10px; }
.legal p { margin: 12px 0; color: var(--ink-soft); overflow-wrap: anywhere; }
.legal ul { margin: 12px 0; padding-left: 22px; color: var(--ink-soft); }
.legal li { margin: 6px 0; }
.legal a { color: var(--ink); text-underline-offset: 3px; }

/* ---------------- responsive ---------------- */
@media (max-width: 1150px) and (min-width: 901px) {
  .hero { gap: 56px; grid-template-columns: 1fr 1fr; }
  .hero-mascot { width: min(440px, 100%); }
}
@media (max-width: 900px) {
  .showcase { padding: 56px 0 52px; }
  .showcase-head { margin-bottom: 32px; }
  /* Smaller frames and a tighter gap so the next one peeks in and the swipe is
     discoverable without any control to find. */
  .showcase-track { gap: 24px; }
  .showcase-track img { height: min(68vh, 560px); border-radius: 18px; }
  .showcase-meter { margin-top: 28px; }

  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: 0;
    padding: 32px 0 48px;
    text-align: center;
  }
  .hero-mascot { width: min(420px, 82vw); }
  .hero-copy { max-width: none; margin: 0 auto; }
  .hero h1 { font-size: clamp(32px, 5.6vw, 40px); }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero .btn-lg { max-width: 420px; margin: 0 auto; }
}
@media (max-width: 760px) {
  .legal { padding: 48px var(--pad) 64px; }
}
@media (max-width: 560px) {
  :root { --pad: 20px; }
  .header-inner { height: 72px; }
  .header-nav { gap: 14px; }
  .header-nav a:not(.btn) { font-size: 14px; }
  .btn-sm { padding: 9px 14px; }
  .hero { padding: 24px 0 40px; }
  .hero h1 { font-size: clamp(30px, 8.6vw, 36px); }
  .hero p { font-size: 17px; }
  .hero .btn-lg { max-width: none; }
  .footer-inner { justify-content: flex-start; }
}
/* Privacy and Terms stay in the header down to the narrowest common phone;
   below that the CTA needs the whole row, and the footer still carries them. */
@media (max-width: 359px) {
  .header-nav a:not(.btn) { display: none; }
}
