/* Reach it — landing page styles
   Ported from the Claude Design "Reach It Landing v3" artboard. */

@font-face { font-family: 'Nunito'; src: url('assets/nunito_regular.woff2') format('woff2'), url('assets/nunito_regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('assets/nunito_semi_bold.woff2') format('woff2'), url('assets/nunito_semi_bold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('assets/nunito_bold.woff2') format('woff2'), url('assets/nunito_bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('assets/nunito_extra_bold.woff2') format('woff2'), url('assets/nunito_extra_bold.ttf') format('truetype'); font-weight: 800; font-display: swap; }

picture { display: contents; }

:root {
  --bg: #08090C;
  --bg-2: #0B0C10;
  --fg: #FFFFFF;
  --fg-70: rgba(255,255,255,0.7);
  --fg-66: rgba(255,255,255,0.66);
  --fg-62: rgba(255,255,255,0.62);
  --fg-60: rgba(255,255,255,0.6);
  --fg-50: rgba(255,255,255,0.5);
  --fg-45: rgba(255,255,255,0.45);
  --fg-42: rgba(255,255,255,0.42);
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.1);
  --brand: #2177FA;
  --brand-hover: #7DACFD;
  --brand-soft: #9CC3FE;
  --star: #FAD102;
  --glow: rgba(33,119,250,0.34);
  --radius-xl: 30px;
  --radius-lg: 20px;
  --max: 1180px;
  --pad: 28px;
  --mono: ui-monospace, Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--bg); }
body {
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }
h1, h2, h3, p { margin: 0; }
h2 { font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
p { text-wrap: pretty; }
button { font-family: inherit; }

.page { width: 100%; overflow-x: clip; }

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 104px var(--pad) 0;
}
.section-tight { padding-top: 22px; }

.eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.13em;
  color: var(--brand);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  padding: 14px var(--pad);
  display: flex; justify-content: center;
}
.nav-pill {
  width: 100%; max-width: var(--max);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 10px 12px 10px 18px;
  background: rgba(14,16,22,0.78);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 999px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); }
.brand:hover { color: var(--fg); }
.brand span { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 700; }
.nav-links a { color: var(--fg-62); transition: color 160ms ease; }
.nav-links a:hover { color: var(--fg); }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px;
  background: var(--brand); color: var(--fg) !important;
  border-radius: 999px; font-size: 14px; font-weight: 800;
  box-shadow: 0 8px 24px -8px rgba(33,119,250,0.9);
  transition: background 160ms ease, color 160ms ease;
}
.btn-primary:hover { background: var(--fg); color: var(--bg) !important; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px var(--pad) 0; overflow: hidden; }
.hero-glow {
  position: absolute; top: -300px; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 680px;
  background: radial-gradient(ellipse at center, rgba(33,119,250,0.26) 0%, rgba(33,119,250,0.07) 44%, rgba(8,9,12,0) 72%);
  pointer-events: none;
}
.hero-copy {
  position: relative; max-width: 900px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 30px; text-align: center;
}
.hero h1 {
  font-size: clamp(44px, 8vw, 88px); line-height: 1.04; font-weight: 800; letter-spacing: -0.045em; text-wrap: balance;
}
.hero h1 .accent { color: var(--brand); }
.hero h1 .chip {
  display: inline-block; padding: 2px 16px 10px;
  background: var(--brand); color: var(--fg); border-radius: 16px;
}
.hero-copy p { max-width: 620px; font-size: clamp(17px, 2vw, 21px); line-height: 1.55; color: var(--fg-70); }

.play-badge { display: block; width: 222px; transition: opacity 160ms ease; }
.play-badge:hover { opacity: 0.85; }
.play-badge-lg { width: 232px; margin-top: 8px; }

/* Clip only the bottom edge so the phones' glow ends under the fade instead of
   tinting the ticker and getting hard-cut at the bottom of .hero. */
.hero-phones { position: relative; max-width: var(--max); margin: 0 auto; padding-top: 58px; clip-path: inset(-100vh -100vw 0 -100vw); }
.phones-row { display: flex; align-items: flex-end; justify-content: center; gap: 26px; }
.phone { flex: none; filter: drop-shadow(0 46px 70px var(--glow)); }
.phone-left { width: 268px; transform: rotate(-4deg) translateY(-10px); }
.phone-center { width: 318px; position: relative; z-index: 2; }
.phone-right { width: 268px; transform: rotate(4deg) translateY(-10px); }
/* Full-bleed: the side phones overflow .hero-phones on narrow screens, so the
   fade must span the viewport (clipped by .hero) or its edges show. */
