/* FixRed landing — dark, Raycast structure + Apple restraint, one red accent.
   Tokens mirror the app's design system (accent = Radix red-9 #E5484D, rationed). */

:root {
  --bg:        #08080a;
  --bg-2:      #0d0e11;
  --surface:   rgba(255, 255, 255, 0.025);
  --surface-2: rgba(255, 255, 255, 0.045);
  --hairline:  rgba(255, 255, 255, 0.09);
  --hairline-strong: rgba(255, 255, 255, 0.14);

  --text:   #f4f4f6;
  --dim:    #a6a6ad;
  --faint:  #6c6c75;

  --accent:      #e5484d;
  --accent-hover:#ef5f63;
  --glow:        rgba(229, 72, 77, 0.30);

  --r-xl: 22px;
  --r-lg: 16px;
  --r:    12px;
  --r-sm: 9px;

  --maxw: 1120px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Inter", system-ui, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

/* ---------- ambient background ---------- */
.bg-aura {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(680px 420px at 50% -8%, rgba(229,72,77,0.16), transparent 70%),
    radial-gradient(900px 600px at 85% 8%, rgba(80,90,140,0.10), transparent 65%);
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 8, 10, 0.62);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--hairline); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: 17px; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a.link { color: var(--dim); font-size: 15px; transition: color .15s var(--ease); }
.nav-links a.link:hover { color: var(--text); }
@media (max-width: 720px) { .nav-links a.link { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font); font-size: 15px; font-weight: 590; letter-spacing: -0.01em;
  padding: 0 18px; height: 42px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform .15s var(--ease), background .2s var(--ease),
              border-color .2s var(--ease), box-shadow .25s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 8px 30px -8px var(--glow);
}
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 1px 0 rgba(255,255,255,0.22) inset, 0 12px 38px -8px var(--glow); }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--hairline-strong); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.22); }
.btn-lg { height: 50px; font-size: 16px; padding: 0 26px; }
.btn .price-tag { color: rgba(255,255,255,0.78); font-weight: 500; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 92px 0 40px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 560; color: var(--dim);
  background: var(--surface-2); border: 1px solid var(--hairline);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 26px;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px rgba(229,72,77,0.18);
}
.hero h1 {
  font-size: clamp(40px, 6.2vw, 70px); line-height: 1.04; font-weight: 640;
  letter-spacing: -0.03em; max-width: 16ch; margin: 0 auto 22px;
}
.hero h1 .accent { color: var(--accent); }
.hero .sub {
  font-size: clamp(17px, 2.2vw, 20px); color: var(--dim); line-height: 1.55;
  max-width: 52ch; margin: 0 auto 34px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-meta { margin-top: 20px; font-size: 14px; color: var(--faint); }
.hero-meta strong { color: var(--dim); font-weight: 560; }

/* ---------- hero stage (layered window + floating menu-bar panel) ---------- */
.hero-stage { position: relative; margin: 66px auto 0; max-width: 940px; padding-bottom: 6%; }
.hero-stage::before {
  content: ""; position: absolute; left: 50%; top: 46%; transform: translate(-50%,-50%);
  width: 72%; height: 80%; background: radial-gradient(closest-side, var(--glow), transparent 70%);
  filter: blur(44px); z-index: -1;
}
.stage-window {
  border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--hairline-strong); background: var(--bg-2);
  box-shadow: 0 54px 150px -38px rgba(0,0,0,0.85), 0 2px 0 rgba(255,255,255,0.05) inset;
}
.stage-window img { display: block; width: 100%; }
.stage-panel {
  position: absolute; left: -1.5%; bottom: 0; width: 31%; min-width: 196px;
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--hairline-strong); background: var(--bg-2);
  box-shadow: 0 40px 100px -22px rgba(0,0,0,0.92), 0 0 0 1px rgba(0,0,0,0.35),
              0 0 70px -12px var(--glow);
}
.stage-panel img { display: block; width: 100%; }
@media (max-width: 720px) {
  .hero-stage { padding-bottom: 0; max-width: 440px; }
  .stage-panel { position: static; width: 80%; margin: -12% auto 0; left: 0; }
}

/* legacy single-frame helper, kept for reuse */
.glass-frame { background: var(--surface); border: 1px solid var(--hairline-strong);
  border-radius: var(--r-xl); padding: 14px; box-shadow: 0 40px 120px -30px rgba(0,0,0,0.8); }
.glass-frame img { border-radius: var(--r-lg); width: 100%; }

/* ---------- section scaffold ---------- */
section { padding: 84px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 52px; }
.section-head .kicker {
  font-size: 13px; font-weight: 620; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 620; letter-spacing: -0.025em; line-height: 1.12; }
.section-head p { color: var(--dim); margin-top: 16px; font-size: 18px; }

.divider { height: 1px; background: var(--hairline); border: 0; max-width: var(--maxw); margin: 0 auto; }

