/* kobroapp.com marketing pages. Mobile first, no framework. Pages are generated by
   scripts/build-site.js from site/; edit the sources there, not the HTML in public/. */
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-display: swap; src: url(/fonts/bricolage-800.woff2) format("woff2"); }
@font-face { font-family: Figtree; font-weight: 400; font-display: swap; src: url(/fonts/figtree-400.woff2) format("woff2"); }
@font-face { font-family: Figtree; font-weight: 700; font-display: swap; src: url(/fonts/figtree-700.woff2) format("woff2"); }

:root {
  --green: #0e3b2c;
  --green-2: #17654a;
  --green-soft: #e3efe8;
  --gold: #f2b632;
  --gold-soft: #fcefcc;
  --paper: #f4f5ef;
  --card: #ffffff;
  --ink: #12201a;
  --muted: #4a564f;
  --rule: #c8cec4;
  --owes: #b4400f;
  --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.55 Figtree, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img, svg { max-width: 100%; }
a { color: var(--green-2); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px;
}
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.1; color: var(--green); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 9vw, 3.6rem); margin: 0 0 16px; }
h2 { font-size: clamp(1.7rem, 6.5vw, 2.4rem); margin: 0 0 16px; }
h3 { font-size: 1.3rem; margin: 0 0 8px; }
p { margin: 0 0 16px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 10; background: var(--card); padding: 12px 16px; border-radius: 12px; }

/* Header: logo and the language toggle, always visible. */
.top { background: var(--green); color: var(--paper); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.6rem; min-height: 56px; }
.brand svg { width: 36px; height: 36px; flex: none; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px;
  border-radius: 999px; background: var(--gold); color: var(--green); font-weight: 700; text-decoration: none;
}
.lang-toggle svg { width: 20px; height: 20px; }

/* "Prefer Spanish?" hint for Spanish browsers on English pages. Never redirects. */
.lang-hint { background: var(--gold-soft); border-bottom: 1px solid var(--rule); }
.lang-hint .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-top: 8px; padding-bottom: 8px; }
.lang-hint p { margin: 0; flex: 1 1 200px; font-weight: 700; }
.lang-hint a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; border-radius: 12px; background: var(--green); color: var(--paper); font-weight: 700; text-decoration: none; }
.lang-hint button { min-height: 48px; min-width: 48px; border: 0; background: none; font: inherit; font-size: 1.4rem; color: var(--muted); cursor: pointer; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 24px; border-radius: 14px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1.1rem; text-decoration: none; cursor: pointer;
}
.btn-gold { background: var(--gold); color: var(--green); }
.btn-green { background: var(--green); color: var(--paper); }
.btn-line { background: transparent; color: var(--green); border-color: var(--green); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }

/* Hero */
.hero { background: var(--green); color: var(--paper); padding: 32px 0 48px; overflow: hidden; }
.hero h1 { color: var(--paper); }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lede { font-size: 1.2rem; max-width: 34em; }
.hero .grid { display: grid; gap: 32px; align-items: center; }
.kicker { display: inline-block; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.85rem; margin-bottom: 12px; }
.promises { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; }
.promises li { display: flex; gap: 10px; align-items: flex-start; }
.promises svg { flex: none; width: 24px; height: 24px; margin-top: 2px; }

/* Store badges (placeholders until the listings exist) */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 16px;
  border-radius: 12px; background: #000; color: #fff; text-decoration: none; line-height: 1.15;
}
.store small { display: block; font-size: 0.75rem; opacity: 0.85; }
.store strong { display: block; font-size: 1.05rem; }
.store svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.store.soon { background: transparent; border: 2px solid rgb(244 245 239 / 0.5); color: var(--paper); }
.light .store.soon { border-color: var(--rule); color: var(--ink); }

