/*
  style.css
  Dialed website (support + privacy)

  Mirrors the app's token layer (Design/Tokens.swift): palette, rounded type, seals, pink tags, dark cards.
  Fonts: GT Maru, licensed for web 16/11. The WOFF2 files live in fonts/ (from the Grilli Type download); until
  a file is there, that face falls back to the system rounded face (SF Rounded on Apple devices).
*/

@font-face { font-family: "GT Maru"; src: url("fonts/GT-Maru-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "GT Maru"; src: url("fonts/GT-Maru-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "GT Maru"; src: url("fonts/GT-Maru-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "GT Maru Mega"; src: url("fonts/GT-Maru-Mega-Midi.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "GT Maru Mono"; src: url("fonts/GT-Maru-Mono-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* Palette (DS.Palette) */
  --yellow: #F3FF13;
  --pink: #FF60FF;
  --green: #00DE82;
  --blue: #3E50FF;
  --blue-bright: #4073FF;
  --red: #FF482F;
  --black: #000000;

  /* Semantic */
  --background: var(--black);
  --card: #1C1C1E;
  --card-line: #2C2C2E;
  --text: #FFFFFF;
  --text-secondary: #A1A1A6;
  --text-tertiary: #6E6E73;
  --accent: var(--blue-bright);
  --on-palette: var(--black);

  /* Type */
  --font-body: "GT Maru", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, sans-serif;
  --font-title: "GT Maru Mega", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, sans-serif;
  --font-row: "GT Maru Mono", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, sans-serif;

  /* Spacing and radii (DS.Spacing, DS.Radius) */
  --space-xs: 4px;
  --space-s: 8px;
  --space-m: 12px;
  --space-l: 16px;
  --space-xl: 24px;
  --space-xxl: 32px;
  --space-xxxl: 48px;
  --radius-card: 20px;
  --radius-pill: 999px;

  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--space-xl) 20px var(--space-xxxl);
}

/* Header: icon + wordmark on the left, pill nav on the right */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-l);
  margin-bottom: var(--space-xxxl);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  color: var(--text);
  font-family: var(--font-row);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.05em;
}
.brand:hover { text-decoration: none; }

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.nav {
  display: flex;
  gap: var(--space-s);
}

.nav a {
  padding: var(--space-s) var(--space-l);
  border-radius: var(--radius-pill);
  background: var(--card);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
}
.nav a:hover { text-decoration: none; background: var(--card-line); }
.nav a[aria-current="page"] { background: var(--accent); color: #FFFFFF; }

/* Title block: big red page title (DS.Fonts.pageTitle, 85% line height), intro, pink tags */

.hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-xl);
  margin-bottom: var(--space-xxl);
}

.page-title {
  margin: 0 0 var(--space-xl);
  color: var(--red);
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(48px, 13vw, 76px);
  line-height: 0.85;
}

.intro {
  margin: 0;
  max-width: 34ch;
  color: var(--text-secondary);
  font-size: 17px;
  font-weight: 500;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  margin-top: var(--space-l);
}

.tag {
  padding: var(--space-xs) var(--space-m);
  border-radius: var(--radius-pill);
  background: var(--pink);
  color: var(--on-palette);
  font-size: 13px;
  font-weight: 500;
}

/* Seal: disc, ring text, big number (Components.swift Seal) */

.seal {
  flex: none;
  width: 116px;
  height: 116px;
}
.seal text { fill: var(--on-palette); font-family: var(--font-row); }
.seal .seal-ring { font-size: 15px; font-weight: 700; letter-spacing: 0.08em; }
.seal .seal-number { font-size: 92px; font-weight: 800; font-family: var(--font-title); }

/* Sections: small header above a dark rounded card (SectionHeader + list card) */

.section { margin-top: var(--space-xxl); }

.section-header {
  margin: 0 0 var(--space-s) var(--space-l);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 400;
}

.section-footer {
  margin: var(--space-s) var(--space-l) 0;
  color: var(--text-tertiary);
  font-size: 13px;
}

.card {
  background: var(--card);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.card-body { padding: var(--space-l) 20px; }
.card-body p { margin: 0 0 var(--space-m); }
.card-body p:last-child { margin-bottom: 0; }
.card-body ul { margin: 0; padding-left: 1.2em; }
.card-body li { margin-bottom: var(--space-s); }
.card-body li:last-child { margin-bottom: 0; }

.row {
  padding: var(--space-l) 20px;
  border-top: 1px solid var(--card-line);
}
.row:first-child { border-top: 0; }

.row-title {
  margin: 0 0 var(--space-xs);
  font-family: var(--font-row);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.05em;
}

.row p { margin: 0; color: var(--text-secondary); }
.row p + p { margin-top: var(--space-s); }

/* FAQ rows (details/summary), no chevrons: a small plus that turns into a minus */

details { border-top: 1px solid var(--card-line); }
details:first-child { border-top: 0; }

summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-l);
  padding: var(--space-l) 20px;
  cursor: pointer;
  font-family: var(--font-row);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.05em;
}
summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0;
}
details[open] summary::after { content: "\2212"; }

.answer {
  padding: 0 20px var(--space-l);
  color: var(--text-secondary);
}
.answer p { margin: 0 0 var(--space-s); }
.answer p:last-child { margin-bottom: 0; }
.answer strong { color: var(--text); font-weight: 700; }

/* Buttons (PrimaryButtonStyle: yellow pill, black bold type) */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 var(--space-xxl);
  border-radius: var(--radius-pill);
  background: var(--yellow);
  color: var(--on-palette);
  font-weight: 700;
  font-size: 18px;
}
.button:hover { text-decoration: none; filter: brightness(0.95); }

.button-block { display: flex; width: 100%; }

/* Status dots for the Learning / Landed / Dialed explainer */

.status {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: var(--space-s);
  border-radius: 50%;
  vertical-align: 0;
}
.status-learning { background: var(--yellow); }
.status-landed { background: var(--blue); }
.status-dialed { background: var(--pink); }

/* Footer */

.site-footer {
  margin-top: var(--space-xxxl);
  color: var(--text-tertiary);
  font-size: 13px;
  text-align: center;
}
.site-footer a { color: var(--text-secondary); }

@media (max-width: 480px) {
  .hero { flex-direction: column-reverse; gap: var(--space-l); }
  .seal { width: 96px; height: 96px; }
  .brand span { display: none; }
}
