/* Wadsworth: palette drawn from the app icon (magenta to tangerine, gold,
   silver) on a warm cream or deep plum ground. */
:root {
  --magenta: #c8216f;
  --tangerine: #ff7a2f;
  --gold: #f2b43c;
  --gold-deep: #c98a14;
  --plum: #241027;
  --plum-2: #34173a;
  --cream: #fff8f1;
  --cream-2: #f7ebe0;
  --ink: #26141f;
  --muted: #6b5563;
  --line: rgba(38, 20, 31, 0.12);
  --card: #ffffff;
  --bg: var(--cream);
  --bg-2: var(--cream-2);
  --text: var(--ink);
  --link: #b0185f;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(20px, 5vw, 56px);
  --max: 1120px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a0b1d;
    --bg-2: var(--plum);
    --card: var(--plum-2);
    --text: #fbeee6;
    --muted: #c7afbd;
    --line: rgba(251, 238, 230, 0.14);
    --link: #ff9a5c;
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-underline-offset: 0.18em; }

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
  text-wrap: balance;
  margin: 0;
}

.nowrap { white-space: nowrap; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* header */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
}
.top.solid { position: static; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none; font: 600 1.15rem/1 var(--serif);
}
.top.solid .brand { color: var(--text); }
.brand img { width: 34px; height: 34px; border-radius: 22.37%; }
.top nav { display: flex; gap: clamp(12px, 3vw, 28px); }
.top nav a { color: #fff; text-decoration: none; font-size: 0.95rem; font-weight: 500; text-shadow: 0 1px 10px rgba(36, 16, 39, 0.9), 0 0 2px rgba(36, 16, 39, 0.8); }
.top.solid nav a { color: var(--muted); }
.top nav a:hover { text-decoration: underline; }

/* hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(760px, 92svh);
  display: grid; align-items: center;
  color: #fff;
  background: #3a1238;
}
.hero-art { position: absolute; inset: 0; z-index: -2; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 72% center; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(36, 16, 39, 0.6) 0%, rgba(36, 16, 39, 0) 16%),
    linear-gradient(90deg, rgba(36, 16, 39, 0.85) 0%, rgba(36, 16, 39, 0.6) 36%, rgba(36, 16, 39, 0) 58%);
}
.hero > .wrap { width: 100%; }
.hero-copy { max-width: 520px; padding: 120px 0 80px; }
.app-icon {
  width: clamp(76px, 9vw, 104px); border-radius: 22.37%;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35); margin-bottom: 22px;
}
.eyebrow {
  margin: 0 0 12px; color: var(--gold);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.hero h1 { font-size: clamp(2.3rem, 6vw, 4rem); text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25); }
.lede { margin: 20px 0 0; font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: rgba(255, 255, 255, 0.9); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; text-decoration: none; white-space: nowrap;
}
.button.primary {
  color: #2a1406;
  background: linear-gradient(135deg, #ffd27a 0%, var(--gold) 45%, var(--tangerine) 100%);
  box-shadow: 0 8px 22px rgba(255, 122, 47, 0.35);
}
.button.ghost { color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.6); }
.button.primary:hover { filter: brightness(1.05); }
.button.ghost:hover { background: rgba(255, 255, 255, 0.1); }

/* sections */
section.band { padding: clamp(64px, 9vw, 110px) 0; }
section.band.alt { background: var(--bg-2); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.section-head p { color: var(--muted); margin: 14px 0 0; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 26px;
}
.card .glyph {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--magenta), var(--tangerine)); color: #fff; margin-bottom: 18px;
}
.card .glyph svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.35rem; }
.card p { color: var(--muted); margin: 10px 0 0; }

.promise {
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center;
  border-radius: 26px; padding: clamp(24px, 4vw, 40px);
  background: linear-gradient(135deg, var(--plum) 0%, #4a1a45 100%); color: #fbeee6;
}
.promise .seal {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #ffe3a3, var(--gold) 55%, var(--gold-deep));
  color: #3a1d02;
}
.promise .seal svg { width: 30px; height: 30px; }
.promise h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.promise p { margin: 8px 0 0; color: #e3cfd9; }

.install { text-align: center; }
.install .section-head { margin: 0 auto 26px; }
.install .actions { justify-content: center; }
.fine { color: var(--muted); font-size: 0.95rem; margin-top: 18px; }

/* long-form pages */
.doc { max-width: 760px; margin: 0 auto; padding: clamp(40px, 7vw, 80px) var(--pad) clamp(64px, 9vw, 110px); }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.doc .meta { color: var(--muted); margin: 12px 0 0; }
.doc h2 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); margin-top: clamp(34px, 5vw, 48px); }
.doc p, .doc li { color: var(--text); }
.doc p { margin: 14px 0 0; }
.doc ul { padding-left: 1.2em; margin: 14px 0 0; }
.doc li { margin-top: 10px; }
.doc strong { font-weight: 650; }

/* footer */
footer {
  border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem;
  padding: 28px 0 40px;
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
footer nav { display: flex; gap: 20px; }
footer a { color: var(--muted); }

@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .top nav a:not(.keep) { display: none; }
  /* Phones: the art sits on top at a sane crop, the copy below on plum. */
  .hero { display: block; min-height: 0; background: var(--plum); }
  .hero::before { display: none; }
  .hero-art { position: relative; display: block; inset: auto; z-index: 0; }
  .hero-art img { height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 80% center; }
  .hero-art::after {
    content: ""; position: absolute; inset: auto 0 0 0; height: 45%;
    background: linear-gradient(180deg, rgba(36, 16, 39, 0) 0%, var(--plum) 100%);
  }
  .hero-copy { position: relative; padding: 0 0 44px; }
  .app-icon { margin-top: -44px; position: relative; }
  .actions .button { flex: 1 1 100%; }
  .promise { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
  .button { transition: filter 0.15s ease, background-color 0.15s ease; }
}
