/* mytimeliner.co.uk — one stylesheet for every page. Brand red and place
   colours come from the app (icon #E11D48; lifeStrip.ts place palette). */

@font-face { font-family: "Jakarta"; font-weight: 400; font-display: swap; src: url("/fonts/jakarta-400.woff2") format("woff2"); }
@font-face { font-family: "Jakarta"; font-weight: 600; font-display: swap; src: url("/fonts/jakarta-600.woff2") format("woff2"); }
@font-face { font-family: "Jakarta"; font-weight: 700; font-display: swap; src: url("/fonts/jakarta-700.woff2") format("woff2"); }
@font-face { font-family: "Jakarta"; font-weight: 800; font-display: swap; src: url("/fonts/jakarta-800.woff2") format("woff2"); }

:root {
  --red: #E11D48;
  --red-ink: #BE123C;
  --red-soft: #FFE4EA;
  --ink: #16121A;
  --muted: #6B6470;
  --faint: #A39BA6;
  --line: #EEE8EC;
  --bg: #FAF8F9;
  --card: #FFFFFF;
  --blue: #2563EB;
  --magenta: #C026D3;
  --cyan: #0891B2;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(22, 18, 26, .04), 0 6px 18px rgba(22, 18, 26, .06);
  --shadow-lg: 0 30px 70px rgba(22, 18, 26, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Jakarta", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--red-ink); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: 10; background: rgba(250, 248, 249, .86);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; }
.site-head.scrolled { border-bottom-color: var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 1px 4px rgba(22, 18, 26, .12); }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 12px; border-radius: 10px; }
.site-nav a:hover { color: var(--ink); background: rgba(22, 18, 26, .04); }
.site-nav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 760px) { .site-nav .hide-sm { display: none; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none;
  background: var(--red); color: #fff; box-shadow: 0 8px 22px rgba(225, 29, 72, .28);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.btn:hover { color: #fff; background: var(--red-ink); }
.btn:active { transform: scale(.97); }
.btn.small { min-height: 40px; padding: 8px 16px; font-size: 14px; box-shadow: none; }
.btn.ghost { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.btn.ghost:hover { color: var(--ink); background: #fff; }
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 18px 8px 14px;
  border-radius: 14px; background: var(--ink); color: #fff; text-decoration: none; }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 11px; opacity: .75; font-weight: 600; letter-spacing: .02em; line-height: 1.2; }
.store b { display: block; font-size: 17px; line-height: 1.2; }
.store.soon { background: #2A242D; cursor: default; }
.stores { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 56px 0 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--red-ink); background: var(--red-soft);
  font-weight: 700; font-size: 13px; letter-spacing: .02em; padding: 6px 12px; border-radius: 999px; }
h1 { font-size: clamp(38px, 5.6vw, 62px); line-height: 1.04; letter-spacing: -.035em; margin: 18px 0 18px; font-weight: 800; text-wrap: balance; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 36ch; margin: 0 0 30px; text-wrap: pretty; }
.hero .fine { color: var(--muted); font-size: 14px; margin-top: 16px; }

/* Phone mock */
.phone { position: relative; width: min(340px, 100%); margin-left: auto; background: var(--card); border-radius: 44px;
  padding: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.screen { background: var(--bg); border-radius: 32px; padding: 22px 16px 18px; overflow: hidden; }
.screen-top { display: flex; justify-content: space-between; align-items: baseline; margin: 0 4px 16px; }
.screen-top b { font-size: 22px; letter-spacing: -.02em; }
.screen-top span { color: var(--faint); font-size: 12px; font-weight: 600; }
.strip { display: flex; height: 10px; border-radius: 999px; overflow: hidden; margin: 0 4px 18px; gap: 3px; }
.strip i { display: block; height: 100%; border-radius: 999px; }
.stops { position: relative; display: grid; gap: 12px; }
.stops::before { content: ""; position: absolute; left: 7px; top: 28px; bottom: 28px; width: 2px; background: var(--line); border-radius: 2px; }
.stop { display: flex; align-items: center; gap: 12px; }
.dot { position: relative; width: 16px; height: 16px; flex: none; border-radius: 50%; border: 3px solid currentColor; background: var(--bg); }
.mini { flex: 1; display: flex; align-items: center; gap: 12px; color: var(--ink); background: var(--card); border-radius: 14px; padding: 11px 13px; box-shadow: var(--shadow); min-width: 0; }
.tile { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; }
.tile svg { width: 18px; height: 18px; }
.mini .t { flex: 1; min-width: 0; }
.mini b { display: block; font-size: 15px; line-height: 1.25; }
.mini small { display: block; color: var(--muted); font-size: 12px; line-height: 1.3; }
.mini .yrs { font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.toast { position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; padding: 10px 16px; border-radius: 999px; box-shadow: var(--shadow-lg); white-space: nowrap; }
.toast svg { width: 16px; height: 16px; }

.c-blue { color: var(--blue); } .bg-blue { background: rgba(37, 99, 235, .12); }
.c-magenta { color: var(--magenta); } .bg-magenta { background: rgba(192, 38, 211, .12); }
.c-cyan { color: var(--cyan); } .bg-cyan { background: rgba(8, 145, 178, .12); }
.c-red { color: var(--red); } .bg-red { background: var(--red-soft); }

/* ---------- Trust strip ---------- */
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust span { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: 15px; }
.trust svg { width: 18px; height: 18px; color: var(--red); }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.kicker { color: var(--red-ink); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 10px; }
h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1; letter-spacing: -.03em; margin: 0 0 14px; font-weight: 800; text-wrap: balance; }
.section-lede { color: var(--muted); font-size: 18px; max-width: 58ch; margin: 0 0 40px; text-wrap: pretty; }
.center { text-align: center; } .center .section-lede { margin-left: auto; margin-right: auto; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--card); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.step .art { height: 210px; border-radius: 16px; background: var(--bg); display: grid; place-items: center; margin-bottom: 20px; overflow: hidden; padding: 16px; }
.step h3 { font-size: 20px; letter-spacing: -.01em; margin: 0 0 6px; }
.step h3::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 10px;
  border-radius: 50%; background: var(--red-soft); color: var(--red-ink); font-size: 14px; vertical-align: 2px; }
.step p { margin: 0; color: var(--muted); }

/* Step art: scan */
.finder { position: relative; width: 190px; height: 128px; display: grid; place-items: center; }
.finder i { position: absolute; width: 22px; height: 22px; border: 3px solid var(--red); }
.finder i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 9px; }
.finder i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 9px; }
.finder i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 9px; }
.finder i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 9px; }
.doc { width: 156px; height: 96px; background: var(--card); border-radius: 9px; box-shadow: var(--shadow); padding: 12px; display: grid; grid-template-columns: 34px 1fr; gap: 8px 10px; align-content: start; }
.doc .ph { grid-row: span 3; height: 42px; border-radius: 5px; background: #EFEAEE; }
.bar { height: 6px; border-radius: 4px; background: var(--line); }
.bar.d { background: #DDD5DB; }
.doc .full { grid-column: 1 / -1; }
.chip { display: inline-block; font-weight: 800; font-size: 13px; padding: 3px 10px; border-radius: 999px; background: var(--red-soft); color: var(--red-ink); font-variant-numeric: tabular-nums; }

/* Step art: form */
.form-card { width: 100%; max-width: 250px; background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 12px; }
.form-card .lbl { font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.field { border: 1.5px solid var(--red); border-radius: 9px; background: var(--bg); padding: 8px 10px; display: grid; gap: 3px; }
.field div { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.field span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.copied { margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.copied svg { width: 13px; height: 13px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--card); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.feature .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; }
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { font-size: 18px; margin: 0 0 6px; letter-spacing: -.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* Forms band */
.band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.forms { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.form { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 10px 16px; font-weight: 700; font-size: 15px; }
.form svg { width: 16px; height: 16px; color: var(--red); }

/* Privacy (dark) */
.dark { background: var(--ink); color: #F4F0F3; }
.dark h2 { color: #fff; }
.dark .kicker { color: #FDA4B8; }
.dark .section-lede { color: #BDB4BF; }
.dark a { color: #FDA4B8; }
.privacy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pv { display: flex; gap: 16px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); border-radius: 18px; padding: 22px; }
.pv .ic { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(225, 29, 72, .18); color: #FDA4B8; }
.pv .ic svg { width: 20px; height: 20px; }
.pv b { display: block; color: #fff; font-size: 17px; margin-bottom: 4px; }
.pv span { color: #BDB4BF; font-size: 15px; }

/* FAQ */
.faq details { background: var(--card); border-radius: 16px; padding: 18px 22px; margin-bottom: 10px; box-shadow: var(--shadow); }
.faq summary { font-weight: 700; font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-weight: 800; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* Final CTA */
.cta-card { background: linear-gradient(135deg, #FFF1F4 0%, #FFFFFF 60%); border: 1px solid #FBD5DE; border-radius: 28px; padding: 56px 32px; text-align: center; }
.cta-card .stores { justify-content: center; margin-top: 26px; }
.cta-card p { color: var(--muted); font-size: 18px; max-width: 46ch; margin: 0 auto; }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
.site-foot .wrap { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 20px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-foot a { color: var(--muted); text-decoration: none; font-weight: 600; }
.site-foot a:hover { color: var(--ink); }
.site-foot .brand { font-size: 16px; }
.site-foot .brand img { width: 26px; height: 26px; border-radius: 7px; }
.site-foot p { margin: 8px 0 0; }

/* ---------- Document pages (privacy, support, delete) ---------- */
.doc-page { padding: 48px 0 32px; }
.doc-page h1 { font-size: clamp(32px, 4.4vw, 46px); margin: 0 0 6px; }
.doc-page .updated { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.doc-page .tldr { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--radius); padding: 20px 22px; margin: 0 0 34px; box-shadow: var(--shadow); }
.doc-page .tldr strong { color: var(--ink); }
.doc-page h2 { font-size: 22px; letter-spacing: -.015em; margin: 40px 0 10px; }
.doc-page h3 { font-size: 17px; margin: 24px 0 4px; }
.doc-page p, .doc-page li { color: #2E2832; }
.doc-page ul, .doc-page ol { padding-left: 22px; }
.doc-page li { margin: 7px 0; }
.doc-page .button { display: inline-flex; margin: 6px 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; }
.toc a { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; }
.toc a:hover { border-color: #FBD5DE; color: var(--red-ink); }
.contact-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--card); border-radius: 18px; padding: 22px 24px; box-shadow: var(--shadow); margin: 0 0 36px; }
.contact-card b { display: block; font-size: 18px; }
.contact-card span { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 32px; }
  .phone { margin: 0 auto; }
  .steps, .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .steps, .features, .privacy-grid { grid-template-columns: 1fr; }
  .cta-card { padding: 40px 20px; }
}
