/* VICTORIA — shared stylesheet for joinvictoria.app
   Mobile first: every rule below is written for a phone screen, and the
   only media queries widen the layout for bigger windows. Colors are
   declared once here as roles (--gold, --ink, ...) so no page hardcodes a
   hex, matching the app's own AppColors.swift rule. --gold is the app's
   own #E3BE4A (AppColors.swift: primaryCTA). */

:root {
  --gold: #E3BE4A;
  --gold-deep: #8a6f1f;
  --gold-soft: #fbf4de;
  --paper: #ffffff;
  --surface: #f6f5f1;
  --ink: #16181c;
  --ink-muted: #5c6068;
  --ink-faint: #8b9099;
  --border: #e4e2db;
  --line: #d9d6cd;
  --shadow: 0 1px 2px rgba(22, 24, 28, .05), 0 8px 24px rgba(22, 24, 28, .05);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --gold: #E3BE4A;
    --gold-deep: #f0d68c;
    --gold-soft: #2a2415;
    --paper: #111214;
    --surface: #191b1f;
    --ink: #f1f2f4;
    --ink-muted: #a7acb4;
    --ink-faint: #767b83;
    --border: #2a2d33;
    --line: #33373e;
    --shadow: none;
  }
}

:root[data-theme="dark"] {
  --gold: #E3BE4A;
  --gold-deep: #f0d68c;
  --gold-soft: #2a2415;
  --paper: #111214;
  --surface: #191b1f;
  --ink: #f1f2f4;
  --ink-muted: #a7acb4;
  --ink-faint: #767b83;
  --border: #2a2d33;
  --line: #33373e;
  --shadow: none;
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI",
               Helvetica, Arial, sans-serif;
  /* 17px, not 15: below 16px iOS zooms the page on any focused field and
     the line becomes hard to read at arm's length on a phone. */
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

a {
  color: var(--gold-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 16px side gutter on a phone; the column stops growing at 680px so lines
   never run past a comfortable reading length on a laptop. */
.wrap {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px 72px;
}

/* ---- Top bar: wordmark + the three page links ------------------------ */

.topbar {
  padding: 20px 0 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

/* The app's own top-left logo -- the V-and-laurel mark plus "ICTORIA"
   lettering, one piece of artwork, the same file the app ships
   (Assets.xcassets/AppLogoMark). It carries the wordmark itself, so
   there is no text beside it. min-height keeps the tap target at 44px
   even though the artwork is shorter than that. */
.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.wordmark img {
  display: block;
  height: 28px;
  width: auto;
  max-width: 100%;
}

/* Wraps to two rows on a narrow phone rather than scrolling sideways. */
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-top: 12px;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;           /* Apple's minimum comfortable tap target */
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  background: var(--paper);
}
.nav a[aria-current="page"] {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--ink);
  font-weight: 600;
}

/* ---- Page head ------------------------------------------------------- */

h1 {
  font-size: clamp(30px, 8vw, 42px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0 0 12px;
  text-wrap: balance;
}
.dek {
  color: var(--ink-muted);
  font-size: 17px;
  margin: 0;
}
.meta {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

/* ---- Sections -------------------------------------------------------- */

section { margin: 0 0 32px; }
section:last-of-type { margin-bottom: 0; }

h2 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 0 0 10px;
  text-wrap: balance;
}
h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 6px;
}
p, li { margin: 0 0 12px; }
ul { margin: 0 0 12px; padding-left: 20px; }
li { margin-bottom: 6px; }
p:last-child, ul:last-child { margin-bottom: 0; }
address { font-style: normal; }
strong { font-weight: 600; }

mark {
  background: var(--gold-soft);
  color: var(--ink);
  padding: 1px 5px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px var(--gold);
}

hr.rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 36px 0;
}

/* ---- Cards and calls to action --------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 18px;
  margin: 0 0 20px;
}
.card h2, .card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  width: 100%;
  padding: 0 22px;
  border-radius: 14px;
  background: var(--gold);
  color: #16181c;              /* fixed: always dark on gold, both themes */
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.cta.secondary {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.lede {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-muted);
}

/* A question-and-answer list, used on the support page. */
details.qa {
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}
details.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after {
  content: "+";
  color: var(--gold-deep);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
}
details.qa[open] summary::after { content: "\2013"; }
details.qa .answer { padding: 0 0 16px; color: var(--ink-muted); }
details.qa .answer p:last-child { margin-bottom: 0; }

/* ---- Footer ---------------------------------------------------------- */

footer.pagefoot {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--ink-faint);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer.pagefoot a { color: var(--ink-muted); }
footer.pagefoot .links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

/* ---- Wider windows --------------------------------------------------- */

@media (min-width: 560px) {
  .wrap { padding: 0 24px 96px; }
  .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 0 20px;
  }
  .nav { margin-top: 0; justify-content: flex-end; }
  .cta { width: auto; }
  footer.pagefoot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ---- Homepage (sales page) ------------------------------------------ */

.hero { padding: 8px 0 12px; }
.eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.hero h1 { font-size: clamp(34px, 9vw, 52px); }
.hero .lede { margin-top: 14px; }

/* Buttons stack full-width on a phone, sit side by side when there is room. */
.cta-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 0 0;
}
.fineprint {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--ink-faint);
}

.benefits, .how, .features, .pricing, .faq { margin-top: 44px; }
.privacy-pitch { margin-top: 44px; }
.closer {
  margin-top: 52px;
  padding: 28px 0 8px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.closer h2 { font-size: clamp(22px, 6vw, 30px); }
.closer .cta-row { align-items: center; }

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.grid .card { margin: 0; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps .num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold);
  color: #16181c;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; color: var(--ink-muted); }

.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  margin: 0;
  color: var(--ink-muted);
}
.feature-list li:last-child { border-bottom: 0; }
.feature-list strong { color: var(--ink); display: block; margin-bottom: 2px; }

.price-card .price-line { margin: 0 0 12px; }
.price-card .price-line:last-child { margin-bottom: 0; }

@media (min-width: 560px) {
  .cta-row { flex-direction: row; flex-wrap: wrap; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .hero { padding-top: 20px; }
}

/* Support page: a label above each group of questions. */
.qa-group {
  margin: 28px 0 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.qa-group:first-of-type { margin-top: 12px; }

/* Footer small print: the medical reminder and Apple's required trademark credit. */
footer.pagefoot { flex-wrap: wrap; }
footer.pagefoot .legal-credit {
  flex-basis: 100%;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-faint);
}
