/* BayBound site. Dusk hero and footer; paper body. Palette matches the app's Bay Dusk theme. */
:root {
  --night: #0a1428;
  --dusk-1: #0f2342;
  --dusk-2: #2a2f78;
  --violet: #6a5bd0;
  --violet-ink: #4b45c6;
  --amber: #f7a852;
  --amber-ink: #b8661b;
  --ink: #161a3a;
  --muted: #545a7a;
  --faint: #8a8fa8;
  --paper: #f7f6fc;
  --card: #ffffff;
  --line: #e4e2f0;
  --shadow: 0 1px 2px rgba(22, 26, 58, .06), 0 12px 32px rgba(22, 26, 58, .08);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--violet-ink); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; text-wrap: balance; margin: 0; }
p { margin: 0; }
.eyebrow { font: 600 .78rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--amber-ink); }

/* Header */
.top { position: absolute; inset: 0 0 auto 0; z-index: 5; padding-top: env(safe-area-inset-top, 0px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 700 1.2rem/1 var(--rounded); letter-spacing: -.01em; }
.brand svg { height: 34px; width: auto; }
.top nav { display: flex; gap: 22px; }
.top nav a { color: rgba(255,255,255,.78); text-decoration: none; font-size: .95rem; font-weight: 500; }
.top nav a:hover { color: #fff; }
@media (max-width: 560px) { .top nav a.opt { display: none; } }

/* The mark (inline SVG) */
.mark .bowls path { fill: #fff; }
.mark .rail .r1, .mark .rail .r3 { stroke: var(--amber); }
.mark .rail .r2 { stroke: #fff; }
.mark.draw .rail path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .55s cubic-bezier(.5,0,.3,1) forwards; }
.mark.draw .rail .r2 { animation-delay: .5s; animation-duration: .3s; }
.mark.draw .rail .r3 { animation-delay: .75s; }
.mark.draw .bowls { opacity: 0; animation: fade .6s ease-out .6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .mark.draw .rail path, .mark.draw .bowls { animation: none; stroke-dashoffset: 0; opacity: 1; }
}

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(60% 55% at 92% 100%, rgba(255,154,107,.45), rgba(196,106,168,.14) 55%, transparent 80%),
    linear-gradient(165deg, var(--night) 0%, var(--dusk-1) 30%, var(--dusk-2) 68%, var(--violet) 100%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; padding-block: 128px 0; }
.hero-copy { display: grid; gap: 22px; align-content: center; padding-bottom: 88px; }
.hero-copy .mark { height: 120px; width: auto; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); line-height: 1.02; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .lede { font-size: 1.2rem; color: rgba(255,255,255,.8); max-width: 34ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 12px; padding: 9px 18px 9px 14px; text-decoration: none; }
.badge svg { width: 22px; height: 22px; fill: #fff; }
.badge span { display: grid; line-height: 1.1; }
.badge small { font-size: .7rem; opacity: .8; }
.badge b { font-size: 1.15rem; font-weight: 600; }
.cta .note { font-size: .92rem; color: rgba(255,255,255,.7); }
.hero-phone { justify-self: center; align-self: end; width: min(100%, 360px); margin-bottom: -170px; }

/* Device frame around a real screenshot */
.device { position: relative; border-radius: 15.5% / 7.2%; padding: 3.3%; background: #0c0e16; box-shadow: 0 30px 70px rgba(10, 12, 40, .45), inset 0 0 0 1.5px rgba(255,255,255,.08); }
.device img { border-radius: 12.8% / 5.9%; width: 100%; height: auto; aspect-ratio: 603 / 1311; object-fit: cover; }

/* Sections */
section.band { padding-block: 96px; }
.hero + section.band { padding-top: 104px; }
.intro { display: grid; gap: 14px; max-width: 700px; margin-bottom: 56px; }
.intro h2 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.08; font-weight: 800; }
.intro p { color: var(--muted); font-size: 1.1rem; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step { background: var(--card); border-radius: 22px; padding: 26px; box-shadow: var(--shadow); display: grid; gap: 8px; align-content: start; }
.step .n { font: 700 .8rem/1 var(--sans); color: var(--violet-ink); letter-spacing: .08em; text-transform: uppercase; }
.step h3 { font-size: 1.25rem; }
.step p { color: var(--muted); font-size: .98rem; }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-block: 48px; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip .device { order: -1; }
.feature .device { width: min(100%, 300px); justify-self: center; }
.feature .copy { display: grid; gap: 14px; max-width: 460px; }
.feature h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.12; font-weight: 800; }
.feature p { color: var(--muted); font-size: 1.05rem; }
.feature ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.feature li { position: relative; padding-left: 24px; color: var(--ink); }
.feature li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 4px; border-radius: 2px; background: var(--amber); }

/* The line: every station, the way the app draws it */
.line-band { background: var(--card); border-block: 1px solid var(--line); padding-block: 72px; }
.line-band .intro { margin-bottom: 36px; }
.line-scroll { overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.line { list-style: none; margin: 0; position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 44px; min-width: max-content; padding: 150px 12px 16px; }
.line::before { content: ""; position: absolute; left: 34px; right: 34px; top: 150px; height: 8px; margin-top: -4px; border-radius: 4px; background: var(--amber); }
.stop { position: relative; height: 22px; }
.stop::after { content: ""; position: absolute; left: 50%; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); box-sizing: border-box; }
.stop span { position: absolute; left: 50%; bottom: 18px; transform-origin: 0 100%; transform: rotate(-52deg); white-space: nowrap; font-size: .82rem; color: var(--muted); }
.stop.end span { color: var(--ink); font-weight: 700; }
.line-note { margin-top: 18px; color: var(--faint); font-size: .9rem; }

/* Plus */
.plus { color: #fff; background: linear-gradient(160deg, var(--dusk-1), var(--dusk-2) 60%, var(--violet)); }
.plus .feature p { color: rgba(255,255,255,.78); }
.plus .feature li { color: #fff; }
.plus .eyebrow { color: var(--amber); }

/* Privacy */
.promise { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.promise div { background: var(--card); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); display: grid; gap: 6px; align-content: start; }
.promise b { font: 700 1.05rem/1.3 var(--display); }
.promise span { color: var(--muted); font-size: .95rem; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 780px; }
.faq details { background: var(--card); border-radius: 16px; padding: 18px 22px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--violet-ink); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin-top: 10px; }

/* Footer */
footer { background: var(--night); color: rgba(255,255,255,.72); padding-block: 56px calc(40px + env(safe-area-inset-bottom, 0px)); font-size: .92rem; }
footer .wrap { display: grid; gap: 28px; }
footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: #fff; text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .fine { color: rgba(255,255,255,.55); font-size: .85rem; max-width: 70ch; }

/* Document pages (privacy, support) */
.doc-hero { color: #fff; background: linear-gradient(165deg, var(--night), var(--dusk-1) 45%, var(--dusk-2)); padding-block: 128px 56px; }
.doc-hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; }
.doc-hero p { color: rgba(255,255,255,.75); margin-top: 12px; }
.doc { max-width: 760px; padding-block: 56px 88px; }
.doc h2 { font-size: 1.45rem; margin: 40px 0 12px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: #34385a; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 1.2em; display: grid; gap: 8px; }
.doc .meta { color: var(--faint); font-size: .92rem; margin-top: 40px; }
.contact-card { background: var(--card); border-radius: 20px; padding: 26px; box-shadow: var(--shadow); display: grid; gap: 10px; margin-bottom: 40px; }
.button { display: inline-flex; justify-self: start; align-items: center; gap: 8px; background: var(--violet-ink); color: #fff; text-decoration: none; font-weight: 600; padding: 12px 20px; border-radius: 12px; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 108px; gap: 8px; }
  .hero-copy { padding-bottom: 40px; }
  .hero-phone { width: min(78%, 320px); margin-bottom: -210px; }
  .steps, .promise { grid-template-columns: 1fr 1fr; }
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature.flip .device { order: 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .steps, .promise { grid-template-columns: 1fr; }
  section.band { padding-block: 72px; }
  .hero + section.band { padding-top: 80px; }
  .hero-copy .mark { height: 96px; }
}
