/* ============================================================
   Kayd marketing site — shared stylesheet
   ============================================================
   Brand: Kayd (product) by Ayuuto (operator).
   Design tokens transcribed from the Kayd Design System bundle
   delivered by Claude Design (2026-04-26).

   Source of truth for color: apps/mobile/src/theme/tokens.ts
   Source of truth for visual rules: kayd-design-system/README.md

   No gradients. No frosted glass except the sticky nav. No
   left-border-accent cards. Brand-green is the only saturated hue.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap");

:root {
  /* Surfaces (warm cream stack) */
  --ground:           #F7F3EC;
  --ground-raised:    #FFFFFF;
  --ground-sunken:    #EFE9DE;

  /* Ink */
  --ink:              #1A1A1A;
  --ink-muted:        #4A4A48;
  --ink-subtle:       #6A6862;

  /* Hairlines */
  --hairline:         #E5DFD3;
  --hairline-strong:  #D6CFBD;

  /* Brand green (only saturated color) */
  --accent:           #2C5F3F;
  --accent-pressed:   #234B32;
  --accent-subtle:    #E4EFE6;
  --accent-on:        #FFFFFF;
  --accent-border:    #C9DECF;

  /* Status (sparingly) */
  --status-error:     #8C2A2A;
  --status-error-bg:  #F4E5E0;
  --status-warn:      #8C6A2A;
  --status-warn-bg:   #F5ECD9;

  /* Type */
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;
  --font-display: var(--font-sans);

  --fs-display: 56px;
  --fs-h1:      40px;
  --fs-h2:      32px;
  --fs-h3:      22px;
  --fs-lead:    20px;
  --fs-body:    16px;
  --fs-small:   14px;
  --fs-caption: 13px;

  --lh-display: 1.1;
  --lh-h1:      1.15;
  --lh-h2:      1.2;
  --lh-h3:      1.3;
  --lh-lead:    1.5;
  --lh-body:    1.6;
  --lh-small:   1.5;

  --ls-display: -1.5px;
  --ls-h1:      -1px;
  --ls-h2:      -0.6px;
  --ls-h3:      -0.3px;
  --ls-body:    0;

  /* Spacing (8pt grid) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Radii */
  --radius-1:    4px;
  --radius-2:    6px;
  --radius-3:    8px;
  --radius-4:    12px;
  --radius-pill: 999px;

  /* Shadows (warm, low) */
  --shadow-1: 0 1px 2px rgba(26, 26, 26, 0.04);
  --shadow-2: 0 4px 12px rgba(26, 26, 26, 0.06);
  --shadow-3: 0 12px 32px rgba(26, 26, 26, 0.08);

  /* Layout */
  --content-marketing: 1100px;
  --content-doc:        760px;

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-fast:   100ms;
  --t-base:   180ms;
  --t-slow:   300ms;
}

@media (max-width: 768px) {
  :root {
    --fs-display: 36px;
    --fs-h1: 30px;
    --fs-h2: 24px;
    --fs-h3: 19px;
    --fs-lead: 17px;
    --space-9: 56px;
  }
}

/* ============================================================
   Base
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--ground);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease-out);
}
a:hover { text-decoration: underline; }

p { margin: 0; }

h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-2);
}

img, svg { max-width: 100%; }

/* ============================================================
   Typography utilities
   ============================================================ */

.display {
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  font-weight: 800;
}
.h1 { font-size: var(--fs-h1);  line-height: var(--lh-h1); letter-spacing: var(--ls-h1); font-weight: 800; }
.h2 { font-size: var(--fs-h2);  line-height: var(--lh-h2); letter-spacing: var(--ls-h2); font-weight: 800; }
.h3 { font-size: var(--fs-h3);  line-height: var(--lh-h3); letter-spacing: var(--ls-h3); font-weight: 700; }
.lead     { font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--ink-muted); }
.caption  { font-size: var(--fs-caption); color: var(--ink-subtle); }
.muted    { color: var(--ink-muted); }
.subtle   { color: var(--ink-subtle); }
.mono     { font-family: var(--font-mono); }

/* ============================================================
   Layout
   ============================================================ */

.container {
  max-width: var(--content-marketing);
  margin: 0 auto;
  padding: 0 24px;
}
.container-doc {
  max-width: var(--content-doc);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: var(--space-9) 0; }
