/* Boldly site. Colours are the app's asset-catalog colours (App/Resources/Assets.xcassets):
   light, dark, and Increase Contrast (prefers-contrast: more). System fonts only. */
:root {
  color-scheme: light dark;
  --paper: #F6F4EF;
  --card: #FFFFFF;
  --ink: #15171C;
  --ink-2: #4A4D55;   /* secondary text on paper and card: 8.3:1 on paper */
  --line: rgba(21, 23, 28, 0.10);
  --accent: #3A4BD8;
  --on-accent: #FFFFFF;
  --accent-soft: rgba(58, 75, 216, 0.10);
  --good: #1E7A4C;
  --attention: #A8431A;
  --shadow: 0 1px 2px rgba(21, 23, 28, 0.06), 0 12px 32px -12px rgba(21, 23, 28, 0.18);
  --phone-shadow: drop-shadow(0 30px 40px rgba(21, 23, 28, 0.18)) drop-shadow(0 6px 10px rgba(21, 23, 28, 0.08));
  --round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
  --radius: 22px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111318;
    --card: #1C1F26;
    --ink: #F2F1EC;
    --ink-2: #B4B6BD;
    --line: rgba(242, 241, 236, 0.12);
    --accent: #9AA6FF;
    --on-accent: #0E1230;
    --accent-soft: rgba(154, 166, 255, 0.14);
    --good: #6FD39E;
    --attention: #FF9E73;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -16px rgba(0, 0, 0, 0.6);
    --phone-shadow: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.5)) drop-shadow(0 6px 10px rgba(0, 0, 0, 0.3));
  }
}
@media (prefers-contrast: more) {
  :root { --paper: #FFFFFF; --ink: #000000; --ink-2: #2A2C31; --accent: #2A37B0; --good: #125C37; --attention: #84330F; --line: rgba(0, 0, 0, 0.35); }
}
@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root { --paper: #000000; --card: #15171C; --ink: #FFFFFF; --ink-2: #DADBE0; --accent: #C3CAFF; --on-accent: #000000; --good: #9BE8BF; --attention: #FFC0A3; --line: rgba(255, 255, 255, 0.4); }
}
@media (min-width: 600px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--round); color: var(--ink); margin: 0; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: -100px; background: var(--card); color: var(--ink); padding: 10px 14px; border-radius: 10px; z-index: 10; box-shadow: var(--shadow); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.column { max-width: 720px; }

/* Header */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 1.25rem/1 var(--round); letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; }
.header-links { display: flex; align-items: center; gap: 4px; }
.header-links > a { color: var(--ink); text-decoration: none; font-size: 0.9375rem; padding: 10px 10px; border-radius: 10px; }
.header-links > a:hover { background: var(--accent-soft); }

/* Language switcher: a native disclosure, no script */
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 0.9375rem; padding: 10px 10px; border-radius: 10px; color: var(--ink); min-height: 44px; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { background: var(--accent-soft); }
.lang summary svg { width: 18px; height: 18px; flex: none; }
.lang summary span { white-space: nowrap; }
.lang .short { display: none; font-weight: 600; letter-spacing: 0.02em; }
@media (max-width: 520px) { .lang .long { display: none; } .lang .short { display: inline; } }
.lang ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; margin: 0; padding: 6px; list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); min-width: 190px; }
.lang li a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 9px; color: var(--ink); text-decoration: none; }
.lang li a:hover { background: var(--accent-soft); }
.lang li a[aria-current="true"] { font-weight: 600; color: var(--accent); }

/* Hero */
.hero { padding: 24px 0 56px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.25rem, 1.4rem + 4.2vw, 4rem); line-height: 1.04; font-weight: 700; letter-spacing: -0.025em; }
.hero .lede { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem); color: var(--ink-2); margin-top: 18px; max-width: 34em; }
.get { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px;
  border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink-2);
  font: 600 1rem/1 var(--text); cursor: not-allowed;
}
.store svg { width: 20px; height: 20px; flex: none; }
.store:disabled { opacity: 1; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps .num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 700 0.9375rem/1 var(--round); margin-right: 8px; vertical-align: 2px; }
.facts { list-style: none; padding: 0; }
.get .note { color: var(--ink-2); font-size: 0.9375rem; }
.hero-art { position: relative; display: grid; justify-items: center; }
.hero-art .phone { width: min(300px, 78vw); }

