/* Spelled Out website. Colors, sizes and components follow the app's
   ios/Shared/Theme.swift so the site and the app look like one product. */

:root {
  /* Base */
  --ground: #EFEDFB;      /* page background */
  --ink: #1A1730;         /* main text */
  --secondary: #565273;   /* supporting text */
  --accent: #5B4BFF;      /* buttons, brand mark */
  --quote: #F4F2FB;       /* quote boxes */
  --shadow: 40, 30, 120;  /* #281E78 as rgb, for rgba() */

  /* Soft color fields: fill / text / strong */
  --lilac: #E3DEFF;  --lilac-text: #2A2270;  --lilac-strong: #3B2FC9;
  --mint: #D7F3E4;   --mint-text: #0E4F31;   --mint-strong: #11643D;
  --peach: #FFE3D6;  --peach-text: #5C2A16;  --peach-strong: #9A3412;
  --butter: #FFF0C2; --butter-text: #4A3600; --butter-strong: #7A5300;
  --rose: #FFD9DE;   --rose-text: #5C0F25;   --rose-strong: #9F1239;

  --radius-card: 24px;
  --radius-sheet: 28px;
  --radius-quote: 16px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
          "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
          "Segoe UI", Roboto, Arial, sans-serif;

  color-scheme: light;
}

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

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

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

img, svg { display: block; }

a { color: var(--lilac-strong); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.skip {
  position: absolute; left: 12px; top: -48px;
  background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 999px;
  font-weight: 700; text-decoration: none; z-index: 10;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 760px; }

/* ---------- Header ---------- */

.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* BrandMark: white heavy checkmark in a 28px accent circle, then the name */
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink); text-decoration: none;
  font-size: 16px; font-weight: 700;
}
.brand-dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent);
  display: grid; place-items: center; flex: none;
}
.brand-dot svg { width: 15px; height: 15px; }

.nav { display: flex; gap: 4px; }
.nav a {
  color: var(--lilac-strong); font-weight: 700; font-size: 15px;
  text-decoration: none; padding: 8px 14px; border-radius: 999px;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--lilac); color: var(--lilac-text); }

/* ---------- Type ---------- */

h1, h2, h3 { margin: 0; color: var(--ink); }

.display {
  font-size: clamp(38px, 7vw, 60px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.page-title {
  font-size: clamp(32px, 5.5vw, 44px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.lead { font-size: clamp(17px, 2.2vw, 19px); color: var(--secondary); margin: 18px 0 0; max-width: 34em; }

.section { padding: 32px 0; }
.section-head { margin: 0 4px 18px; }
.section-title { font-size: clamp(24px, 3.4vw, 30px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.section-sub { color: var(--secondary); margin: 8px 0 0; max-width: 36em; }

/* CardLabel: small uppercase heading */
.label {
  display: block;
  font-size: 13px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
  color: var(--lilac-strong);
  margin: 0 0 8px;
}

/* ---------- Components ---------- */

/* card(): white, radius 24, padding 18 */
.card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 18px;
}
.card h3 { font-size: 17px; font-weight: 700; line-height: 1.3; }
.card p { margin: 6px 0 0; color: var(--secondary); font-size: 15px; }
.card p + p { margin-top: 10px; }

.card-lilac  { background: var(--lilac);  color: var(--lilac-text); }
.card-mint   { background: var(--mint);   color: var(--mint-text); }
.card-butter { background: var(--butter); color: var(--butter-text); }
.card-peach  { background: var(--peach);  color: var(--peach-text); }
.card-lilac p, .card-lilac h3, .card-lilac h2 { color: var(--lilac-text); }
.card-mint p, .card-mint h3, .card-mint h2 { color: var(--mint-text); }
.card-butter p, .card-butter h3, .card-butter h2 { color: var(--butter-text); }
.card-peach p, .card-peach h3, .card-peach h2 { color: var(--peach-text); }
.card-mint .label { color: var(--mint-strong); }
.card-butter .label { color: var(--butter-strong); }
.card-peach .label { color: var(--peach-strong); }

/* PillButtonStyle: capsule, height 52, bold 16 */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 0;
  font: 700 16px/1 var(--font);
  text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, opacity .15s ease;
}
.pill:active { transform: scale(.98); opacity: .8; }
.pill-primary { background: var(--accent); color: #fff; }
.pill-soft    { background: var(--lilac); color: var(--lilac-text); }
.pill-white   { background: #fff; color: var(--ink); }
.pill svg { width: 18px; height: 18px; }

/* Chip: capsule, height 26, bold 12 */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; line-height: 1;
  background: #fff; color: var(--ink); white-space: nowrap;
}
.chip svg { width: 12px; height: 12px; }
.chip-lilac  { background: var(--lilac);  color: var(--lilac-text); }
.chip-high   { background: var(--peach);  color: var(--peach-strong); }
.chip-medium { background: var(--butter); color: var(--butter-strong); }
.chip-low    { background: var(--lilac);  color: var(--lilac-strong); }
.chip-mint   { background: var(--mint);   color: var(--mint-strong); }

/* IconCircle: symbol in a lilac circle */
.icon-circle {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--lilac); color: var(--lilac-strong);
  display: grid; place-items: center; flex: none;
}
.icon-circle svg { width: 20px; height: 20px; }
.icon-circle.mint { background: var(--mint); color: var(--mint-strong); }
.icon-circle.white { background: #fff; }
.icon-circle.butter { color: var(--butter-strong); }

/* GradeCircle: rounded letter on the grade tint (white when on a tinted card) */
.grade {
  width: 68px; height: 68px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  font: 700 36px/1 var(--font-rounded);
  background: #fff;
}
.grade-c { color: var(--butter-strong); }

/* Quote box */
.quote {
  margin: 10px 0 0;
  background: var(--quote);
  border-radius: var(--radius-quote);
  padding: 12px 14px;
  font-size: 14px; line-height: 1.45; color: var(--ink);
}
.quote-label { display: block; margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--secondary); }

/* ---------- Home: hero ---------- */

.hero { padding: 20px 0 36px; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-note { margin: 14px 0 0; font-size: 14px; color: var(--secondary); }
.hero .chip { margin-bottom: 18px; }

/* Example report, drawn like the app's report sheet */
.sheet {
  background: var(--ground);
  border: 1px solid rgba(var(--shadow), .08);
  border-radius: var(--radius-sheet);
  padding: 14px;
  box-shadow: 0 24px 60px -24px rgba(var(--shadow), .35), 0 2px 8px rgba(var(--shadow), .06);
  max-width: 440px; width: 100%; justify-self: center;
}
.sheet-tag { display: flex; justify-content: center; margin: 2px 0 12px; }
.sheet > * + * { margin-top: 10px; }
.sheet .sheet-tag + * { margin-top: 0; }

.grade-card { padding: 20px; }
.grade-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.report-title { font-size: 24px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.15; color: var(--ink); }
.report-sub { font-size: 13px; margin-top: 4px; }
.report-headline { font-size: 17px; font-weight: 700; margin-top: 14px; }
.report-summary { font-size: 15px; margin: 4px 0 0; }
.ai-note { display: flex; gap: 6px; align-items: baseline; font-size: 13px; margin: 12px 0 0; }
.ai-note svg { width: 12px; height: 12px; flex: none; transform: translateY(1px); }

.finding .chip { margin-bottom: 8px; }
.finding h3 { font-size: 17px; }
.finding p { font-size: 14px; }

/* ---------- Home: steps and features ---------- */

.grid { display: grid; gap: 12px; }

.step { display: flex; flex-direction: column; gap: 12px; padding: 22px; }
.step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font: 700 17px/1 var(--font-rounded);
}

.feature { display: flex; gap: 14px; align-items: flex-start; padding: 20px; }
.feature h3 { margin-top: 2px; }

.split { display: grid; gap: 12px; }
.privacy-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.privacy-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--secondary); }
.privacy-list svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--mint-strong); }

