/* ============================================================
   Roos Research — shared marketing-site styles
   Dark, on-brand (sky→green petal gradient). Used by every page
   in landing/. Self-contained; no external fonts or assets.
   ============================================================ */
:root {
  --bg: #0b0e14;
  --bg-soft: #0e131c;
  --surface: #141922;
  --surface-2: #1a212e;
  --text: #e6edf3;
  --muted: #8b98a9;
  --muted-2: #6b7889;
  --border: #263041;
  --border-soft: #1c2431;
  --sky: #0ea5e9;
  --green: #22c55e;
  --red: #ef4444;
  --grad: linear-gradient(135deg, #0ea5e9, #22c55e);
  --maxw: 72rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.95rem; font-weight: 600;
  padding: 0.7rem 1.2rem; border-radius: 0.7rem;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease, border-color 120ms ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad); color: #04121a;
  box-shadow: 0 6px 20px rgba(14,165,233,0.28);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(14,165,233,0.36); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--sky); color: #fff; }
.btn-sm { padding: 0.5rem 0.95rem; font-size: 0.9rem; }

/* ---------- Header / nav ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(11,14,20,0.72);
  border-bottom: 1px solid var(--border-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.brand-lockup { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-lockup .logo { width: 30px; height: 30px; }
.brand-lockup .name { font-weight: 400; letter-spacing: -0.01em; font-size: 1.05rem; }
.brand-lockup .name b { font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a.link { color: var(--muted); text-decoration: none; font-size: 0.92rem; transition: color 120ms; }
.nav-links a.link:hover { color: var(--text); }
.nav-links a.link.active { color: var(--text); }

/* JS-free mobile menu (details/summary disclosure) */
.menu { display: none; position: relative; }
.menu > summary {
  list-style: none; cursor: pointer; width: 2.4rem; height: 2.4rem;
  display: grid; place-items: center; border: 1px solid var(--border);
  border-radius: 0.6rem; background: var(--surface); color: var(--text);
}
.menu > summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; right: 0; top: 3rem; min-width: 12rem;
  display: flex; flex-direction: column; gap: 0.15rem; padding: 0.5rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 0.8rem;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.8);
}
.menu-panel a {
  text-decoration: none; color: var(--text); font-size: 0.95rem;
  padding: 0.55rem 0.7rem; border-radius: 0.5rem;
}
.menu-panel a:hover { background: var(--surface-2); }
@media (max-width: 760px) {
  .nav-links a.link { display: none; }
  .menu { display: block; }
}

