/* Colours are the app's own, from Theme.swift. The site keeps one fixed look,
   like the app, which pins its appearance per screen. */
:root {
  --red: #c71a1a;          /* christmasRed */
  --red-deep: #5b0f0d;
  --green: #12331c;        /* christmasGreen */
  --ink-green: #214a33;    /* inkGreen */
  --gold: #f2c733;         /* christmasGold */
  --cream: #f7edd6;        /* cream */
  --ink-brown: #47211a;    /* inkBrown */
  --paper: #fbf6ea;
  /* Site only: the landing page's darker greens and the near-black red */
  --night: #0f2a1a;
  --night-deep: #0a1f13;
  --ink-red: #1a0605;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-green);
  font: 17px/1.55 var(--sans);
}
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
footer { flex-shrink: 0; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--red); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--cream); color: var(--ink-brown); padding: 8px 12px;
}
.skip:focus { left: 8px; top: 8px; z-index: 20; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Top bar */
.bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  padding-top: 14px; padding-bottom: 14px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: inherit; text-decoration: none;
  font: italic 700 20px/1 var(--serif);
}
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.bar nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 18px; font-size: 15px; }
.bar nav a { color: inherit; text-decoration: none; opacity: 0.9; }
.bar nav a:hover, .bar nav a[aria-current] { opacity: 1; text-decoration: underline; }

h2 {
  margin: 0 0 20px; font: italic 700 clamp(30px, 6vw, 42px)/1.15 var(--serif);
  color: var(--ink-green);
}