.callout { display: flex; gap: 14px; align-items: flex-start; padding: 22px; }
.callout h2 { font-size: 19px; font-weight: 700; line-height: 1.3; }

/* ---------- Inner pages ---------- */

.page-head { padding: 24px 0 8px; }
.page-head .lead { margin-top: 12px; }
.stack { display: grid; gap: 12px; padding-top: 20px; padding-bottom: 48px; }
.stack h2 { font-size: 19px; font-weight: 700; line-height: 1.3; }
.card ul { margin: 10px 0 0; padding-left: 20px; color: var(--secondary); font-size: 15px; }
.card li + li { margin-top: 6px; }
.email-link { font-size: 19px; font-weight: 700; word-break: break-all; }
.meta { font-size: 13px; color: var(--secondary); margin: 0 4px; }

details.card { padding: 0; }
details.card summary {
  list-style: none; cursor: pointer;
  padding: 18px 52px 18px 18px; position: relative;
  font-size: 17px; font-weight: 700; line-height: 1.3;
}
details.card summary::-webkit-details-marker { display: none; }
details.card summary::after {
  content: ""; position: absolute; right: 18px; top: 50%;
  width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  background: var(--lilac) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233B2FC9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .2s ease;
}
details.card[open] summary::after { transform: rotate(180deg); }
details.card .details-body { padding: 0 18px 18px; }
details.card .details-body p:first-child { margin-top: 0; }

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

.site-footer { padding: 28px 0 40px; }
.footer-card { display: grid; gap: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; list-style: none; }
.footer-links li { margin: 0 !important; }
.footer-links a { font-weight: 700; font-size: 15px; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-fine { font-size: 13px; color: var(--secondary); margin: 10px 0 0; }

/* ---------- Larger screens ---------- */

@media (min-width: 720px) {
  .wrap { padding: 0 28px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1.15fr 1fr; }
  .footer-card { grid-template-columns: 1fr auto; align-items: center; }
  .card { padding: 22px; }
  .sheet .card { padding: 18px; }
  .sheet .grade-card { padding: 20px; }
}

@media (min-width: 940px) {
  .hero { padding: 36px 0 48px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 48px; }
  .grid-features { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 44px 0; }
}

@media (min-width: 720px) and (max-width: 939px) {
  .grid-features { grid-template-columns: repeat(2, 1fr); }
}

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

/* Lists inside cards that aren't bulleted text */
.card .privacy-list, .card .footer-links { padding: 0; }
.card .privacy-list { margin: 12px 0 0; }
.card .footer-links { margin: 0; }
.card .privacy-list li + li { margin-top: 0; }
