/* chargeclaim.app — Night Cabin, night (design system section A). No outside fonts. */
:root {
  --bg: #0F1C1B; --glow: #17302E; --surface: #16292A;
  --fg: #E6EEEB; --muted: #8EA6A0; --brass: #E6C88E;
  --mint: #9CCBB8; --ok: #7CD4A4; --line: #22393A; --quiet-line: #35504E;
  --chip-ok: #1D3A33;
  --radius: 18px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px; line-height: 1.55;
}
a { color: var(--mint); }
a:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

header.top { border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.wordmark { width: 190px; }
/* The menu at the top of every page (DEC-101): the same style as Tony's other websites (rearpeek.com), in ChargeClaim's colours */
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600; padding: 7px 12px; border-radius: 10px; white-space: nowrap; }
.site-nav a:hover { color: var(--fg); background: rgba(255,255,255,.06); }
.site-nav a[aria-current="page"] { color: var(--ok); background: var(--chip-ok); }
@media (max-width: 760px) {
  header.top .wrap { flex-wrap: wrap; padding-bottom: 8px; }
  .site-nav { order: 3; width: 100%; margin: 0; flex-wrap: wrap; justify-content: space-between; gap: 2px 0; }
  .site-nav a { font-size: 13px; padding: 6px 7px; }
  /* Home page on phones: the banner picture already shows the logo and price, so only the menu row is kept */
  .home header.top .wrap > a, .home header.top .pill { display: none; }
  .home header.top .wrap { padding-top: 8px; }
}
.pill {
  display: inline-block; background: var(--chip-ok); color: var(--ok);
  border: 1px solid var(--quiet-line); border-radius: 999px;
  padding: 6px 14px; font-size: 14px; font-weight: 600; white-space: nowrap;
}
/* At launch the Google Play labels became links to the app's Play listing: they keep the pill's look */
a.pill { text-decoration: none; }
a.pill:hover, a.pill:focus-visible { text-decoration: underline; }
/* The visit-counting on/off button (visit-counting plan, 2026-11-09): a pill, big enough to tap */
button.pill { font-family: inherit; font-size: 16px; padding: 10px 18px; min-height: 44px; cursor: pointer; }
button.pill:hover, button.pill:focus-visible { text-decoration: underline; }
button.pill[hidden] { display: none; }

/* Reserve each poster's space before it loads, so the page doesn't jump */
.cards img { aspect-ratio: 1080 / 1350; }
@media (max-width: 760px) {
  .cards img { aspect-ratio: 900 / 1800; }
}

/* Banner (DEC-078). Computers: Tony's video, melting into the background like his original banner's photo, with the
   app's claim on a phone overlapping its right edge and the words beside it. Phones: his upright banner B only. */
.hero {
  background:
    radial-gradient(ellipse 70% 90% at 78% 40%, #1E4A3F 0%, transparent 70%),
    linear-gradient(180deg, #102423 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "words film" "extras film";
  align-items: center; column-gap: 44px;
}
.hero .words { grid-area: words; align-self: end; padding-top: 48px; }
.hero .extras { grid-area: extras; align-self: start; padding-bottom: 40px; }
.hero .film { grid-area: film; align-self: stretch; min-height: 660px; position: relative; margin: 0; }
.hero .eyebrow { margin: 0 0 12px; color: var(--mint); font-size: 15px; font-weight: 700; letter-spacing: .22em; }
.hero .headline { margin: 0 0 16px; font-size: clamp(34px, 4.6vw, 58px); font-weight: 700; line-height: 1.08; letter-spacing: -.01em; }
.hero .headline span { display: block; }
.hero .headline .gold { color: var(--brass); }
.hero .say { margin: 0 0 20px; font-size: 19px; max-width: 34em; }
.hero .chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.hero .chips li { border: 1px solid var(--quiet-line); background: rgba(29,58,51,.6); border-radius: 999px; padding: 6px 14px; font-size: 15px; }
.hero .price { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.hero .price .tag {
  display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 12px;
  background: linear-gradient(135deg, #F0D9A6, #C9A766); color: #1B1A12;
}
.hero .price .tag b { font-size: 34px; line-height: 1; letter-spacing: -.02em; }
.hero .price .tag small { font-size: 13px; font-weight: 800; line-height: 1.2; letter-spacing: .04em; text-transform: uppercase; }
.hero .price p { margin: 0; font-size: 16px; }
.hero .price p strong { display: block; }
.hero .fine { margin: 18px 0 0; color: var(--muted); font-size: 14px; }
.film video, .film .still {
  display: block; position: absolute; left: 0; top: 0; width: 84%; height: 100%;
  object-fit: cover; object-position: 60% 30%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 38%, #000 80%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 7%, #000 78%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  mask-image: linear-gradient(to right, transparent 0, #000 38%, #000 80%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 7%, #000 78%, transparent 100%);
}
/* The first picture shows while the video loads; as a background it is only fetched on computers */
.film video { background: url(/img/hero-first.webp) 60% 30% / cover no-repeat; }
.film .phone {
  position: absolute; right: 0; bottom: 5%; width: 41%; height: auto;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,.55));
}
/* Anyone whose phone or computer asks for less motion sees the last picture (the thumbs-up) and no video */
.film .still { display: none; }
@media (prefers-reduced-motion: reduce) {
  .film video { display: none; }
  .film .still { display: block; }
}
.phone-banner { display: none; }
@media (max-width: 760px) {
  .hero { background: none; border-bottom: 0; }
  .hero .wrap { display: none; }
  .phone-banner { display: block; width: 100%; aspect-ratio: 900 / 1880; }
}

/* Price tags beside the computer banner (DEC-081): "Free for life" + "£12.99" */
.hero .price .tags { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero .price .tag.free { background: var(--chip-ok); color: var(--ok); border: 1px solid var(--ok); }
.hero .price .plus { font-size: 26px; color: var(--muted); font-weight: 700; }

/* "What it costs" (DEC-081), on every screen; since launch its last line links to ChargeClaim on Google Play */
.costs h2 { margin: 0 0 4px; }
.costs .lead { color: var(--fg); margin: 0 0 16px; }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; } }
.col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.col h3 { margin: 0 0 4px; font-size: 18px; }
.col .big { font-size: 28px; font-weight: 800; line-height: 1.1; margin: 2px 0 10px; }
.col.days .big { color: var(--mint); } .col.life .big { color: var(--ok); } .col.paid .big { color: var(--brass); }
.col ul { margin: 0; padding: 0; list-style: none; }
.col li { position: relative; padding-left: 24px; margin-bottom: 8px; font-size: 15px; }
.col li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.col.paid li::before { content: "★"; color: var(--brass); }
.col p { margin: 0; font-size: 15px; }
.costs .after { margin: 16px 0 0; font-size: 15px; color: var(--muted); }
.costs .soon-line { margin: 16px 0 0; }

/* The zappi panel (DEC-081) */
.zappi-panel { background: linear-gradient(135deg, var(--surface), var(--glow)); border: 1px solid var(--quiet-line); border-radius: var(--radius); padding: 22px 24px; }
.zappi-panel h2 { margin: 0 0 10px; font-size: 24px; }
.zappi-panel p { margin: 0 0 10px; }
.zappi-panel .more { font-weight: 700; }
.zappi-panel .small, .text-page .small { color: var(--muted); font-size: 14px; }

/* Coming soon strip (no longer used on the home page) */
.soon {
  margin: 28px 0; padding: 22px 24px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--surface), var(--glow));
  border: 1px solid var(--quiet-line);
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px;
}
.soon h2 { margin: 0; font-size: 24px; }
.soon p { margin: 0; color: var(--fg); flex: 1 1 320px; }
.soon .price { color: var(--brass); font-weight: 700; }