.section-tone {
  background: var(--ground-raised);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

/* ============================================================
   Nav
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 236, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: var(--content-marketing);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-glyph {
  width: 28px;
  height: 28px;
  color: var(--accent);
  flex-shrink: 0;
}
.brand-name {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.5px;
  color: var(--ink);
}
.brand-sub {
  font-weight: 400;
  font-size: 13px;
  color: var(--ink-subtle);
}
.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
}
.nav-links a {
  color: var(--ink-muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--t-fast) var(--ease-out);
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-back {
  color: var(--ink-muted);
  font-size: 15px;
  text-decoration: none;
}
.nav-back:hover { color: var(--ink); text-decoration: none; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--ink);
  font-size: 18px;
  border-radius: var(--radius-2);
}
.nav-toggle:hover { background: var(--ground-sunken); }

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--ground);
    border-bottom: 1px solid var(--hairline);
    padding: 16px 24px 24px;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .nav-links.open { display: flex; }
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 22px;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--radius-2);
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  transition:
    background var(--t-fast) var(--ease-out),
    border-color var(--t-fast) var(--ease-out),
    color var(--t-fast) var(--ease-out),
    transform var(--t-fast) var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: var(--accent-on);
}
.btn-primary:hover { background: var(--accent-pressed); text-decoration: none; }
.btn-secondary {
  background: var(--ground-raised);
  color: var(--ink);
  border-color: var(--hairline-strong);
}
.btn-secondary:hover { border-color: var(--accent); text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ground-sunken); text-decoration: none; }

/* ============================================================
   Pill / eyebrow
   ============================================================ */

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 5px 12px;
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.2px;
  border-radius: var(--radius-pill);
  background: var(--accent-subtle);
  color: var(--accent);
}

/* ============================================================
   Cards
   ============================================================ */

.card {
  background: var(--ground-raised);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-3);
  padding: var(--space-6);
}
.card-cream {
  background: var(--ground);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-3);
  padding: var(--space-6);
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  padding: 96px 0 72px;
  text-align: center;
}
.hero h1 {
  margin: 0 auto 24px;
  max-width: 820px;
}
.hero .lead {
  max-width: 640px;
  margin: 0 auto 36px;
}
.hero-pill { margin-bottom: 24px; }
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.hero-note {
  font-size: var(--fs-caption);
  color: var(--ink-subtle);
}

@media (max-width: 768px) {
  .hero { padding: 64px 0 48px; }
}

/* ============================================================
   Steps grid
   ============================================================ */

.section-heading {
  text-align: center;
  margin-bottom: 14px;
}
.section-lede {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
  color: var(--ink-muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step {
  background: var(--ground);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-3);
  padding: 26px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--accent-on);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 16px;
}
.step h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.step p {
  font-size: 14.5px;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* ============================================================
   Feature grid
   ============================================================ */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: var(--ground-raised);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-3);
  padding: 28px;
}
.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--accent-subtle);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature p {
  font-size: 14.5px;
  color: var(--ink-muted);
  line-height: 1.55;
}

@media (max-width: 1024px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .steps, .features { grid-template-columns: 1fr; }
}

/* ============================================================
   ROSCA explainer
   ============================================================ */

.rosca {
  max-width: 760px;
  margin: 0 auto;
  padding: 44px;
}
.rosca .pill { margin-bottom: 18px; }
.rosca h2 {
  font-size: 30px;
  margin-bottom: 18px;
}
.rosca p {
  color: var(--ink-muted);
  margin-bottom: 14px;
  line-height: 1.7;
}
.rosca p:last-child { margin-bottom: 0; }
.rosca strong { color: var(--ink); font-weight: 600; }

@media (max-width: 640px) {
  .rosca { padding: 28px; }
  .rosca h2 { font-size: 24px; }
}

/* ============================================================
   Trust banner
   ============================================================ */

