:root {
  --primary: #FACC15;
  --primary-hover: #FDE047;
  --primary-fg: #1A1206;
  --halo-deep: #A16207;

  --bg: #151515;
  --surface: #1c1c1c;
  --surface-2: #242424;
  --elevated: #2b2b2b;

  --fg: #dddddd;
  --muted: #9a9a9a;
  --subtle: #6d6d6d;

  --border: #2a2a2a;
  --border-strong: #404040;

  --halo-soft: #2A1F08;
  --glow: rgba(250, 204, 21, 0.16);

  --max: 1120px;
}

html.light {
  --bg: #fafafa;
  --surface: #fbfbfb;
  --surface-2: #ececef;
  --elevated: #e5e5e9;

  --fg: #111113;
  --muted: #6b6b72;
  --subtle: #ababb3;

  --border: #d8d8dc;
  --border-strong: #b7b7bd;

  --halo-soft: #FFF4D6;
  --glow: rgba(250, 204, 21, 0.28);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; }
.mark {
  width: 26px; height: 26px; flex: none;
  border-radius: 50%;
  border: 3.5px solid var(--primary);
  box-shadow: 0 0 14px var(--glow);
}
.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-link { font-size: 14px; color: var(--muted); transition: color .15s; }
.nav-link:hover { color: var(--fg); }

.theme-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; flex: none;
  border-radius: 8px; cursor: pointer;
  background: transparent; color: var(--muted);
  border: 1px solid var(--border);
  transition: color .15s, border-color .15s;
}
.theme-btn:hover { color: var(--fg); border-color: var(--border-strong); }
.theme-btn svg { width: 16px; height: 16px; }
html.light .icon-moon, html.dark .icon-sun { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  cursor: pointer; white-space: nowrap;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s, transform .1s, color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: 8px 15px; font-size: 14px; border-radius: 9px; }
.btn svg { width: 15px; height: 15px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 104px 0 88px; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -320px; left: 50%;
  width: 900px; height: 620px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, var(--glow) 0%, transparent 68%);
  pointer-events: none; z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 13px 5px 10px; margin-bottom: 26px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface);
  font-size: 13px; color: var(--muted);
}
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary); flex: none;
  box-shadow: 0 0 0 0 var(--primary);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(250,204,21,.5); }
  70%  { box-shadow: 0 0 0 7px rgba(250,204,21,0); }
  100% { box-shadow: 0 0 0 0 rgba(250,204,21,0); }
}

h1 {
  font-size: clamp(38px, 6.4vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 700;
  max-width: 15ch;
  margin: 0 auto;
  text-wrap: balance;
}
h1 .accent { color: var(--primary); }

.sub {
  margin: 26px auto 0;
  max-width: 60ch;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
  text-wrap: pretty;
}

.cta-row {
  margin-top: 38px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.cta-note { margin-top: 18px; font-size: 13px; color: var(--subtle); }

/* ---------- sections ---------- */
section { padding: 88px 0; }
.section-head { max-width: 62ch; margin-bottom: 48px; }
.section-head .eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--primary);
  margin: 0 0 14px;
}
/* Pure gold fails contrast on the near-white light surface — go deep. */
html.light .section-head .eyebrow { color: var(--halo-deep); }
h2 {
  font-size: clamp(28px, 3.8vw, 40px);
  line-height: 1.15; letter-spacing: -0.028em; font-weight: 700;
  text-wrap: balance;
}
.section-head p { margin-top: 16px; color: var(--muted); font-size: 17px; text-wrap: pretty; }

.divider { height: 1px; background: var(--border); }

/* ---------- cards ---------- */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 26px;
  transition: border-color .18s, transform .18s;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.card-icon {
  width: 38px; height: 38px; margin-bottom: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--halo-soft); color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
}
html.light .card-icon { color: var(--halo-deep); }
.card-icon svg { width: 19px; height: 19px; }
.card h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 9px; }
.card p { font-size: 15px; color: var(--muted); text-wrap: pretty; }

/* ---------- steps ---------- */
.steps { display: grid; gap: 0; grid-template-columns: repeat(3, 1fr); }
.step { padding: 0 30px; border-left: 1px solid var(--border); }
.step:first-child { padding-left: 0; border-left: none; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; margin-bottom: 16px;
  border-radius: 50%;
  border: 1px solid var(--primary); color: var(--primary);
  font-size: 13px; font-weight: 700;
}
html.light .step-num { color: var(--halo-deep); border-color: var(--halo-deep); }
.step h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 10px; }
.step p { font-size: 15px; color: var(--muted); text-wrap: pretty; }

