/* Shoulderbird website. Tokens match the app's DesignSystem (SPEC 8.0). */
:root {
  --bg: #0f1020;
  --bg-2: #15172e;
  --card: #1b1e38;
  --card-raised: #232745;
  --stroke: rgba(255, 255, 255, 0.07);
  --coral: #ff7a59;
  --coral-press: #f0663f;
  --gold: #ffc857;
  --sage: #7fc8a9;
  --lavender: #a7a9c4;
  --text: #f4f1ec;
  --radius: 20px;
  --max: 1160px;
  --gutter: 24px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 60%, var(--bg) 100%);
  color: var(--text);
  font: 400 17px/1.6 "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--lavender); }
.eyebrow { color: var(--gold); font-weight: 700; font-size: 15px; letter-spacing: 0.02em; margin-bottom: 10px; }
.coral { color: var(--coral); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(15, 16, 32, 0.55);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--stroke);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 28px; margin: 0 auto; }
.nav-links a { color: var(--lavender); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-coral { background: var(--coral); color: #1a0f0b; }
.btn-coral:hover { background: var(--coral-press); }
.btn-dark { background: #000; color: #fff; border-color: rgba(255, 255, 255, 0.18); }
.btn-dark:hover { border-color: rgba(255, 255, 255, 0.4); }
.btn-ghost { color: var(--text); border-color: rgba(255, 255, 255, 0.22); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.45); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; margin-top: -68px; padding: 68px 0 0;
  background:
    radial-gradient(60% 70% at 78% 40%, rgba(46, 56, 140, 0.55), transparent 70%),
    linear-gradient(180deg, #14184a 0%, #101236 55%, var(--bg) 100%);
}
.hero .wrap {
  min-height: min(86vh, 780px); display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 24px;
  align-items: center; padding-top: 32px; padding-bottom: 56px;
}
.hero-copy { max-width: 620px; }

/* The mascot perches beside the phone; its night sky fades into the hero's. */
.hero-stage { position: relative; justify-self: center; width: 280px; margin-right: 190px; }
.hero-stage .glow {
  position: absolute; inset: 10% -30% 10% -30%; z-index: -2; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 122, 89, 0.22), rgba(255, 200, 87, 0.06), transparent);
  filter: blur(30px);
}
.mascot {
  position: absolute; z-index: -1; width: 270px; height: auto; top: 8%; left: 76%;
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
}
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 200, 87, 0.45); color: var(--gold); font-weight: 700; font-size: 14px;
  background: rgba(255, 200, 87, 0.06);
}
.hero h1 { font-size: clamp(40px, 5vw, 68px); margin: 22px 0 20px; }
.hero .lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--lavender); max-width: 520px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero .fine { margin-top: 18px; font-size: 14px; color: var(--lavender); }