/* ---------- Generic section scaffolding ---------- */
section { padding: 4.5rem 0; }
.section-head { max-width: 40rem; margin: 0 auto 3rem; text-align: center; }
.eyebrow { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sky); font-weight: 650; margin-bottom: 0.8rem; }
h2 { margin: 0 0 0.8rem; font-size: clamp(1.7rem, 3.6vw, 2.3rem); letter-spacing: -0.02em; font-weight: 660; line-height: 1.15; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Motion ---------- */
.fade-up { animation: fadeUp 720ms cubic-bezier(0.2,0.8,0.2,1) both; }
.d1 { animation-delay: 60ms; } .d2 { animation-delay: 140ms; } .d3 { animation-delay: 220ms; } .d4 { animation-delay: 300ms; }
.d5 { animation-delay: 380ms; } .d6 { animation-delay: 460ms; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  70% { box-shadow: 0 0 0 7px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
@media (prefers-reduced-motion: reduce) {
  .fade-up, .dot, .logo, .petal-unfold .petal { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   HOME PAGE
   ============================================================ */
.hero {
  position: relative; padding: 5rem 0 4rem;
  background:
    radial-gradient(70rem 50rem at 80% -10%, rgba(14,165,233,0.10), transparent 60%),
    radial-gradient(60rem 50rem at 0% 10%, rgba(34,197,94,0.07), transparent 55%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--border); background: var(--surface);
  border-radius: 999px; padding: 0.35rem 0.8rem; margin-bottom: 1.4rem;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 2.4s infinite; }
h1 {
  margin: 0 0 1.1rem; font-weight: 680;
  font-size: clamp(2.3rem, 5.4vw, 3.6rem); line-height: 1.05; letter-spacing: -0.025em;
}
.lede { color: var(--muted); font-size: clamp(1.05rem, 2.4vw, 1.22rem); margin: 0 0 2rem; max-width: 34rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.cta-note { color: var(--muted-2); font-size: 0.85rem; margin-top: 1rem; }
.cta-note strong { color: var(--muted); font-weight: 600; }

/* Product mockup */
.mock {
  position: relative; border-radius: 1rem; border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.02) inset;
  overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 0.45rem; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--border-soft); background: rgba(255,255,255,0.015); }
.mock-bar .tl { width: 10px; height: 10px; border-radius: 50%; background: #2a3444; }
.mock-bar .addr { margin-left: 0.6rem; font-size: 0.72rem; color: var(--muted-2); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.mock-body { padding: 1rem; display: grid; gap: 0.85rem; }
.quote-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.quote-row .tkr { font-weight: 680; font-size: 1.15rem; letter-spacing: -0.01em; }
.quote-row .co { color: var(--muted-2); font-size: 0.8rem; margin-left: 0.5rem; font-weight: 400; }
.quote-row .px { font-weight: 680; font-size: 1.2rem; }
.quote-row .chg { color: var(--green); font-size: 0.85rem; font-weight: 600; }
.chart-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: 0.7rem; padding: 0.6rem 0.6rem 0.2rem; }
.chart-card svg { display: block; width: 100%; height: auto; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.55rem; }
.tile { background: var(--surface); border: 1px solid var(--border-soft); border-radius: 0.6rem; padding: 0.55rem 0.65rem; }
.tile .k { color: var(--muted-2); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.05em; }
.tile .v { font-weight: 650; font-size: 0.92rem; margin-top: 0.15rem; }
.tile .v.pos { color: var(--green); } .tile .v.neg { color: var(--red); }
.ai-card { background: linear-gradient(180deg, rgba(14,165,233,0.06), rgba(34,197,94,0.04)); border: 1px solid var(--border-soft); border-radius: 0.7rem; padding: 0.75rem 0.8rem; }
.ai-head { display: flex; align-items: center; gap: 0.45rem; margin-bottom: 0.5rem; }
.ai-head .logo { width: 16px; height: 16px; }
.ai-head .t { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
.ai-line { height: 0.5rem; border-radius: 999px; background: linear-gradient(90deg, rgba(230,237,243,0.16), rgba(230,237,243,0.05)); margin-bottom: 0.4rem; }
.ai-line.w1 { width: 100%; } .ai-line.w2 { width: 92%; } .ai-line.w3 { width: 74%; }
.ai-tag { display: inline-block; margin-top: 0.35rem; font-size: 0.66rem; color: var(--muted-2); border: 1px solid var(--border); border-radius: 999px; padding: 0.15rem 0.55rem; }

/* Two halves */
.halves { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 820px) { .halves { grid-template-columns: 1fr; } }
.half {
  position: relative; border: 1px solid var(--border); border-radius: 1rem; padding: 1.8rem;
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
}
.half .badge { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; font-weight: 600; }
.half h3 { margin: 0 0 0.5rem; font-size: 1.25rem; letter-spacing: -0.01em; }
.half p { color: var(--muted); margin: 0 0 1.1rem; font-size: 0.97rem; }
.chiprow { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip { font-size: 0.78rem; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 0.28rem 0.7rem; }
.icon-badge { width: 34px; height: 34px; border-radius: 0.6rem; display: grid; place-items: center; }
.icon-badge.sky { background: rgba(14,165,233,0.14); color: var(--sky); }
.icon-badge.grn { background: rgba(34,197,94,0.14); color: var(--green); }
.join { text-align: center; color: var(--muted); margin-top: 1.5rem; font-size: 0.95rem; }
.join .amp { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 860px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.fcard { border: 1px solid var(--border); border-radius: 0.9rem; padding: 1.4rem; background: var(--surface); transition: border-color 140ms, transform 140ms; }
.fcard:hover { border-color: var(--border); transform: translateY(-2px); }
.fcard .fico { width: 38px; height: 38px; border-radius: 0.6rem; display: grid; place-items: center; background: rgba(14,165,233,0.10); color: var(--sky); margin-bottom: 0.9rem; }
.fcard h3 { margin: 0 0 0.4rem; font-size: 1.05rem; letter-spacing: -0.01em; }
.fcard p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 0.5rem; }
.step .num {
  width: 2.4rem; height: 2.4rem; border-radius: 0.7rem; display: grid; place-items: center;
  font-weight: 700; font-size: 1.05rem; margin-bottom: 1rem;
  background: var(--surface); border: 1px solid var(--border); color: var(--sky);
}
.step h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* CTA band */
.cta-band { padding: 4rem 0 4.5rem; }
.cta-inner {
  position: relative; border: 1px solid var(--border); border-radius: 1.3rem; padding: 3rem 2rem; text-align: center; overflow: hidden;
  background:
    radial-gradient(40rem 20rem at 50% -30%, rgba(14,165,233,0.16), transparent 60%),
    linear-gradient(180deg, var(--surface), var(--bg-soft));
}
.cta-inner h2 { margin-bottom: 0.6rem; }
.cta-inner p { color: var(--muted); margin: 0 auto 1.8rem; max-width: 34rem; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border-soft); padding: 2.5rem 0 3rem; }
.foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.foot .brand-lockup .name { font-size: 1rem; }
.foot .disc { color: var(--muted-2); font-size: 0.8rem; max-width: 30rem; margin-top: 0.7rem; }
.foot-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.foot-links a:hover { color: var(--text); }
.foot-legal { margin-top: 2rem; color: var(--muted-2); font-size: 0.78rem; }

/* ============================================================
   STORY PAGE  ("The Roos")
   ============================================================ */
.story-hero {
  position: relative; padding: 5rem 0 3rem; text-align: center;
  background:
    radial-gradient(60rem 40rem at 50% -20%, rgba(14,165,233,0.12), transparent 60%),
    radial-gradient(50rem 40rem at 50% 120%, rgba(34,197,94,0.08), transparent 60%);
}
.story-hero .kicker { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sky); font-weight: 650; }
.story-hero h1 { margin: 1rem auto 1.1rem; max-width: 20ch; }
.story-hero .lede { margin: 0 auto; text-align: center; }
.story-hero .lede { max-width: 40rem; }

/* Petal diagram — logo as the three layers of analysis */
.petal-wrap { display: flex; justify-content: center; margin: 3rem 0 1rem; }
.petal-unfold .petal { transform-box: fill-box; transform-origin: 50% 100%; }
.petal-unfold .p1 { animation: bloom 900ms cubic-bezier(0.2,0.8,0.2,1) 120ms both; }
.petal-unfold .p2 { animation: bloom 900ms cubic-bezier(0.2,0.8,0.2,1) 300ms both; }
.petal-unfold .p3 { animation: bloom 900ms cubic-bezier(0.2,0.8,0.2,1) 480ms both; }
@keyframes bloom { from { opacity: 0; transform: scale(0.4) rotate(-6deg); } to { opacity: 1; transform: none; } }
.petal-label { font-size: 0.82rem; fill: var(--muted); font-weight: 600; letter-spacing: 0.02em; }
.petal-caption { text-align: center; color: var(--muted); max-width: 34rem; margin: 0 auto; font-size: 0.98rem; }

/* Prose story sections */
.story-body { max-width: 44rem; margin: 0 auto; }
.story-block { padding: 3rem 0; border-top: 1px solid var(--border-soft); }
.story-block:first-child { border-top: none; }
.story-block h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 1rem; }
.story-block p { color: var(--muted); font-size: 1.05rem; margin: 0 0 1.1rem; }
.story-block p:last-child { margin-bottom: 0; }
.story-block strong { color: var(--text); font-weight: 620; }
.story-block .lang { color: var(--text); font-style: italic; }
.pull {
  border-left: 3px solid transparent; border-image: var(--grad) 1;
  padding: 0.4rem 0 0.4rem 1.4rem; margin: 1.6rem 0;
  font-size: 1.2rem; line-height: 1.4; color: var(--text); font-weight: 500;
}

/* Layer list (technical → fundamental → sentiment) */
.layers { display: grid; gap: 0.8rem; margin: 1.6rem 0 0; }
.layer { display: flex; gap: 1rem; align-items: flex-start; border: 1px solid var(--border); border-radius: 0.8rem; padding: 1rem 1.1rem; background: var(--surface); }
.layer .lnum { flex: none; width: 1.9rem; height: 1.9rem; border-radius: 0.5rem; display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; background: rgba(14,165,233,0.12); color: var(--sky); }
.layer h3 { margin: 0 0 0.2rem; font-size: 1rem; }
.layer p { margin: 0; font-size: 0.92rem; color: var(--muted); }

/* ============================================================
   LEGAL & PRICING PAGES  (terms, privacy, refunds, pricing)
   Reuse .story-hero / .story-body / .story-block; add the bits
   those pages need — lists, inline links, tables, a meta line.
   ============================================================ */
.legal-updated { text-align: center; color: var(--muted-2); font-size: 0.85rem; margin-top: 1.4rem; }
.story-block h3 { font-size: 1.1rem; margin: 1.6rem 0 0.6rem; }
.story-block ul, .story-block ol { color: var(--muted); font-size: 1.05rem; margin: 0 0 1.1rem; padding-left: 1.3rem; }
.story-block li { margin: 0 0 0.5rem; }
.story-block li:last-child { margin-bottom: 0; }
.story-block a { color: var(--sky); text-decoration: none; }
.story-block a:hover { text-decoration: underline; }

/* Simple, responsive definition-style table for the pricing/plan breakdown */
.legal-table-wrap { overflow-x: auto; margin: 1.4rem 0; border: 1px solid var(--border); border-radius: 0.8rem; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 34rem; }
.legal-table th, .legal-table td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--border-soft); }
.legal-table thead th { color: var(--text); font-weight: 620; background: var(--surface); }
.legal-table tbody tr:last-child td { border-bottom: none; }
.legal-table td { color: var(--muted); }
.legal-table td:first-child { color: var(--text); font-weight: 600; }

/* Footer legal-link row */
.foot-legal-links { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-top: 1.4rem; }
.foot-legal-links a { color: var(--muted-2); text-decoration: none; font-size: 0.82rem; }
.foot-legal-links a:hover { color: var(--text); }

/* ===================== POWERED BY ===================== */
.powered { padding: 2.8rem 0; background: var(--bg-soft); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.powered-label { text-align: center; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); font-weight: 650; margin: 0 0 1.5rem; }
.powered-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 1.4rem 3rem; }
.powered-row li { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; }
.powered-row b { font-size: 1.05rem; color: var(--text); font-weight: 700; letter-spacing: -0.01em; }
.powered-row span { font-size: 0.72rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.05em; }
