/* 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: #2456c7;       /* links and buttons (a calm, standard blue) */
  --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: #7aa2ff;
    --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(36px, 5.5vw, 58px); }
.hero h1 em { font-style: normal; color: var(--muted); }
.hero .lead { font-size: 20px; color: var(--muted); max-width: 34em; }
.kicker { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.fine { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* App Store button. ⚠️ Swap for Apple's official badge once the app is live. */
.store {
  display: inline-flex; align-items: center;
  background: var(--accent); color: var(--accent-ink);
  padding: 13px 22px; border-radius: 10px;
  font-weight: 700; text-decoration: none; margin-top: 12px;
}
.store small { display: block; font-weight: 500; font-size: 12px; opacity: .85; line-height: 1.1; }
.store span { line-height: 1.15; }

/* 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: 360px; margin: 0 auto;
}

/* ---------- Sections ---------- */
section { padding: 84px 0; }
section.alt { background: var(--soft); }
.intro { max-width: 640px; margin-bottom: 40px; color: var(--muted); font-size: 19px; }

/* Three steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--page); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--soft); border: 1px solid var(--line); color: var(--ink); font-weight: 700; margin-bottom: 14px;
}
.step p { color: var(--muted); margin: 0; }

/* 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; }

/* ---------- 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 { 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: 280px; padding: 12px; }      /* keep the tall plan from filling the whole phone screen */
}