/* ---------- Apps strip ---------- */
.apps { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 0; color: var(--lavender); font-size: 18px; padding: 8px var(--gutter) 24px; }
.apps .lead { margin-right: 12px; }
.apps span { color: #c9cae0; white-space: nowrap; }
.apps i { font-style: normal; opacity: 0.5; margin: 0 10px; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2, .split h2 { font-size: clamp(32px, 4vw, 46px); }
.section-head p { margin-top: 14px; color: var(--lavender); }

.card {
  background: var(--card); border: 1px solid var(--stroke); border-radius: var(--radius);
}

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.step-art { position: relative; aspect-ratio: 1.45; border-radius: 14px; overflow: hidden; margin-bottom: 14px; background: var(--card); }
.step-art img { width: 100%; height: 100%; object-fit: cover; }
.step-num {
  position: absolute; top: 10px; left: 14px; font-size: 44px; font-weight: 900; color: var(--coral);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}
.step h3 { font-size: 22px; }
.step p { color: var(--lavender); }

/* Split layouts */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .copy p { color: var(--lavender); margin-top: 16px; font-size: 18px; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: center; font-size: 17px; }
.checks li::before {
  content: ""; width: 26px; height: 26px; flex: none; border-radius: 50%;
  background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f1020' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.tones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tone { padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; border: 1px solid var(--stroke); background: var(--card); }

/* Phones: the flat one matches the 3D model's proportions (phone-shape.js). */
.phone {
  background: #05050c; border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 15.5cqw; padding: 3.8cqw;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9), 0 0 60px -20px rgba(255, 122, 89, 0.3);
}
.phone img { width: 100%; height: auto; border-radius: 11.7cqw; }
.phone.cut { border-radius: 15.5cqw 15.5cqw 0 0; border-bottom: 0; padding-bottom: 0; overflow: hidden; }
.phone.cut img { border-radius: 11.7cqw 11.7cqw 0 0; }

.spin-phone { position: relative; container-type: inline-size; }
.shot { container-type: inline-size; }
.spin-phone .defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.spin-phone .gl { position: absolute; top: 50%; translate: 0 -50%; pointer-events: none; opacity: 0; }
.spin-phone.is-3d .gl { opacity: 1; }
.spin-phone.is-3d .flat { opacity: 0; }

/* Feature cards: copy on top, the app's real screen rising from the bottom edge. */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.feature {
  display: grid; grid-template-columns: 1fr 0.85fr; gap: 20px; align-items: end;
  padding: 32px 32px 0; overflow: hidden; min-height: 400px;
  background: linear-gradient(160deg, var(--card-raised), var(--card) 60%);
}
.feature-copy { align-self: center; padding-bottom: 32px; }
.feature h3 { font-size: 26px; }
.feature p { color: var(--lavender); margin-top: 10px; }
.feature .phone.cut { height: 340px; }

/* Privacy */
.privacy-card {
  padding: 36px; display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center;
  background: linear-gradient(135deg, rgba(127, 200, 169, 0.12), rgba(27, 30, 56, 0.9) 55%);
  border-color: rgba(127, 200, 169, 0.25);
}
.privacy-card h2 { font-size: clamp(28px, 3.2vw, 38px); }
.privacy-card p { color: var(--lavender); margin-top: 10px; max-width: 560px; }
.shield { width: 92px; height: 92px; color: var(--sage); }
.badges { display: grid; gap: 10px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(127, 200, 169, 0.5); color: var(--sage); font-weight: 700; font-size: 14px; white-space: nowrap;
}

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
details { padding: 0 22px; }
summary {
  list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 17px;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--lavender); transition: transform 0.2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--lavender); padding-bottom: 18px; }

/* Final CTA */
.final {
  position: relative; overflow: hidden; isolation: isolate; text-align: left;
  padding: 72px 56px; border-radius: 28px; border: 1px solid var(--stroke);
}
.final > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% 45%; z-index: -2; }
.final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12, 14, 47, 0.92) 0%, rgba(12, 14, 47, 0.7) 50%, rgba(12, 14, 47, 0.1) 100%); }
.final h2 { font-size: clamp(30px, 4vw, 46px); }
.final p { color: #d6d7e8; margin: 12px 0 28px; font-size: 18px; }
.final .inner { max-width: 560px; }

/* Footer */
footer { padding: 40px 0 56px; color: var(--lavender); font-size: 15px; }
footer .wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
footer nav { display: flex; gap: 24px; margin-left: auto; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

/* ---------- Legal / support pages ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 56px var(--gutter) 40px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); }
.doc .updated { color: var(--lavender); margin: 10px 0 32px; }
.doc h2 { font-size: 24px; margin: 40px 0 12px; }
.doc h3 { font-size: 18px; margin: 24px 0 8px; }
.doc p, .doc li { color: #d6d7e8; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin: 10px 0; }
.doc li { margin: 6px 0; }
.doc a { color: var(--coral); }
.doc .summary { padding: 22px 24px; margin-bottom: 8px; }
.doc .summary li { color: var(--text); }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--stroke); vertical-align: top; color: #d6d7e8; }
.doc th { color: var(--text); }
.table-scroll { overflow-x: auto; }
.contact { padding: 24px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin: 20px 0 8px; }
.contact img { width: 56px; height: 56px; border-radius: 14px; }
.contact .grow { flex: 1; min-width: 200px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav .wrap { justify-content: space-between; }
  .split { grid-template-columns: 1fr; }
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; gap: 48px; }
  .hero-copy { max-width: 640px; }
  .features { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; }
  .split { gap: 40px; }
  .split.reverse .copy { order: -1; }
  .steps { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .faq { grid-template-columns: 1fr; }
  .privacy-card { grid-template-columns: 1fr; padding: 28px; gap: 20px; }
  .badges { display: flex; flex-wrap: wrap; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  section { padding: 52px 0; }
  .hero { padding-top: 68px; }
  .hero .wrap { padding-top: 24px; padding-bottom: 40px; }
  .hero-stage { width: 210px; margin-right: 130px; }
  .mascot { width: 190px; left: 74%; }
  .feature { grid-template-columns: 1fr; padding: 24px 24px 0; min-height: 0; }
  .feature-copy { padding-bottom: 0; }
  .shot { width: min(260px, 80%); justify-self: center; }
  .feature .phone.cut { height: 280px; }
  .cta-row .btn { flex: 1 1 100%; }
  .apps { font-size: 15px; }
  .apps .lead { flex-basis: 100%; text-align: center; margin: 0 0 4px; }
  .apps i { margin: 0 6px; }
  .final { padding: 44px 20px; text-align: left; }
  .final::before { background: linear-gradient(180deg, rgba(12, 14, 47, 0.55), rgba(12, 14, 47, 0.92) 60%); }
  .final .btn { width: 100%; }
  footer nav { margin-left: 0; }
  .doc { padding-top: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
@media (max-width: 720px) { .br-wide { display: none; } }
.doc a.btn-coral { color: #1a0f0b; text-decoration: none; }
