/* Gankya marketing site. Plain CSS, mobile-first, light and dark. */
:root {
  --bg: #f8fafc;
  --bg-alt: #eef4f3;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #dbe3ea;
  --brand: #0f766e;
  --brand-strong: #115e59;
  --brand-soft: #ccfbf1;
  --accent: #d97706;
  --accent-soft: #fef3c7;
  --on-brand: #ffffff;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --radius: 14px;
  --maxw: 1080px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1220;
    --bg-alt: #0f1a2b;
    --surface: #111c2e;
    --text: #e6edf5;
    --muted: #9fb0c4;
    --border: #22324a;
    --brand: #2dd4bf;
    --brand-strong: #5eead4;
    --brand-soft: #123a3a;
    --accent: #fbbf24;
    --accent-soft: #3a2c0d;
    --on-brand: #04201d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1220;
  --bg-alt: #0f1a2b;
  --surface: #111c2e;
  --text: #e6edf5;
  --muted: #9fb0c4;
  --border: #22324a;
  --brand: #2dd4bf;
  --brand-strong: #5eead4;
  --brand-soft: #123a3a;
  --accent: #fbbf24;
  --accent-soft: #3a2c0d;
  --on-brand: #04201d;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

*, *::before, *::after { 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(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; z-index: 100; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.logo svg { width: 28px; height: 28px; }
.nav { display: none; gap: 20px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--text); }
.header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
@media (min-width: 820px) {
  .nav { display: flex; }
  .header-actions { margin-left: 16px; }
}
.theme-toggle {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer; display: grid; place-items: center;
}
.theme-toggle svg { width: 18px; height: 18px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; font-weight: 650; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; font-size: 1rem; line-height: 1.2;
}
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-strong); color: var(--on-brand); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand); color: var(--text); }
.btn-sm { padding: 8px 14px; font-size: .9rem; }

/* Hero */
.hero { padding: 48px 0 32px; }
.hero .wrap { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.05fr 1fr; } .hero { padding: 80px 0 56px; } }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 14px;
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 38ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }
.fine { font-size: .875rem; color: var(--muted); }

/* Illustration card */
.illus {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  box-shadow: var(--shadow); padding: 16px;
}
.search-pill {
  display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 14px; font-size: .95rem; background: var(--bg);
}
.search-pill svg { width: 16px; height: 16px; flex: none; color: var(--muted); }
.plate { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 700; letter-spacing: .04em; }
.found { margin-left: auto; font-size: .8rem; font-weight: 700; color: var(--brand); white-space: nowrap; }
.map-svg { margin: 8px 0 4px; }
.map-svg .road { stroke: var(--border); stroke-width: 6; stroke-linecap: round; fill: none; }
.map-svg .trail { stroke: var(--brand); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; fill: none;
  stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 3.2s ease-out .4s forwards; }
.map-svg .cam { fill: var(--surface); stroke: var(--muted); stroke-width: 3; }
.map-svg .cam.on { fill: var(--brand); stroke: var(--brand); }
.map-svg .cam.next { fill: var(--accent-soft); stroke: var(--accent); stroke-dasharray: 4 3; }
.map-svg text { fill: var(--muted); font: 600 11px system-ui, sans-serif; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .map-svg .trail { animation: none; stroke-dashoffset: 0; } }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .9rem; }
.timeline li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 8px; background: var(--bg); }
.timeline li span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.timeline li.next { background: var(--accent-soft); }

