/* The shop around the course: sales page, more info, terms, privacy, welcome.

   15 Oct 2026: the shop now wears the app's own look (app.css), in light and
   dark, following the phone's setting. It used to be dark only, so a buyer on
   a light phone paid on a navy page and opened a white app. The tokens below
   are copied from app.css: change a colour there, change it here. */
:root {
  color-scheme: light;
  --bg: #f2f5f9;
  --surface: #ffffff;
  --card: var(--surface);
  --hairline: rgba(13, 27, 40, .09);
  --hairline-strong: rgba(13, 27, 40, .15);
  --line: #d6dee8;
  --ink: #0d1b28;
  --ink-2: #263849;
  --ink-soft: #4a5b6b;         /* 6.5:1 on --bg, 7.0:1 on white */
  --gold: #ffd400;             /* a fill only in light mode: 1.4:1 on white */
  --gold-deep: #e8b700;
  --gold-text: #8a6600;        /* gold TEXT, 5.3:1 on white */
  --gold-display: #a37a00;     /* gold for large text only (24px+ bold) */
  --gold-line: rgba(196, 150, 0, .45);
  --on-gold: #0a0f16;
  --focus: #0a66c2;
  --warn: #a14a00;             /* 6.0:1 on white */
  --surface-2: #f4f7fa;
  --why-tint: rgba(255, 212, 0, .13);
  --why-line: rgba(196, 150, 0, .32);
  --wrong: #b3261e;            /* 6.5:1 on white */
  --wrong-line: #d64a40;
  --wrong-tint: rgba(179, 38, 30, .08);
  --wrong-edge: rgba(214, 74, 64, .45);
  --shadow-1: 0 1px 2px rgba(13, 27, 40, .05), 0 6px 16px -10px rgba(13, 27, 40, .22);
  --radius: 16px;
  --r-lg: 20px;
  --r-xl: 24px;
  --gutter: clamp(16px, 5vw, 22px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0a0f16;
    --surface: #10202e;
    --hairline: rgba(143, 160, 180, .15);
    --hairline-strong: rgba(143, 160, 180, .24);
    --line: #24394d;
    --ink: #eef4fb;
    --ink-2: #d3deea;
    --ink-soft: #8fa0b4;       /* 6.2:1 on the card navy */
    --gold-deep: #f0be00;
    --gold-text: #ffd400;
    --gold-display: #ffd400;
    --gold-line: rgba(255, 212, 0, .42);
    --focus: #7cc0ff;
    --warn: #ff9a4d;
    --surface-2: #162a3c;
    --why-tint: rgba(255, 212, 0, .075);
    --why-line: rgba(255, 212, 0, .20);
    --wrong: #ff6b60;
    --wrong-line: #ff5a4e;
    --wrong-tint: rgba(226, 35, 26, .15);
    --wrong-edge: rgba(255, 90, 78, .45);
    --shadow-1: inset 0 1px 0 rgba(255, 255, 255, .045), 0 10px 24px -16px rgba(0, 0, 0, .95);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  /* A long address like drivingtheorymadesimple@gmail.com must never push the
     page wider than the phone: it breaks rather than scrolls sideways. */
  overflow-wrap: anywhere;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
/* The app's light from above. Fixed and inset 0, so it can never widen the page. */
body::before {
  content: ''; position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 55% at 50% -12%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 70%);
}
@media (prefers-color-scheme: dark) {
  body::before {
    background:
      radial-gradient(110% 50% at 50% -10%, rgba(40, 84, 130, .38), rgba(40, 84, 130, 0) 72%),
      radial-gradient(80% 40% at 100% 0%, rgba(255, 212, 0, .045), rgba(255, 212, 0, 0) 70%);
  }
}
.wrap { max-width: 640px; margin: 0 auto; padding: 22px var(--gutter) 64px; }
.wrap.narrow { max-width: 560px; }

/* The channel's name with its mark, exactly as the app's home screen shows it. */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  color: var(--gold-text); font-weight: 800; font-size: 12px; letter-spacing: 2.2px;
  text-transform: uppercase; margin: 0 0 18px;
}
.eyebrow::before {
  content: ''; flex: none; width: 28px; height: 28px; border-radius: 9px;
  background: #0a0f16 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5.5 12.6l4.1 4.1L18.6 7.4' fill='none' stroke='%23ffd400' stroke-width='3.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 212, 0, .35), 0 6px 16px -6px rgba(255, 190, 0, .55);
}
h1 { font-size: 30px; line-height: 1.12; font-weight: 800; letter-spacing: -.8px; margin: 0 0 14px; text-wrap: balance; }
h2 { font-size: 20px; line-height: 1.25; font-weight: 800; letter-spacing: -.35px; margin: 0 0 10px; text-wrap: balance; }
/* "2-Week" never breaks at its hyphen. A class, because the shop's security
   policy allows no inline style. */
