/* ============================================================
   Stopmo Studio — website styles
   Design tokens + components translated from the Stopmo Studio
   design mockups. Dark theme, Montserrat headings, Raleway body.
   ============================================================ */

:root {
  /* Surfaces */
  --bg: #15181A;
  --bg-footer: #131618;
  --surface: #202425;
  --surface-2: #2B3236;
  --phone-bg: #0F1113;

  /* Text */
  --text: #F3F5F6;
  --text-body: #C6CDD1;
  --text-muted: #AEB7BC;
  --text-dim: #76828A;
  --text-dimmer: #5A666D;

  /* Brand */
  --coral: #FF776E;
  --coral-light: #FF8E86;
  --coral-shadow: #C9483F;
  --coral-ink: #2A1512;
  --green: #5BD08A;
  --amber: #F4B05C;

  /* Hairlines */
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .09);
  --line-soft: rgba(255, 255, 255, .06);

  /* Layout */
  --wrap: 1120px;
  --pad-x: clamp(20px, 5vw, 40px);

  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Raleway", system-ui, sans-serif;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--bg); }
body {
  font-family: var(--font-body);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
::selection { background: var(--coral); color: var(--bg); }

a { color: var(--coral-light); text-decoration: none; }
a:hover { color: var(--coral); }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-thumb {
  background: var(--surface-2);
  border-radius: 10px;
  border: 3px solid var(--bg);
}

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }

.section { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }

.eyebrow {
  font: 700 12px var(--font-body);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.eyebrow--coral { color: var(--coral-light); }

/* Small decorative glyphs used inside icon tiles */
.glyph { width: 15px; height: 15px; display: block; }
.glyph--sq-o { border-radius: 5px; border: 2.5px solid var(--coral); }
.glyph--ci-o { border-radius: 50%; border: 2.5px solid var(--coral); }
.glyph--sq   { border-radius: 3px; background: var(--coral); }
.glyph--ci   { border-radius: 50%; background: var(--coral); }

/* ============================================================
   NAV
   ============================================================ */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(21, 24, 26, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-nav__inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: 14px var(--pad-x);
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; color: var(--text); }
.brand:hover { color: var(--text); }
.brand__mark {
  width: 36px; height: 36px; border-radius: 11px; flex: none; display: block;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08);
}
.brand__name { font: 800 18px/1 var(--font-head); letter-spacing: -.01em; }

.nav-links { display: flex; align-items: center; gap: clamp(16px, 3vw, 30px); flex-wrap: wrap; }
.nav-link { font: 600 15px var(--font-body); color: var(--text-muted); }
.nav-link:hover { color: var(--text); }
.nav-link[aria-current="page"] { color: var(--coral); }
.nav-link[aria-current="page"]:hover { color: var(--coral); }

/* "Get the app" pill in the nav */
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--coral); color: var(--bg);
  border-radius: 12px; padding: 10px 16px;
  box-shadow: 0 3px 0 var(--coral-shadow);
  transition: background .15s ease, transform .05s ease, box-shadow .05s ease;
}
.pill:hover { background: var(--coral-light); color: var(--bg); }
.pill:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--coral-shadow); }
.pill__icon { width: 20px; height: 20px; border-radius: 6px; flex: none; display: block; }
.pill__label { font: 800 14px var(--font-head); }

/* ============================================================
   STORE BUTTONS (App Store / Google Play)
   ============================================================ */
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  border-radius: 14px; padding: 13px 20px;
  transition: background .15s ease, border-color .15s ease, transform .05s ease, box-shadow .05s ease;
}
.store-btn__icon {
  width: 26px; height: 26px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.store-btn__ring { width: 11px; height: 11px; border-radius: 50%; border: 2.5px solid var(--coral); }
.store-btn__ring--muted { border-color: #93A2A9; }
.store-btn__labels { display: flex; flex-direction: column; line-height: 1.15; }
.store-btn__small { font: 600 10px var(--font-body); letter-spacing: .04em; opacity: .72; }
.store-btn__big { font: 800 16px var(--font-head); letter-spacing: -.01em; }

.store-btn--primary { background: var(--coral); color: var(--bg); box-shadow: 0 3px 0 var(--coral-shadow); }
.store-btn--primary:hover { background: var(--coral-light); color: var(--bg); }
.store-btn--primary:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--coral-shadow); }
.store-btn--primary .store-btn__icon { background: var(--bg); }

