/* ==========================================================================
   3Brains Splash Page — Shared Styles
   Each splash sets --accent / --accent-deep / --accent-soft for its vertical.
   Default theme is the navy/paper 3Brains chassis.
   ========================================================================== */

:root {
  --paper:      #f5f3ec;
  --paper-deep: #ebe7dc;
  --ink:        #14213d;
  --ink-soft:   #36425c;
  --ink-faint:  #5a6478;
  --steel:      #3d6fa3;
  --steel-soft: #8aa8c9;
  --rule:       rgba(20, 33, 61, 0.13);

  /* Per-vertical accent — overridden by each splash page */
  --accent:      #6b4c8a;
  --accent-deep: #4a3360;
  --accent-soft: #c4b3d6;

  --display: 'Fraunces', Georgia, serif;
  --body: 'Hanken Grotesk', system-ui, sans-serif;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--body); font-size: 19px; line-height: 1.6;
  color: var(--ink); background: var(--paper);
  background-image:
    radial-gradient(circle at 15% -5%, rgba(61, 111, 163, 0.07), transparent 55%),
    radial-gradient(circle at 95% 105%, rgba(107, 76, 138, 0.06), transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  min-height: 100vh; overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100;
  opacity: 0.3; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.18 0 0 0 0 0.3 0 0 0 0.16 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* TOP NAV */
header.topnav {
  padding: 1.4rem 0; border-bottom: 1px solid var(--rule);
  background: rgba(245, 243, 236, 0.85); backdrop-filter: saturate(140%) blur(8px);
  position: sticky; top: 0; z-index: 50;
}
.topnav-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark {
  font-family: var(--display); font-weight: 900; font-size: 1.4rem;
  letter-spacing: -0.02em; color: var(--ink);
  display: inline-flex; align-items: baseline; gap: 0.05em;
}
.wordmark em { font-style: italic; font-weight: 400; color: var(--steel); }
.back-link {
  font-size: 1rem; color: var(--ink-soft); font-weight: 500;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.back-link::before { content: "←"; font-family: var(--display); font-style: italic; color: var(--steel); }
.back-link:hover { color: var(--ink); }

/* HERO */
.hero { padding-top: clamp(2.5rem, 7vw, 5rem); padding-bottom: clamp(2.5rem, 7vw, 4.5rem); position: relative; }
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 880px) {
  .hero-grid { grid-template-columns: 1.15fr 1fr; gap: clamp(3rem, 6vw, 5rem); }
}
.hero-eyebrow {
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.9rem;
  font-weight: 600; color: var(--accent); margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.85rem;
}
.hero-eyebrow::before { content: ""; display: inline-block; width: 32px; height: 2px; background: var(--accent); }
.hero h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.75rem, 6.5vw, 5rem); line-height: 1;
  letter-spacing: -0.035em; color: var(--ink); margin-bottom: 1.5rem;
}
.hero h1 em { font-style: italic; font-weight: 500; color: var(--accent); }
.hero .lede {
  font-size: clamp(1.2rem, 1.8vw, 1.4rem); line-height: 1.55;
  color: var(--ink-soft); max-width: 36rem; margin-bottom: 2rem;
}
.hero .lede strong { color: var(--ink); font-weight: 600; }
.hero-tagline {
  font-family: var(--display); font-style: italic; font-size: 1.1rem;
  color: var(--accent); margin-bottom: 2.25rem; letter-spacing: 0.01em;
}

