/* Bevios landing. Dark first, light mode is a first-class alternative.
   Palette is lifted from the app's own System theme (ThemeStore.swift):
   warm cream in light, near-black blue-grey in dark, teal accent.
   Every body-text pair below clears WCAG AAA (7:1). */

:root {
  color-scheme: dark light;

  /* Dark (default) */
  --bg: #0e1116;
  --bg-deep: #08090c;
  --surface: #1e232c;
  --surface-2: #2a303b;
  --border: #414957;
  --border-strong: #566070;
  --text: #f1f3f6;
  --muted: #c3c9d3;
  --accent: #63cfc7;
  --accent-ink: #06201f;
  --accent-soft: rgba(99, 207, 199, 0.12);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4);
  --ph-stripe: rgba(255, 255, 255, 0.035);

  --maxw: 1160px;
  --radius: 14px;
  --radius-lg: 20px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f2eee3;
    --bg-deep: #e4ddcb;
    --surface: #ffffff;
    --surface-2: #e9e3d3;
    --border: #c2b99f;
    --border-strong: #a99e80;
    --text: #1c1a15;
    --muted: #4e4838;
    --accent: #0d4b48;
    --accent-ink: #ffffff;
    --accent-soft: rgba(13, 75, 72, 0.09);
    --shadow: 0 24px 60px rgba(60, 48, 20, 0.18);
    --shadow-sm: 0 2px 10px rgba(60, 48, 20, 0.12);
    --ph-stripe: rgba(28, 26, 21, 0.045);
  }
}

/* ---------- base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:focus-visible,
summary:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 12px 18px;
  border-radius: 0 0 10px 0;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.nav a:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--accent) 88%, var(--text));
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: var(--surface);
}

.btn-lg {
  padding: 14px 26px;
  font-size: 16px;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 86px 0 64px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -200px 0 auto;
  height: 520px;
  background: radial-gradient(
    54% 60% at 50% 40%,
    var(--accent-soft),
    transparent 70%
  );
  pointer-events: none;
}

.hero .wrap {
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 26px;
}

.eyebrow b {
  color: var(--text);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2.4rem, 6.2vw, 4.1rem);
  font-weight: 700;
  max-width: 17ch;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero-sub {
  margin-top: 22px;
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  color: var(--muted);
  max-width: 60ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

figure.hero-shot {
  margin-top: 56px;
}

/* ---------- facts strip ---------- */

.facts {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-deep);
}

.facts ul {
  list-style: none;
  margin: 0;
  padding: 26px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.facts li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 15px;
  color: var(--muted);
}

.facts svg {
  flex: none;
  width: 19px;
  height: 19px;
  color: var(--accent);
  margin-top: 2px;
}

.facts b {
  color: var(--text);
  font-weight: 600;
}

/* ---------- sections ---------- */

section {
  padding: 92px 0;
}

.section-head {
  max-width: 62ch;
  margin-bottom: 52px;
}

.kicker {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 700;
}

.section-head p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.06rem;
}

.alt {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ---------- showcase rows ---------- */

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: center;
  padding: 54px 0;
  border-top: 1px solid var(--border);
}

.showcase.flip .showcase-copy {
  order: 2;
}

.showcase h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 680;
  margin-bottom: 16px;
}

.showcase-copy > p {
  color: var(--muted);
  font-size: 1.04rem;
}

.ticks {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 13px;
}

.ticks li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 15.5px;
  color: var(--muted);
}

.ticks li::before {
  content: "";
  width: 15px;
  height: 15px;
  margin-top: 5px;
  border-radius: 5px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
}

.ticks b {
  color: var(--text);
  font-weight: 600;
}

kbd {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--text);
  white-space: nowrap;
}

/* ---------- feature cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.card h3 {
  font-size: 1.12rem;
  font-weight: 650;
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  font-size: 15.5px;
}

.card ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 15px;
  display: grid;
  gap: 7px;
}

.card-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  color: var(--accent);
  margin-bottom: 16px;
}

.card-icon svg {
  width: 20px;
  height: 20px;
}

/* ---------- screenshot frames ---------- */

.shot {
  margin: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.shot-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 15px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.shot-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border-strong);
  display: block;
}

.shot-bar span {
  margin-left: 10px;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* The placeholder. Swap it for <img> when a real capture exists. */
.shot-ph {
  aspect-ratio: var(--ratio, 16 / 10);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 30px;
  text-align: center;
  background: repeating-linear-gradient(
    135deg,
    transparent 0 13px,
    var(--ph-stripe) 13px 26px
  );
  border-top: 0;
}

.shot-ph .tag {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 4px 11px;
  border-radius: 999px;
}

.shot-ph .what {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  max-width: 42ch;
}

.shot-ph .file {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  word-break: break-all;
}

.shot img {
  width: 100%;
  display: block;
}

/* ---------- steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 18px;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 650;
  margin-bottom: 10px;
}

.step p {
  color: var(--muted);
  font-size: 15.5px;
}

/* ---------- custody panel ---------- */

.custody {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
}

.custody-note {
  margin-top: 26px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
  color: var(--muted);
  font-size: 15.5px;
}

.custody-note b {
  color: var(--text);
}

/* ---------- faq ---------- */

.faq {
  max-width: 940px;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  padding: 19px 56px 19px 22px;
  font-weight: 600;
  font-size: 16.5px;
  position: relative;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -6px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: -2px;
}

.faq details[open] summary {
  border-bottom: 1px solid var(--border);
}

.faq .answer {
  padding: 18px 22px 22px;
  color: var(--muted);
  font-size: 15.8px;
}

.faq .answer p + p {
  margin-top: 12px;
}

/* ---------- invite ---------- */

.invite-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 44px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.invite-panel h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 700;
}

.invite-panel p {
  margin-top: 16px;
  color: var(--muted);
}

.reqs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  font-size: 15.5px;
  color: var(--muted);
}

.reqs li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.reqs li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.reqs b {
  color: var(--text);
  font-weight: 600;
  text-align: right;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
  padding: 44px 0;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 30px;
}

.site-footer .brand {
  margin-right: auto;
  font-size: 16px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.site-footer a {
  color: var(--muted);
  font-size: 14.5px;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

.copyright {
  width: 100%;
  color: var(--muted);
  font-size: 13.5px;
  padding-top: 8px;
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .facts ul {
    grid-template-columns: repeat(2, 1fr);
  }
  .showcase,
  .custody,
  .invite-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .showcase.flip .showcase-copy {
    order: 0;
  }
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .nav {
    display: none;
  }
  .invite-panel {
    padding: 32px;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }
  section {
    padding: 66px 0;
  }
  .hero {
    padding-top: 58px;
  }
  .wrap {
    padding: 0 18px;
  }
  .facts ul {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-cta .btn {
    width: 100%;
  }
  .shot-ph {
    --ratio: 4 / 3;
  }
  .reqs li {
    flex-direction: column;
    gap: 4px;
  }
  .reqs b {
    text-align: left;
  }
}