.phones-fade {
  position: absolute; left: 50%; bottom: -1px; width: 100vw; height: 130px; margin-left: -50vw;
  background: linear-gradient(180deg, rgba(8,9,12,0) 0%, var(--bg) 82%);
  pointer-events: none;
}

/* Ticker */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker {
  position: relative; margin-top: 4px; padding: 18px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.ticker-track { display: flex; width: max-content; gap: 44px; animation: marquee 34s linear infinite; }
.ticker-run { display: flex; gap: 44px; align-items: center; }
.ticker-run span {
  display: flex; align-items: center; gap: 14px;
  font-size: 17px; font-weight: 800; color: var(--fg-42); white-space: nowrap;
}
.ticker-run i { width: 5px; height: 5px; border-radius: 999px; background: var(--brand); display: inline-block; }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- Sync ---------- */
.sync-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding: 46px 44px;
  background: linear-gradient(150deg, rgba(33,119,250,0.14) 0%, rgba(255,255,255,0.03) 55%);
  border: 1px solid var(--line-2); border-radius: var(--radius-xl);
}
.sync-copy { display: flex; flex-direction: column; gap: 20px; }
.sync-copy h2 { font-size: clamp(32px, 4vw, 46px); line-height: 1.07; letter-spacing: -0.04em; }
.sync-copy p { max-width: 480px; font-size: 19px; line-height: 1.6; color: var(--fg-66); }
.sync-demo { display: flex; flex-direction: column; gap: 14px; }
.habit-row {
  display: flex; align-items: center; gap: 16px; padding: 20px 22px;
  background: rgba(8,9,12,0.6); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-lg);
}
.habit-row > div { display: flex; flex-direction: column; gap: 3px; }
.check {
  flex: none; width: 38px; height: 38px; border-radius: 999px;
  background: var(--brand); color: var(--fg);
  display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800;
}
.habit-title { font-size: 18px; font-weight: 800; }
.habit-meta { font-size: 14px; font-weight: 700; color: var(--fg-50); }
.sync-arrow {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; color: var(--brand);
}
.sync-arrow span { font-size: 12px; }
.goal-card { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px; background: var(--brand); border-radius: var(--radius-lg); }
.goal-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; font-size: 18px; font-weight: 800; }
.goal-bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,0.3); overflow: hidden; }
.goal-bar div { height: 100%; background: var(--fg); border-radius: 999px; }
.goal-meta { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: rgba(255,255,255,0.82); }

/* ---------- Features ---------- */
.section-head { display: flex; flex-direction: column; gap: 18px; max-width: 760px; margin-bottom: 46px; }
.section-head h2 { font-size: clamp(34px, 4.5vw, 50px); line-height: 1.06; letter-spacing: -0.04em; }
.section-head p { max-width: 600px; font-size: 19px; line-height: 1.6; color: var(--fg-66); }