/* BUTTONS */
.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 1rem 1.7rem; font-family: var(--body); font-size: 1.05rem;
  font-weight: 600; border-radius: 999px; text-decoration: none !important;
  border: 2px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
  line-height: 1;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover {
  background: var(--accent-deep); transform: translateY(-1px);
  box-shadow: 0 14px 28px -14px rgba(20, 33, 61, 0.55);
}
.btn-primary .arrow { font-family: var(--display); font-style: italic; font-weight: 400; transition: transform 180ms ease; }
.btn-primary:hover .arrow { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* PHONE MOCKUP */
.hero-phone { display: flex; justify-content: center; position: relative; }
.phone-frame {
  --phone-w: clamp(240px, 32vw, 320px);
  width: var(--phone-w); aspect-ratio: 9 / 19.5;
  background: #0d0d0f; border-radius: 11% / 5%; padding: 2.5%;
  box-shadow:
    0 30px 70px -25px rgba(20, 33, 61, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.6) inset,
    0 1.5px 0 0 rgba(255, 255, 255, 0.06) inset;
  position: relative;
}
.phone-frame::before {
  content: ""; position: absolute; top: 1.2%; left: 50%; transform: translateX(-50%);
  width: 32%; height: 2.6%; background: #0d0d0f; border-radius: 0 0 14px 14px; z-index: 2;
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 9% / 4.2%;
  overflow: hidden; position: relative; background: #1a0f24;
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }

/* SECTIONS */
.horizon { border: 0; height: 1px; background: var(--rule); }
section { padding-top: clamp(3.5rem, 8vw, 6rem); padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.section-head { display: flex; align-items: baseline; gap: 1.25rem; margin-bottom: 3rem; flex-wrap: wrap; }
.section-num {
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: 1.05rem; color: var(--accent); letter-spacing: 0.02em;
}
.section-head h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.85rem); letter-spacing: -0.02em;
  line-height: 1.05; color: var(--ink);
}
.section-head h2 em { font-style: italic; font-weight: 400; color: var(--ink-soft); }
.section-intro { max-width: 42rem; color: var(--ink-soft); font-size: 1.15rem; margin-bottom: 3rem; line-height: 1.6; }
.section-intro strong { color: var(--ink); font-weight: 600; }

/* HOW IT WORKS */
.steps { background: var(--paper-deep); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 2.25rem; }
@media (min-width: 760px) { .steps-grid { grid-template-columns: 1fr 1fr 1fr; gap: 2.5rem; } }
.step .step-num {
  font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: 3.5rem; line-height: 1; color: var(--accent); margin-bottom: 1rem; display: block;
}
.step h3 {
  font-family: var(--display); font-weight: 700; font-size: 1.55rem;
  letter-spacing: -0.015em; margin-bottom: 0.75rem; color: var(--ink);
}
.step p { color: var(--ink-soft); font-size: 1.08rem; line-height: 1.6; }

/* TOUR */
.tour-rows { display: flex; flex-direction: column; gap: clamp(3.5rem, 8vw, 6rem); }
.tour-row { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 820px) {
  .tour-row { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .tour-row.flip > .tour-image { order: 2; }
}
.tour-image { display: flex; justify-content: center; }
.tour-image .phone-frame { --phone-w: clamp(220px, 28vw, 290px); }
.tour-text .tour-eyebrow {
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.85rem;
  font-weight: 600; color: var(--accent); margin-bottom: 1rem;
}
.tour-text h3 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.7rem, 2.6vw, 2.2rem); letter-spacing: -0.018em;
  line-height: 1.1; margin-bottom: 1rem; color: var(--ink);
}
.tour-text h3 em { font-style: italic; font-weight: 400; color: var(--accent); }
.tour-text p { color: var(--ink-soft); font-size: 1.13rem; line-height: 1.6; max-width: 32rem; }
.tour-text p strong { color: var(--ink); font-weight: 600; }