/* Phone mock of the "Who owes me" screen (sample data only). */
.phone {
  justify-self: center; width: min(320px, 100%); background: var(--paper); color: var(--ink);
  border-radius: 36px; border: 10px solid #0a2a1f; box-shadow: 0 24px 60px rgb(0 0 0 / 0.35);
  padding: 18px 14px 22px; font-size: 15px;
}
.phone .bar { font-family: var(--display); font-weight: 800; color: var(--green); font-size: 1.25rem; margin-bottom: 10px; }
.phone .owed { background: var(--card); border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; }
.phone .owed .label { color: var(--muted); font-size: 0.9rem; }
.phone .owed .big { font-family: var(--display); font-weight: 800; font-size: 2.2rem; color: var(--owes); line-height: 1.1; }
.phone .row { background: var(--card); border-radius: 14px; padding: 10px 12px; margin-top: 8px; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; }
.phone .row b { font-size: 1rem; }
.phone .row .amt { font-family: var(--display); font-weight: 800; color: var(--owes); font-size: 1.15rem; }
.phone .row .sub { grid-column: 1 / -1; color: var(--muted); font-size: 0.82rem; }
.phone .row .chose { grid-column: 1 / -1; color: var(--green-2); font-size: 0.82rem; font-weight: 700; }
.phone .ask { margin-top: 12px; background: var(--green); color: var(--paper); border-radius: 14px; text-align: center; font-weight: 700; padding: 14px; }

/* Sections */
section { padding: 48px 0; }
section.alt { background: var(--card); }
.pillars { display: grid; gap: 16px; margin-top: 24px; }
.pillar { background: var(--card); border-radius: 18px; padding: 20px; box-shadow: 0 1px 2px rgb(0 0 0 / 0.06); }
section.alt .pillar { background: var(--paper); box-shadow: none; }
.pillar .icon { width: 48px; height: 48px; border-radius: 14px; background: var(--green-soft); display: grid; place-items: center; margin-bottom: 12px; }
.pillar .icon svg { width: 28px; height: 28px; }
.pillar p { margin: 0; color: var(--muted); }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 16px; margin: 24px 0 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: start; }
.steps li::before {
  content: counter(step); width: 48px; height: 48px; border-radius: 50%; background: var(--gold); color: var(--green);
  font-family: var(--display); font-weight: 800; font-size: 1.4rem; display: grid; place-items: center;
}
.steps h3 { margin-top: 10px; }
.steps p { margin: 0; color: var(--muted); }

/* Homeowner reassurance */
.homeowner { background: var(--gold-soft); }
.homeowner .box { display: grid; gap: 8px 24px; }
.note-strip { background: var(--gold-soft); }
.note-strip .wrap { padding-top: 12px; padding-bottom: 12px; }
.note-strip a { font-weight: 700; display: inline-flex; align-items: center; min-height: 48px; }

/* Trust list */
.trust { background: var(--green); color: var(--paper); }
.trust h2 { color: var(--gold); }
.trust ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.trust li { display: flex; gap: 12px; font-size: 1.15rem; }
.trust svg { flex: none; width: 28px; height: 28px; }

/* FAQ */
.faq details { background: var(--card); border-radius: 14px; margin-bottom: 10px; }
section.alt .faq details { background: var(--paper); }
.faq summary { min-height: 56px; padding: 14px 48px 14px 16px; font-weight: 700; cursor: pointer; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--green); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 16px 16px; margin: 0; color: var(--muted); }

/* Guides (long-form) */
.article { padding: 32px 0 48px; }
.article h1 { font-size: clamp(2rem, 8vw, 3rem); }
.article h2 { font-size: clamp(1.5rem, 5.5vw, 2rem); margin-top: 40px; }
.article .lede { font-size: 1.2rem; color: var(--muted); }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin: 6px 0; }
.crumbs { font-size: 0.95rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { display: inline-block; padding: 12px 0; }
.template { background: var(--card); border-left: 6px solid var(--gold); border-radius: 12px; padding: 14px 16px; margin: 12px 0 8px; }
.template .when { font-weight: 700; color: var(--green); margin-bottom: 6px; }
.template p { margin: 0 0 6px; }
.template p:last-child { margin: 0; }
.template [lang] { display: block; }
.template .tag { display: inline-block; font-size: 0.75rem; font-weight: 700; background: var(--green-soft); color: var(--green); border-radius: 6px; padding: 1px 6px; margin-right: 6px; vertical-align: 2px; }
.callout { background: var(--green-soft); border-radius: 16px; padding: 18px; margin: 32px 0; }
.callout p:last-child { margin: 0; }
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 12px; overflow: hidden; margin: 12px 0 20px; font-size: 1rem; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--rule); }
th { background: var(--green-soft); color: var(--green); }
.cards { display: grid; gap: 16px; margin-top: 24px; }
.card-link { display: block; background: var(--card); border-radius: 18px; padding: 20px; text-decoration: none; color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / 0.06); min-height: 56px; }
.card-link h3 { margin-bottom: 6px; }
.card-link p { margin: 0; color: var(--muted); }
.card-link .go { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--green-2); }