/* ---------- feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .features { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  padding: 26px 24px; transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.card:hover { border-color: var(--hairline-strong); background: var(--surface-2); transform: translateY(-2px); }
.card .ico {
  width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 18px;
  border-radius: 10px; background: rgba(229,72,77,0.10); border: 1px solid rgba(229,72,77,0.22);
}
.card .ico svg { width: 19px; height: 19px; stroke: var(--accent); fill: none; stroke-width: 1.8; }
.card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.015em; }
.card p { font-size: 15px; color: var(--dim); line-height: 1.55; }

/* ---------- showcase (alternating screenshots) ---------- */
.showcase { display: grid; gap: 80px; }
.show-row { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.show-row.flip .show-text { order: 2; }
.show-row.flip .show-img  { order: 1; }
@media (max-width: 820px) { .show-row, .show-row.flip { grid-template-columns: 1fr; gap: 28px; }
  .show-row.flip .show-text, .show-row.flip .show-img { order: 0; } }
.show-text .kicker { font-size: 13px; font-weight: 620; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.show-text h3 { font-size: clamp(24px, 3vw, 30px); font-weight: 620; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 14px; }
.show-text p { color: var(--dim); font-size: 17px; }
.show-text ul { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.show-text li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; color: var(--dim); }
.show-text li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 4px; border-radius: 5px;
  background: rgba(229,72,77,0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23e5484d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; }
.show-img { background: var(--surface); border: 1px solid var(--hairline-strong); border-radius: var(--r-lg);
  padding: 10px; box-shadow: 0 30px 80px -34px rgba(0,0,0,0.75); }
.show-img img { border-radius: 10px; }

/* ---------- trust ---------- */
.trust { background: var(--bg-2); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 26px; }
.trust-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.trust-card p { font-size: 14.5px; color: var(--dim); line-height: 1.6; }

/* ---------- pricing ---------- */
.price-wrap { display: flex; justify-content: center; }
.price-card {
  position: relative; max-width: 420px; width: 100%; text-align: center;
  background: var(--surface); border: 1px solid var(--hairline-strong); border-radius: var(--r-xl);
  padding: 40px 34px; box-shadow: 0 40px 110px -40px rgba(0,0,0,0.8);
}
.price-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: var(--r-xl); padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, rgba(229,72,77,0.45), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.price-card .badge { display: inline-block; font-size: 12px; font-weight: 620; letter-spacing: 0.05em; text-transform: uppercase;
  color: #fff; background: var(--accent); padding: 5px 12px; border-radius: 999px; margin-bottom: 20px; }
.price-amount { font-size: 60px; font-weight: 660; letter-spacing: -0.03em; line-height: 1; }
.price-amount .cur { font-size: 30px; vertical-align: super; font-weight: 560; color: var(--dim); }
.price-once { color: var(--faint); font-size: 14px; margin-top: 8px; }
.price-list { list-style: none; text-align: left; margin: 26px 0 28px; display: grid; gap: 12px; }
.price-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: var(--dim); }
.price-list li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 6px;
  background: rgba(229,72,77,0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%23e5484d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; }
.price-card .btn { width: 100%; }
.price-foot { margin-top: 16px; font-size: 13px; color: var(--faint); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--hairline); padding: 4px 0; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 4px; font-size: 17px; font-weight: 560;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: color .15s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--text); }
.faq summary .chev { flex: none; width: 20px; height: 20px; color: var(--faint); transition: transform .25s var(--ease); }
.faq details[open] summary .chev { transform: rotate(45deg); color: var(--accent); }
.faq .answer { padding: 0 4px 22px; color: var(--dim); font-size: 16px; line-height: 1.65; }
.faq .answer a { color: var(--accent); }

/* ---------- final CTA ---------- */
.final { text-align: center; }
.final h2 { font-size: clamp(30px, 4.5vw, 46px); font-weight: 640; letter-spacing: -0.03em; margin-bottom: 16px; }
.final p { color: var(--dim); font-size: 18px; margin-bottom: 30px; }
.final .hero-cta { margin-bottom: 14px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--hairline); padding: 48px 0 60px; }
.footer .wrap { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer .brand { font-size: 16px; }
.footer .copy { color: var(--faint); font-size: 13.5px; margin-top: 12px; max-width: 36ch; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); margin-bottom: 14px; font-weight: 620; }
.footer-col a { display: block; color: var(--dim); font-size: 14.5px; padding: 5px 0; transition: color .15s var(--ease); }
.footer-col a:hover { color: var(--text); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- small screens ---------- */
h1, h2, h3, p, li, summary { overflow-wrap: break-word; }
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .nav .wrap { height: 58px; }
  .hero { padding: 58px 0 24px; }
  .hero h1 { font-size: clamp(26px, 7.4vw, 40px); line-height: 1.12; max-width: 100%; }
  .hero .sub { font-size: 16px; margin-bottom: 26px; }
  .eyebrow { white-space: normal; text-align: center; line-height: 1.45; max-width: 100%; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-cta .btn { width: 100%; }
  .section-head h2 { font-size: 26px; }
  .section-head p { font-size: 16px; }
  .final h2 { font-size: 28px; }
  .price-amount { font-size: 52px; }
  section { padding: 60px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:active { transform: none; }
}