/* ---------- cta band ---------- */
.band {
  position: relative; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 68px 40px;
  text-align: center;
}
.band::before {
  content: ""; position: absolute; bottom: -260px; left: 50%;
  width: 760px; height: 480px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, var(--glow) 0%, transparent 70%);
  pointer-events: none;
}
.band > * { position: relative; }
.band p { margin: 16px auto 0; max-width: 52ch; color: var(--muted); font-size: 17px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--border); padding: 44px 0 56px; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; }
.foot-fam { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; }
.foot-fam a { color: var(--muted); transition: color .15s; }
.foot-fam a:hover { color: var(--primary); }
.foot-legal { margin-top: 28px; font-size: 13px; color: var(--subtle); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .step { padding: 0 0 0 0; border-left: none; }
}
@media (max-width: 620px) {
  .grid { grid-template-columns: 1fr; }
  .hero { padding: 72px 0 64px; }
  section { padding: 64px 0; }
  .band { padding: 52px 24px; }
  .nav-right { gap: 14px; }
  .nav-link.hide-sm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- interior pages ---------- */
.page-hero { padding: 72px 0 40px; border-bottom: 1px solid var(--border); }
.page-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  max-width: 20ch; margin: 0; text-align: left;
}
.page-hero .sub { margin: 18px 0 0; text-align: left; max-width: 62ch; }
.page-hero .eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 14px;
}
html.light .page-hero .eyebrow { color: var(--halo-deep); }

/* ---------- prose (about / legal) ---------- */
.prose { max-width: 72ch; padding: 56px 0 88px; }
.prose h2 {
  font-size: 22px; letter-spacing: -0.02em;
  margin: 44px 0 14px; padding-top: 0;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 17px; font-weight: 600; margin: 28px 0 10px; }
.prose p { color: var(--muted); margin-bottom: 16px; text-wrap: pretty; }
.prose ul { color: var(--muted); margin: 0 0 18px 20px; }
.prose li { margin-bottom: 9px; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
html.light .prose a { color: var(--halo-deep); }
.prose .updated {
  display: inline-block; margin-bottom: 36px; padding: 6px 12px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface);
  font-size: 13px; color: var(--subtle);
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr);
  padding: 56px 0 88px;
}
.contact-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 28px 26px;
}
.contact-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.contact-card p, .contact-card address {
  font-size: 15px; color: var(--muted); font-style: normal; line-height: 1.7;
}
.contact-card a { color: var(--primary); }
html.light .contact-card a { color: var(--halo-deep); }

/* Legal-entity block in the footer — Apple checks for this. */
.foot-entity {
  margin-top: 26px; padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px; color: var(--subtle); line-height: 1.8;
  font-style: normal;
}
.foot-entity strong { color: var(--muted); font-weight: 600; }

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

/* ---------- wordmark ---------- */
/* Inline SVG replaces the old .mark + text logo. currentColor makes the
   letterforms follow light/dark; the halo slice stays brand gold. */
.logo svg { height: 30px; width: auto; display: block; }
.foot-inner .logo svg { height: 34px; }
@media (max-width: 620px) { .logo svg { height: 24px; } }

/* ---------- featured app ---------- */
.app-feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 38px 36px;
}
.app-head { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; }
.app-icon {
  flex: none; width: 72px; height: 72px;
  border-radius: 17px; overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.app-icon img { width: 100%; height: 100%; display: block; }
.app-head h3 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.app-tag { color: var(--primary); font-size: 15px; font-weight: 500; margin-top: 3px; }
html.light .app-tag { color: var(--halo-deep); }
.app-desc { color: var(--muted); font-size: 16px; max-width: 68ch; margin-bottom: 30px; text-wrap: pretty; }

.app-grid { display: grid; gap: 22px 30px; grid-template-columns: repeat(3, 1fr); }
.app-item h4 {
  font-size: 15px; font-weight: 600; margin-bottom: 6px;
  padding-left: 13px; position: relative;
}
.app-item h4::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--primary);
}
.app-item p { font-size: 14.5px; color: var(--muted); padding-left: 13px; text-wrap: pretty; }

@media (max-width: 860px) { .app-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) {
  .app-grid { grid-template-columns: 1fr; }
  .app-feature { padding: 28px 22px; }
  .app-head { gap: 15px; }
  .app-icon { width: 58px; height: 58px; border-radius: 14px; }
  .app-head h3 { font-size: 22px; }
}