/* Beta form */
.beta { background: var(--green); color: var(--paper); }
.beta h2 { color: var(--gold); }
.beta-form { background: var(--card); color: var(--ink); border-radius: 20px; padding: 20px 16px; margin-top: 20px; display: grid; gap: 18px; }
.beta-form label, .beta-form legend { font-weight: 700; display: block; margin-bottom: 6px; }
.beta-form fieldset { border: 0; padding: 0; margin: 0; }
.beta-form input[type="text"], .beta-form input[type="email"], .beta-form input[type="tel"], .beta-form select {
  width: 100%; min-height: 56px; padding: 0 14px; font: inherit; color: var(--ink);
  background: var(--card); border: 2px solid var(--rule); border-radius: 14px;
}
.beta-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--green) 50%), linear-gradient(135deg, var(--green) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choices label { margin: 0; position: relative; }
.choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choices span {
  display: flex; align-items: center; justify-content: center; min-height: 56px; border: 2px solid var(--rule);
  border-radius: 14px; font-weight: 700; cursor: pointer; text-align: center; padding: 4px 8px;
}
.choices input:checked + span { background: var(--green); border-color: var(--green); color: var(--paper); }
.choices input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.help { font-size: 0.95rem; color: var(--muted); margin: 6px 0 0; font-weight: 400; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.beta-form .btn { width: 100%; }
.beta-form .fine { font-size: 0.95rem; color: var(--muted); margin: 0; }
.status { margin: 0; font-weight: 700; }
.status.ok { color: var(--green-2); }
.status.err { color: var(--owes); }
.field-err { border-color: var(--owes) !important; }

/* Footer */
footer { background: #0a2a1f; color: #cfd8d2; padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); font-size: 1rem; }
footer .cols { display: grid; gap: 24px; }
footer h2 { font-family: Figtree, system-ui, sans-serif; font-weight: 700; color: var(--gold); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 8px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer a { color: #fff; display: inline-flex; align-items: center; min-height: 44px; }
footer .promise { color: #fff; font-weight: 700; }
footer .small { font-size: 0.9rem; margin-top: 24px; }

@media (min-width: 720px) {
  .hero { padding: 56px 0 72px; }
  .hero .grid { grid-template-columns: 1.2fr 1fr; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .homeowner .box { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  footer .cols { grid-template-columns: repeat(4, 1fr); }
  .beta .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
  .beta-form { margin-top: 0; padding: 28px; }
}
@media (min-width: 1000px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
}
.hero .btn-line { color: var(--paper); border-color: var(--paper); }
.phone .row .amt.ok { color: var(--green-2); }
.after { margin-top: 24px; }
.phone .owed .big.plain { color: var(--ink); }
.phone .tipgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.phone .tipgrid span { background: var(--card); border: 2px solid var(--rule); border-radius: 12px; text-align: center; padding: 8px 4px; font-weight: 700; }
.phone .tipgrid small { display: block; font-weight: 400; color: var(--muted); }
.phone .tipgrid .on { background: var(--green); border-color: var(--green); color: var(--paper); }
.phone .tipgrid .on small { color: var(--paper); }
.phone .ask.venmo { background: #0074d4; }
.phone .bubble { background: #e9e9eb; color: #111; border-radius: 18px 18px 18px 4px; padding: 12px 14px; line-height: 1.4; }
.phone .sub-note { color: var(--muted); font-size: 0.82rem; margin-top: 10px; }
@media (max-width: 480px) {
  table { font-size: 0.9rem; }
  th, td { padding: 10px 6px; overflow-wrap: anywhere; }
}
