/* ToneHub site. Sea Glass tokens from the app's design system (design/DESIGN_SYSTEM.md §3). */
:root {
  color-scheme: light;
  --bg: #F7F7F5;
  --surface: #FFFFFF;
  --surface2: #EDEDEA;
  --text: #18181B;
  --text2: #4A4A50;
  --text3: #5F5F66;
  --fill: #0D7A70;          /* accent fill: primary buttons */
  --primary: #0B6E65;       /* accent text: links */
  --on-primary: #FFFFFF;
  --tint: #DDF0EC;
  --divider: #E7E7E4;
  --outline: #86868C;
  --focus: #0B6E65;
  --shadow: 0 1px 2px rgba(24,24,27,.04), 0 8px 24px rgba(24,24,27,.06);
  --shadow-lg: 0 2px 6px rgba(24,24,27,.05), 0 24px 60px rgba(24,24,27,.12);
  --phone-ring: rgba(24,24,27,.08);

  /* category hues (icon tiles only, never text) */
  --indigo-tile: #E9E8FF; --indigo: #5146D9;
  --pink-tile: #FDE6F0;   --pink: #C62A6E;
  --purple-tile: #F2E7FD; --purple: #8A3BD1;
  --blue-tile: #E4EDFF;   --blue: #2459D6;
  --orange-tile: #FFEDDF; --orange: #C2560C;
  --green-tile: #E2F5E7;  --green: #16803A;
  --red-tile: #FDE7E5;    --red: #D1332B;

  --radius: 24px;
  --radius-sm: 14px;
  --gutter: 20px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; overflow-x: clip; background: var(--bg); color: var(--text);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-round); color: var(--text); letter-spacing: -0.02em; line-height: 1.1; margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-bottom-color: var(--divider); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: 700 20px/1 var(--font-round); letter-spacing: -0.01em; min-height: 44px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 0 0 1px var(--phone-ring); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--text2); text-decoration: none; font-size: 15px; font-weight: 500; padding: 10px 12px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; transition: background-color .15s var(--ease), color .15s var(--ease); }
.nav a:hover { background: var(--surface2); color: var(--text); }
.nav .nav-hide { display: none; }
@media (min-width: 760px) { .nav .nav-hide { display: inline-flex; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font: 600 17px/1 var(--font); text-decoration: none; cursor: pointer; border: 0;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background-color .15s var(--ease), opacity .15s;
}
.btn:hover { text-decoration: none; }
.btn:active { opacity: .85; }
.btn-primary { background: var(--fill); color: var(--on-primary); box-shadow: 0 6px 18px color-mix(in srgb, var(--fill) 30%, transparent); }
.btn-primary:hover { box-shadow: 0 8px 24px color-mix(in srgb, var(--fill) 40%, transparent); }
.btn-secondary { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.btn svg { width: 20px; height: 20px; flex: none; }
.soon {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 14px;
  border-radius: 999px; background: var(--fill); color: var(--on-primary); font-weight: 600; font-size: 17px;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--fill) 30%, transparent);
}
.soon svg { width: 22px; height: 22px; }
.soon small { display: block; font-size: 11px; font-weight: 500; opacity: .75; letter-spacing: .02em; line-height: 1.2; }
.soon span { line-height: 1.2; }

