/* Landing, legal and support pages. Tokens come from base.css. */

.site-header {
  padding: .9rem 0;
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  border-bottom: 1px solid transparent;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem 1.25rem; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .9375rem; padding: .7rem 0; display: inline-block; }
.site-nav a:hover { text-decoration: underline; }
.site-nav .nav-optional { display: none; }
@media (min-width: 44rem) { .site-nav .nav-optional { display: list-item; } }

section { scroll-margin-top: 5rem; }
.band { padding: 3.25rem 0; }
.band--tint { background: var(--bg-2); }
.band--dark {
  background: #0F3B2E;
  color: #FAF5EA;
  --text: #FAF5EA;
  --muted: #C3D0C8;
  --line: #2A6451;
  --link: #E6CB8B;
  --accent-text: #E6CB8B;
  --surface: #154839;
  --focus: #E6CB8B;
}
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.section-head p { color: var(--muted); font-size: 1.125rem; margin: 0; }
.eyebrow {
  font-size: .8125rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent-text); margin: 0 0 .6rem;
}

/* ---------- hero ---------- */
.hero-band { padding: 2rem 0 3rem; overflow: hidden; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero-copy .lead { font-size: 1.2rem; color: var(--muted); max-width: 34rem; }
.hero-cta { display: grid; gap: .75rem; justify-items: start; margin-top: 1.5rem; }
.hero-meta { color: var(--muted); font-size: .9375rem; margin: 0; }
.hero-art { justify-self: center; width: min(100%, 26rem); }
.hero-art svg { display: block; width: 100%; height: auto; }
@media (min-width: 56rem) {
  .hero-band { padding: 4rem 0 5rem; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 3rem; }
}

/* illustration colors */
.art-bg { fill: var(--bg-2); }
.art-ring { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 2 9; stroke-linecap: round; }
.art-person { fill: var(--surface); stroke: var(--line); stroke-width: 2; }
.art-person--a { fill: #0F3B2E; stroke: #0F3B2E; }
.art-person--b { fill: #A3232D; stroke: #A3232D; }
.art-person--c { fill: #C9A24B; stroke: #C9A24B; }
.art-head { fill: var(--muted); }
.art-head--on { fill: #FAF5EA; }
.art-arrow { fill: none; stroke: var(--accent-text); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.art-box { fill: #0F3B2E; }
.art-lid { fill: #165240; }
.art-ribbon { fill: #C9A24B; }
.art-bow { fill: none; stroke: #C9A24B; stroke-width: 6; stroke-linejoin: round; }
.art-spark { fill: var(--accent); }
.art-line { fill: none; stroke: var(--accent-text); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.art-fill { fill: var(--surface-2); stroke: var(--accent-text); stroke-width: 2.5; stroke-linejoin: round; }
@media (prefers-color-scheme: dark) {
  .art-box { fill: #1F6B53; }
  .art-lid { fill: #267A60; }
  .art-person--a { fill: #1F6B53; stroke: #1F6B53; }
}

/* ---------- store badge (own design; swap for Apple's official artwork) ---------- */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  min-height: 56px;
  padding: .5rem 1.25rem .5rem 1rem;
  border-radius: 14px;
  background: #1B1B1A;
  color: #FFFFFF;
  border: 1px solid #55554F;
  text-decoration: none;
  line-height: 1.1;
  transition: transform .12s ease;
}
.store-badge:hover { transform: translateY(-1px); }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge__text { display: grid; text-align: left; }
.store-badge__small { font-size: .75rem; opacity: .85; }
.store-badge__big { font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; }
.store-badge.is-pending { background: transparent; color: var(--text); border: 1px dashed var(--muted); cursor: default; }
.store-badge.is-pending:hover { transform: none; }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: step; }
.step { counter-increment: step; display: grid; gap: .6rem; align-content: start; }
.step__art { width: 72px; height: 72px; }
.step__num {
  font-family: var(--font-serif); font-size: .9375rem; font-weight: 600; color: var(--accent-text);
  letter-spacing: .04em;
}
.step__num::before { content: "Step " counter(step); }
.step h3 { margin: 0; }
.step p { margin: 0; color: var(--muted); }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }

/* ---------- features ---------- */
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.features h3 { margin: 0 0 .3rem; font-size: 1.15rem; }
.features p { margin: 0; color: var(--muted); }
.features li { padding-left: 1rem; border-left: 3px solid var(--accent); }
@media (min-width: 40rem) { .features { grid-template-columns: repeat(2, 1fr); gap: 2rem 2.5rem; } }
@media (min-width: 62rem) { .features { grid-template-columns: repeat(3, 1fr); } }

/* ---------- pricing ---------- */
.plans { display: grid; gap: 1rem; align-items: start; }
@media (min-width: 48rem) { .plans { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.plan { display: grid; gap: 1rem; padding: 1.5rem 1.25rem; }
.plan--pro { border: 2px solid var(--accent); position: relative; }
.plan__name { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 600; margin: 0; }
.plan__price { font-family: var(--font-serif); font-size: 2.4rem; font-weight: 600; line-height: 1; margin: 0; }
.plan__price small { font-family: var(--font-sans); font-size: .9375rem; font-weight: 400; color: var(--muted); }
.plan__note { color: var(--muted); margin: 0; font-size: .9375rem; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.ticks li { position: relative; padding-left: 1.75rem; }
.ticks li::before {
  content: "";
  position: absolute; left: .2rem; top: .32em;
  width: .95rem; height: .5rem;
  border-left: 2.5px solid var(--accent-text);
  border-bottom: 2.5px solid var(--accent-text);
  transform: rotate(-45deg);
}
.swatches { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; list-style: none; padding: 0; }
.swatch {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .8125rem; font-weight: 600;
  padding: .25rem .6rem .25rem .3rem;
  border: 1px solid var(--line); border-radius: 999px;
}
.swatch::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .25); }
.swatch--evergreen::before { background: linear-gradient(135deg, #0F3B2E 50%, #D4B164 50%); }
.swatch--midnight::before { background: linear-gradient(135deg, #0B1430 50%, #E3C77A 50%); }
.swatch--candycane::before { background: linear-gradient(135deg, #A3232D 50%, #FFFFFF 50%); }
.swatch--gold::before { background: linear-gradient(135deg, #C9A24B 50%, #1B1B1A 50%); }
.price-foot { color: var(--muted); font-size: .9375rem; margin: 1.25rem 0 0; max-width: 44rem; }

/* ---------- privacy band ---------- */
.promise { display: grid; gap: 2rem; }
.promise ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.promise li { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start; }
.promise li svg { width: 26px; height: 26px; margin-top: .1rem; color: #E6CB8B; }
.promise li strong { display: block; }
.promise li span { color: var(--muted); }
@media (min-width: 56rem) { .promise { grid-template-columns: .8fr 1.2fr; gap: 3rem; } }

/* ---------- FAQ ---------- */
.faq { max-width: 46rem; display: grid; gap: .6rem; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.faq summary {
  cursor: pointer; font-weight: 600; padding: .95rem 1rem; min-height: 48px;
  list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent-text); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > *:not(summary) { padding: 0 1rem; color: var(--muted); }
.faq details > p:last-child { padding-bottom: 1rem; margin: 0; }

.final-cta { text-align: center; display: grid; justify-items: center; gap: 1rem; }
.final-cta p { color: var(--muted); max-width: 32rem; margin: 0; }

/* ---------- legal / support documents ---------- */
.doc { padding-block: 1.5rem 1rem; }
.doc h1 { font-size: clamp(1.9rem, 5vw + .6rem, 2.75rem); }
.doc h2 { font-size: 1.45rem; margin-top: 2.25rem; scroll-margin-top: 5rem; }
.doc h3 { font-size: 1.1rem; margin-top: 1.5rem; font-family: var(--font-sans); font-weight: 700; letter-spacing: 0; }
.doc .updated { color: var(--muted); }
.doc li { margin-bottom: .4rem; }
.doc .summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  margin: 1.5rem 0;
}
.doc .summary h2 { margin-top: 0; font-size: 1.2rem; }
.doc .summary ul { margin-bottom: 0; }
.doc table { border-collapse: collapse; width: 100%; margin: 0 0 1.25rem; font-size: .9375rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: .6rem .6rem .6rem 0; border-bottom: 1px solid var(--line); }
.doc th { font-size: .8125rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll:focus-visible { outline-offset: 0; }
.doc .toc { columns: 2 14rem; padding-left: 1.25rem; color: var(--muted); }
.support-card { margin: 1.25rem 0 2rem; }
.doc .support-card h2 { margin-top: 0; font-size: 1.35rem; }
.support-card .form { margin-top: 1rem; }
.support-card select.input { appearance: auto; }
.support-card .hint { display: block; }
#support-count { white-space: nowrap; font-variant-numeric: tabular-nums; float: right; margin-left: .75rem; }
.support-sent { margin-top: 1rem; padding: 1rem; border-radius: var(--radius-sm); background: var(--surface-2); border-left: 4px solid var(--accent); }
.support-sent h3 { margin-top: 0; font-family: var(--font-serif); font-size: 1.25rem; }
.support-sent:focus, #support-status:focus { outline: none; }

.notfound { text-align: center; padding-block: 4rem; display: grid; gap: 1rem; justify-items: center; }
.support-card, .support-sent, #support-status { scroll-margin-top: 6rem; }
