/* Fault Line website. Dark palette mirrors the app (DSColors dark mode). */

:root {
  --primary: #FF385C;
  --primary-dark: #E31C5F;
  --bg: #0D0D0F;
  --bg-2: #121214;
  --card: #18181B;
  --card-2: #232327;
  --border: rgba(255, 255, 255, 0.07);
  --border-2: rgba(255, 255, 255, 0.13);
  --text: #F5F5F7;
  --text-2: #9E9EA6;
  --text-3: #63636B;
  --max: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s cubic-bezier(.2,.6,.2,1), transform .55s cubic-bezier(.2,.6,.2,1);
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============ Header ============ */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 13, 15, 0.75);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; height: 64px; }
.nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 15.5px; letter-spacing: -0.2px; }
.nav .brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav .links { margin-left: 44px; display: flex; gap: 30px; font-size: 13.5px; color: var(--text-2); font-weight: 500; }
.nav .links a { transition: color .15s; }
.nav .links a:hover { color: var(--text); }
.nav .cta {
  margin-left: auto;
  background: var(--primary); color: #fff;
  font-size: 13px; font-weight: 600;
  padding: 8px 16px; border-radius: 8px;
  transition: background .15s;
}
.nav .cta:hover { background: var(--primary-dark); }
@media (max-width: 760px) { .nav .links { display: none; } }

/* ============ Hero ============ */
.hero { border-bottom: 1px solid var(--border); overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 84px 0 0;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 60px; text-align: center; }
}

.hero-copy .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .4px;
  color: var(--text-2);
  border: 1px solid var(--border-2);
  padding: 6px 14px; border-radius: 100px;
  margin-bottom: 26px;
}
.hero-copy .eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary);
}
.hero-copy h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 750;
  letter-spacing: -2.2px;
  line-height: 1.04;
  margin-bottom: 22px;
}
.hero-copy h1 em { font-style: normal; color: var(--primary); }
.hero-copy .sub {
  font-size: 16.5px;
  color: var(--text-2);
  max-width: 470px;
  margin-bottom: 36px;
}
@media (max-width: 880px) { .hero-copy .sub { margin-left: auto; margin-right: auto; } }

.hero-visual { position: relative; align-self: end; }
.hero-visual img {
  width: min(400px, 88%);
  margin: 0 auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
}
@media (max-width: 880px) { .hero-visual { margin-top: 44px; } }

.stores { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 880px) { .stores { justify-content: center; } }
.store-btn {
  display: flex; align-items: center; gap: 11px;
  background: var(--text); color: #0D0D0F;
  padding: 11px 20px; border-radius: 11px;
  font-weight: 650; font-size: 14.5px;
  letter-spacing: -0.1px;
  transition: transform .15s, opacity .15s;
}
.store-btn:hover { opacity: .9; transform: translateY(-1px); }
.store-btn.ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border-2);
}
.store-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.store-btn .lines { text-align: left; line-height: 1.12; }
.store-btn .lines small { display: block; font-size: 10px; font-weight: 600; opacity: .55; text-transform: uppercase; letter-spacing: .5px; }

.hero-sources {
  padding: 26px 0;
  margin-top: 64px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--text-3); font-weight: 500;
}
@media (max-width: 880px) { .hero-sources { justify-content: center; margin-top: 40px; } }
.hero-sources .src { color: var(--text-2); font-weight: 650; letter-spacing: .8px; font-size: 13px; }

/* ============ Stats ============ */
.stats-band { border-bottom: 1px solid var(--border); background: var(--bg-2); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } }
.stat-box { text-align: center; padding: 46px 20px; }
.stat-box + .stat-box { border-left: 1px solid var(--border); }
@media (max-width: 640px) {
  .stat-box + .stat-box { border-left: none; border-top: 1px solid var(--border); }
}
.stat-box .n {
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 750; letter-spacing: -1.6px;
  font-variant-numeric: tabular-nums;
}
.stat-box .l { font-size: 13px; color: var(--text-2); margin-top: 6px; }

/* ============ Sections ============ */
section { padding: 104px 0; }
section.bordered { border-bottom: 1px solid var(--border); }
.kicker {
  font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--primary); margin-bottom: 16px;
}
h2.title {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 750; letter-spacing: -1.3px; line-height: 1.12;
  max-width: 560px; margin-bottom: 16px;
}
p.lede { color: var(--text-2); max-width: 520px; font-size: 15.5px; margin-bottom: 0; }
.section-head { margin-bottom: 64px; }
.section-head.centered { text-align: center; }
.section-head.centered .title, .section-head.centered .lede { margin-left: auto; margin-right: auto; }