.trust-section { padding: 72px 0 96px; }
.trust {
  max-width: 760px;
  margin: 0 auto;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-4);
  padding: 36px;
  text-align: center;
}
.trust h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--accent-pressed);
}
.trust p {
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ============================================================
   App store badges
   ============================================================ */

.badges {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.badges a { line-height: 0; display: inline-block; }
.badges img {
  height: 52px;
  width: auto;
  border-radius: 8px;
  transition: transform var(--t-fast) var(--ease-out);
}
.badges a:hover img { transform: translateY(-1px); }

.badges-section { padding: 0 0 64px; }

/* ============================================================
   Footer
   ============================================================ */

.footer {
  background: var(--ground-sunken);
  border-top: 1px solid var(--hairline-strong);
  padding: 56px 0 28px;
}
.footer-inner {
  max-width: var(--content-marketing);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
}
.footer-brand p {
  color: var(--ink-muted);
  font-size: 14px;
  max-width: 320px;
  line-height: 1.6;
}
.footer-brand .brand { margin-bottom: 12px; }
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-col a {
  color: var(--ink-muted);
  font-size: 14px;
  text-decoration: none;
}
.footer-col a:hover { color: var(--ink); text-decoration: none; }
.footer-bottom {
  max-width: var(--content-marketing);
  margin: 44px auto 0;
  padding: 22px 24px 0;
  text-align: center;
  color: var(--ink-subtle);
  font-size: 13px;
  border-top: 1px solid var(--hairline-strong);
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   Long-form documents (privacy / terms)
   ============================================================ */

.doc {
  max-width: var(--content-doc);
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.doc-header {
  margin-bottom: 48px;
}
.doc-header h1 {
  font-size: var(--fs-h1);
  font-weight: 800;
  letter-spacing: var(--ls-h1);
  margin-bottom: 12px;
}
.doc-meta {
  color: var(--ink-subtle);
  font-size: var(--fs-small);
}

.doc h2 {
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: var(--ls-h3);
  margin: 40px 0 12px;
}
.doc h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 28px 0 8px;
}
.doc p, .doc li {
  color: var(--ink-muted);
  margin-bottom: 12px;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}
.doc ul, .doc ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--ink); font-weight: 600; }

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 15px;
}
.doc th, .doc td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
.doc th {
  background: var(--ground-raised);
  font-weight: 700;
  color: var(--ink);
}
.doc td { color: var(--ink-muted); }

.doc-callout {
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-3);
  padding: 16px 20px;
  margin: 24px 0;
}
.doc-callout p { margin-bottom: 0; color: var(--ink); }

.doc-warning {
  background: var(--status-warn-bg);
  border: 1px solid #E8D9A0;
  border-radius: var(--radius-3);
  padding: 16px 20px;
  margin: 24px 0;
}
.doc-warning p { color: #5C4516; margin-bottom: 0; }
.doc-warning strong { color: #3F2F0E; }

@media (max-width: 640px) {
  .doc { padding: 40px 20px 64px; }
  .doc-header h1 { font-size: 30px; }
}

/* ============================================================
   Support / FAQ
   ============================================================ */

.support-header {
  text-align: center;
  margin-bottom: 40px;
}
.support-header h1 {
  font-size: var(--fs-h1);
  font-weight: 800;
  letter-spacing: var(--ls-h1);
  margin-bottom: 12px;
}
.support-header p { color: var(--ink-muted); font-size: var(--fs-lead); }

.contact-card {
  background: var(--ground-raised);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-3);
  padding: 32px;
  text-align: center;
  margin-bottom: 48px;
}
.contact-card h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.contact-card p {
  color: var(--ink-muted);
  margin-bottom: 18px;
}
.contact-card .response {
  display: block;
  margin-top: 14px;
  font-size: var(--fs-caption);
  color: var(--ink-subtle);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq {
  background: var(--ground-raised);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-3);
  overflow: hidden;
}
.faq summary {
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--ink-subtle);
  font-size: 20px;
  font-weight: 400;
  transition: transform var(--t-fast) var(--ease-out);
}
.faq[open] summary::after { content: "−"; }
.faq summary:hover { background: var(--ground-sunken); }
.faq-body {
  padding: 0 22px 20px;
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.65;
}
.faq-body p { margin-bottom: 12px; }
.faq-body p:last-child { margin-bottom: 0; }
.faq-body ol, .faq-body ul {
  padding-left: 24px;
  margin-bottom: 12px;
}
.faq-body li { margin-bottom: 4px; }

.support-section-heading {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 18px;
}