.phone {
  margin: 0 auto; width: min(300px, 72vw);
  border-radius: 12.5% / 5.8%;
  border: 1.5px solid rgba(247, 237, 214, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

/* Landing page */
.landing { background: var(--night); color: var(--cream); }
.landing h2 { color: inherit; }
.landing section[id] { scroll-margin-top: 64px; }

.topbar {
  position: sticky; top: 0; z-index: 10;
  color: var(--cream);
  background: rgba(26, 6, 5, 0.86);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(247, 237, 214, 0.1);
}
.topbar .bar { flex-wrap: nowrap; padding-top: 10px; padding-bottom: 10px; }
.topbar nav { flex-wrap: nowrap; align-items: center; gap: 4px 24px; }
.topbar .badge img { height: 40px; width: auto; }

.badge { display: block; line-height: 0; border-radius: 12px; }
.badge.ring { box-shadow: 0 0 0 6px rgba(242, 199, 51, 0.22), 0 18px 40px rgba(0, 0, 0, 0.45); }

/* Hero: the start screen's red wood */
.hero {
  overflow-x: clip;
  background:
    linear-gradient(rgba(40, 6, 5, 0.5), rgba(40, 6, 5, 0.5)),
    url("/assets/wood.jpg") center 30% / cover var(--red-deep);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; align-items: center;
  padding-top: 48px; padding-bottom: 80px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 24px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(26, 6, 5, 0.55); color: var(--gold);
  font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.hero h1 {
  margin: 0; font: italic 700 clamp(44px, 6.2vw, 84px)/1.02 var(--serif);
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.lead { margin: 24px 0 0; max-width: 28em; font-size: 20px; color: rgba(247, 237, 214, 0.92); }

.cta { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
.cta .badge img { height: 68px; width: auto; }
.cta .more {
  color: var(--cream); font-weight: 600; text-decoration: none;
  border-bottom: 1.5px solid rgba(247, 237, 214, 0.5); padding-bottom: 2px;
}
.qr { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 14px; line-height: 1.35; color: rgba(247, 237, 214, 0.9); }
.qr-code {
  width: 68px; height: 68px; flex: none; border-radius: 10px;
  background: #fffaf0; color: var(--ink-brown);
  display: grid; place-items: center; text-align: center;
  font-size: 11px; font-weight: 700; line-height: 1.2;
  box-shadow: 0 0 0 1.5px rgba(247, 237, 214, 0.4), 0 18px 40px rgba(0, 0, 0, 0.35);
}

.checks {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  font-size: 15px; color: rgba(247, 237, 214, 0.88);
}
.checks li { display: flex; align-items: center; gap: 10px; }
.checks li::before {
  content: ""; width: 5px; height: 10px; margin: 0 2px 3px 4px;
  border: solid var(--gold); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}

.hero-shot { justify-self: center; margin: 0; }
.hero-shot .phone {
  width: min(330px, 72vw); transform: rotate(4deg);
  border: 6px solid var(--ink-red); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55);
}

/* How it works */
.how { background: var(--cream); color: var(--ink-green); padding: 96px 0; }
.kicker { margin: 0 0 12px; font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }
.how h2 { max-width: 16em; margin: 0; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.1; }
.cards {
  list-style: none; margin: 48px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px;
}
.cards li { background: #fff; border-radius: 24px; padding: 32px; text-align: center; }
.cards h3 { margin: 22px 0 6px; font-size: 22px; line-height: 1.25; color: var(--ink-brown); }
.cards p { margin: 0; }
.icons { display: flex; justify-content: center; gap: 10px; }
.tile {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--paper); box-shadow: inset 0 0 0 1.5px rgba(33, 74, 51, 0.15);
  display: grid; place-items: center;
}
.tile svg { display: block; width: 28px; height: 28px; }
.die { place-items: normal; place-content: center; gap: 4px 14px; }
.die i { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.die.one i { width: 12px; height: 12px; }
.die.six { grid-template-columns: repeat(2, 10px); }

/* Screenshots */
.screens { padding: 96px 0; }
.screens h2 {
  max-width: 18em; margin: 0;
  font: 800 clamp(30px, 3.8vw, 48px)/1.1 var(--sans); letter-spacing: -0.02em;
}
.screens h2 span { color: var(--gold); }
.gallery {
  list-style: none; padding: 0; margin: 48px 0 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px;
}
.gallery .phone { width: 100%; border-color: rgba(247, 237, 214, 0.2); box-shadow: none; }
.gallery p { margin: 14px 0 0; font-size: 15px; font-weight: 600; }

/* Made for the table */
.table { background: var(--night-deep); padding: 96px 0; }
.table h2 { margin: 0 0 40px; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; }
.features {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px;
}
.features li { border-top: 2px solid var(--gold); padding-top: 16px; }
.features h3 { margin: 0 0 6px; font-size: 17px; }
.features p { margin: 0; color: rgba(247, 237, 214, 0.75); }

/* Closing call to action, back on the red wood */
.closing { padding: 24px 0; }
.closing-panel {
  border-radius: 32px; padding: 56px 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 40px;
  background:
    linear-gradient(rgba(40, 6, 5, 0.62), rgba(40, 6, 5, 0.62)),
    url("/assets/wood.jpg") center 40% / cover var(--red-deep);
}
.closing-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.closing-copy img { width: 112px; height: 112px; flex: none; border-radius: 26px; box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5); }
.closing-copy div { flex: 1 1 300px; min-width: 0; }
.closing h2 { margin: 0; font-size: clamp(32px, 4.2vw, 56px); line-height: 1.05; }
.closing-copy p { margin: 12px 0 0; max-width: 26em; font-size: 19px; color: rgba(247, 237, 214, 0.88); }
.closing-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.closing-cta .badge img { height: 72px; width: auto; }
.closing-cta p { margin: 0; font-size: 14px; color: rgba(247, 237, 214, 0.8); }

/* Support, privacy and 404 pages: the title sits on the hero's red wood */
.page-title {
  color: var(--cream);
  background:
    linear-gradient(rgba(40, 6, 5, 0.55), rgba(40, 6, 5, 0.55)),
    url("/assets/wood.jpg") center 30% / cover var(--red-deep);
}
.page-title .wrap { max-width: 44rem; padding-top: 56px; padding-bottom: 56px; }
.page-title h1 {
  margin: 0; font: italic 700 clamp(40px, 6vw, 60px)/1.1 var(--serif);
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.page-title .updated { margin: 12px 0 0; color: rgba(247, 237, 214, 0.85); }
.doc { max-width: 44rem; padding-top: 48px; padding-bottom: 72px; }
.doc h2 { font-size: 28px; margin: 40px 0 12px; }
.doc h3 { font-size: 17px; margin: 24px 0 4px; color: var(--ink-brown); }
.doc h3 + p { margin-top: 0; }
.doc ol, .doc ul { padding-left: 1.3em; }
.doc li { margin: 6px 0; }
.contact { background: #fff; border-radius: 24px; padding: 28px 32px; margin-top: 40px; }
.contact h2 { margin-top: 0; }

footer { background: var(--night); color: rgba(247, 237, 214, 0.85); font-size: 15px; }
footer a { color: inherit; }
footer .foot-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.foot-name { display: flex; align-items: center; gap: 12px; color: var(--cream); text-decoration: none; font: italic 700 22px/1 var(--serif); }
.foot-name img { width: 40px; height: 40px; border-radius: 9px; }
.foot-brand p { margin: 12px 0 0; color: rgba(247, 237, 214, 0.7); }
footer h2.foot-head { margin: 6px 0 4px; font: 700 13px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.foot-main nav, .foot-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
footer .foot-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-top: 20px; padding-bottom: 24px;
  border-top: 1px solid rgba(247, 237, 214, 0.12);
  font-size: 14px; color: rgba(247, 237, 214, 0.7);
}
@media (min-width: 720px) {
  footer .foot-main { grid-template-columns: 2fr 1fr 1.2fr; }
}
.social { list-style: none; margin: 2px 0 0 -11px; padding: 0; display: flex; gap: 4px; }
.social a { color: #fff; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; }
.social a:hover { background: rgba(247, 237, 214, 0.1); }
.social svg { width: 22px; height: 22px; fill: currentColor; }

/* Phones: the bar keeps the brand and the badge; the other links are in the footer.
   A QR code can't be scanned by the phone showing it. */
@media (max-width: 719px) {
  .topbar .nav-page { display: none; }
  .topbar nav { gap: 16px; }
  .topbar .badge img { height: 36px; }
  .qr { display: none; }
  .cta .badge img { height: 60px; }
}
@media (max-width: 479px) {
  .topbar .lang { display: none; }
}

@media (min-width: 720px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
  .closing-panel { padding: 80px 56px; }
}

@media (min-width: 900px) {
  .wrap { padding: 0 24px; }
  .hero-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); padding-top: 80px; padding-bottom: 112px; }
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
