/* ==========================================================================
   KomCrawl — offline landing page styles
   Self-contained: no external fonts, no CDNs, no network requests.
   ========================================================================== */

:root {
  --bg:            #0b0f14;
  --bg-alt:        #0f151d;
  --bg-raise:      #131b25;
  --bg-card:       #141d28;
  --border:        #223040;
  --border-soft:   #1b2733;

  --text:          #e8eef6;
  --text-muted:    #9fb0c4;
  --text-dim:      #7b8ea5;

  --accent:        #46d1b0;
  --accent-strong: #5ee3c1;
  --accent-dim:    #1f6d5c;
  --accent-ink:    #04211b;

  --danger:        #e8798a;

  --radius:        14px;
  --radius-sm:     9px;
  --wrap:          1120px;

  --shadow:        0 1px 2px rgba(0,0,0,.4), 0 12px 32px -12px rgba(0,0,0,.6);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg:            #f7f9fb;
    --bg-alt:        #eef2f7;
    --bg-raise:      #ffffff;
    --bg-card:       #ffffff;
    --border:        #d6dfe9;
    --border-soft:   #e3eaf2;

    --text:          #10202f;
    --text-muted:    #4c6076;
    --text-dim:      #64788d;

    --accent:        #0d7f68;
    --accent-strong: #0a6a57;
    --accent-dim:    #a8e2d3;
    --accent-ink:    #ffffff;

    --danger:        #b03650;

    --shadow:        0 1px 2px rgba(16,32,47,.06), 0 10px 28px -14px rgba(16,32,47,.24);
  }
}

/* ---------- base ---------- */

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 650; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); max-width: 22ch; }
h3 { font-size: 1.08rem; letter-spacing: -.01em; }
p  { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.15em; }
li { margin: .35em 0; }
code { font-family: var(--mono); font-size: .86em; }

a { color: var(--accent); text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 0 0 var(--radius-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  display: flex; align-items: center; gap: 24px;
  min-height: 62px;
}

.brand {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--text); text-decoration: none; font-weight: 680;
  letter-spacing: -.02em; font-size: 1.05rem;
  margin-right: auto;
}
.brand-mark {
  display: grid; place-items: center;
  width: 28px; height: 28px; flex: none;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--accent), var(--accent-dim));
  color: var(--accent-ink);
}
.brand-mark svg { width: 17px; height: 17px; }
.brand-text { white-space: nowrap; }

.site-nav { display: flex; gap: 22px; }
.site-nav a {
  color: var(--text-muted); text-decoration: none; font-size: .92rem; font-weight: 500;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--text); }

@media (max-width: 940px) {
  .site-nav { display: none; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border-radius: 10px;
  font-weight: 600; font-size: .97rem; text-decoration: none;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .12s ease, background-color .12s ease, border-color .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 15px; font-size: .88rem; border-radius: 8px; }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); color: var(--accent-ink); }

.btn-ghost { border-color: var(--border); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }

@media (max-width: 560px) { .header-cta { display: none; } }

/* ---------- hero ---------- */

.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 104px) 0 clamp(56px, 8vw, 92px); }

.hero-glow {
  position: absolute; inset: -40% 30% auto -10%; height: 620px;
  background: radial-gradient(ellipse at 30% 40%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 62%);
  filter: blur(20px); pointer-events: none;
}
@media (prefers-color-scheme: light) {
  .hero-glow { background: radial-gradient(ellipse at 30% 40%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 62%); }
}

.hero-inner {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
  gap: clamp(32px, 5vw, 64px); align-items: start;
}
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } }

/* min-width:0 keeps long words from forcing grid overflow */
.hero-copy { min-width: 0; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .13em; font-size: .74rem;
  font-weight: 700; color: var(--accent); margin: 0 0 14px;
}

.hero h1 { margin-bottom: 22px; }
.accent { color: var(--accent); }

.lede { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--text-muted); max-width: 58ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }

.hero-note { font-size: .9rem; color: var(--text-dim); margin: 0; }

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 24px 8px;
  box-shadow: var(--shadow);
}
.hero-card-head {
  display: flex; align-items: center; gap: 9px;
  font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--text-dim); padding-bottom: 14px; margin-bottom: 6px;
  border-bottom: 1px solid var(--border-soft);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }

.hero-card-list { list-style: none; padding: 0; margin: 0; }
.hero-card-list li {
  position: relative; padding: 10px 0 10px 24px; margin: 0;
  font-size: .95rem; color: var(--text-muted);
  border-bottom: 1px solid var(--border-soft);
}
.hero-card-list li:last-child { border-bottom: 0; }
.hero-card-list li::before {
  content: ""; position: absolute; left: 4px; top: 19px;
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--accent); opacity: .8;
}

/* ---------- sections ---------- */

.section { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--border-soft); }
.section-alt { background: var(--bg-alt); }

.section-lede { font-size: 1.05rem; color: var(--text-muted); max-width: 66ch; margin-bottom: 2.2em; }

.sub {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-dim); font-weight: 700; margin-bottom: 16px;
}

.fineprint { font-size: .88rem; color: var(--text-dim); max-width: 70ch; }

/* ---------- grids & cards ---------- */

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin-bottom: .55em; }
.card p { color: var(--text-muted); font-size: .95rem; margin-bottom: 0; }
.card p + p { margin-top: .9em; }

.card-accent { border-top: 2px solid var(--accent); }
.card-foot { font-size: .85rem !important; color: var(--text-dim) !important; }