/* Hero */
.hero { padding: 40px 0 24px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0,1fr); gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--primary); background: var(--tint); padding: 6px 12px; border-radius: 999px; margin: 0 0 20px; }
.hero h1 { font-size: clamp(42px, 10.5vw, 68px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.0; }
.hero h1 .accent { color: var(--primary); display: block; }
.lede { font-size: clamp(18px, 2.4vw, 21px); color: var(--text2); margin: 20px 0 28px; max-width: 34ch; }
.free-badge { display: inline-flex; align-items: center; gap: 8px; margin: -12px 0 24px; padding: 6px 14px; border-radius: 999px; background: var(--tint); color: var(--primary); font-weight: 600; font-size: 15px; }
.free-badge svg { width: 18px; height: 18px; flex: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-art { position: relative; display: flex; justify-content: center; gap: 0; padding: 8px 0 24px; }
.hero-art .phone { width: min(54vw, 280px); flex: none; }
.hero-art .phone.back { width: min(46vw, 240px); margin-left: -10vw; margin-top: 56px; z-index: 0; }
.hero-art .phone.front { z-index: 1; }
.hero-glow { position: absolute; inset: 10% 0 0 0; background: radial-gradient(closest-side, color-mix(in srgb, var(--fill) 22%, transparent), transparent); filter: blur(10px); z-index: -1; }
@media (min-width: 900px) {
  .hero { padding: 72px 0 48px; }
  .hero .wrap { grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); gap: 48px; }
  .hero-art .phone { width: 290px; }
  .hero-art .phone.back { width: 250px; margin-left: -40px; }
}

/* Phone frame around real screenshots */
.phone {
  position: relative; border-radius: 40px; overflow: hidden; background: var(--surface);
  box-shadow: 0 0 0 1px var(--phone-ring), var(--shadow-lg);
  aspect-ratio: 600 / 1184;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone { --shot-bg: #F7F7F5; background: var(--shot-bg); }
.phone::after { /* fade where the screenshot is cropped */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 16%;
  background: linear-gradient(to bottom, transparent, var(--shot-bg) 90%); pointer-events: none;
}

/* Sections */
section { padding: 64px 0; }
@media (min-width: 900px) { section { padding: 96px 0; } }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(32px, 6vw, 48px); font-weight: 800; }
.section-head p { color: var(--text2); font-size: 19px; margin: 14px 0 0; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text3); margin: 0 0 12px; }

/* Cards */
.card { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { font-size: 24px; font-weight: 700; margin: 16px 0 8px; }
.card p { color: var(--text2); margin: 0 0 14px; font-size: 16px; }
.tile { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; }
.tile svg { width: 26px; height: 26px; }
.tile.indigo { background: var(--indigo-tile); color: var(--indigo); }
.tile.pink { background: var(--pink-tile); color: var(--pink); }
.tile.purple { background: var(--purple-tile); color: var(--purple); }
.tile.blue { background: var(--blue-tile); color: var(--blue); }
.tile.orange { background: var(--orange-tile); color: var(--orange); }
.tile.green { background: var(--green-tile); color: var(--green); }
.tile.red { background: var(--red-tile); color: var(--red); }
.tile.sm { width: 36px; height: 36px; border-radius: 10px; }
.tile.sm svg { width: 20px; height: 20px; }

/* Feature carousel */
.features { padding-bottom: 72px; }
.features .section-head { margin-bottom: 20px; }
.car-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.car-chips button {
  font: 600 15px/1 var(--font); color: var(--text2); background: var(--surface); border: 0; cursor: pointer;
  min-height: 44px; padding: 0 18px; border-radius: 999px; box-shadow: 0 0 0 1px var(--divider);
  transition: background-color .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease);
}
.car-chips button:hover { color: var(--text); box-shadow: 0 0 0 1px var(--outline); }
.car-chips button[aria-pressed="true"] { background: var(--tint); color: var(--primary); box-shadow: 0 0 0 1px color-mix(in srgb, var(--fill) 35%, transparent); }
.carousel { position: relative; --per: 1; --gap: 20px; }
.car-track {
  position: relative; display: flex; gap: var(--gap); margin: 0 -8px; padding: 20px 8px 28px; list-style: none;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 8px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-behavior: smooth;
}
.car-track::-webkit-scrollbar { display: none; }
.car-track:focus-visible { outline-offset: -3px; border-radius: var(--radius-sm); }
.slide { flex: none; width: calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); scroll-snap-align: start; text-align: center; }
.slide .phone { border-radius: 34px; width: 100%; max-width: 252px; margin: 0 auto; }
.slide h3 { font-size: 19px; font-weight: 700; margin: 18px 0 4px; }
.slide p { margin: 0; color: var(--text2); font-size: 15px; line-height: 1.45; }
.car-nav { display: flex; align-items: center; justify-content: center; gap: 16px; }
.car-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; }
.car-dots button { width: 22px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; border-radius: 8px; }
.car-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--outline); opacity: .45; transition: width .2s var(--ease), opacity .2s var(--ease), background-color .2s; }
.car-dots button[aria-current="true"]::before { background: var(--fill); opacity: 1; width: 18px; }
.car-dots button[aria-current="true"] { width: 32px; }
.car-arrows { display: none; gap: 10px; }
.car-arrows button {
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow), 0 0 0 1px var(--divider);
  transition: background-color .15s var(--ease), opacity .15s;
}
.car-arrows button:hover:not(:disabled) { background: var(--tint); color: var(--primary); }
.car-arrows button:disabled { opacity: .35; cursor: default; }
.car-arrows svg { width: 22px; height: 22px; }
@media (min-width: 640px) {
  .carousel { --per: 2; --gap: 24px; }
  .car-nav { justify-content: space-between; }
  .car-dots { justify-content: flex-start; }
  .car-arrows { display: flex; }
}
@media (min-width: 960px) { .carousel { --per: 3; --gap: 28px; } }
@media (prefers-reduced-motion: reduce) { .car-track { scroll-behavior: auto; } }

