/* Scan4Plan website — one stylesheet shared by every page.
   Plain, neutral palette: white and light grey, near-black text, one blue accent. */

/* ---------- Colour tokens (light mode) ---------- */
:root {
  --ink: #1b1f24;          /* main text */
  --muted: #5d6570;        /* secondary text */
  --line: #e3e6ea;         /* thin borders */
  --page: #ffffff;         /* page background */
  --soft: #f5f6f8;         /* light grey panels */
  --accent: #1c3f60;       /* links and buttons: the app icon's Prussian blue (2026-11-20) */
  --accent-ink: #ffffff;   /* text on an accent button */
  --dark: #1f2329;         /* the one dark band near the bottom */
  --radius: 14px;
}

/* ---------- Dark mode: follow the phone/computer setting ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e7e9ec;
    --muted: #a0a7b0;
    --line: #2c3138;
    --page: #121417;
    --soft: #1a1d21;
    --accent: #8fb6dd;       /* a light Prussian blue, readable on the dark page */
    --accent-ink: #0c1424;
    --dark: #0b0c0e;
  }
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }   /* height:auto keeps pictures in proportion when they shrink */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 19px; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

/* ---------- Top bar ---------- */
.top { background: var(--page); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.top nav a { color: var(--muted); text-decoration: none; margin-left: 22px; font-size: 15px; }
.top nav a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { background: var(--soft); padding: 72px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero .wrap > *, .split > * { min-width: 0; }   /* let grid columns shrink below the image's natural width */
.hero h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.035em; }   /* one short promise, said big (2026-11-20) */
.hero h1 em { font-style: normal; color: var(--muted); }
.lead { font-size: 21px; color: var(--muted); max-width: 32em; }
.kicker { color: var(--accent); font-weight: 600; font-size: 28px; line-height: 1.25; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }   /* bigger, set in the wording editor 2026-11-21 */
.fine { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* Apple's official "Download on the App Store" badge. Apple's rules: never
   recolour or redraw it, and keep clear space around it (a quarter of its
   height). */
.store-badge { display: inline-block; margin-top: 16px; line-height: 0; }

/* The app's icon, big, beside the badge — what people look for in the App
   Store and on their home screen (2026-11-20: the bar's 32 px one is too
   small to remember). The badge keeps its own clear space. */
.lockup { display: flex; align-items: center; gap: 20px; margin-top: 28px; }
.lockup .store-badge { margin-top: 0; }
.app-icon { width: 88px; height: 88px; border-radius: 20px; box-shadow: 0 6px 18px rgba(20, 30, 45, .18); }
.store-badge img { height: 53px; width: auto; }

/* The floor plan shown as a sheet of paper */
.sheet {
  background: #fff;                /* plans are drawn on white, even in dark mode */
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 12px 40px rgba(20, 30, 45, .12);
  max-width: 380px; margin: 0 auto;   /* a tall plan; 540px suits a wide one */
}
/* The plan shrinks with the screen and never runs off its edge. */
.sheet img { display: block; width: 100%; height: auto; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }   /* more air between the few things on the page */
section.alt { background: var(--soft); }
.intro { max-width: 640px; margin-bottom: 40px; color: var(--muted); font-size: 19px; }

/* How it works: three pictures, three words each (2026-11-20) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step { margin: 0; }
.step img { width: 100%; aspect-ratio: 3 / 5; object-fit: cover; object-position: top;
            border-radius: var(--radius); }
.step figcaption { margin-top: 14px; font-size: 19px; color: var(--muted); }
.step figcaption b { color: var(--ink); }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; }
.feat { border-top: 2px solid var(--line); padding-top: 16px; }
.feat h3 { margin-bottom: 6px; }
.feat p { color: var(--muted); margin: 0; font-size: 16px; }

/* Country chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 18px; padding: 0; list-style: none; }
.chips li { border: 1px solid var(--line); background: var(--page); border-radius: 999px; padding: 7px 14px; font-size: 15px; }
.chips li b { color: var(--muted); font-weight: 600; margin-left: 6px; font-size: 13px; }

/* Pricing */
.prices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.price { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--page); }
.price.best { border: 2px solid var(--accent); }
.price .big { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin: 6px 0 10px; }
.price p { color: var(--muted); margin: 0; font-size: 16px; }

/* Two-column text block */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding-left: 28px; position: relative; margin-bottom: 10px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

/* Final call to action */
.cta { background: var(--dark); color: #f1f3f5; text-align: center; }
.cta p { color: #b4bbc4; }
.cta a { color: #fff; }
.cta h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 18px; display: grid; grid-template-columns: 1fr auto 1fr; column-gap: .28em; align-items: baseline; }   /* "YOUR" sits dead centre */
.cta h2 .c1 { text-align: right; }
.cta h2 .c2 { text-align: left; }
.your { color: #8fb6dd; }   /* YOUR, in a light Prussian blue so it stands out on the dark band */

/* A narrower column for a short block of text */
.narrow { max-width: 760px; }

/* ---------- Text pages (privacy, support) ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 20px 80px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); }
.doc h2 { font-size: 22px; margin-top: 2em; }
.doc .meta { color: var(--muted); }
.doc li { margin-bottom: .4em; }
.box { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 1.5em 0; }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 600; font-size: 18px; }
details[open] summary { margin-bottom: 10px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer a { color: var(--muted); margin-right: 18px; }

/* ---------- Phones and small tablets ---------- */
@media (max-width: 860px) {
  .hero { padding: 48px 0 56px; }
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
  .grid { grid-template-columns: 1fr; }
  .prices { grid-template-columns: 1fr 1fr; }      /* 2 × 2 price cards on phones */
  .top nav a:not(:last-child) { display: none; }  /* keep only the last link on phones */
  section { padding: 60px 0; }
  .sheet { max-width: 300px; padding: 12px; }      /* keep the tall plan from filling the whole phone screen */
}
