/* Impact — impact.dostumamigo.com
   2026-08-14 (Claude) — marketing site stylesheet. Hand-written static CSS,
   no build step: the site deploys to IIS by file copy. */

:root {
  --ink:        #0d1520;
  --ink-2:      #33445c;
  --ink-3:      #64748b;
  --line:       #e2e8f0;
  --bg:         #ffffff;
  --bg-2:       #f7f9fc;
  --navy:       #0d2137;
  --navy-2:     #16324f;
  --accent:     #0b6bcb;
  --accent-ink: #085299;
  --up:         #0f9d58;
  --down:       #d93025;
  --maxw:       1120px;
  --radius:     10px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.35rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); font-weight: 700; }
h3 { font-size: 1.16rem; font-weight: 650; }
p  { margin: 0 0 1.1em; }
a  { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex; align-items: center; gap: 28px;
  height: 66px;
}
/* 2026-09-23 15:45 (Claude) — the header is position:sticky, so a jump to an
   anchor (#apps from the nav and the footer) parked the target UNDER it: measured
   at 375px, the header's bottom edge sat at y=106 while the heading's top was at
   y=84, i.e. the first 22px of "The release, and what it cost, in your pocket"
   was hidden. scroll-margin-top is the one-property fix and applies to both
   :target jumps and scrollIntoView.
   Two values because the header has two heights: 66px normally, and taller under
   the 760px breakpoint below where .wrap switches to height:auto and wraps onto a
   second row. Keep --anchor-offset in step with the header if either changes. */
:root { --anchor-offset: 78px; }
[id] { scroll-margin-top: var(--anchor-offset); }
.brand {
  font-weight: 700; font-size: 1.22rem; color: var(--ink);
  letter-spacing: -0.03em; display: flex; align-items: center; gap: 9px;
}
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 26px; height: 26px; border-radius: 6px; flex: none;
  background: linear-gradient(150deg, var(--accent) 0%, var(--navy) 100%);
  display: inline-block;
}
/* 2026-10-28 10:52 (Claude) - gap 26px -> 22px and nowrap: with Mobile Apps / AI Connectors /
   Broker licence checker the main bar needs ~925px on one line, and at 26px four labels broke onto
   two lines even at 1280px. Narrower screens drop links instead (see the 1100px/900px rules). */
.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
/* 2026-08-24 10:20 (Claude) - Log in / Sign up pair. Grouped so the two sit
   together at 10px rather than inheriting the 26px nav gap, which read as two
   unrelated buttons. */
.nav-auth { display: flex; align-items: center; gap: 10px; }
.nav a { color: var(--ink-2); font-size: .95rem; font-weight: 500; white-space: nowrap; }
.nav a:hover { color: var(--ink); text-decoration: none; }

.btn {
  display: inline-block; border-radius: 8px; font-weight: 600;
  padding: 12px 22px; font-size: 1rem; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, border-color .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
/* 2026-10-13 10:54 (Claude) - '.nav a' (above) out-ranked .btn-primary, so the header's Sign up text was dark
   grey on blue (contrast ~2:1, design review of the Broker Directory). Keep button text white in the nav. */
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-sm { padding: 9px 16px; font-size: .93rem; }
.btn-lg { padding: 15px 30px; font-size: 1.06rem; }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(168deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; padding: 82px 0 74px;
}
.hero h1 { color: #fff; max-width: 15ch; }
.hero .sub {
  font-size: clamp(1.05rem, 1.7vw, 1.24rem);
  color: #c3d3e4; max-width: 60ch; margin-bottom: 1.7em;
}
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.32); }
.hero .btn-ghost:hover { border-color: rgba(255,255,255,.7); }
.trust {
  margin-top: 22px; font-size: .92rem; color: #93a9c0;
}

/* ---------- sections ---------- */
section { padding: 74px 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .76rem;
  font-weight: 700; color: var(--accent); margin-bottom: .8em;
}
.lede { font-size: 1.14rem; color: var(--ink-2); max-width: 62ch; }