.problem-grid { margin-bottom: 28px; }

.tag {
  display: inline-block; margin-bottom: 12px;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  padding: 4px 10px; border-radius: 999px;
}

.callout {
  margin-top: 28px;
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px;
}
.callout p { margin: 0; color: var(--text-muted); }
.callout strong { color: var(--text); }
.callout-muted {
  border-left-color: var(--border);
  background: color-mix(in srgb, var(--text) 4%, transparent);
}

/* ---------- steps ---------- */

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }

.step {
  display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start;
  padding: 22px 22px 22px 18px; margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step + .step { margin-top: 10px; }
.step h3 { margin-bottom: .35em; }
.step p { margin: 0; color: var(--text-muted); font-size: .95rem; max-width: 72ch; }

.step-num {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  font-weight: 700; font-size: .98rem;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}

@media (max-width: 520px) {
  .step { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- chips ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.chip {
  font-size: .82rem; font-weight: 600;
  padding: 5px 11px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  color: var(--accent);
}
.chip-muted {
  background: transparent; color: var(--text-dim);
  border-color: var(--border); font-weight: 500;
}

/* ---------- deliverables split ---------- */

.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px); align-items: start;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative; padding-left: 30px; margin: 0 0 13px;
  color: var(--text-muted); font-size: .97rem;
}
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 700;
}

.schema-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.schema-note { font-size: .9rem; color: var(--text-dim); margin-bottom: 18px; }

.schema-list { list-style: none; padding: 0; margin: 0; }
.schema-list li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
  padding: 9px 0; margin: 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: .92rem;
}
.schema-list li:last-child { border-bottom: 0; }
.schema-list code {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  padding: 2px 7px; border-radius: 5px;
}
.schema-list span { color: var(--text-dim); }

/* ---------- offer ---------- */

.section-offer { background: var(--bg-alt); }

.offer {
  background: var(--bg-raise);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: clamp(28px, 4.5vw, 52px);
  box-shadow: var(--shadow);
}
.offer-head h2 { max-width: 26ch; }
.offer-head .section-lede { margin-bottom: 1.4em; }

.offer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(24px, 4vw, 48px);
  padding-top: 28px; border-top: 1px solid var(--border-soft);
}
.offer-col { min-width: 0; }

.num-list { list-style: none; counter-reset: n; padding: 0; margin: 0 0 18px; }
.num-list li {
  counter-increment: n;
  position: relative; padding-left: 32px; margin: 0 0 11px;
  color: var(--text-muted); font-size: .96rem;
}
.num-list li::before {
  content: counter(n);
  position: absolute; left: 0; top: 2px;
  width: 21px; height: 21px; border-radius: 6px;
  display: grid; place-items: center;
  font-size: .74rem; font-weight: 700;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

/* ---------- boundary ---------- */

.boundary-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.boundary-col {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.boundary-col h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.boundary-col ul { list-style: none; padding: 0; margin: 0; }
.boundary-col li {
  position: relative; padding-left: 18px; margin: 0 0 11px;
  color: var(--text-muted); font-size: .95rem;
}
.boundary-col li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 6px; height: 2px; border-radius: 1px; background: var(--border);
}

.bicon {
  display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: 7px;
  font-size: .82rem; font-weight: 700; flex: none;
}
.boundary-yes { border-top: 2px solid var(--accent); }
.boundary-yes .bicon { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.boundary-no  { border-top: 2px solid var(--danger); }
.boundary-no .bicon  { color: var(--danger); background: color-mix(in srgb, var(--danger) 14%, transparent); }

/* ---------- CTA ---------- */

.cta {
  border-top: 1px solid var(--border-soft);
  background:
    radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%),
    var(--bg-alt);
  padding: clamp(56px, 8vw, 92px) 0;
}
.cta-inner { text-align: center; max-width: 700px; }
.cta h2 { margin-inline: auto; max-width: 18ch; }
.cta > .wrap > p { color: var(--text-muted); margin-inline: auto; max-width: 56ch; }

.contact-placeholder {
  display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 12px; margin: 26px auto 14px;
  padding: 14px 20px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--text) 4%, transparent);
}
.cp-label {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent);
}
.cp-value { color: var(--text-dim); font-size: .94rem; }

.cta-fine { font-size: .88rem; color: var(--text-dim) !important; margin-bottom: 0 !important; }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--border-soft); padding: 40px 0 32px; background: var(--bg); }

.footer-inner {
  display: flex; flex-wrap: wrap; gap: 24px 40px;
  justify-content: space-between; align-items: flex-start;
}
.footer-brand { font-weight: 680; letter-spacing: -.02em; margin: 0 0 4px; }
.footer-note { color: var(--text-dim); font-size: .9rem; margin: 0; max-width: 42ch; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-nav a { color: var(--text-muted); text-decoration: none; font-size: .9rem; }
.footer-nav a:hover { color: var(--text); }

.footer-legal {
  margin-top: 28px; padding-top: 20px;
  border-top: 1px solid var(--border-soft);
}
.footer-legal p { margin: 0; font-size: .84rem; color: var(--text-dim); }

/* ---------- print ---------- */

@media print {
  .site-header, .skip-link, .hero-glow, .hero-actions, .footer-nav { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section, .cta { padding: 18pt 0; border-top: 1px solid #ccc; }
  .card, .step, .offer, .boundary-col, .schema-panel, .hero-card {
    border: 1px solid #ccc; box-shadow: none; break-inside: avoid;
  }
}