.nb { white-space: nowrap; }
p { margin: 0 0 14px; text-wrap: pretty; }
.lead { color: var(--ink-2); font-size: 18px; }
/* The promise's conditions sit right under the headline, where the claim is. */
.conditions, .cond { color: var(--ink-soft); font-size: 15px; margin: -4px 0 12px; }
.what { font-weight: 700; margin: 0 0 16px; }
#promise, #coaching, #sample, #questions { scroll-margin-top: 16px; }
.for { display: inline-block; border: 1px solid var(--line); border-radius: 999px;
       padding: 4px 12px; font-size: 14px; color: var(--ink-soft); margin: 0 0 18px; }
a { color: var(--gold-text); }
a:focus-visible, .buy:focus-visible, .row:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* ── the sales page: one screen that says the whole offer ─────────────── */
.hero { position: relative; padding: 6px 0 4px; }
/* A soft gold light behind the headline. It runs out to the gutters, exactly
   the page's width on a phone and never wider, so it shows no edge and can
   never scroll the page sideways. */
.hero::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  top: -110px; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); height: 340px;
  background: radial-gradient(85% 60% at 30% 50%, rgba(255, 212, 0, .16), transparent 72%);
}
.heroline { font-size: 44px; line-height: 1.02; letter-spacing: -1.6px; margin: 0 0 16px; }
.heroline span { display: block; color: var(--gold-display); }
.hero .cond { margin: 0 0 12px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
/* Who is behind it, in the app's own words for it: the trust a £5 app has not got. */
.heroby { color: var(--ink-soft); font-size: 15px; line-height: 1.5; margin: 0 0 4px; }
.stats { display: flex; gap: 10px; margin: 0 0 4px; }
/* "Not sure?": a second door at the moment of choice, white, never gold. */
.trylink {
  display: block; text-align: center; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 17px;
  background: var(--surface); border: 1px solid var(--hairline-strong); border-radius: 18px;
  box-shadow: var(--shadow-1); min-height: 54px; padding: 15px 16px; margin: 14px 0 0;
}
.trylink + .stats { margin-top: 18px; }
.stat {
  /* min-width:0 is load-bearing: a long label would otherwise widen the page. */
  flex: 1; min-width: 0; margin: 0;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 14px 8px 12px; text-align: center;
  box-shadow: var(--shadow-1);
}
.stat b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.6px; line-height: 1.15;
          font-variant-numeric: tabular-nums; }
.stat span { display: block; font-size: 12px; color: var(--ink-soft); margin-top: 3px; line-height: 1.3; }
/* The small heading inside a card, with the app's gold dot. */
.lab {
  display: flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 800; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--gold-text); margin: 0 0 12px;
}
.lab::before {
  content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 4px rgba(255, 212, 0, .2);
}
.offer .stack li { font-size: 18px; font-weight: 700; line-height: 1.35; padding-bottom: 14px; }
.by { color: var(--ink-soft); font-size: 15px; border-top: 1px solid var(--hairline); padding-top: 14px; }
/* Where to go next: rows like the app's own list rows, with a chevron. */
.rows { margin: 30px 0 0; }
.row {
  position: relative; display: block; min-height: 48px; margin: 0 0 10px; padding: 14px 46px 14px 18px;
  color: var(--ink); text-decoration: none;
  background: var(--surface); border: 1px solid var(--hairline-strong); border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}