.features-grid { display: grid; grid-template-columns: 1.06fr 0.94fr; gap: 46px; }
.feature-list { display: flex; flex-direction: column; gap: 10px; }
.feature {
  display: flex; align-items: flex-start; gap: 18px; width: 100%;
  padding: 20px 24px; border-radius: var(--radius-lg); cursor: pointer; text-align: left;
  color: var(--fg); background: rgba(255,255,255,0.035); border: 1px solid var(--line);
  transition: background 160ms ease, border-color 160ms ease;
}
.feature:hover { background: rgba(255,255,255,0.06); }
.feature[aria-selected="true"] { background: rgba(33,119,250,0.14); border-color: rgba(33,119,250,0.65); }
.feature .num {
  flex: none; width: 30px; height: 30px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  background: rgba(255,255,255,0.07); color: var(--fg-45);
  transition: background 160ms ease, color 160ms ease;
}
.feature[aria-selected="true"] .num { background: var(--brand); color: var(--fg); }
.feature-text { display: flex; flex-direction: column; gap: 5px; }
.feature-title { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.feature-desc { font-size: 16px; line-height: 1.5; color: var(--fg-50); text-wrap: pretty; }
.feature[aria-selected="true"] .feature-desc { color: rgba(255,255,255,0.78); }

.feature-preview {
  position: sticky; top: 104px; align-self: start;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.feature-preview img { width: 326px; filter: drop-shadow(0 40px 60px rgba(33,119,250,0.32)); transition: opacity 160ms ease; }
.feature-preview img.is-swapping { opacity: 0; }
.counter { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; color: var(--brand); }
.dots { display: flex; gap: 8px; }
.dots button {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,0.18); transition: background 160ms ease;
}
.dots button.is-active { background: var(--brand); }

/* ---------- Widgets ---------- */
.widgets-card {
  display: flex; flex-direction: column; gap: 38px; padding: 44px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09); border-radius: var(--radius-xl);
}
.widgets-head { display: flex; flex-direction: column; gap: 14px; }
.widgets-head .eyebrow { font-size: 12px; }
.widgets-head h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.08; }
.widgets-head p { font-size: 18px; line-height: 1.6; color: var(--fg-62); }
.widgets-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: end; }
.widgets-grid figure { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.widgets-grid img { width: 100%; }
.widgets-grid figcaption { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }

/* ---------- Dark mode ---------- */
.dark-card {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 50px; align-items: center;
  padding: 44px; background: var(--bg-2);
  border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius-xl);
}
.dark-phones { display: flex; justify-content: center; gap: 20px; }
/* Shrink both phones to fit side by side; the extra 16px leaves room for the ±3deg tilt. */
.dark-phones img { flex: none; width: min(236px, calc((100% - 36px) / 2)); filter: drop-shadow(0 34px 56px rgba(33,119,250,0.3)); }
.dark-phones picture:first-child img { transform: rotate(-3deg); }
.dark-phones picture:last-child img { transform: rotate(3deg); }
.dark-copy { display: flex; flex-direction: column; gap: 16px; }
.dark-copy .eyebrow { font-size: 12px; }
.dark-copy h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.08; }
.dark-copy p { max-width: 420px; font-size: 18px; line-height: 1.6; color: var(--fg-60); }

/* ---------- Reviews ---------- */
.reviews { padding: 80px 0 0; }
.reviews h2 { max-width: var(--max); margin: 0 auto 34px; padding: 0 var(--pad); font-size: clamp(30px, 4vw, 40px); }
.reviews-track {
  display: flex; align-items: stretch; gap: 18px;
  overflow-x: auto; scroll-snap-type: x proximity;
  padding: 4px var(--pad) 8px;
  scrollbar-width: none;
}
.reviews-track::-webkit-scrollbar { display: none; }
.review {
  flex: 0 0 min(360px, 76vw); scroll-snap-align: center;
  display: flex; flex-direction: column; gap: 20px; margin: 0; padding: 30px;
  background: rgba(255,255,255,0.04); border: 1px dashed rgba(33,119,250,0.5); border-radius: 24px;
}
.stars { color: var(--star); font-size: 17px; line-height: 1; letter-spacing: 3px; }
.review blockquote { margin: 0; font-family: var(--mono); font-size: 15px; line-height: 1.6; color: var(--fg-62); }
.review figcaption { margin-top: auto; font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--brand-soft); }

/* ---------- FAQ ---------- */
.faq { max-width: 900px; margin: 0 auto; padding: 100px var(--pad) 0; }
.faq h2 { margin-bottom: 34px; font-size: clamp(30px, 4vw, 40px); }
.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: rgba(255,255,255,0.03); overflow: hidden; }
.faq-item summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 26px; cursor: pointer;
  font-size: 19px; font-weight: 800; letter-spacing: -0.015em; color: var(--fg);
  transition: background 160ms ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: rgba(255,255,255,0.05); }