.store-btn--ghost { background: transparent; border: 1px solid rgba(255, 255, 255, .16); color: var(--text); }
.store-btn--ghost:hover { border-color: rgba(255, 255, 255, .34); background: rgba(255, 255, 255, .03); color: var(--text); }
.store-btn--ghost .store-btn__icon { background: var(--surface-2); }
.store-btn--ghost .store-btn__small { color: var(--text-muted); opacity: 1; }

/* "Coming soon" store button: same shape, no link, no hover */
.store-btn--soon { cursor: default; opacity: .62; }
.store-btn--soon:hover { border-color: rgba(255, 255, 255, .16); background: transparent; }
.download-band .store-btn--soon:hover { border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .05); }

/* Ghost variant inside the coral download band gets a faint fill */
.download-band .store-btn--ghost { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .18); }
.download-band .store-btn--ghost:hover { border-color: rgba(255, 255, 255, .34); background: rgba(255, 255, 255, .08); }

/* ============================================================
   HERO
   ============================================================ */
.hero { max-width: var(--wrap); margin: 0 auto; padding: clamp(48px, 8vw, 96px) var(--pad-x) clamp(40px, 6vw, 72px); }
.hero__grid { display: flex; gap: clamp(32px, 6vw, 72px); align-items: center; flex-wrap: wrap; }
.hero__content { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero__title {
  margin: 0; font-family: var(--font-head);
  font-size: clamp(38px, 6vw, 62px); line-height: 1.02; font-weight: 800;
  letter-spacing: -.025em; text-wrap: balance;
}
.hero__lead {
  margin: 0; font-size: clamp(17px, 2vw, 19px); line-height: 1.6;
  color: var(--text-muted); max-width: 560px; text-wrap: pretty;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; scroll-margin-top: 90px; }
.trust-row { display: flex; align-items: center; gap: 10px; color: var(--text-dim); font: 600 13px var(--font-body); flex-wrap: wrap; }
.trust-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(91, 208, 138, .16); flex: none; }

/* ---------- Phone mockup ---------- */
.phone-col { flex: 0 1 320px; display: flex; justify-content: center; min-width: 260px; }
.phone {
  width: 300px; max-width: 100%; aspect-ratio: 9 / 19.2;
  background: var(--phone-bg); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 38px; padding: 9px;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .03);
}
.phone__screen {
  position: relative; width: 100%; height: 100%; border-radius: 30px; overflow: hidden;
  background: repeating-linear-gradient(135deg, #24292b 0 13px, #1d2224 13px 26px);
}
.phone__ghost {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, #3a4247 0 13px, #2c3338 13px 26px);
  opacity: .42; transform: translate(10px, -6px);
}
.phone__grid-v, .phone__grid-h { position: absolute; background: rgba(255, 255, 255, .14); }
.phone__grid-v { top: 0; bottom: 0; width: 1px; }
.phone__grid-h { left: 0; right: 0; height: 1px; }
.phone__chip {
  position: absolute; top: 14px; display: inline-flex; align-items: center; gap: 7px;
  background: rgba(15, 17, 19, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; padding: 6px 11px;
}
.phone__chip--onion { left: 14px; }
.phone__chip--level { right: 14px; border-color: rgba(91, 208, 138, .4); padding: 6px 10px; }
.phone__chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.phone__chip-text { font: 700 11px var(--font-body); letter-spacing: .02em; color: var(--text); }
.phone__chip-text--green { color: var(--green); letter-spacing: 0; }
.phone__note {
  position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%);
  text-align: center; font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px; color: rgba(243, 245, 246, .5); letter-spacing: .02em; padding: 0 16px; margin: 0;
}
.phone__bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  background: linear-gradient(to top, rgba(15, 17, 19, .92), rgba(15, 17, 19, 0));
  display: flex; align-items: center; justify-content: space-between; padding: 0 22px 14px;
}
.phone__thumb {
  align-self: flex-end; width: 44px; height: 44px; border-radius: 11px;
  background: repeating-linear-gradient(135deg, #3a4247 0 8px, #2c3338 8px 16px);
  border: 1px solid rgba(255, 255, 255, .16); position: relative;
}
.phone__badge {
  position: absolute; bottom: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--coral); color: var(--bg);
  font: 800 11px var(--font-head); display: flex; align-items: center; justify-content: center;
}
.phone__shutter {
  align-self: flex-end; width: 64px; height: 64px; border-radius: 50%;
  border: 4px solid var(--coral); display: flex; align-items: center; justify-content: center;
  background: rgba(255, 119, 110, .14);
}
.phone__shutter-core { width: 46px; height: 46px; border-radius: 50%; background: var(--coral); box-shadow: 0 3px 0 var(--coral-shadow); }
.phone__fps {
  align-self: flex-end; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .16); display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font: 700 10px var(--font-body); text-align: center; line-height: 1.1;
}

