/* Kallo — getkallo.com
   Warm paper, studio light, calm ink. Light + dark via prefers-color-scheme. */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/fraunces.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/fraunces-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --bg: #f7f2e9;
  --bg-deep: #efe6d7;
  --surface: #fffbf4;
  --surface-2: #f3ebdd;
  --ink: #221c16;
  --ink-soft: #3d342b;
  --muted: #6b5f52;
  --line: #e2d6c3;
  --line-strong: #cdbda5;
  --accent: #b4461f;          /* text-safe terracotta */
  --accent-fill: #b4461f;     /* buttons */
  --on-accent: #fffaf2;
  --accent-soft: #f6dcc6;
  --glow: rgba(244, 176, 100, 0.45);
  --sage: #4f6e4d;
  --sage-soft: #dfe8d8;
  --note-bg: #fbecc9;
  --note-ink: #5c4210;
  --shadow: 0 1px 2px rgba(60, 40, 20, 0.06), 0 12px 32px -12px rgba(60, 40, 20, 0.18);
  --radius: 18px;
  --radius-sm: 10px;
  --max: 1160px;
  --gutter: 20px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Instrument Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15120f;
    --bg-deep: #100e0b;
    --surface: #1e1a16;
    --surface-2: #27211b;
    --ink: #f1e9dc;
    --ink-soft: #ddd2c2;
    --muted: #b3a594;
    --line: #372e26;
    --line-strong: #4d4136;
    --accent: #f29366;
    --accent-fill: #ef8a5a;
    --on-accent: #1a110b;
    --accent-soft: #3a2519;
    --glow: rgba(239, 138, 90, 0.22);
    --sage: #a9c7a1;
    --sage-soft: #223020;
    --note-bg: #2f2613;
    --note-ink: #f0d9a2;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  font-optical-sizing: auto;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 7.4vw, 4.6rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); }
h3 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.005em; }
p { margin: 0 0 1em; text-wrap: pretty; }
em.accent, .accent-text { color: var(--accent); font-style: italic; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-family: var(--font-display); font-weight: 650; font-size: 1.35rem; letter-spacing: -0.01em;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  display: none; color: var(--ink-soft); text-decoration: none; font-size: 0.95rem;
  padding: 8px 12px; border-radius: 999px;
}
.nav a:not(.btn):hover { background: var(--surface-2); }
@media (min-width: 860px) { .nav a:not(.btn) { display: inline-block; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px;
  font: 600 0.98rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent-fill); color: var(--on-accent); box-shadow: 0 8px 20px -10px var(--accent-fill); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent-fill) 88%, var(--ink)); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { min-height: 38px; padding: 8px 16px; font-size: 0.92rem; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 40px 0 56px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -30% auto auto; width: 80vw; height: 80vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; gap: 44px; align-items: center; }
@media (min-width: 960px) {
  .hero { padding: 72px 0 96px; }
  .hero .wrap { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-soft);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px 6px 10px;
  margin-bottom: 22px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-fill); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero h1 em { white-space: nowrap; font-style: italic; color: var(--accent); font-weight: 500; }
.lede { font-size: clamp(1.1rem, 2.4vw, 1.3rem); color: var(--ink-soft); max-width: 36ch; margin-bottom: 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fine { font-size: 0.9rem; color: var(--muted); margin-top: 16px; }

/* hero composition: a phone + an approval card */
.stage { position: relative; display: flex; justify-content: center; padding: 8px 0 40px; }
.phone {
  position: relative; width: min(270px, 68vw); aspect-ratio: 9 / 16;
  border-radius: 34px; padding: 9px; background: #1b1714;
  box-shadow: var(--shadow), 0 40px 80px -30px rgba(80, 40, 10, 0.45);
  transform: rotate(-2.5deg);
}
.phone img, .phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 26px; background: #efe8da; }
.approve-card {
  position: absolute; right: max(0px, calc(50% - 260px)); bottom: 0;
  width: min(250px, 66vw);
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 14px 12px;
  box-shadow: var(--shadow); transform: rotate(1.5deg); font-size: 0.86rem;
}
.approve-card .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-soft); }
.pill.wait { background: var(--accent-soft); color: var(--accent); }
.approve-card ul { list-style: none; padding: 0; margin: 0 0 10px; }
.approve-card li { display: flex; gap: 8px; align-items: baseline; color: var(--ink-soft); line-height: 1.35; margin: 5px 0; }
.approve-card li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); transform: translateY(-1px); }
.approve-card .acts { display: flex; gap: 6px; }
.approve-card .acts span { flex: 1; white-space: nowrap; text-align: center; font-weight: 600; font-size: 0.8rem; padding: 7px 0; border-radius: 999px; border: 1px solid var(--line-strong); }
.approve-card .acts span.yes { background: var(--sage); border-color: var(--sage); color: var(--surface); }
@media (max-width: 480px) {
  .approve-card { right: 0; }
  .phone { margin-right: 22%; }
}