/* INSTALL */
.install { background: var(--paper-deep); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.install-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .install-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.install-col h3 {
  font-family: var(--display); font-weight: 700; font-size: 1.6rem;
  margin-bottom: 1.4rem; letter-spacing: -0.015em;
  display: flex; align-items: baseline; gap: 0.7rem; color: var(--ink);
}
.install-col h3 .badge {
  font-family: var(--body); font-weight: 600; font-size: 0.8rem;
  color: var(--paper); background: var(--ink); padding: 0.25rem 0.7rem;
  border-radius: 999px; letter-spacing: 0.04em;
}
.install-col ol { list-style: none; counter-reset: ic; margin: 0; padding: 0; }
.install-col li {
  counter-increment: ic; padding: 1.05rem 0 1.05rem 3rem; position: relative;
  font-size: 1.1rem; line-height: 1.55; color: var(--ink);
  border-bottom: 1px solid var(--rule);
}
.install-col li:last-child { border-bottom: none; }
.install-col li::before {
  content: counter(ic); position: absolute; left: 0; top: 1.05rem;
  font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: 1.6rem; color: var(--accent); width: 2.2rem; line-height: 1;
}
.install-col li strong { font-weight: 600; }
.install-hint { font-size: 1rem; color: var(--ink-soft); font-style: italic; margin-top: 1.2rem; line-height: 1.55; }
.install-cta { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--rule); text-align: center; }
.install-cta p { font-size: 1.15rem; color: var(--ink-soft); margin-bottom: 1.25rem; }

/* FAQ */
.faq-list { border-top: 1px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-q {
  width: 100%; background: transparent; border: none; text-align: left;
  padding: 1.6rem 0; font-family: var(--display); font-weight: 700;
  font-size: clamp(1.2rem, 2vw, 1.4rem); color: var(--ink); cursor: pointer;
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1.5rem; line-height: 1.3; letter-spacing: -0.012em;
}
.faq-q::after {
  content: "+"; font-family: var(--display); font-weight: 400; color: var(--accent);
  font-size: 1.7rem; flex-shrink: 0; transition: transform 220ms ease; line-height: 1;
}
.faq-item[open] .faq-q::after { transform: rotate(45deg); }
.faq-a { padding: 0 0 1.6rem; color: var(--ink-soft); font-size: 1.1rem; line-height: 1.6; max-width: 56rem; }
.faq-a strong { color: var(--ink); font-weight: 600; }

/* OTHER APPS — DARK NAVY */
.other-apps { background: var(--ink); color: var(--paper); }
.other-apps .section-head h2 { color: var(--paper); }
.other-apps .section-head h2 em { color: var(--steel-soft); }
.other-apps .section-num { color: var(--steel-soft); }
.other-apps .section-intro { color: rgba(245, 243, 236, 0.92); }
.other-apps .section-intro strong { color: #fff; }
.other-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .other-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
@media (min-width: 1040px) { .other-grid { grid-template-columns: 1fr 1fr 1fr 1fr; } }
.other-tile {
  display: block; padding: 1.6rem 1.5rem;
  border: 1px solid rgba(245, 243, 236, 0.22); border-radius: 4px;
  background: rgba(245, 243, 236, 0.04);
  transition: background 180ms ease, transform 180ms ease, border-color 180ms ease;
  text-decoration: none !important; color: var(--paper);
}
.other-tile:hover {
  background: rgba(245, 243, 236, 0.10);
  border-color: rgba(245, 243, 236, 0.4); transform: translateY(-2px);
}
.other-tile h4 {
  font-family: var(--display); font-weight: 700; font-size: 1.3rem;
  margin-bottom: 0.45rem; letter-spacing: -0.012em; color: #fff;
}
.other-tile p { font-size: 1rem; color: rgba(245, 243, 236, 0.9); line-height: 1.5; margin-bottom: 0.95rem; }
.other-tile .other-foot {
  font-size: 0.88rem; color: var(--steel-soft); font-weight: 500;
  display: flex; align-items: center; justify-content: space-between;
}
.other-tile .other-foot .arrow { font-family: var(--display); font-style: italic; transition: transform 180ms ease; }
.other-tile:hover .other-foot .arrow { transform: translateX(3px); }

/* FOOTER */
footer.sitefoot { padding: 2.5rem 0; border-top: 1px solid var(--rule); font-size: 1rem; color: var(--ink-faint); }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.foot-row .wordmark { font-size: 1.15rem; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(14px); animation: reveal 800ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }
.r1 { animation-delay: 0ms; } .r2 { animation-delay: 130ms; }
.r3 { animation-delay: 240ms; } .r4 { animation-delay: 340ms; }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; opacity: 1; transform: none; } html { scroll-behavior: auto; } }