/* Sections */
section { padding: 56px 0; }
@media (min-width: 900px) { section { padding: 80px 0; } }
.alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 32px; }
.grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 700px) and (max-width: 899px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card p:last-child { margin-bottom: 0; }
.icon {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 14px;
}
.icon svg { width: 22px; height: 22px; }

/* Before / after */
.compare .card h3 { display: flex; align-items: center; gap: 8px; }
.tag { font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.tag-bad { background: var(--accent-soft); color: var(--accent); }
.tag-good { background: var(--brand-soft); color: var(--brand); }
.compare ul { margin: 0; padding-left: 1.1em; }
.compare li { margin-bottom: .4em; }

/* Steps */
.steps { counter-reset: s; }
.steps .card { position: relative; padding-top: 52px; }
.steps .card::before {
  counter-increment: s; content: counter(s);
  position: absolute; top: 18px; left: 22px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand); color: var(--on-brand); font-weight: 800; font-size: .9rem; display: grid; place-items: center;
}

/* Trust list */
.trust { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 700px) { .trust { grid-template-columns: 1fr 1fr; } }
.trust li { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.trust svg { width: 20px; height: 20px; flex: none; color: var(--brand); margin-top: 3px; }
.trust strong { display: block; }

/* Pilot */
.pilot .wrap { display: grid; gap: 32px; }
@media (min-width: 900px) { .pilot .wrap { grid-template-columns: 1fr 1.1fr; align-items: start; } }
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { padding-left: 28px; position: relative; margin-bottom: 10px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230f766e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* Form */
form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.row-2 { display: grid; gap: 14px; }
@media (min-width: 560px) { .row-2 { grid-template-columns: 1fr 1fr; } }
label { font-weight: 600; font-size: .95rem; }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 11px 12px; width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: 2px solid color-mix(in srgb, var(--brand) 30%, transparent); }
textarea { min-height: 96px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9rem; color: var(--muted); }
.consent input { width: auto; margin-top: 4px; }
.hp { position: absolute; left: -5000px; }
.form-status { font-size: .95rem; min-height: 1.4em; margin: 0; }
.form-status.ok { color: var(--brand); }
.form-status.err { color: var(--accent); }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; }
details + details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--brand); font-weight: 800; }
details[open] summary::after { content: "−"; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0; font-size: .9rem; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 12px; }
@media (min-width: 700px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: center; } }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer a { color: var(--muted); }

/* Prose pages (privacy) */
.prose { max-width: 760px; padding-top: 40px; padding-bottom: 64px; }
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.note { background: var(--accent-soft); border-radius: 10px; padding: 12px 16px; font-size: .95rem; }

/* Blog (added by blog agent) */
.article { max-width: 720px; padding-top: 32px; padding-bottom: 64px; }
.article h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); }
.article h2 { font-size: 1.35rem; margin-top: 2em; }
.article h3 { margin-top: 1.5em; }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin-bottom: .45em; }
.article p, .article li { overflow-wrap: break-word; }
.article table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .95rem; display: block; overflow-x: auto; }
.article th, .article td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.article th { background: var(--bg-alt); }
.article code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: var(--bg-alt); padding: 1px 5px; border-radius: 6px; overflow-wrap: anywhere; }
.crumbs { font-size: .875rem; color: var(--muted); margin-bottom: 14px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--border); }
.crumbs a { color: var(--muted); }
.byline { font-size: .9rem; color: var(--muted); margin-bottom: 1.6em; }
.callout { background: var(--brand-soft); border-left: 4px solid var(--brand); border-radius: 10px; padding: 14px 16px; margin: 0 0 1.2em; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout-warn { background: var(--accent-soft); border-left-color: var(--accent); }
.sources { border-top: 1px solid var(--border); margin-top: 2.5em; padding: 1em 0 0; font-size: .925rem; }
.sources h2 { font-size: 1.1rem; margin-top: 0; }
.sources a { overflow-wrap: anywhere; }
.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.post-card h2 { font-size: 1.2rem; margin: 0 0 .4em; }
.post-card h2 a { color: var(--text); text-decoration: none; }
.post-card h2 a:hover { color: var(--brand); }
.post-card p { margin-bottom: .6em; }
.post-meta { font-size: .85rem; color: var(--muted); }
.blog-head { max-width: 720px; padding-top: 32px; }
.blog-list { max-width: 720px; padding-bottom: 64px; }

/* Pricing plans (three plans + founding offer) */
.plans { display: grid; gap: 16px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { display: flex; flex-direction: column; }
.plan h3 { margin: 0 0 .2em; font-size: 1.2rem; }
.plan-for { color: var(--muted); font-size: .95rem; margin: 0 0 14px; }
.plan-price { font-size: 1.75rem; font-weight: 800; line-height: 1.15; margin: 0 0 4px; font-variant-numeric: tabular-nums; }
.plan-price small { font-size: .95rem; font-weight: 600; color: var(--muted); }
.plan-price span { display: block; font-size: .9rem; font-weight: 500; color: var(--muted); }
.plan-cams { font-weight: 700; color: var(--brand); margin: 6px 0 16px; }
.plan .checks { margin-bottom: 0; font-size: .95rem; }
.plan-mid { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.founding { margin-top: 16px; border-left: 4px solid var(--accent); }
.founding .eyebrow { color: var(--text); background: var(--accent-soft); }
.founding h3 { margin: 0 0 .4em; font-size: 1.2rem; }
.plan-notes { margin-top: 24px; }
@media (min-width: 900px) { .plan-for { min-height: 3em; } }