/* ---------- stat trio ---------- */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px; margin-top: 46px;
}
.stat {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--radius); padding: 22px 24px;
}
.stat b { display: block; font-size: 1.95rem; font-weight: 700; color: #fff; letter-spacing: -.03em; }
.stat span { font-size: .93rem; color: #a9bdd2; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 7px; margin-bottom: 14px;
  background: #e8f1fb; color: var(--accent-ink); font-weight: 700; font-size: .9rem;
}

/* ---------- spread demo table ---------- */
.demo {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow-x: auto; background: #fff; margin-top: 30px;
}
table.tbl { border-collapse: collapse; width: 100%; font-size: .95rem; min-width: 560px; }
table.tbl th, table.tbl td { padding: 11px 16px; text-align: right; white-space: nowrap; }
table.tbl th {
  background: var(--bg-2); font-weight: 650; color: var(--ink-2);
  border-bottom: 1px solid var(--line); font-size: .84rem;
  text-transform: uppercase; letter-spacing: .05em;
}
table.tbl td { border-bottom: 1px solid #eef2f7; }
table.tbl tr:last-child td { border-bottom: none; }
table.tbl th:first-child, table.tbl td:first-child { text-align: left; font-weight: 600; }
.blowout { color: var(--down); font-weight: 700; }
.caption { font-size: .87rem; color: var(--ink-3); margin-top: 12px; }

/* ---------- product screenshots ---------- */
/* 2026-08-27 11:40 (Claude) — real captures of the live app. Same 1px frame as .demo
   so a screenshot and the spread table read as the same kind of object on the page.
   The <img> tags carry width/height as well, so the browser reserves the correct box
   before the PNG arrives — without that the hero jumps as each shot loads (CLS), and
   Core Web Vitals is one of the few SEO levers a seven-page static site actually has. */
.shot { margin: 30px 0 0; }
.shot img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.shot figcaption { font-size: .87rem; color: var(--ink-3); margin-top: 12px; }
/* On the dark hero the light frame reads as a halo; soften it and lift the caption. */
.hero .shot { margin-top: 40px; }
.hero .shot img { border-color: rgba(255,255,255,.18); }
.hero .shot figcaption { color: #a9bdd2; }

/* ---------- pricing ---------- */
.price-card {
  border: 2px solid var(--accent); border-radius: 14px; padding: 38px;
  max-width: 480px; margin: 0 auto; background: #fff;
  box-shadow: 0 10px 34px rgba(13,33,55,.09);
}
.price-tag { font-size: 3.1rem; font-weight: 700; letter-spacing: -.04em; }
.price-tag small { font-size: 1.02rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
ul.ticks { list-style: none; padding: 0; margin: 26px 0; }
ul.ticks li { padding: 8px 0 8px 30px; position: relative; }
ul.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 8px;
  color: var(--up); font-weight: 700;
}
.guarantee {
  background: #eef8f1; border: 1px solid #cbe8d5; color: #17603a;
  border-radius: 8px; padding: 14px 18px; font-size: .95rem; margin-top: 22px;
}

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary {
  cursor: pointer; font-weight: 620; font-size: 1.05rem; list-style: none;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-3); font-weight: 400; font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 14px 0 0; color: var(--ink-2); max-width: 74ch; }

/* ---------- legal pages ---------- */
.legal { padding: 56px 0 80px; }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal h3 { margin-top: 1.6em; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: .5em; }
.legal table.tbl { min-width: 0; }
.legal table.tbl th, .legal table.tbl td { text-align: left; white-space: normal; }
.updated { color: var(--ink-3); font-size: .93rem; }
.callout {
  background: var(--bg-2); border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 6px; padding: 18px 22px; margin: 26px 0;
}
.callout p:last-child { margin-bottom: 0; }
/* 2026-10-28 14:15 (Claude) - long inline commands/URLs (the `claude mcp add ...` line on ai-apps.html) ran
   27px past a 375px phone screen and made the page scroll sideways. Break inside them only when they would
   not otherwise fit; short codes (broker licence numbers) are unaffected. */
code { overflow-wrap: anywhere; }

/* ---------- footer ---------- */
.site-foot {
  background: var(--navy); color: #a9bdd2; padding: 52px 0 34px;
  font-size: .94rem; margin-top: 0;
}
.site-foot a { color: #d6e4f2; }
.foot-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 34px; margin-bottom: 34px;
}
.foot-grid h4 {
  color: #fff; font-size: .8rem; text-transform: uppercase;
  letter-spacing: .12em; margin-bottom: 1em;
}
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: .55em; }
.foot-legal {
  border-top: 1px solid rgba(255,255,255,.14); padding-top: 24px;
  font-size: .88rem; color: #8ba2ba;
}
.foot-legal p { margin: 0 0 .4em; }

/* ---------- mobile-app band ---------- */
/* 2026-09-13 12:47 (Claude) — the #apps download band, added the day the Android
   app went live on Play production. Dark like the hero on purpose: it sits between
   two light sections and the page alternates white / --bg-2, so a third neutral
   there read as "another section" rather than as the one place you get the app.
   The store tiles are ours, not Google's or Apple's badge artwork: the official
   badges are not in this repo and the site CSP is img-src 'self', so a hotlinked
   badge would be silently blocked. Tile text and glyph are plain currentColor. */
.apps-band {
  background: linear-gradient(168deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
}
.apps-band h2 { color: #fff; }
.apps-band .eyebrow { color: #7fb6f0; }
.apps-band .lede { color: #c3d3e4; }
.apps-band ul.ticks li::before { color: #5fd39a; }   /* --up is unreadable on navy */
.apps-grid { gap: 46px; }

.store-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 20px; min-width: 210px;
  border: 1px solid rgba(255,255,255,.3); border-radius: 10px;
  background: rgba(255,255,255,.07); color: #fff;
  font-weight: 650; line-height: 1.2;
  transition: background .15s, border-color .15s;
}
.store-btn:hover { text-decoration: none; background: rgba(255,255,255,.15);
                   border-color: rgba(255,255,255,.62); }
.store-btn small {
  display: block; font-size: .72rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: #a9c0d6;
}
.store-btn .store-ico { width: 25px; height: 25px; flex: none; }
/* Solid white against the navy rather than an outline. 2026-09-13 this was on the
   Play tile ALONE, because it was the one live action in the band and at parity
   with a "coming soon" tile the pair read as two equal choices, one of which did
   nothing. 2026-09-23: iOS went live, so both tiles carry it and the pair really
   are two equal choices. No rule changed — only which elements use it — so the
   stylesheet cache-buster is deliberately NOT bumped. */
.store-btn.is-primary {
  background: #fff; color: var(--navy); border-color: #fff;
}
.store-btn.is-primary:hover { background: #e7eff7; border-color: #e7eff7; }
.store-btn.is-primary small { color: var(--ink-3); }
/* UNUSED since 2026-09-23, kept on purpose. This styles a "coming soon" tile: a
   <span>, not a link, because a dead link is worse than an obvious placeholder,
   and dimmed so nobody taps it expecting a store. Both tiles are live now — reach
   for this again the next time something is announced before it ships. */
.store-btn.is-soon { opacity: .6; cursor: default; }
.store-btn.is-soon:hover { background: rgba(255,255,255,.07);
                           border-color: rgba(255,255,255,.3); }
.apps-note { margin-top: 22px; font-size: .93rem; color: #93a9c0; max-width: 52ch; }

/* The phone shot is a real capture at 560x1138 (2.03:1), sized by WIDTH not by
   max-height: with height:auto the browser can reserve the right box from the
   img's width/height attributes, and the shot does not shift the band as it
   lazy-loads. A max-height cap looks equivalent and is not - it leaves the
   reserved box ~2x too tall, which is the CLS the .shot rule exists to avoid. */
.phone-shot { margin: 0; }
.phone-shot img {
  display: block; width: min(100%, 306px); height: auto; margin: 0 auto;
  border: 1px solid rgba(255,255,255,.22); border-radius: 22px;
  box-shadow: 0 18px 44px rgba(0,0,0,.32);
}

/* ---------- ask-claude band ---------- */
/* 2026-10-14 13:16 (Claude) — the #claude band on the homepage. Our own styling only:
   no Claude or MCP logo (needs the trademark owners' written approval, see the note
   above the section in index.html). The questions are drawn as chat prompts so the band
   reads as "you type this" without borrowing anyone's artwork. */
.ask-grid { gap: 46px; align-items: center; }
.ask-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 10px; }
.ask-list li {
  justify-self: start; max-width: 100%;
  background: #fff; border: 1px solid var(--line);
  border-radius: 16px 16px 16px 4px; padding: 10px 16px;
  color: var(--ink); font-size: .98rem;
  box-shadow: 0 1px 2px rgba(13,21,32,.05);
}
.ask-steps { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.ask-steps li { display: flex; align-items: center; gap: 12px; color: var(--ink-2); }
.ask-steps .num {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 28px; height: 28px; border-radius: 7px;
  background: #e8f1fb; color: var(--accent-ink); font-weight: 700; font-size: .88rem;
}
.ask-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.ask-note { color: var(--ink-3); font-size: .9rem; margin: 18px 0 0; max-width: 58ch; }
.ask-video { margin: 0; }
.ask-video video {
  display: block; width: 100%; height: auto; background: #fbf8f5;
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 14px 36px rgba(13,33,55,.12);
}
.ask-video figcaption { color: var(--ink-3); font-size: .9rem; margin-top: 10px; }

/* ---------- responsive ---------- */
/* 2026-10-28 10:52 (Claude) - the main bar (the one carrying #apps) is too wide for mid-size screens.
   Drop the two home-page anchors first, then Contact and AI Connectors (both reachable from the page
   and the footer), so Broker licence checker and Pricing stay visible longest. Keyed on href, not a
   class, so the ~1,700 generated broker pages need no markup change. */
@media (max-width: 1100px) {
  .nav:has(a[href$="#apps"]) a:is([href$="#what"], [href$="#coverage"]) { display: none; }
}
@media (max-width: 900px) {
  .nav { gap: 18px; }
  /* 2026-10-28 11:15 (Claude) - AI Connectors now links /ai-apps.html (Claude AND ChatGPT), not
     /#claude. Scoped to the main bar by the :has(), so ai-apps.html's own legal-style bar is untouched. */
  .nav:has(a[href$="#apps"]) a:is([href="/contact.html"], [href="/ai-apps.html"]) { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 54px 0; }
  .hero { padding: 58px 0 52px; }
  .nav { gap: 16px; }
  .nav .hide-sm { display: none; }
  /* 2026-08-24 10:26 (Claude) - with Log in + Sign up now in the bar, the legal
     pages (which keep an extra current-page link visible) ran the buttons right
     up to the viewport edge at ~400px. Tighten the pair and the button padding
     rather than dropping either button - they are the two things the bar is
     there for. */
  .nav-auth { gap: 8px; }
  .nav-auth .btn-sm { padding: 9px 12px; }
  /* The bar is a fixed-height flex row on desktop; on a phone the extra button
     pushed it past the right padding (measured: 8px past the edge on terms.html
     at 375px). Let it wrap to a second line and grow instead of overflowing. */
  .site-head .wrap { flex-wrap: wrap; height: auto; min-height: 66px;
                     padding-top: 10px; padding-bottom: 10px; row-gap: 8px; }
  /* The wrapped header measures ~106px tall at 375px, so the anchor offset grows
     with it — see the note beside the base value above. */
  :root { --anchor-offset: 118px; }
  .nav { flex-wrap: wrap; row-gap: 8px; }
  .price-card { padding: 28px; }
  /* 2026-09-13 12:47 (Claude) — stack the app band and let the phone shrink;
     at 375px a 560px-wide capture otherwise sets the grid column width. */
  .apps-grid { gap: 30px; }
  .phone-shot img { width: min(100%, 226px); }
  .store-btn { min-width: 0; flex: 1 1 100%; }
  .ask-grid { gap: 30px; }
  .ask-cta .btn { flex: 1 1 100%; text-align: center; }
}