.faq-item .sign {
  flex: none; width: 28px; height: 28px; border-radius: 999px;
  background: var(--brand); color: var(--fg); font-size: 18px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.faq-item .sign::before { content: '+'; }
.faq-item[open] .sign::before { content: '−'; }
.faq-item p { padding: 0 66px 24px 26px; font-size: 17px; line-height: 1.62; color: var(--fg-62); white-space: pre-line; }

/* ---------- CTA ---------- */
.cta-wrap { padding: 110px var(--pad) 0; }
.cta {
  position: relative; max-width: var(--max); margin: 0 auto; padding: 84px 40px;
  background: var(--brand); border-radius: 40px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center;
}
.cta-glow { position: absolute; inset: 0; background: radial-gradient(circle at 80% 0%, rgba(255,255,255,0.16) 0%, rgba(33,119,250,0) 58%); pointer-events: none; }
.cta h2 { position: relative; max-width: 800px; font-size: clamp(34px, 5vw, 54px); line-height: 1.1; letter-spacing: -0.04em; }
.cta p { position: relative; max-width: 540px; font-size: 20px; line-height: 1.55; color: rgba(255,255,255,0.88); }
.cta .play-badge { position: relative; }

/* ---------- Legal pages ---------- */
.legal {
  max-width: 760px; margin: 0 auto; padding: 0 var(--pad) 8px;
  font-size: 16.5px; line-height: 1.72; color: var(--fg-66);
}

.legal-hero {
  padding: 64px 0 30px; margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.legal h1 {
  margin: 0 0 12px; font-size: clamp(34px, 5vw, 50px); font-weight: 800;
  letter-spacing: -0.045em; line-height: 1.06; color: var(--fg);
}
.legal-meta { font-size: 15px; color: var(--fg-45); }

.legal section + section {
  margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line);
}
.legal h2 {
  margin: 0 0 16px; font-size: 23px; line-height: 1.28;
  letter-spacing: -0.03em; color: var(--fg);
}
.legal h3 {
  margin: 30px 0 12px; font-size: 17px; font-weight: 800;
  letter-spacing: -0.015em; color: var(--fg);
}
.legal p { margin: 0 0 14px; }
.legal p:last-child { margin-bottom: 0; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal li::marker { color: var(--fg-45); }
.legal section a { border-bottom: 1px solid rgba(33,119,250,0.4); }
.legal section a:hover { border-bottom-color: var(--brand-hover); }
.legal section a.btn-primary { margin-top: 6px; padding: 13px 26px; font-size: 15px; border-bottom: 0; }
.legal h2 + h3 { margin-top: 0; }

.legal-table {
  width: 100%; margin: 0 0 18px; border-collapse: collapse;
  font-size: 15px; line-height: 1.55; text-align: left;
}
.legal-table th {
  padding: 0 20px 10px 0; font-size: 12px; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-45);
  border-bottom: 1px solid var(--line-2);
}
.legal-table td {
  padding: 14px 20px 14px 0; vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.legal-table th:last-child, .legal-table td:last-child { padding-right: 0; }

@media (max-width: 640px) {
  .legal { font-size: 16px; }
  .legal-hero { padding-top: 40px; margin-bottom: 32px; }
  .legal h2 { font-size: 21px; }
  .legal section + section { margin-top: 32px; padding-top: 32px; }
  .legal-table { font-size: 14px; }
  .legal-table th, .legal-table td { padding-right: 12px; }
}

/* ---------- Footer ---------- */
.site-footer {
  max-width: var(--max); margin: 0 auto; padding: 48px var(--pad) 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
  font-size: 15px; font-weight: 600; color: var(--fg-45);
}
.site-footer .brand span { font-size: 16px; }
.footer-links { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.footer-links a { color: var(--fg-45); transition: color 160ms ease; }
.footer-links a:hover { color: var(--fg); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature-preview { position: static; order: -1; }
  .sync-card, .dark-card { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .dark-phones { order: 2; }
  .widgets-grid { grid-template-columns: 1fr; }
  .phone-left, .phone-right { width: 200px; }
  .phone-center { width: 240px; }
}

@media (max-width: 640px) {
  :root { --pad: 18px; }
  .section { padding-top: 72px; }
  .nav-links { gap: 14px; }
  .nav-links a:not(.btn-primary) { display: none; }
  .hero { padding-top: 48px; }
  .hero h1 .chip { padding: 0 10px 6px; border-radius: 12px; }
  .phones-row { gap: 12px; }
  .phone-left, .phone-right { width: 30vw; }
  .phone-center { width: 38vw; }
  .sync-card, .widgets-card, .dark-card { padding: 28px 22px; border-radius: 24px; }
  .feature { padding: 16px 18px; gap: 14px; }
  .feature-title { font-size: 18px; }
  .feature-preview img { width: 260px; }
  .faq-item summary { font-size: 17px; padding: 18px 20px; }
  .faq-item p { padding: 0 20px 20px; }
  .cta { padding: 56px 24px; border-radius: 28px; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}