/* ============================================================
   SECTION HEADS
   ============================================================ */
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 620px; margin-bottom: 36px; }
.section-head--row { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; max-width: none; }
.section-head--row > .section-head__text { display: flex; flex-direction: column; gap: 14px; max-width: 620px; }
.section-title {
  margin: 0; font-family: var(--font-head); font-size: clamp(28px, 4vw, 40px);
  font-weight: 800; letter-spacing: -.02em; line-height: 1.06; text-wrap: balance;
}
.section-desc { margin: 0; font-size: 17px; line-height: 1.6; color: var(--text-muted); }
.head-link { font: 700 15px var(--font-body); color: var(--coral); white-space: nowrap; }
.head-link:hover { color: var(--coral-light); }

/* ============================================================
   CARDS (privacy at a glance)
   ============================================================ */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 26px; display: flex; flex-direction: column; gap: 12px;
}
.card__icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255, 119, 110, .16); border: 1px solid rgba(255, 119, 110, .3);
  display: flex; align-items: center; justify-content: center;
}
.card__title { font: 700 18px var(--font-head); letter-spacing: -.01em; }
.card__text { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--text-muted); }

/* Compact card used on the legal "in plain words" strip */
.card--sm { padding: 24px; gap: 11px; }
.card--sm .card__icon { width: 38px; height: 38px; border-radius: 11px; }
.card--sm .glyph { width: 14px; height: 14px; }
.card--sm .card__title { font-size: 17px; }
.card--sm .card__text { font-size: 14px; }

/* ============================================================
   TEMPLATE CARDS (one app, two rhythms)
   ============================================================ */
.template-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.template-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px; display: flex; flex-direction: column; gap: 14px;
}
.template-card__bar { height: 8px; border-radius: 999px; }
.template-card__title { font: 700 17px var(--font-head); letter-spacing: -.01em; }
.template-card__text { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-muted); }

/* ============================================================
   HOW IT WORKS (steps)
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.step { display: flex; flex-direction: column; gap: 12px; }
.step__num { font: 700 15px var(--font-head); color: var(--coral); letter-spacing: .02em; }
.step__rule { height: 1px; background: var(--line-2); }
.step__title { font: 700 20px var(--font-head); letter-spacing: -.01em; margin-top: 6px; }
.step__text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-muted); }

/* ============================================================
   DOWNLOAD BAND
   ============================================================ */
.download-section { padding: clamp(24px, 4vw, 48px) var(--pad-x) clamp(56px, 7vw, 88px); max-width: var(--wrap); margin: 0 auto; }
.download-band {
  background: rgba(255, 119, 110, .10); border: 1px solid rgba(255, 119, 110, .25);
  border-radius: 26px; padding: clamp(32px, 5vw, 56px);
  display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.download-band__text { display: flex; flex-direction: column; gap: 12px; max-width: 520px; }
.download-band__title {
  margin: 0; font-family: var(--font-head); font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 800; letter-spacing: -.02em; line-height: 1.06; text-wrap: balance;
}
.download-band__text p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--text-body); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-footer); }
.site-footer__inner { max-width: var(--wrap); margin: 0 auto; padding: clamp(44px, 6vw, 68px) var(--pad-x); }
.footer-top { display: flex; gap: 48px; justify-content: space-between; flex-wrap: wrap; }
.footer-brand { flex: 1 1 300px; max-width: 360px; display: flex; flex-direction: column; gap: 16px; }
.footer-brand__row { display: flex; align-items: center; gap: 12px; }
.footer-brand__mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none; display: block;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08);
}
.footer-brand__name { font: 800 17px var(--font-head); letter-spacing: -.01em; }
.footer-brand p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-dim); max-width: 300px; }
.footer-made { font: 600 13px var(--font-body); color: var(--text-dim); }