/* ---------- sections ---------- */
section { scroll-margin-top: 72px; }
.band { padding: 72px 0; }
.band + .band { border-top: 1px solid var(--line); }
.band.alt { background: var(--bg-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band.alt + .band { border-top: 0; }
@media (min-width: 960px) { .band { padding: 104px 0; } }
.kicker { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p:not(.kicker) { color: var(--ink-soft); font-size: 1.12rem; }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.steps li {
  counter-increment: step; position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px 20px;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--font-display); font-style: italic; font-size: 0.95rem; color: var(--accent); margin-bottom: 18px;
}
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--ink-soft); font-size: 0.97rem; margin: 0; }
.steps li.key { background: var(--sage-soft); border-color: color-mix(in srgb, var(--sage) 35%, var(--line)); }
.steps li.key::before { color: var(--sage); }

/* examples */
.reels { display: grid; gap: 28px; grid-template-columns: 1fr; justify-items: center; }
@media (min-width: 720px) { .reels { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.reel { margin: 0; width: 100%; max-width: 320px; }
.reel .frame { border-radius: 26px; padding: 7px; background: #1b1714; box-shadow: var(--shadow); }
.reel video { width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 20px; background: #efe8da; object-fit: cover; }
.reel figcaption { padding: 14px 4px 0; }
.reel figcaption strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; line-height: 1.3; }
.reel figcaption span { display: block; color: var(--muted); font-size: 0.92rem; margin-top: 4px; }
.made-with { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 600; color: var(--accent); margin-top: 8px; }

/* split + cards */
.split { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: 0.9fr 1.1fr; gap: 72px; } }
.cards { display: grid; gap: 14px; }
@media (min-width: 600px) { .cards.two { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.check-list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.check-list li svg { width: 28px; height: 28px; color: var(--sage); margin-top: 1px; }
.check-list strong { display: block; font-weight: 650; }
.check-list span { color: var(--ink-soft); }

/* the three questions */
.questions { display: grid; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.questions li {
  font-family: var(--font-display); font-style: italic; font-size: 1.2rem;
  background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 12px 16px;
}

/* platforms */
.platforms { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.platforms li {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px 10px 12px; font-weight: 600;
}
.platforms li i { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-style: normal; font-size: 0.8rem; color: var(--on-accent); background: var(--accent-fill); }

/* privacy band */
.privacy-band { display: grid; gap: 14px; }
@media (min-width: 720px) { .privacy-band { grid-template-columns: repeat(3, 1fr); } }
.privacy-band .card { background: transparent; }
.mac-mark { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.mac-mark svg { width: 24px; height: 24px; }

/* pricing */
.price-note { display: grid; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
@media (min-width: 720px) { .price-note { grid-template-columns: 1fr auto; padding: 32px 36px; } }
.price-note h3 { font-size: 1.6rem; margin-bottom: 4px; }
.price-note p { margin: 0; color: var(--ink-soft); }

/* faq */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; position: relative;
  font-weight: 650; font-size: 1.05rem; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 20px 18px; color: var(--ink-soft); }
.faq details > div p:last-child { margin-bottom: 0; }

/* waitlist */
.waitlist {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--bg); border-radius: 28px; padding: 40px 24px;
}
.waitlist::before {
  content: ""; position: absolute; right: -120px; top: -160px; width: 460px; height: 460px;
  background: radial-gradient(closest-side, rgba(244, 164, 96, 0.5), transparent 70%); pointer-events: none;
}
@media (min-width: 720px) { .waitlist { padding: 64px; } }
.waitlist > * { position: relative; }
.waitlist h2 { color: var(--bg); }
.waitlist p { color: color-mix(in srgb, var(--bg) 78%, var(--ink)); max-width: 52ch; }
.waitlist form { display: grid; gap: 10px; margin-top: 26px; max-width: 560px; }
@media (min-width: 600px) { .waitlist form { grid-template-columns: 1fr auto; } }
.waitlist label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.waitlist input {
  min-height: 50px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--bg) 30%, transparent);
  background: color-mix(in srgb, var(--bg) 10%, transparent); color: var(--bg);
  padding: 0 20px; font: 500 1rem var(--font-body);
}
.waitlist input::placeholder { color: color-mix(in srgb, var(--bg) 60%, transparent); }
.waitlist .btn-primary { min-height: 50px; }
.waitlist .fine { color: color-mix(in srgb, var(--bg) 65%, var(--ink)); }
.waitlist .fine a { color: inherit; }
@media (prefers-color-scheme: dark) {
  .waitlist { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
  .waitlist h2 { color: var(--ink); }
  .waitlist p, .waitlist .fine { color: var(--ink-soft); }
  .waitlist input { border-color: var(--line-strong); background: var(--bg); color: var(--ink); }
  .waitlist input::placeholder { color: var(--muted); }
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 36px; margin-top: 72px; font-size: 0.95rem; }
.site-footer .wrap { display: grid; gap: 22px; }
@media (min-width: 860px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: center; } }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--ink); font-weight: 600; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.site-footer .small { color: var(--muted); font-size: 0.88rem; margin: 0; }
.site-footer .brand { font-size: 1.15rem; }
.site-footer .brand img { width: 26px; height: 26px; border-radius: 7px; }
.footer-meta { display: grid; gap: 8px; }

/* ---------- document pages (legal, contact) ---------- */
.doc { padding: 48px 0 24px; }
@media (min-width: 960px) { .doc { padding: 72px 0 24px; } }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(2.3rem, 6vw, 3.4rem); }
.doc h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); margin: 2.2em 0 0.6em; scroll-margin-top: 80px; }
.doc h3 { font-size: 1.12rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; margin: 1.6em 0 0.4em; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul, .doc ol { padding-left: 1.25em; margin: 0 0 1em; }
.doc li { margin: 0.35em 0; }
.doc li::marker { color: var(--muted); }
.doc strong { color: var(--ink); }
.doc .meta { color: var(--muted); font-size: 0.95rem; }
.draft-note {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--note-bg); color: var(--note-ink); border-radius: var(--radius-sm);
  padding: 12px 16px; margin: 0 0 28px; font-size: 0.95rem; line-height: 1.45;
}
.draft-note svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.placeholder {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.88em;
  background: var(--accent-soft); color: var(--accent); padding: 1px 6px; border-radius: 5px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 28px 0 8px; }