/* The correction card: the app's visual language */
.correction {
  margin: 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px 22px; width: min(420px, 100%); border: 1px solid var(--line);
}
.correction .tag { font: 600 0.75rem/1.2 var(--text); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.correction .tag.better { color: var(--good); margin-top: 14px; }
.correction .said { margin-top: 4px; font-size: 1.0625rem; }
.correction del { text-decoration: line-through 2px var(--attention); color: var(--attention); }
.correction .fix { margin-top: 4px; font: 500 1.375rem/1.3 var(--text); }
.correction ins { text-decoration: underline 2.5px var(--good); text-underline-offset: 0.2em; color: var(--good); font-weight: 700; }
.correction .tip { margin-top: 12px; display: flex; gap: 8px; align-items: flex-start; color: var(--ink-2); font-size: 0.9375rem; }
.correction .tip svg { width: 16px; height: 16px; margin-top: 3px; flex: none; }
.hero-art .correction { position: relative; margin-top: -120px; z-index: 1; }

/* Sections */
section { padding: 56px 0; }
.section-head { max-width: 40em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.625rem); line-height: 1.1; font-weight: 700; }
.section-head p, .feature p { color: var(--ink-2); font-size: 1.125rem; margin-top: 14px; }
.feature { display: grid; gap: 32px; align-items: center; }
.feature + .feature { margin-top: 72px; }
.feature .phone { width: min(280px, 72vw); justify-self: center; filter: var(--phone-shadow); }
.feature ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--ink-2); font-size: 1.0625rem; }
.feature li { display: flex; gap: 10px; align-items: flex-start; }
.feature li svg { width: 20px; height: 20px; color: var(--good); margin-top: 3px; flex: none; }
.phone { filter: var(--phone-shadow); }

.band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts { display: grid; gap: 14px; margin-top: 28px; grid-template-columns: 1fr; }
.fact { background: var(--paper); border-radius: 18px; padding: 20px; border: 1px solid var(--line); }
.fact h3 { font-size: 1.1875rem; line-height: 1.25; }
.fact p { color: var(--ink-2); margin-top: 6px; font-size: 1rem; }

.privacy-line { display: grid; gap: 14px; }
.privacy-line p { color: var(--ink-2); font-size: 1.125rem; max-width: 40em; }

.plans { display: grid; gap: 14px; margin-top: 28px; list-style: none; padding: 0; }
.plan { background: var(--card); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.plan h3 { font-size: 1.25rem; }
.plan .price { font: 700 1.75rem/1.1 var(--round); margin-top: 8px; }
.plan .price small { font: 500 1rem/1 var(--text); color: var(--ink-2); }
.plan p { color: var(--ink-2); margin-top: 6px; }
.plans-note { color: var(--ink-2); margin-top: 18px; font-size: 0.9375rem; max-width: 44em; }

/* Documents: privacy, terms, support */
.doc { padding: 24px 0 72px; }
.doc h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem); line-height: 1.08; font-weight: 700; }
.doc .lede { color: var(--ink-2); font-size: 1.125rem; margin-top: 14px; }
.doc h2 { font-size: 1.5rem; margin-top: 44px; }
.doc h3 { font-size: 1.1875rem; margin-top: 28px; }
.doc p, .doc ul, .doc ol { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 1.25em; }
.doc li + li { margin-top: 6px; }
.doc code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--accent-soft); padding: 1px 5px; border-radius: 5px; }
.doc .table { overflow-x: auto; margin-top: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.doc table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc tr:last-child td { border-bottom: 0; }
.doc th { font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--ink-2); font-size: 0.9375rem; }
.site-footer .wrap { display: grid; gap: 22px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .langs a[aria-current="true"] { font-weight: 600; color: var(--accent); }

@media (min-width: 860px) {
  .hero { padding: 40px 0 88px; }
  .hero .wrap { grid-template-columns: 1.1fr 0.9fr; gap: 48px; }
  .hero-art .phone { width: 320px; }
  .hero-art .correction { width: 360px; }
  section { padding: 88px 0; }
  .feature { grid-template-columns: 1fr 1fr; gap: 64px; }
  .feature:nth-of-type(even) .feature-text { order: 2; }
  .feature .phone { width: 300px; }
  .feature + .feature { margin-top: 112px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, minmax(0, 360px)); }
}
@media (min-width: 1100px) {
  .facts { grid-template-columns: repeat(4, 1fr); } .facts.steps { grid-template-columns: repeat(3, 1fr); }
  /* The card overlaps the phone only where the columns leave room for it (measured: at 900 px it covered the lede). */
  .hero-art .correction { position: absolute; left: -24px; bottom: 56px; margin: 0; } /* stays inside the 48 px column gap */
}

@media (prefers-reduced-motion: no-preference) {
  .lang ul { animation: pop 140ms ease-out; }
  @keyframes pop { from { opacity: 0; transform: translateY(-4px); } }
}