/* ============ Showcase rows ============ */
.showcase { display: flex; flex-direction: column; gap: 96px; }
.show-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
@media (max-width: 820px) {
  .show-row { grid-template-columns: 1fr; gap: 36px; }
  .show-row .show-visual { order: -1; }
}
.show-row.flip .show-visual { order: -1; }
@media (max-width: 820px) { .show-row.flip .show-visual { order: -1; } }

.show-visual img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--border);
}
.show-copy h3 {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700; letter-spacing: -0.8px;
  margin-bottom: 14px; line-height: 1.2;
}
.show-copy p { color: var(--text-2); font-size: 15px; max-width: 440px; margin-bottom: 22px; }
.show-copy ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.show-copy li {
  display: flex; gap: 11px; align-items: flex-start;
  font-size: 14px; color: var(--text-2);
}
.show-copy li svg {
  width: 17px; height: 17px; flex-shrink: 0; margin-top: 3px;
  stroke: var(--primary); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.show-copy li b { color: var(--text); font-weight: 600; }

/* ============ Capability grid ============ */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 24px;
  transition: border-color .2s, background .2s;
}
.card:hover { border-color: var(--border-2); background: var(--card-2); }
.card svg {
  width: 22px; height: 22px; margin-bottom: 16px;
  stroke: var(--primary); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.card h3 { font-size: 15.5px; font-weight: 650; margin-bottom: 7px; letter-spacing: -0.2px; }
.card p { font-size: 13.5px; color: var(--text-2); line-height: 1.62; }

/* ============ Steps ============ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: step; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 26px 28px;
}
.step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 9px;
  background: rgba(255, 56, 92, 0.12);
  color: var(--primary);
  font-size: 13.5px; font-weight: 700;
  margin-bottom: 18px;
}
.step h3 { font-size: 15.5px; font-weight: 650; margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--text-2); }

/* ============ FAQ ============ */
.faq { max-width: 720px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  margin-bottom: 10px;
  padding: 0 22px;
  transition: border-color .2s;
}
.faq details[open] { border-color: var(--border-2); }
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 15px;
  padding: 18px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--text-3); font-size: 19px; font-weight: 300; flex-shrink: 0;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; font-size: 14px; color: var(--text-2); max-width: 620px; }

/* ============ Final CTA ============ */
.final {
  text-align: center;
  padding: 110px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.final .app-icon { width: 72px; height: 72px; border-radius: 17px; margin: 0 auto 30px; border: 1px solid var(--border-2); }
.final h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 750; letter-spacing: -1.5px; margin-bottom: 16px; }
.final p { color: var(--text-2); max-width: 460px; margin: 0 auto 40px; font-size: 15.5px; }
.final p strong { color: var(--text); }
.final .stores { justify-content: center; }

/* ============ Footer ============ */
footer { border-top: 1px solid var(--border); padding: 44px 0 56px; font-size: 13px; color: var(--text-2); }
.foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.foot .brand { display: flex; align-items: center; gap: 9px; font-weight: 650; color: var(--text); }
.foot .brand img { width: 22px; height: 22px; border-radius: 5px; }
.foot .flinks { margin-left: auto; display: flex; gap: 26px; }
.foot .flinks a:hover { color: var(--text); }
.foot-bottom { margin-top: 20px; font-size: 12px; color: var(--text-3); max-width: 640px; }

/* ============ Legal pages ============ */
.legal { max-width: 760px; margin: 0 auto; padding: 64px 28px 96px; }
.legal h1 { font-size: 32px; font-weight: 750; letter-spacing: -1px; margin-bottom: 8px; }
.legal .updated { color: var(--text-2); font-size: 13.5px; margin-bottom: 42px; }
.legal h2 { font-size: 19px; font-weight: 700; margin: 40px 0 14px; letter-spacing: -0.3px; }
.legal h3 { font-size: 16px; font-weight: 700; margin: 26px 0 10px; }
.legal p, .legal li { font-size: 15px; color: #C2C2C8; line-height: 1.75; }
.legal p { margin-bottom: 14px; }
.legal ul, .legal ol { padding-left: 24px; margin-bottom: 16px; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--text); }
.legal .notice {
  background: var(--card);
  border: 1px solid var(--border-2);
  border-left: 3px solid var(--primary);
  border-radius: 10px; padding: 20px 24px; margin: 24px 0;
}
.legal .notice p { margin-bottom: 0; }
.legal a { color: var(--primary); }
.legal a:hover { text-decoration: underline; }
.legal table { width: 100%; border-collapse: collapse; margin: 18px 0 26px; font-size: 14px; }
.legal th, .legal td { text-align: left; padding: 11px 14px; border: 1px solid var(--border-2); color: #C2C2C8; vertical-align: top; }
.legal th { background: var(--card); color: var(--text); font-weight: 700; }