.toc p { margin: 0 0 8px; font-weight: 700; color: var(--ink); font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; }
.toc ol { columns: 2 220px; column-gap: 28px; margin: 0; padding-left: 1.3em; font-size: 0.95rem; }
.toc li { break-inside: avoid; margin: 0.2em 0; }
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table { border-collapse: collapse; width: 100%; font-size: 0.93rem; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
th { background: var(--surface-2); color: var(--ink); font-weight: 650; }
tr:last-child td { border-bottom: 0; }
.callout { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent-fill); border-radius: var(--radius-sm); padding: 16px 18px; margin: 0 0 1.2em; }
.callout p:last-child { margin-bottom: 0; }
.steps-plain { counter-reset: s; list-style: none; padding: 0 !important; }
.steps-plain > li { counter-increment: s; position: relative; padding-left: 38px; margin: 0.8em 0; }
.steps-plain > li::before {
  content: counter(s); position: absolute; left: 0; top: 0.05em;
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 0.85rem;
}
.path { font-weight: 600; color: var(--ink); }

/* contact + callback */
.contact-card { display: grid; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin: 24px 0; }
.big-mail { font-family: var(--font-display); font-size: clamp(1.5rem, 5vw, 2.2rem); font-weight: 560; word-break: break-word; }
.center-page { min-height: 70vh; display: grid; place-items: center; padding: 48px 0; }
.center-page .panel { max-width: 560px; width: 100%; text-align: left; }
.center-page .panel > img { width: 72px; height: 72px; border-radius: 18px; margin-bottom: 22px; }
.field { display: grid; gap: 6px; margin: 14px 0; }
.field label { font-size: 0.85rem; font-weight: 700; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.field .copy-row { display: flex; gap: 8px; }
.field output, .field code {
  flex: 1; min-width: 0; display: block; overflow-x: auto; white-space: nowrap;
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.88rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 12px;
}
.status { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--sage-soft); color: var(--ink); margin: 18px 0; }
.status.err { background: var(--accent-soft); }
[hidden] { display: none !important; }
.flush { margin: 0; }
