/* ---------- Tokens ---------- */
:root {
  --bg: #000;
  --surface: #131316;
  --surface-2: #17171b;
  --border: rgba(255, 255, 255, 0.12);
  --text: #f6f6f7;
  --muted: rgba(235, 235, 245, 0.62);
  --faint: rgba(235, 235, 245, 0.4);
  --accent: #ff333a;
  --accent-hover: #ff4d53;
  --radius: 18px;
  --maxw: 720px;
  --maxw-wide: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

/* ---------- Base ---------- */
* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-wide {
  width: 100%;
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: inherit;
}

/* ---------- Header (glass, sticky) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}

.brand {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}

.brand img {
  height: 24px;
  width: auto;
  display: block;
}

.nav-cta {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.nav-cta:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  text-decoration: none;
  padding: 15px 28px;
  border-radius: 999px;
  box-shadow: 0 10px 30px -8px rgba(255, 51, 58, 0.6);
  transition: background 0.18s ease, transform 0.12s ease,
    box-shadow 0.18s ease;
}

.btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 14px 38px -8px rgba(255, 51, 58, 0.7);
}

.btn:active {
  transform: translateY(1px);
}

.btn--light {
  background: #fff;
  color: #160809;
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.5);
}

.btn--light:hover {
  background: #fff;
  transform: translateY(-1px);
}

/* App Store CTA pill (matches the app/preview language); disabled until launch */
.appstore-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 54px;
  padding: 0 26px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.appstore-btn svg {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: -2px;
}

.appstore-btn.is-disabled {
  color: rgba(255, 255, 255, 0.5);
  cursor: default;
  pointer-events: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 56px 0 96px;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  gap: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.025);
  padding: 7px 15px 7px 13px;
  border-radius: 999px;
  margin-bottom: 30px;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 51, 58, 0.18);
}

.hero h1 {
  font-weight: 700;
  font-size: clamp(46px, 8vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin: 0 0 22px;
}

.hero p.lede {
  font-size: clamp(18px, 2.4vw, 21px);
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 42ch;
}

.hero .actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero .microcopy {
  font-size: 13px;
  color: var(--faint);
}

/* Hero device */
.hero-shot {
  position: relative;
  width: min(310px, 76vw);
}

.hero-shot::before {
  content: "";
  position: absolute;
  inset: -22% -45% -6%;
  background: radial-gradient(
    closest-side,
    rgba(255, 51, 58, 0.38),
    rgba(255, 51, 58, 0) 72%
  );
  z-index: 0;
}

.hero-shot .device {
  position: relative;
  z-index: 1;
}

@media (min-width: 860px) {
  .hero {
    padding: 80px 0 116px;
  }
  .hero-inner {
    grid-template-columns: 1.04fr 0.96fr;
    align-items: center;
    text-align: left;
    gap: 48px;
  }
  .hero-copy {
    justify-self: start;
  }
  .hero .lede {
    margin-left: 0;
  }
  .hero .actions {
    align-items: flex-start;
  }
  .hero-shot {
    justify-self: end;
    width: min(330px, 40vw);
  }
}

/* ---------- Device frame ---------- */
.device {
  position: relative;
  padding: 9px;
  border-radius: 46px;
  background: linear-gradient(155deg, #303036 0%, #161618 42%, #0a0a0c 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 0 0 1px rgba(0, 0, 0, 0.6), 0 40px 80px -24px rgba(0, 0, 0, 0.8),
    0 12px 30px -12px rgba(0, 0, 0, 0.7);
}

.device img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 38px;
}

/* subtle screen sheen */
.device::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 38px;
  background: linear-gradient(
    150deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0) 38%
  );
  pointer-events: none;
}

/* ---------- Showcase rows ---------- */
.showcase {
  padding: 56px 0 24px;
}

.showcase .wrap-wide {
  display: grid;
  gap: 120px;
}

.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  justify-items: center;
}

.row .shot {
  position: relative;
  width: min(272px, 70vw);
}

.row .shot::before {
  content: "";
  position: absolute;
  inset: -16% -28% 0;
  background: radial-gradient(
    closest-side,
    rgba(255, 51, 58, 0.16),
    rgba(255, 51, 58, 0) 72%
  );
  z-index: 0;
}

.row .shot .device {
  position: relative;
  z-index: 1;
}

.row .copy {
  text-align: center;
  max-width: 40ch;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0 0 16px;
}

.kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.row .copy h2 {
  font-weight: 700;
  font-size: clamp(30px, 5.5vw, 46px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 16px;
  color: var(--text);
}

.row .copy p {
  font-size: clamp(17px, 2.2vw, 19px);
  color: var(--muted);
  margin: 0;
}

/* Mobile (single column): put the text above the screenshot */
@media (max-width: 759px) {
  .row .copy {
    order: -1;
  }
}

@media (min-width: 760px) {
  .row {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    justify-items: stretch;
  }
  .row .copy {
    text-align: left;
  }
  .row .shot {
    justify-self: center;
  }
  .row.reverse .shot {
    order: 2;
  }
}

/* ---------- Essentials (editorial list) ---------- */
.essentials {
  padding: 130px 0 16px;
}

.essentials .lead {
  max-width: 22ch;
  font-weight: 700;
  font-size: clamp(26px, 4.6vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 48px;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.feature-list li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 30px 2px;
  border-bottom: 1px solid var(--border);
}

.feature-list .num {
  grid-row: 1 / span 2;
  font-weight: 700;
  font-size: 13px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  padding-top: 4px;
}

.feature-list h3 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(21px, 3vw, 27px);
  letter-spacing: -0.025em;
  color: var(--text);
}

.feature-list p {
  margin: 0;
  font-size: 17px;
  color: var(--muted);
}

@media (min-width: 760px) {
  .feature-list li {
    grid-template-columns: 40px 0.95fr 1.05fr;
    column-gap: 28px;
    align-items: baseline;
    padding: 34px 2px;
  }
  .feature-list .num {
    grid-row: auto;
    padding-top: 0;
  }
  .feature-list p {
    text-align: left;
  }
}

/* ---------- Closing statement ---------- */
.statement {
  padding: 140px 0 24px;
}

.statement-text {
  max-width: 22ch;
  margin: 0 auto;
  text-align: center;
  font-weight: 700;
  font-size: clamp(25px, 4.2vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--faint);
}

.statement-text strong {
  display: block;
  margin-bottom: 0.2em;
  color: var(--text);
  font-weight: 700;
}

@media (min-width: 700px) {
  .statement-text {
    max-width: 28ch;
  }
}

/* ---------- Article / legal pages ---------- */
article h1 {
  font-weight: 700;
  font-size: 40px;
  letter-spacing: -0.035em;
  margin: 56px 0 8px;
}

article .updated {
  color: var(--faint);
  font-size: 14px;
  margin: 0 0 32px;
}

article h2 {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 38px 0 12px;
}

article h3 {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  margin: 28px 0 8px;
}

article p,
article li {
  color: var(--muted);
}

article a {
  color: var(--accent);
  text-decoration: none;
}

article a:hover {
  text-decoration: underline;
}

article ul {
  padding-left: 20px;
}

article li {
  margin-bottom: 8px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 120px;
  padding: 32px 0 56px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-inner .brand img {
  height: 18px;
}

.site-footer nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
}

.site-footer nav a:hover {
  color: var(--text);
}

.site-footer .sep {
  color: var(--faint);
  font-size: 13px;
  margin: 0 8px;
}

/* ---------- Subtle scroll reveal (progressive, CSS-only) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal-up linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
    @keyframes reveal-up {
      from {
        opacity: 0;
        transform: translateY(26px);
      }
      to {
        opacity: 1;
        transform: none;
      }
    }
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .hero {
    padding: 56px 0 32px;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .showcase .wrap-wide {
    gap: 88px;
  }
  .cta-card {
    padding: 56px 22px;
  }
}

/* ---------- Cookie consent banner ---------- */
.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 540px;
  margin: 0 auto;
  z-index: 9999;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  background: rgba(22, 22, 26, 0.92);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.55);
}
.cookie-bar p {
  margin: 0;
  flex: 1;
  min-width: 200px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
}
.cookie-bar a {
  color: var(--text);
}
.cookie-actions {
  display: flex;
  gap: 10px;
}
.cookie-bar button {
  border: 0;
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  font-family: inherit;
}
.cookie-decline {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}
.cookie-accept {
  background: #fff;
  color: #000;
}

@media (max-width: 540px) {
  .cookie-actions {
    width: 100%;
  }
  .cookie-actions button {
    flex: 1;
  }
}

/* ---------- Bento features ---------- */
.features {
  padding: 56px 0 24px;
}
.features .head {
  max-width: 26ch;
  margin: 0 0 28px;
}
.features .head h2 {
  font-size: clamp(28px, 4.4vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0;
}
.bento {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
.card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.07);
  padding: 26px;
  min-height: 230px;
}
.card h3 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  max-width: 32ch;
}
/* Mobile-first: screenshots sit contained below the text */
.card--follow {
  display: flex;
  flex-direction: column;
}
.card-shot {
  display: block;
  width: 60%;
  max-width: 240px;
  margin: 22px auto 2px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
}
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 18px 0 0;
}
.chips li {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  padding: 7px 13px;
  border-radius: 999px;
}
.card--private {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 0;
}
.card--private .icon {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.82);
}
.card--private p {
  max-width: 60ch;
}
@media (min-width: 780px) {
  .bento {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 264px 264px;
    grid-template-areas:
      "reco reco follow"
      "track import follow";
  }
  .card--reco { grid-area: reco; padding-right: 44%; }
  .card--follow { grid-area: follow; min-height: 300px; }
  .card--track { grid-area: track; display: flex; flex-direction: column; }
  .card--import { grid-area: import; }
  .card--private { grid-area: private; }

  /* Desktop: screenshots peek in from the card edges */
  .card--reco .card-shot {
    position: absolute;
    width: 36%;
    max-width: none;
    right: 26px;
    top: 40px;
    margin: 0;
  }
  .card--track .card-shot {
    position: static;
    width: 56%;
    max-width: 176px;
    margin: 18px auto -26px;
    transform: none;
  }
  .card--follow .card-shot {
    width: 78%;
    max-width: none;
    margin: 20px auto 0;
  }
}

.statement-cta {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}
