/* usekobuddy.com — the app's "Calm Teal" tokens (app/src/constants/theme.ts). */

@font-face { font-family: 'Plus Jakarta Sans'; src: url('/fonts/PlusJakartaSans_400Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; src: url('/fonts/PlusJakartaSans_600SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; src: url('/fonts/PlusJakartaSans_800ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; }

:root {
  --primary: #0B6E63;
  --primary-pressed: #08564D;
  --on-primary: #FFFFFF;
  --primary-soft: #E3F1EE;
  --background: #F6F5F1;
  --surface: #FFFFFF;
  --surface-muted: #EFEDE7;
  --text: #15201E;
  --text-secondary: #5B6663;
  --border: #E3E0D8;
  --attention: #8A5300;
  --attention-soft: #FBEFD9;
  --radius: 20px;
  --radius-small: 12px;
  --shadow: 0 1px 2px rgb(21 32 30 / 6%), 0 12px 32px rgb(21 32 30 / 8%);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #4FC1B1;
    --primary-pressed: #3FA597;
    --on-primary: #0F1514;
    --primary-soft: #1B2E2B;
    --background: #0F1514;
    --surface: #18201F;
    --surface-muted: #1F2927;
    --text: #EEF3F1;
    --text-secondary: #9BA8A5;
    --border: #2A3533;
    --attention: #F2B35E;
    --attention-soft: #33281A;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 32px rgb(0 0 0 / 30%);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 400 17px/1.6 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-pressed); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-weight: 800; font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
h2 { font-weight: 800; font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 16px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 16px; }
.muted { color: var(--text-secondary); }
.eyebrow { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary); margin-bottom: 0.75em; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px;
  background: var(--primary); color: var(--on-primary);
  font-family: inherit; font-weight: 600; font-size: 1rem; line-height: 1; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease;
}
.button:hover { background: var(--primary-pressed); color: var(--on-primary); }
.button-small { min-height: 40px; padding: 0 16px; font-size: 0.95rem; }
.button-quiet { background: transparent; color: var(--primary); box-shadow: inset 0 0 0 1px var(--border); }
.button-quiet:hover { background: var(--primary-soft); color: var(--primary); }
.button[disabled] { opacity: 0.6; cursor: wait; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--background) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { color: var(--primary); display: inline-flex; }
.brand:hover { color: var(--primary); }
.wordmark { height: 26px; width: auto; }
.site-header nav { display: flex; align-items: center; gap: 22px; }
.nav-link { color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav-link:hover { color: var(--primary); }
@media (max-width: 560px) { .nav-link { display: none; } .wordmark { height: 22px; } }

/* Hero */
.hero { padding: 56px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { max-width: 13ch; }
.hero .lead { font-size: 1.2rem; color: var(--text-secondary); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 16px; }
.hero-note { font-size: 0.9rem; color: var(--text-secondary); }
.phones { position: relative; display: flex; justify-content: center; align-items: flex-start; padding-bottom: 48px; }
.phone {
  width: 250px; border-radius: 36px; padding: 8px; background: #0F1514;
  box-shadow: var(--shadow), 0 0 0 1px rgb(255 255 255 / 6%) inset;
}
.phone img { border-radius: 28px; width: 100%; height: auto; }
.phones .phone:nth-child(1) { transform: rotate(-4deg) translateX(24px); z-index: 1; }
.phones .phone:nth-child(2) { transform: rotate(4deg) translate(-24px, 48px); }
@media (max-width: 880px) {
  .hero { padding-top: 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .phones { min-height: 0; }
  .phone { width: min(44vw, 220px); }
  .phones .phone:nth-child(1) { transform: rotate(-3deg) translateX(16px); }
  .phones .phone:nth-child(2) { transform: rotate(3deg) translate(-16px, 32px); }
}

/* Sections */
section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--text-secondary); font-size: 1.1rem; }
.band { background: var(--surface); border-block: 1px solid var(--border); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { background: var(--background); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 16px;
  border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 800;
}
.steps p { color: var(--text-secondary); margin: 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.feature p { color: var(--text-secondary); margin: 0; }
.feature-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 16px; }
.feature-icon svg { width: 22px; height: 22px; }
@media (max-width: 880px) { .steps, .features { grid-template-columns: 1fr; } }

.banks { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 0 0 16px; }
.banks li { background: var(--background); border: 1px solid var(--border); border-radius: 999px; padding: 10px 18px; font-weight: 600; }
.banks li.more { background: transparent; border-style: dashed; color: var(--text-secondary); font-weight: 400; }

.privacy-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 32px; list-style: none; padding: 0; margin: 0; }
.privacy-points li { padding-left: 32px; position: relative; }
.privacy-points li::before {
  content: ''; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat;
}
@media (prefers-color-scheme: dark) {
  .privacy-points li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%230F1514' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
}
@media (max-width: 720px) { .privacy-points { grid-template-columns: 1fr; } }

/* Beta form */
.beta-card { background: var(--primary); color: var(--on-primary); border-radius: 28px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.beta-card h2 { color: inherit; }
.beta-card p { opacity: 0.9; }
.beta-form { display: grid; gap: 14px; }
.beta-form label { font-weight: 600; font-size: 0.95rem; }
.beta-form input[type=email] {
  width: 100%; min-height: 52px; padding: 0 18px; border-radius: 14px; border: 0;
  font: inherit; background: var(--surface); color: var(--text);
}
.beta-form fieldset { border: 0; padding: 0; margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.beta-form legend { font-weight: 600; font-size: 0.95rem; margin-bottom: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 55%); cursor: pointer; font-weight: 600; }
.choice input:checked + span { background: var(--on-primary); color: var(--primary); box-shadow: none; }
.choice input:focus-visible + span { outline: 3px solid var(--on-primary); outline-offset: 2px; }
.beta-form .button { background: var(--on-primary); color: var(--primary); justify-self: start; }
.beta-form .button:hover { background: var(--primary-soft); color: var(--primary); }
.form-status { min-height: 1.6em; font-weight: 600; margin: 0; }
.fine-print { font-size: 0.85rem; opacity: 0.85; margin: 0; }
.fine-print a { color: inherit; }
@media (max-width: 880px) { .beta-card { grid-template-columns: 1fr; } }

/* Text pages (privacy, terms, support) */
.doc { padding: 48px 0 80px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
.doc h2 { font-size: 1.45rem; margin-top: 2em; }
.doc h3 { margin-top: 1.5em; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: 0.4em; }
.doc .updated { color: var(--text-secondary); }
.doc .summary { background: var(--primary-soft); border-radius: var(--radius); padding: 20px 24px; margin: 24px 0 8px; }
.doc .summary ul { margin: 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 0.95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--border); }
.doc th { font-weight: 600; }
.table-scroll { overflow-x: auto; }
.faq details { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--primary); font-weight: 800; font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p, .faq details ul, .faq details ol { margin-top: 12px; color: var(--text-secondary); }
.callout { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 24px; font-size: 0.95rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-brand p { color: var(--text-secondary); margin-top: 12px; max-width: 30ch; }
.footer-links, .footer-social { display: grid; gap: 10px; align-content: start; }
.footer-links a, .footer-social a, .footer-links .link-button { color: var(--text); text-decoration: none; justify-self: start; }
.footer-links a:hover, .footer-social a:hover, .footer-links .link-button:hover { color: var(--primary); }
.footer-links .link-button { text-decoration: none; }
.footer-legal { margin-top: 40px; color: var(--text-secondary); font-size: 0.85rem; }
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr; } }

/* Cookie consent */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 30; max-width: 560px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 20px; font-size: 0.95rem;
}
.consent[hidden] { display: none; }
.consent-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* 404 */
.not-found { padding: 96px 0; text-align: center; }
.not-found p { color: var(--text-secondary); }