/* How Match works */
.how { padding-top: 32px; }
.how-grid { display: grid; gap: 40px; align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 520px; }
.steps li { display: flex; align-items: center; gap: 16px; background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 16px 18px; }
.steps .tile { flex: none; }
.tile.teal { background: var(--tint); color: var(--primary); }
.steps h3 { font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.steps .num { font: 700 13px/1 var(--font); color: var(--text3); }
.steps p { margin: 2px 0 0; color: var(--text2); font-size: 15px; line-height: 1.45; }
.how-art { position: relative; display: flex; justify-content: center; }
.how-art .phone { width: min(64vw, 260px); }
.how-art .hero-glow { inset: 8% -10% 0; }
@media (min-width: 900px) {
  .how-grid { grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 48px; }
  .how-art .phone { width: 280px; }
}

/* Free band */
.free { padding: 0 0 8px; }
.free-band {
  background: var(--fill); color: var(--on-primary); border-radius: var(--radius);
  padding: 32px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  box-shadow: 0 12px 32px color-mix(in srgb, var(--fill) 25%, transparent);
}
.free-band h2 { color: var(--on-primary); font-size: clamp(28px, 4.6vw, 40px); font-weight: 800; }
.free-band h2 span { opacity: .85; }
.free-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.free-points li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.free-points svg { width: 16px; height: 16px; flex: none; }
@media (min-width: 900px) { .free-band { padding: 40px 48px; } }

/* FAQ */
.faq { max-width: 760px; }
.faq details { background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow); margin-bottom: 10px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; font-weight: 600; font-size: 17px; position: relative; min-height: 44px; border-radius: var(--radius-sm); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--text3); border-bottom: 2px solid var(--text3); transform: translateY(-70%) rotate(45deg); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0; padding: 0 20px 20px; color: var(--text2); }

/* Footer */
.site-footer { border-top: 1px solid var(--divider); padding: 40px 0 48px; font-size: 15px; color: var(--text2); }
.site-footer .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 6px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--text); text-decoration: none; font-weight: 500; padding: 10px 10px; display: inline-flex; min-height: 44px; align-items: center; border-radius: 10px; }
.footer-links a:hover { background: var(--surface2); }
.credits p { margin: 0 0 6px; color: var(--text3); font-size: 14px; }
.credits a { color: var(--primary); }

/* Document pages (privacy, terms, support) */
.doc { padding: 40px 0 72px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(36px, 7vw, 52px); font-weight: 800; letter-spacing: -0.03em; }
.doc .meta { color: var(--text3); font-size: 15px; margin: 12px 0 28px; }
.doc .intro { font-size: 19px; color: var(--text2); }
.doc h2 { font-size: 26px; font-weight: 700; margin: 48px 0 12px; scroll-margin-top: 84px; }
.doc h3 { font-size: 19px; font-weight: 700; margin: 28px 0 8px; font-family: var(--font); letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--text2); }
.doc p { margin: 0 0 14px; }
.doc ul { padding-left: 22px; margin: 0 0 14px; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--text3); }
.doc strong { color: var(--text); }
.doc a { overflow-wrap: anywhere; }
.doc code { font: 15px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface2); padding: 1px 6px; border-radius: 6px; color: var(--text); }
.doc .callout { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; margin: 28px 0; }
.doc .callout h2 { margin-top: 0; }
.doc .callout > :last-child { margin-bottom: 0; }
.toc { background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 18px 20px; margin: 0 0 8px; }
.toc p { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text3); }
.toc ol { margin: 0; padding-left: 20px; columns: 1; column-gap: 32px; }
@media (min-width: 640px) { .toc ol { columns: 2; } }
.toc li { margin: 0 0 6px; break-inside: avoid; font-size: 15px; }
.mail-card { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; justify-content: space-between; }
.mail-card .addr { font: 700 22px/1.2 var(--font-round); color: var(--text); overflow-wrap: anywhere; }
.help-grid { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 16px 0; }
@media (min-width: 640px) { .help-grid { grid-template-columns: 1fr 1fr; } }
.help-grid .card { padding: 20px; }
.help-grid .card h3 { margin: 12px 0 6px; font-size: 18px; font-family: var(--font-round); }
.help-grid .card p { margin: 0; font-size: 15px; }
