/* Brumelle home page — same palette and typeface as the app (StoryTeller kit, Dark Blue) */
@font-face { font-family: "Rubik"; src: url("/fonts/Rubik-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("/fonts/Rubik-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("/fonts/Rubik-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("/fonts/Rubik-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0A2947;
  --surface: #1D3A55;
  --raised: #2D4761;
  --primary: #148FE3;
  --accent: #EFA803;
  --text: #FFFFFF;
  --muted: #9DB0C3;
  --radius: 22px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: "Rubik", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 14px; }
h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; }
p { margin: 0 0 14px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.eyebrow {
  color: var(--accent); font-weight: 600; text-transform: uppercase;
  letter-spacing: 1.4px; font-size: 13px; margin-bottom: 10px;
}

/* ── Top bar ─────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(10, 41, 71, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar-brand img { height: 40px; width: auto; }
.topbar-nav { display: flex; gap: 22px; margin-left: auto; }
.topbar-nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.topbar-nav a:hover { color: var(--text); }

/* ── Buttons ─────────────────────────────────────────────────────── */
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; color: #fff; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.35); border-radius: 14px;
  padding: 10px 20px 10px 16px; font-weight: 600; font-size: 20px; line-height: 1.1;
  transition: transform .15s ease, background .15s ease;
}
.store-btn small { display: block; font-size: 11px; font-weight: 500; opacity: .85; }
.store-btn:hover { transform: translateY(-1px); background: #111; }
.store-btn__icon { font-size: 22px; }
.store-btn--small { font-size: 14px; padding: 8px 14px; border-radius: 12px; margin-left: 8px; }
.store-btn--small .store-btn__icon { font-size: 15px; }
/* Official Apple badge: never altered, only sized */
.badge-link { display: inline-block; line-height: 0; transition: transform .15s ease; }
.badge-link img { height: 54px; width: auto; }
.badge-link:hover { transform: translateY(-1px); }
.badge-link--small { margin-left: 8px; }
.badge-link--small img { height: 40px; }
.pricing + .center .badge-link { margin-top: 4px; }
.ghost-btn {
  display: inline-flex; align-items: center; color: var(--text); text-decoration: none; font-weight: 600;
  padding: 14px 22px; border-radius: 999px; background: rgba(255,255,255,0.12);
}
.ghost-btn:hover { background: rgba(255,255,255,0.2); }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hero__shade { position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,41,71,0.92) 0%, rgba(10,41,71,0.6) 45%, rgba(10,41,71,0.05) 75%),
              linear-gradient(0deg, var(--bg) 0%, rgba(10,41,71,0) 35%); }
.hero__content { position: relative; max-width: var(--max); width: 100%; margin: 0 auto; padding: 120px clamp(16px, 4vw, 40px) 70px; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 700; max-width: 760px; }
.hero h1 span { color: var(--accent); }
.lead { font-size: clamp(17px, 2vw, 20px); max-width: 600px; color: #E3ECF5; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 26px 0 22px; }
.badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.badges li { background: rgba(29,58,85,0.85); padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; }

/* ── Sections ────────────────────────────────────────────────────── */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(60px, 9vw, 110px) clamp(16px, 4vw, 40px) 0; }
.story { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.story__text p { color: #DCE6F0; font-size: 17px; }
.story__img img, .step img { border-radius: var(--radius); box-shadow: 0 30px 60px rgba(0,0,0,0.35); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.step { background: var(--surface); border-radius: var(--radius); padding: 14px 14px 22px; position: relative; }
.step img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; box-shadow: none; border-radius: 16px; }
.step__num {
  position: absolute; top: 24px; left: 24px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: var(--bg); font-weight: 700;
}
.step h3 { margin: 18px 8px 8px; }
.step p { margin: 0 8px; color: var(--muted); }

.showcase { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 34px; margin-bottom: 14px; color: #DCE6F0; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; font-size: 20px; }
.phones { position: relative; height: 560px; }
.phone { position: absolute; width: 230px; border-radius: 34px; border: 8px solid #10161f; box-shadow: 0 30px 70px rgba(0,0,0,0.5); }
.phone--center { left: 50%; transform: translateX(-50%); top: 0; z-index: 2; width: 250px; }
.phone--left { left: 0; top: 70px; transform: rotate(-7deg); opacity: .9; }
.phone--right { right: 0; top: 70px; transform: rotate(7deg); opacity: .9; }

.covers { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 30px; }
.covers img { border-radius: 16px; aspect-ratio: 2 / 3; object-fit: cover; width: 100%; transition: transform .3s ease; box-shadow: 0 16px 34px rgba(0,0,0,.35); }
.covers img:hover { transform: translateY(-6px) rotate(-1deg); }

.science { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 36px 0 24px; }
.fact { background: var(--surface); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.fact__number { font-size: clamp(30px, 4vw, 42px); font-weight: 700; color: var(--accent); margin-bottom: 6px; line-height: 1.1; }
.fact p { color: #DCE6F0; }
.source { margin-top: auto; font-size: 13px; color: var(--muted); }
.source:hover { color: var(--text); }

.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 34px; }
.trust__item { background: var(--surface); border-radius: var(--radius); padding: 24px; }
.trust__item span { font-size: 30px; display: block; margin-bottom: 12px; }
.trust__item h3 { font-size: 18px; }
.trust__item p { color: var(--muted); font-size: 15px; margin: 0; }

.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; gap: 22px; margin: 34px 0 30px; }
.plan { background: var(--surface); border-radius: var(--radius); padding: 28px; position: relative; }
.plan--premium { background: linear-gradient(160deg, var(--raised), var(--surface)); border: 2px solid var(--accent); }
.plan__tag { position: absolute; top: -13px; left: 28px; background: var(--accent); color: var(--bg); font-weight: 700; font-size: 12px; padding: 4px 12px; border-radius: 999px; margin: 0; }
.plan__price { font-size: 36px; font-weight: 700; margin-bottom: 10px; }
.plan__price span { font-size: 16px; color: var(--muted); font-weight: 500; }
.plan ul { padding-left: 20px; margin: 0; color: #DCE6F0; }

.faq { max-width: 820px; padding-bottom: 20px; }
.faq details { background: var(--surface); border-radius: 16px; padding: 0 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 17px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: #DCE6F0; padding-bottom: 18px; margin: 0; }

.site-footer { text-align: center; padding: 80px 20px 50px; color: var(--muted); }
.site-footer img { margin: 0 auto 14px; width: 110px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin: 14px 0; }
.site-footer nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.site-footer nav a:hover { color: var(--accent); }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .topbar-nav { display: none; }
  .badge-link--small { margin-left: auto; }
  .story, .showcase { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .science { grid-template-columns: 1fr; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .covers { grid-template-columns: repeat(3, 1fr); }
  .phones { height: 480px; }
  .phone { width: 180px; }
  .phone--center { width: 200px; }
  .hero__shade { background: linear-gradient(0deg, var(--bg) 8%, rgba(10,41,71,0.75) 55%, rgba(10,41,71,0.2) 100%); }
}
@media (max-width: 560px) {
  .trust, .pricing { grid-template-columns: 1fr; }
  .phones { height: 400px; }
  .phone { width: 150px; border-width: 6px; border-radius: 26px; }
  .phone--center { width: 170px; }
  .hero__content { padding-top: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
