/* Kalterro one-page site. Placeholders (phone, email, city, prices) are set in script.js. */

/* base reset */
html { color-scheme: light dark; }
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
  :root {
    /* constant brand navy (hero, exposure-check band, footer) */
    --navy: #0B1E36;
    --navy-2: #123457; /* logo navy */
    --on-navy: #F1F6FC;
    --on-navy-2: #A9BBD1;
    --navy-line: rgba(255, 255, 255, .16);
    --bright: #5AA2FF;
    --on-bright: #06182D;

    /* themed surfaces */
    --bg: #F4F7FB;
    --surface: #FFFFFF;
    --surface-2: #E8EFF8;
    --ink: #0C1E33;
    --ink-2: #465A70;
    --line: #D3DEEB;
    --accent: #1F66DC;
    --on-accent: #FFFFFF;
    --accent-soft: #E1ECFC;
    --accent-text: #1858BE;
    --warn: #8A4B06;
    --warn-bg: #FDF0DC;

    --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
    --font-body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #08131F;
      --surface: #0D1C2E;
      --surface-2: #122842;
      --ink: #E8EFF8;
      --ink-2: #9FB2C8;
      --line: #1F3653;
      --accent: #5AA2FF;
      --on-accent: #06182D;
      --accent-soft: #132B4D;
      --accent-text: #7DB6FF;
      --warn: #F2B25C;
      --warn-bg: #33240C;
    }
  }
  :root[data-theme="dark"] {
    --bg: #08131F;
    --surface: #0D1C2E;
    --surface-2: #122842;
    --ink: #E8EFF8;
    --ink-2: #9FB2C8;
    --line: #1F3653;
    --accent: #5AA2FF;
    --on-accent: #06182D;
    --accent-soft: #132B4D;
    --accent-text: #7DB6FF;
    --warn: #F2B25C;
    --warn-bg: #33240C;
  }

  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

  body {
    background: var(--bg);
    color: var(--ink);
    font: 400 1.0625rem/1.6 var(--font-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; }
  p { margin: 0; }
  ul, ol, dl, dd { margin: 0; padding: 0; }
  li { list-style: none; }
  a { color: inherit; }
  :focus-visible { outline: 3px solid var(--bright); outline-offset: 3px; border-radius: 2px; }

  .wrap { max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
  .mono {
    font: 500 .75rem/1.3 var(--font-mono);
    letter-spacing: .09em;
    text-transform: uppercase;
  }
  .section { padding-block: clamp(56px, 8vw, 104px); scroll-margin-top: 64px; }
  .eyebrow { color: var(--accent-text); margin-bottom: 14px; }
  h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); line-height: 1.12; letter-spacing: -.02em; font-weight: 700; }
  .lede { color: var(--ink-2); font-size: 1.125rem; max-width: 40rem; margin-top: 18px; }

  /* placeholders the owner fills in */
  .ph {
    font: 500 .9em/1.2 var(--font-mono);
    background: var(--accent-soft);
    color: var(--accent-text);
    padding: .15em .5em;
    border-radius: 3px;
    white-space: nowrap;
  }

  /* buttons */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6em;
    padding: .95em 1.5em;
    font: 600 1rem/1.2 var(--font-display);
    text-decoration: none;
    border-radius: 4px;
    border: 2px solid transparent;
    transition: transform .15s ease, background-color .15s ease;
  }
  .btn:hover { transform: translateY(-1px); }
  .btn-primary { background: var(--accent); color: var(--on-accent); }
  .btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
  .btn-bright { background: var(--bright); color: var(--on-bright); }
  .btn-bright:hover { background: #7DB6FF; }
  .btn-sm { padding: .65em 1.05em; font-size: .9rem; }
  .arrow { transition: transform .15s ease; }
  .btn:hover .arrow { transform: translateX(3px); }

  /* ---------- header ---------- */
  .site-header {
    position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
    background: var(--navy); color: var(--on-navy);
    border-bottom: 1px solid var(--navy-line);
  }
  .site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 64px; }
  .brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 700 1.3rem/1 var(--font-display); letter-spacing: -.01em; }
  .brand svg { height: 30px; width: auto; aspect-ratio: 278 / 317; color: #fff; }
  .nav { display: none; gap: 28px; }
  .nav a { color: var(--on-navy-2); text-decoration: none; font-size: .95rem; font-weight: 500; }
  .nav a:hover { color: #fff; }
  .site-header .long { display: none; }
  @media (min-width: 620px) { .site-header .long { display: inline; } .site-header .short { display: none; } }
  @media (min-width: 900px) { .nav { display: flex; } }

  /* ---------- hero ---------- */
  .hero {
    --slant: clamp(28px, 6vw, 80px);
    position: relative; overflow: hidden;
    background: var(--navy); color: var(--on-navy);
    padding-block: clamp(48px, 8vw, 96px) calc(var(--slant) + 8px);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%);
  }
  .hero-k {
    position: absolute; right: -7%; bottom: -14%;
    height: 118%; aspect-ratio: 278 / 317;
    color: var(--bright); opacity: .11; pointer-events: none;
  }
  .hero .wrap { position: relative; }
  .hero .kicker { color: var(--bright); margin-bottom: 20px; }
  .hero h1 {
    font-size: clamp(2.25rem, 5.6vw, 4rem);
    line-height: 1.05; letter-spacing: -.028em; font-weight: 700;
    max-width: 15em;
  }
  .hero .sub { color: var(--on-navy-2); font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 37rem; margin-top: 24px; }
  .hero .sub strong { color: var(--on-navy); font-weight: 600; }
  .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 34px; }
  .hero-actions .link { color: var(--on-navy); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--navy-line); padding-bottom: 2px; }
  .hero-actions .link:hover { border-color: var(--bright); }
  .terms { margin-top: 18px; color: var(--on-navy-2); font: 500 .8rem/1.4 var(--font-mono); letter-spacing: .04em; }

  .trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 20px; margin-top: clamp(44px, 6vw, 72px); }
  .trust div { border-top: 1px solid var(--navy-line); padding-top: 14px; }
  .trust dt { color: var(--bright); }
  .trust dd { color: var(--on-navy-2); font-size: .95rem; margin-top: 6px; line-height: 1.45; }
  @media (min-width: 860px) { .trust { grid-template-columns: repeat(4, 1fr); gap: 28px; } }

  /* ---------- problem ---------- */
  .problem-grid { display: grid; gap: 40px; }
  @media (min-width: 900px) { .problem-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr); gap: 72px; align-items: start; } }
  .gaps li { display: grid; gap: 10px; padding-block: 26px; border-top: 1px solid var(--line); }
  .gaps li:last-child { border-bottom: 1px solid var(--line); }
  .gaps h3 { font-size: 1.25rem; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
  .gaps p { color: var(--ink-2); max-width: 34rem; }
  .fixes { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; color: var(--ink-2); margin-top: 4px; }
  .fixes span:first-child { color: var(--accent-text); margin-right: 4px; }
  .tag { background: var(--accent-soft); color: var(--accent-text); padding: .3em .65em; border-radius: 3px; }

  /* ---------- package ---------- */
  .package { background: var(--surface); border-block: 1px solid var(--line); }
  .steps { display: grid; gap: 40px; margin-top: 48px; counter-reset: step; }
  @media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 36px; } }
  .step { position: relative; border-top: 3px solid var(--line); padding-top: 22px; }
  .step::before { content: ""; position: absolute; top: -3px; left: 0; width: 72px; height: 3px; background: var(--accent); }
  .step .mono { color: var(--accent-text); }
  .step h3 { font-size: 1.6rem; line-height: 1.15; letter-spacing: -.015em; font-weight: 700; margin: 10px 0 4px; }
  .step .outcome { font-family: var(--font-display); font-weight: 500; color: var(--ink); font-size: 1.05rem; margin-bottom: 12px; }
  .step p:last-child { color: var(--ink-2); }

  .price-panel {
    display: grid; gap: 24px; align-items: center;
    margin-top: 56px; padding: clamp(24px, 4vw, 40px);
    background: var(--surface-2); border-radius: 6px;
  }
  @media (min-width: 900px) { .price-panel { grid-template-columns: auto minmax(0, 1fr) auto; gap: 48px; } }
  .price-panel .mono { color: var(--ink-2); }
  .price { font: 700 clamp(2rem, 4vw, 2.75rem)/1.1 var(--font-display); letter-spacing: -.02em; margin-top: 8px; }
  .price-panel p { color: var(--ink-2); max-width: 32rem; }
  .price-panel p strong { color: var(--ink); font-weight: 600; }

  /* ---------- included ---------- */
  .included-grid { display: grid; gap: 44px; margin-top: 48px; }
  @media (min-width: 860px) { .included-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }
  .included-col { display: grid; gap: 44px; }
  .group h3 { display: flex; align-items: baseline; gap: 12px; font-size: 1.3rem; letter-spacing: -.01em; font-weight: 700; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
  .group h3 .mono { color: var(--accent-text); }
  .checks li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; padding-block: 16px; border-bottom: 1px solid var(--line); }
  .checks svg { width: 20px; height: 20px; margin-top: 3px; color: var(--accent-text); }
  .checks strong { display: block; font-weight: 600; line-height: 1.35; }
  .checks span { display: block; color: var(--ink-2); font-size: .98rem; margin-top: 3px; line-height: 1.5; }

  .tuneup {
    display: grid; gap: 20px; margin-top: 56px; padding: clamp(24px, 4vw, 36px);
    border: 2px dashed var(--line); border-radius: 6px;
  }
  @media (min-width: 900px) { .tuneup { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; align-items: center; } }
  .tuneup .mono { color: var(--accent-text); }
  .tuneup h3 { font-size: 1.4rem; letter-spacing: -.01em; margin-top: 8px; font-weight: 700; }
  .tuneup ul { display: grid; gap: 8px; }
  .tuneup li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
  .tuneup svg { width: 20px; height: 20px; margin-top: 3px; color: var(--accent-text); }
  .tuneup .fine { color: var(--ink-2); font-size: .95rem; margin-top: 12px; }

  /* ---------- free exposure check ---------- */
  .check-band {
    --s: clamp(24px, 4.5vw, 60px);
    background: var(--navy); color: var(--on-navy);
    padding-block: calc(var(--s) + clamp(48px, 7vw, 88px));
    clip-path: polygon(0 var(--s), 100% 0, 100% calc(100% - var(--s)), 0 100%);
    scroll-margin-top: 0;
  }
  .check-grid { display: grid; gap: 44px; align-items: center; }
  @media (min-width: 940px) { .check-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 72px; } }
  .check-band .eyebrow { color: var(--bright); }
  .check-band h2 { color: #fff; }
  .check-band .quote { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; line-height: 1.4; margin-top: 22px; max-width: 30rem; }
  .check-band .points { display: grid; gap: 12px; margin-top: 26px; color: var(--on-navy-2); }
  .check-band .points li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
  .check-band .points svg { width: 20px; height: 20px; margin-top: 3px; color: var(--bright); }
  .check-band .btn { margin-top: 34px; }

  .finding { margin: 0; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: clamp(22px, 3vw, 32px); box-shadow: 0 18px 50px rgba(0, 0, 0, .28); }
  .finding figcaption { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--ink-2); padding-bottom: 16px; border-bottom: 1px solid var(--line); }
  .finding-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-top: 20px; }
  .finding h3 { font-size: 1.35rem; line-height: 1.25; letter-spacing: -.01em; font-weight: 700; }
  .sev { flex: none; background: var(--warn-bg); color: var(--warn); padding: .3em .7em; border-radius: 3px; }
  .finding dl { display: grid; gap: 18px; margin-top: 22px; }
  .finding dt { color: var(--ink-2); margin-bottom: 4px; }
  .finding dd { line-height: 1.5; }
  .finding .note { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .9rem; }

  /* ---------- why / how ---------- */
  .pillars { display: grid; gap: 28px; margin-top: 48px; }
  @media (min-width: 560px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 1000px) { .pillars { grid-template-columns: repeat(4, 1fr); gap: 32px; } }
  .pillar { border-top: 3px solid var(--ink); padding-top: 18px; }
  .pillar h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
  .pillar p { color: var(--ink-2); font-size: .98rem; margin-top: 8px; line-height: 1.55; }

  .how-grid { display: grid; gap: 56px; margin-top: clamp(56px, 8vw, 88px); }
  @media (min-width: 940px) { .how-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; } }
  .how-grid h3.col-title { font-size: 1.5rem; letter-spacing: -.015em; font-weight: 700; margin-bottom: 28px; }
  .timeline { counter-reset: t; }
  .timeline li { counter-increment: t; position: relative; padding: 0 0 30px 60px; }
  .timeline li:last-child { padding-bottom: 0; }
  .timeline li::before {
    content: counter(t);
    position: absolute; left: 0; top: 0; width: 38px; height: 38px;
    display: grid; place-items: center;
    background: var(--accent); color: var(--on-accent);
    font: 500 .9rem/1 var(--font-mono);
  }
  .timeline li::after { content: ""; position: absolute; left: 18px; top: 46px; bottom: 8px; width: 2px; background: var(--line); }
  .timeline li:last-child::after { display: none; }
  .timeline h4 { font: 600 1.1rem/1.35 var(--font-display); margin: 6px 0 4px; letter-spacing: -.005em; }
  .timeline p { color: var(--ink-2); }

  .scope { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
  .scope { container-type: inline-size; }
  .scope-cols { display: grid; }
  .scope-cols > div { padding: 24px; }
  .scope-cols > div + div { border-top: 1px solid var(--line); }
  @container (min-width: 500px) {
    .scope-cols { grid-template-columns: 1fr 1fr; }
    .scope-cols > div + div { border-top: 0; border-left: 1px solid var(--line); }
  }
  .scope h4 { font: 500 .75rem/1.3 var(--font-mono); letter-spacing: .09em; text-transform: uppercase; margin-bottom: 16px; }
  .scope .is h4 { color: var(--accent-text); }
  .scope .isnt h4 { color: var(--ink-2); }
  .scope ul { display: grid; gap: 12px; }
  .scope li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: .98rem; line-height: 1.5; }
  .scope svg { width: 18px; height: 18px; margin-top: 3px; }
  .scope .is svg { color: var(--accent-text); }
  .scope .isnt svg { color: var(--ink-2); }
  .scope .isnt li { color: var(--ink-2); }
  .scope-foot { padding: 18px 24px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 6px 6px; color: var(--ink-2); font-size: .95rem; }
  .scope-foot strong { color: var(--ink); font-weight: 600; }

  /* ---------- contact ---------- */
  .contact { background: var(--surface); border-top: 1px solid var(--line); }
  .contact-grid { display: grid; gap: 44px; }
  @media (min-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 72px; align-items: start; } }
  .contact .send { margin-top: 28px; }
  .contact .send h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; }
  .contact .send li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--ink-2); margin-top: 6px; }
  .contact .send svg { width: 18px; height: 18px; margin-top: 4px; color: var(--accent-text); }
  .details div { display: grid; gap: 6px; padding-block: 20px; border-top: 1px solid var(--line); }
  .details div:last-child { border-bottom: 1px solid var(--line); }
  .details dt { color: var(--ink-2); }
  .details dd { font: 600 1.3rem/1.3 var(--font-display); letter-spacing: -.01em; }

  /* ---------- footer ---------- */
  .site-footer { background: var(--navy); color: var(--on-navy-2); padding-block: 40px; font-size: .92rem; }
  .site-footer .wrap { display: grid; gap: 16px; }
  @media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: center; gap: 40px; } }
  .site-footer .brand { color: #fff; font-size: 1.15rem; }
  .site-footer .brand svg { height: 26px; }
  .site-footer p + p { margin-top: 4px; }
  .details a { color: inherit; text-decoration: none; border-bottom: 2px solid var(--line); }
  .details a:hover { border-color: var(--accent); }