.row strong { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.2px; line-height: 1.3; }
.row span { display: block; color: var(--ink-soft); font-size: 14px; margin-top: 3px; line-height: 1.35; }
.row::after {
  content: ''; position: absolute; right: 20px; top: 50%;
  width: 9px; height: 9px; margin-top: -5px;
  border-top: 2px solid var(--ink-soft); border-right: 2px solid var(--ink-soft);
  transform: rotate(45deg); border-radius: 1px;
}
.back { margin: -6px 0 10px; font-size: 15px; }

/* ── buttons: the app's own ──────────────────────────────────────────── */
/* Gold that reads as metal rather than highlighter, as on the app's Start. */
.buy {
  display: block; text-align: center; text-decoration: none;
  min-height: 58px; padding: 17px 18px; margin: 22px 0 8px; border-radius: 18px;
  color: var(--on-gold); font-weight: 800; font-size: 19px; letter-spacing: -.1px;
  background: linear-gradient(180deg, #ffe45c 0%, #ffd400 46%, #f6c300 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 0 rgba(120, 80, 0, .14),
              0 12px 26px -12px rgba(255, 190, 0, .75);
}
/* The arrow says "this moves you on", as on the app's buttons. Decoration only. */
a.buy::after { content: '\2192'; content: '\2192' / ''; display: inline-block; margin-left: 8px; font-weight: 800; }
.buy.is-off { background: var(--surface); color: var(--ink-soft); box-shadow: none;
              border: 1px dashed var(--line); cursor: default; }
.under-buy { color: var(--ink-soft); font-size: 14px; text-align: center; margin: 0 0 26px; }
.ghost {
  display: block; text-align: center; min-height: 48px; color: var(--ink); font-weight: 700; text-decoration: none;
  background: var(--surface); border: 1px solid var(--hairline-strong); border-radius: var(--radius);
  box-shadow: var(--shadow-1); padding: 12px 16px;
}
/* The coaching button: a real button, second to the gold one. */
.cta { display: block; text-align: center; text-decoration: none; color: var(--ink); font-weight: 800;
       font-size: 17px; background: var(--surface); border: 1px solid var(--hairline-strong); border-radius: 18px;
       box-shadow: var(--shadow-1); min-height: 58px; padding: 16px; margin: 14px 0 8px; }
.cta:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.card .under-buy { margin-bottom: 14px; }

/* ── cards ───────────────────────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg);
        padding: 20px 18px 6px; margin: 18px 0; box-shadow: var(--shadow-1); }
/* The app's "start here" card: a gold edge with a little light in the corner. */
.card.gold {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-xl); border: 1.5px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(145deg, #ffe680 0%, #ffd400 38%, rgba(255, 212, 0, .25) 100%) border-box;
  box-shadow: 0 26px 50px -30px rgba(255, 190, 0, .6), var(--shadow-1);
}
.card.gold::before {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(90% 75% at 100% 0%, rgba(255, 212, 0, .15), transparent 60%);
}
/* /welcome inside Instagram and other in-app browsers: the way out, first.
   The app's own warning card: a red tint and a red bar down the left. */
.card.warn { position: relative; overflow: hidden; padding-left: 22px; border: 1px solid var(--wrong-edge);
             background: linear-gradient(160deg, var(--wrong-tint), transparent 70%), var(--surface); }
.card.warn::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--wrong-line); }
.card.warn h2 { color: var(--wrong); }
section:not(.card) { margin: 30px 0; }

.stack { list-style: none; padding: 0; margin: 0 0 8px; }
.stack li { position: relative; padding: 0 0 12px 34px; text-wrap: balance; }
.stack li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 6px;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%230a0f16' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.stack b { color: var(--ink); }

ol, ul { padding-left: 22px; margin: 0 0 14px; }
li { margin: 0 0 8px; }
.small { color: var(--ink-soft); font-size: 14px; }
.sign { font-weight: 700; margin-top: 18px; }