section { padding: 28px 0; }
section > .wrap > h2 { font-size: 28px; margin: 0 0 6px; }
.lead { color: var(--muted); margin: 0 0 22px; }

/* The six posters */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards picture { display: block; }
.cards img { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }

/* Two text panels */
.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .panels { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.panel h2 { margin: 0 0 10px; font-size: 21px; }
.panel ul { margin: 0; padding-left: 0; list-style: none; }
.panel li { padding: 7px 0 7px 30px; position: relative; }
.panel li::before { content: "✓"; position: absolute; left: 4px; color: var(--ok); font-weight: 700; }
.panel li.no::before { content: "–"; color: var(--muted); }
.panel .sub { color: var(--muted); font-size: 15px; margin: 14px 0 6px; }

footer { border-top: 1px solid var(--line); margin-top: 20px; padding: 24px 0 40px; color: var(--muted); font-size: 15px; }
footer p { margin: 0 0 10px; }
footer nav { margin: 0 0 10px; }
footer nav a { margin-right: 18px; display: inline-block; }

/* Text pages: privacy and "page not found" */
/* Good questions: tap a question to open its answer */
.questions details { max-width: 820px; background: var(--surface, rgba(255,255,255,.04)); border: 1px solid var(--line); border-radius: 12px; margin: 0 0 10px; }
.questions summary { cursor: pointer; padding: 14px 16px; font-weight: 600; color: var(--fg); min-height: 48px; list-style-position: inside; }
.questions details[open] summary { border-bottom: 1px solid var(--line); }
.questions details p { margin: 12px 16px 14px; color: var(--fg); }
.text-page { max-width: 760px; padding-top: 24px; padding-bottom: 24px; }
.text-page h1 { font-size: 30px; margin: 10px 0 6px; }
.text-page h2 { font-size: 20px; margin: 24px 0 6px; }
.text-page p, .text-page li { color: var(--fg); }
.text-page ol { padding-left: 22px; } .text-page ol li { margin-bottom: 8px; }
.policy-table { margin: 12px 0 18px; }
.policy-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.policy-table th, .policy-table td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); color: var(--fg); }
.policy-table th { color: var(--muted); font-weight: 600; }
@media (max-width: 760px) {
  .policy-table thead { display: none; }
  .policy-table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .policy-table td { display: block; border: 0; padding: 2px 0; }
  .policy-table td:first-child { font-weight: 600; }
  .policy-table td:not(:first-child)::before { content: attr(data-label) ": "; color: var(--muted); }
}
footer .legal-links a { margin-right: 18px; }
.text-page .not-connected { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); }
.todo { background: #3A3020; color: #FFE3AE; padding: 1px 6px; border-radius: 6px; }

/* Text alignment chosen in the website editor (DEC-100): classes, because the site's security rules block inline styles */
.align-left { text-align: left; }
.align-center { text-align: center; }
.align-right { text-align: right; }
.align-justify { text-align: justify; }
