/* RivalRadar — "Signal desk", richer pass.
   Deep pine + warm signal-orange + mono data readouts, with depth, mockups and motion. */

:root {
  --paper: #F3F6F1;
  --surface: #FFFFFF;
  --ink: #0C2B2A;
  --ink-2: #10403B;
  --ink-soft: #35514C;
  --muted: #5E726D;
  --line: #DBE4DD;
  --signal: #FF6B35;
  --signal-soft: #FFE7DC;
  --teal: #129B8B;
  --blue: #3C7DD9;
  --radius: 14px;
  --maxw: 1100px;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--paper); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; }
img { display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 5.5rem 1.5rem; }
.wrap.narrow { max-width: 760px; }
.eyebrow { font-family: var(--mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--signal); margin: 0 0 1rem; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700; }
.big-text { font-size: 1.2rem; color: var(--ink-soft); margin-top: 1rem; }
.lede { font-size: 1.15rem; color: var(--ink-soft); }

/* buttons */
.btn { display: inline-block; font-family: var(--display); font-weight: 600; font-size: 1rem; background: var(--signal); color: #fff; padding: .85rem 1.4rem; border-radius: 10px; border: 0; cursor: pointer; text-decoration: none; transition: transform .14s ease, box-shadow .14s ease; box-shadow: 0 8px 22px -8px rgba(255,107,53,.7); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(255,107,53,.8); }
.btn-ghost { background: transparent; color: var(--paper); box-shadow: none; border: 1px solid rgba(255,255,255,.3); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.08); box-shadow: none; }
.btn-small { padding: .55rem 1rem; font-size: .92rem; }
.btn-wide { display: block; text-align: center; width: 100%; }

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; max-width: var(--maxw); margin: 0 auto; padding: 1.1rem 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--display); font-weight: 500; font-size: 1.2rem; text-decoration: none; color: var(--ink); }
.brand b { font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { text-decoration: none; font-size: .95rem; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }
.nav-links .btn { color: #fff; }

/* hero */
.hero { background: radial-gradient(1200px 500px at 80% -10%, #14403A 0%, var(--ink) 55%); color: var(--paper); border-bottom: 1px solid var(--ink-2); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -260px; top: -140px; width: 760px; height: 760px; background: radial-gradient(circle, transparent 0 38%, rgba(18,155,139,.10) 38% 39%, transparent 39%), radial-gradient(circle, transparent 0 26%, rgba(18,155,139,.13) 26% 27%, transparent 27%), radial-gradient(circle, transparent 0 14%, rgba(18,155,139,.16) 14% 15%, transparent 15%); pointer-events: none; }
.hero-inner { max-width: var(--maxw); margin: 0 auto; padding: 4.5rem 1.5rem 3rem; display: grid; grid-template-columns: 1.02fr .98fr; gap: 3rem; align-items: center; position: relative; }
.hero .eyebrow { color: var(--signal); }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); font-weight: 700; color: #fff; }
.hero .lede { color: #C9D6D1; margin-top: 1.25rem; max-width: 30rem; }
.hero-cta { display: flex; gap: .8rem; margin-top: 1.8rem; flex-wrap: wrap; }
.reassure { font-family: var(--mono); font-size: .8rem; color: #9FB2AC; margin-top: 1.1rem; }

/* hero visual: mockup + feed */
.hero-visual { display: grid; gap: 1rem; position: relative; }
.mock-card { background: linear-gradient(180deg, #fff, #F7FAF7); border-radius: 16px; padding: 1.1rem 1.2rem; box-shadow: 0 40px 80px -30px rgba(0,0,0,.65); transform: perspective(900px) rotateY(-6deg) rotateX(2deg); transition: transform .35s ease; }
.mock-card:hover { transform: perspective(900px) rotateY(-2deg) rotateX(1deg); }
.mock-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: .7rem; margin-bottom: .7rem; }
.mock-brand { font-family: var(--display); font-weight: 700; color: var(--ink); }
.mock-brand b { color: var(--signal); }
.mock-tag { font-family: var(--mono); font-size: .7rem; color: var(--muted); }
.mock-row { font-size: .9rem; color: var(--ink-soft); padding: .35rem 0; display: flex; align-items: center; gap: .5rem; }
.mock-pos { display: flex; align-items: center; gap: .6rem; margin-top: .6rem; font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.mock-bar { flex: 1; height: 7px; background: var(--line); border-radius: 99px; overflow: hidden; }
.mock-bar i { display: block; height: 100%; background: var(--signal); width: var(--pos, 62%); }
.mock-pos-val { color: var(--ink); font-weight: 700; }

/* hero visual depth + entrance (W3) — every animation gated by html.anim, so no-JS and
   reduced-motion users simply see the finished card. Runs once at load; nothing can stick. */
.hero-visual::before { content: ""; position: absolute; inset: -14% -10%; background:
  radial-gradient(45% 40% at 72% 15%, rgba(255,107,53,.17), transparent 70%),
  radial-gradient(50% 45% at 22% 88%, rgba(18,155,139,.20), transparent 70%);
  filter: blur(12px); pointer-events: none; }
.mock-card, .feed { position: relative; }
html.anim .mock-row { opacity: 0; transform: translateY(8px); animation: mock-rise .5s ease forwards .25s; }
html.anim .mock-row + .mock-row { animation-delay: .45s; }
html.anim .mock-row + .mock-row + .mock-row { animation-delay: .65s; }
html.anim .mock-bar i { animation: bar-fill 1s cubic-bezier(.2,.7,.2,1) .9s both; }
html.anim .mock-pos-val { opacity: 0; animation: mock-rise .4s ease 1.7s forwards; }
@keyframes mock-rise { to { opacity: 1; transform: translateY(0); } }
@keyframes bar-fill { from { width: 0; } to { width: var(--pos, 62%); } }

/* chips */
.chip { font-family: var(--mono); font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: .15rem .45rem; border-radius: 6px; white-space: nowrap; }
.chip-down { background: var(--signal-soft); color: #C2410C; }
.chip-new { background: #D8F3EF; color: #0F766E; }
.chip-stock { background: #DCE9FB; color: #1D4ED8; }

/* live feed */
.feed { background: var(--ink-2); border: 1px solid rgba(255,255,255,.10); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: 0 20px 50px -28px rgba(0,0,0,.6); }
.feed-head { font-family: var(--mono); font-size: .76rem; color: #B9C8C3; display: flex; align-items: center; gap: .5rem; padding-bottom: .7rem; border-bottom: 1px solid rgba(255,255,255,.10); }
.feed-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(255,107,53,.55);}70%{box-shadow:0 0 0 7px rgba(255,107,53,0);}100%{box-shadow:0 0 0 0 rgba(255,107,53,0);} }
.feed-list { list-style: none; margin: 0; padding: .5rem 0 0; min-height: 132px; }
.feed-list li { font-family: var(--mono); font-size: .78rem; color: #DCE7E3; padding: .42rem 0; border-bottom: 1px dashed rgba(255,255,255,.08); display: flex; gap: .5rem; align-items: baseline; opacity: 0; transform: translateY(6px); animation: rise .5s ease forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.feed-list .who { color: #fff; font-weight: 700; }
.feed-list .down { color: var(--signal); }
.feed-list .up { color: #FFD0BC; }
.feed-list .new { color: #4FD1C5; }
.feed-list .when { margin-left: auto; color: #84968F; font-size: .72rem; white-space: nowrap; }

/* logos strip */
.logos { max-width: var(--maxw); margin: 0 auto; padding: 1.6rem 1.5rem 2.6rem; display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; position: relative; }
.logos-label { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: #7C918B; }
.logos span:not(.logos-label) { font-family: var(--display); font-weight: 600; color: #93A8A2; font-size: 1.05rem; }

/* stats band */
.stats { max-width: var(--maxw); margin: 0 auto; padding: 3rem 1.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.stat { text-align: center; padding: 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.stat b { display: block; font-family: var(--display); font-size: 1.9rem; color: var(--ink); }
.stat span { color: var(--muted); font-size: .95rem; }

/* bands */
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* problem split + why aside (W4): copy left, visual right — no more half-empty columns */
.wrap.problem { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.2rem; align-items: center; }
.missed { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.3rem; box-shadow: 0 14px 30px -26px rgba(12,43,42,.5); }
.missed-head { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-bottom: .65rem; border-bottom: 1px dashed var(--line); }
.missed-row { display: flex; gap: .6rem; align-items: baseline; padding: .75rem 0; border-bottom: 1px dashed var(--line); font-size: .92rem; color: var(--ink-soft); }
.missed-row:last-child { border-bottom: 0; padding-bottom: .15rem; }
.missed-when { margin-left: auto; font-family: var(--mono); font-size: .68rem; color: var(--muted); white-space: nowrap; }
.wrap.why-wrap { display: grid; grid-template-columns: .95fr 1.05fr; gap: 3.2rem; align-items: start; }

/* steps */
.steps { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.4rem; box-shadow: 0 14px 30px -24px rgba(12,43,42,.5); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.steps li:hover { transform: translateY(-3px); box-shadow: 0 20px 38px -22px rgba(12,43,42,.55); border-color: rgba(255,107,53,.45); }
.band .steps li { background: var(--paper); }
.step-ic { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--signal-soft); color: var(--signal); margin-bottom: .8rem; }
.step-ic svg, .feat-ic svg { width: 22px; height: 22px; display: block; }
.steps .ch { display: block; font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; color: var(--muted); }
.steps h3 { font-size: 1.25rem; margin: .3rem 0 .5rem; }
.steps p { color: var(--ink-soft); }

/* briefing showcase (browser frame) */
.browser { margin-top: 2.4rem; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 50px 90px -40px rgba(12,43,42,.55); background: var(--surface); }
.browser-bar { background: var(--ink); padding: .8rem 1rem; display: flex; align-items: center; gap: .5rem; }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.25); }
.browser-bar span { font-family: var(--mono); font-size: .74rem; color: #9FB2AC; margin-left: .8rem; }
.browser-body { padding: 1.8rem 2rem; }
.bf-title { font-size: 1.4rem; margin-bottom: 1rem; }
.bf-sec { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--signal); margin: 1.3rem 0 .5rem; border-bottom: 1px solid var(--line); padding-bottom: .4rem; }
.bf-line { color: var(--ink-soft); padding: .25rem 0; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.bf-line b { color: var(--ink); }

/* features */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin-top: 2.4rem; }
.feature { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.feature:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -24px rgba(12,43,42,.5); border-color: rgba(255,107,53,.45); }
.feature:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -26px rgba(12,43,42,.45); }
.feat-ic { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--signal-soft); color: var(--signal); }
.feature h3 { font-size: 1.2rem; margin: .5rem 0 .4rem; }
.feature p { color: var(--ink-soft); }

/* why */
.why { display: grid; grid-template-columns: 1fr; gap: 1.9rem; margin-top: .4rem; }
.why-item { border-left: 3px solid var(--signal); padding: .2rem 0 .2rem 1.2rem; }
.why-item h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.why-item p { color: var(--ink-soft); }

/* pricing */
.price-card { background: var(--surface); border: 1px solid rgba(255,107,53,.35); border-radius: 18px; padding: 2rem; margin-top: 1.6rem; box-shadow: 0 0 0 5px var(--signal-soft), 0 30px 60px -36px rgba(12,43,42,.5); position: relative; overflow: hidden; }
.price-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--signal), var(--teal)); }
.price-flag { font-style: normal; font-family: var(--mono); font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #C2410C; background: var(--signal-soft); border-radius: 6px; padding: .18rem .5rem; vertical-align: middle; margin-left: .5rem; white-space: nowrap; }
/* the $0 → trial → founding rail (W5): the funnel the fine print described, made visible */
.path { list-style: none; display: flex; align-items: stretch; justify-content: center; gap: .9rem; margin: 2.1rem 0 0; padding: 0; flex-wrap: wrap; }
.path li:not(.path-arrow) { display: grid; gap: .12rem; text-align: center; align-content: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .7rem 1.05rem; min-width: 148px; }
.path-num { font-family: var(--mono); font-size: .6rem; letter-spacing: .18em; color: var(--signal); }
.path li b { font-family: var(--display); font-size: .98rem; color: var(--ink); }
.path-sub { font-family: var(--mono); font-size: .66rem; color: var(--muted); }
.path-arrow { color: var(--signal); font-family: var(--mono); align-self: center; }
.price-head { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.price-name { font-family: var(--display); font-weight: 600; font-size: 1.2rem; }
.price b { font-family: var(--display); font-size: 3rem; letter-spacing: -0.02em; }
.price span { color: var(--muted); }
.price-list { list-style: none; margin: 1.3rem 0; padding: 0; }
.price-list li { padding: .5rem 0 .5rem 1.7rem; position: relative; color: var(--ink-soft); }
.price-list li::before { content: "→"; position: absolute; left: 0; color: var(--signal); font-family: var(--mono); }
.price-note { font-family: var(--mono); font-size: .78rem; color: var(--muted); text-align: center; margin-top: 1rem; }

.founding { text-align: center; }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
summary { font-family: var(--display); font-weight: 600; font-size: 1.1rem; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--signal); font-family: var(--mono); display: inline-block; transition: transform .22s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--ink-soft); margin-top: .7rem; }

/* start */
.start { background: radial-gradient(900px 400px at 20% 0%, #14403A, var(--ink)); color: var(--paper); }
.start h2 { color: #fff; }
.start .lede { color: #C9D6D1; }
.start .eyebrow.light { color: var(--signal); }
.signup { display: flex; gap: .7rem; margin-top: 1.8rem; flex-wrap: wrap; }
.signup input { flex: 1 1 220px; font-family: var(--body); font-size: 1rem; padding: .85rem 1rem; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; }
.signup input::placeholder { color: #8FA29C; }
.signup input:focus { outline: 2px solid var(--signal); outline-offset: 1px; }
.form-msg { font-family: var(--mono); font-size: .85rem; color: var(--signal); margin-top: 1rem; min-height: 1.2em; }

/* footer */
.foot { background: var(--ink-2); color: #C9D6D1; }
.foot-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 2rem; padding-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.brand.small { color: #fff; font-size: 1rem; }
.foot-note { font-family: var(--mono); font-size: .78rem; color: #8FA29C; }

/* scroll reveal (W1: fail-safe) — hidden ONLY under html.anim, which the head script sets
   right before wiring the observer that un-hides. Without JS/IO/motion, nothing is hidden. */
.reveal { transition: opacity .6s ease, transform .6s ease; }
html.anim .reveal:not(.in) { opacity: 0; transform: translateY(22px); }

/* focus */
a:focus-visible, .btn:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; border-radius: 6px; }

/* responsive */
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.2rem; padding-top: 3rem; }
  .mock-card { transform: none; transition: none; }
  .stats, .steps, .grid, .why, .wrap.problem, .wrap.why-wrap { grid-template-columns: 1fr; }
  .wrap.problem, .wrap.why-wrap { gap: 2rem; }
  /* W7: label gets its own line; names flow tight beneath */
  .logos { gap: .9rem 1.2rem; }
  .logos-label { flex-basis: 100%; }
  /* W7: stats become slim number+label rows instead of three tall cards */
  .stats { gap: .8rem; padding-top: 2rem; padding-bottom: 2rem; }
  .stat { display: flex; align-items: baseline; gap: .9rem; text-align: left; padding: .95rem 1.2rem; }
  .stat b { font-size: 1.35rem; white-space: nowrap; }
  .path { flex-direction: column; align-items: center; }
  .path-arrow { transform: rotate(90deg); }
  .nav-links a:not(.btn) { display: none; }
  .wrap { padding: 3.8rem 1.25rem; }
  .browser-body { padding: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .feed-list li { animation: none; opacity: 1; transform: none; }
  .feed-head .dot, .btn, .feature, .steps li, summary::after { animation: none; transition: none; }
  .mock-card { transform: none; transition: none; }
}