.legal { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 20px;
         color: var(--ink-soft); font-size: 14px; }
.legal a { color: var(--ink-soft); }
/* Tap targets at least 44px tall, for thumbs. */
.legal nav a { display: inline-block; margin-right: 18px; padding: 11px 0; min-height: 44px; min-width: 44px; }
/* A link inside a sentence (the email address, "terms", ico.org.uk) gets the
   same 44px for a thumb. The negative margin keeps the lines where they were. */
main p a:not(.buy):not(.ghost):not(.cta), main td a, main li a {
  display: inline-block; padding: 12px 4px; margin: -12px -4px; }
.doc .small a { display: inline-block; padding: 11px 0; min-height: 44px; }

/* terms and privacy */
.doc h2 { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); }
.doc h2:first-of-type { border-top: 0; padding-top: 0; }
.doc .updated { color: var(--ink-soft); font-size: 14px; margin-bottom: 26px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 0 14px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--ink-soft); font-weight: 600; width: 38%; }
.doc tr:last-child > * { border-bottom: 0; }
.form { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius);
        padding: 14px 16px; font-size: 15px; }

/* On a phone the details table stacks, label over value, so the email gets
   the full width instead of a 60% column it can't fit in. */
@media (max-width: 520px) {
  .doc table, .doc tbody, .doc tr, .doc th, .doc td { display: block; width: auto; }
  .doc th { border-bottom: 0; padding-bottom: 0; }
  .doc td { padding-top: 2px; }
}

@media (min-width: 640px) {
  .wrap { padding-top: 56px; }
  h1 { font-size: 38px; }
  .heroline { font-size: 56px; }
}
/* A small phone (iPhone SE, 375 wide and smaller): the headline still fits
   in four lines without a word breaking. */
@media (max-width: 380px) {
  .heroline { font-size: 40px; }
}

/* The free sample lesson. preload="none" so nothing is downloaded until the
   visitor presses play. */
.sample { display: block; width: 100%; max-width: 320px; height: auto; aspect-ratio: 9 / 16; margin: 4px auto 14px;
          border: 1px solid var(--line); border-radius: var(--radius); background: #000; }

/* A link inside a sentence, still a 44px target for a thumb. The negative
   margin gives the height back, so the line it sits on does not grow. */
.tap { display: inline-block; padding: 11px 0; margin: -11px 0; min-height: 44px; min-width: 44px; }

/* Who you are paying and the 14 days, directly under each buy button. */
.under-buy.seller { margin: 4px 0 4px; }

/* The one real question. The right answer carries the words "The right
   answer" as well as its gold edge, so it never rests on colour. */
.sampleq .ask { font-weight: 800; font-size: 19px; line-height: 1.35; letter-spacing: -.2px; }
.sampleq ul { list-style: none; padding: 0; }
.sampleq li { display: flex; gap: 12px; align-items: center; min-height: 54px; padding: 10px 14px 10px 10px;
              background: var(--surface-2); border: 1px solid var(--hairline); border-radius: 16px; }
.sampleq li b { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px;
                background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline-strong); }
.sampleq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
                   gap: 12px; color: var(--gold-text); font-weight: 700; padding: 12px 0; min-height: 44px; }
.sampleq summary::-webkit-details-marker { display: none; }
.sampleq summary::after { content: ''; flex: none; width: 9px; height: 9px; margin: -4px 4px 0 0;
                          border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.sampleq details[open] > summary::after { transform: rotate(225deg); margin-top: 4px; }
.sampleq details p { position: relative; overflow: hidden; margin: 0 0 10px; padding: 14px 16px 15px 20px;
                     border-radius: 16px; border: 1px solid var(--why-line);
                     background: linear-gradient(160deg, var(--why-tint), transparent 70%), var(--surface); }
.sampleq details p::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gold); }
.sampleq summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

@media (prefers-reduced-motion: no-preference) {
  .buy, .row, .ghost, .cta { transition: transform .15s cubic-bezier(.2, .8, .2, 1); }
  .buy:active, .row:active, .ghost:active, .cta:active { transform: scale(.985); }
}