.footer-cols { display: flex; gap: clamp(36px, 6vw, 72px); flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 13px; min-width: 120px; }
.footer-col__head { font: 700 11px var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--text-dimmer); }
.footer-link { font: 600 14px var(--font-body); color: var(--text-muted); }
.footer-link:hover { color: var(--text); }
.footer-link--soon { cursor: default; }
.footer-link--soon:hover { color: var(--text-muted); }
.footer-link--soon em { font-style: normal; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; opacity: .7; margin-left: 6px; }

.footer-bottom {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line-soft);
  display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap;
  color: var(--text-dimmer); font: 500 13px var(--font-body);
}

/* ============================================================
   LEGAL PAGES — header
   ============================================================ */
.legal-header { max-width: var(--wrap); margin: 0 auto; padding: clamp(44px, 7vw, 80px) var(--pad-x) clamp(28px, 4vw, 40px); }
.legal-header--terms { padding-bottom: clamp(28px, 4vw, 44px); }
.legal-title {
  margin: 14px 0 0; font-family: var(--font-head); font-size: clamp(36px, 6vw, 58px);
  font-weight: 800; letter-spacing: -.025em; line-height: 1.02;
}
.legal-meta { margin-top: 20px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font: 600 14px var(--font-body); color: var(--text-dim); }
.legal-meta__sep { width: 4px; height: 4px; border-radius: 50%; background: var(--text-dimmer); }
.legal-badge { display: inline-flex; align-items: center; gap: 8px; color: var(--amber); }
.legal-badge__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.legal-intro { margin: 22px 0 0; font-size: 17px; line-height: 1.65; color: var(--text-muted); max-width: 680px; text-wrap: pretty; }

/* Glance strip label above the legal cards */
.glance-label { font: 700 12px var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 20px; }

/* ============================================================
   LEGAL PAGES — doc layout (TOC + body)
   ============================================================ */
.doc-layout {
  max-width: var(--wrap); margin: 0 auto;
  padding: 0 var(--pad-x) clamp(48px, 7vw, 80px);
  display: flex; gap: clamp(32px, 5vw, 56px); align-items: flex-start; flex-wrap: wrap;
}
.doc-layout--terms { padding-top: clamp(8px, 2vw, 20px); }

.toc { flex: 1 1 210px; max-width: 250px; position: sticky; top: 96px; }
.toc__head { font: 700 11px var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--text-dimmer); margin-bottom: 16px; }
.toc__nav { display: flex; flex-direction: column; gap: 12px; border-left: 1px solid var(--line-2); padding-left: 16px; }
.toc__link { font: 600 14px var(--font-body); color: var(--text-muted); }
.toc__link:hover { color: var(--text); }
.toc__link.is-active { font-weight: 700; color: var(--coral); }

.doc-body { flex: 999 1 560px; min-width: 0; max-width: 760px; display: flex; flex-direction: column; }
.doc-note {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--surface); border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px; padding: 16px 18px; margin-bottom: 36px;
}
.doc-note__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); margin-top: 6px; flex: none; }
.doc-note p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-muted); }

.doc-section { scroll-margin-top: 96px; margin-bottom: 40px; }
.doc-section:last-child { margin-bottom: 8px; }
.doc-section h2 {
  margin: 0 0 16px; font-family: var(--font-head); font-size: clamp(22px, 3vw, 28px);
  font-weight: 700; letter-spacing: -.015em; line-height: 1.15;
}
.doc-section p { margin: 0 0 14px; font-size: 16px; line-height: 1.75; color: var(--text-body); }
.doc-section p:last-child { margin-bottom: 0; }
.doc-section ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.doc-section li { font-size: 16px; line-height: 1.7; color: var(--text-body); }
.doc-section strong { color: var(--text); font-weight: 700; }
.doc-section a { color: var(--coral-light); }
.doc-section a:hover { color: var(--coral); }

.contact-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 26px; display: flex; flex-direction: column; gap: 6px;
}
.contact-card__name { font: 700 17px var(--font-head); letter-spacing: -.01em; }
.contact-card__role { font-size: 15px; color: var(--text-muted); }
.contact-card__email { font: 700 15px var(--font-body); color: var(--coral); margin-top: 6px; }
.contact-card__email:hover { color: var(--coral-light); }

/* ---------- Responsive: collapse the sticky TOC on narrow screens ---------- */
@media (max-width: 880px) {
  .toc { position: static; max-width: none; top: auto; width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
