/*
 * sombrey.com — one stylesheet, no framework, no third-party requests.
 * Tokens are the app's own "Studio Instrument" set (apps/mobile/src/index.css,
 * apps/ios/Sombrey/DesignSystem/Tokens/Color+Studio.swift).
 *
 * Every page sits on the app's dark welcome/membership backdrop: the `.auth`
 * scene plus Sombrey's Energy Field (motion.js), fixed to the viewport so
 * long pages carry it edge to edge without stretching. Long-form reading
 * happens on a light glass sheet so contrast never depends on the light
 * moving behind it.
 */

@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/InstrumentSans-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/InstrumentSans-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/InstrumentSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/BricolageGrotesque-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/BricolageGrotesque-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --env-0: #1e2731;
  --env-1: #37434f;
  --env-2: #667380;
  --env-3: #a9aea6;
  --env-4: #e7e2d4;
  --env-5: #f7efe0;

  --ink: #1b2027;
  --ink-soft: #50555c;      /* ≥ 6:1 on the reading sheet */
  --ink-faint: #5c5f63;     /* ≥ 5:1 on the reading sheet */
  --paper: #f2eee4;
  --paper-soft: #d3d0c8;    /* ≥ 7:1 on env-0/env-1 */
  --hairline: rgba(27, 32, 39, 0.14);
  --hairline-dark: rgba(242, 238, 228, 0.16);

  /* Accent — reserved, as in the app: the mark's indicator and glows. */
  --accent: #e1704a;
  --accent-ink: #9c4a28;
  --accent-ink-dark: #f0a379;
  --accent-label: #f7bc9b;   /* eyebrows on the field: ≥ 4.5:1 at the field's brightest */
  --caution: #865a1f;
  --caution-dark: #eec48f;

  --font-sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-hero: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;

  --radius-card: 22px;
  --radius-sheet: 28px;
  --radius-pill: 999px;
  --page: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; background: var(--env-0); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--paper);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent-ink-dark); outline-offset: 3px; border-radius: 6px; }
.sheet :focus-visible { outline-color: var(--accent-ink); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  padding: 10px 16px; border-radius: var(--radius-pill);
  background: var(--paper); color: var(--ink); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--page)); margin-inline: auto; }

/* ── The backdrop: the app's `.auth` scene + welcome field ──────────── */

.backdrop {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  /* StudioScene.auth */
  background:
    radial-gradient(340px 340px at 50% 18%, rgba(102, 115, 128, 0.55), transparent 100%),
    linear-gradient(180deg, var(--env-0) 0%, var(--env-1) 55%, var(--env-2) 100%);
}
/* OnboardingWelcomeField's quiet highlight and top light, under the field. */
.backdrop::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(55vmax 55vmax at 78% 22%, rgba(102, 115, 128, 0.38), transparent 100%),
    linear-gradient(180deg, rgba(242, 238, 228, 0.06), transparent 50%);
}
.backdrop canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; }
/* A soft veil keeps the lower screen calm behind long content. */
.backdrop::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(30, 39, 49, 0.35) 100%);
}

/* ── Header ─────────────────────────────────────────────────────────── */

.site-header { position: relative; z-index: 2; background: rgba(14, 18, 23, 0.66); -webkit-backdrop-filter: blur(18px) saturate(1.1); backdrop-filter: blur(18px) saturate(1.1); box-shadow: inset 0 -1px 0 var(--hairline-dark); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; border-radius: 8px; }
.brand img { height: 30px; width: auto; }
.site-nav ul { display: flex; gap: clamp(14px, 3vw, 28px); list-style: none; margin: 0; padding: 0; }
.site-nav a { font-size: 15px; font-weight: 500; text-decoration: none; color: var(--paper-soft); padding: 6px 2px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--paper); text-decoration: underline; }
@media (max-width: 420px) {
  .site-header .wrap { gap: 10px; padding-block: 12px; }
  .brand img { height: 24px; }
  .site-nav ul { gap: 12px; }
  .site-nav a { font-size: 14px; }
}

.preview-bar { background: rgba(14, 18, 23, 0.82); color: var(--paper); font-size: 14px; text-align: center; padding: 8px var(--gutter); }
.preview-bar strong { color: var(--accent-ink-dark); font-weight: 600; }

/* ── Type ───────────────────────────────────────────────────────────── */

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-label); margin: 0 0 14px; }
h1, h2, h3, h4 { font-family: var(--font-hero); font-weight: 600; line-height: 1.08; letter-spacing: -0.015em; margin: 0; }
.lede { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.5; margin: 20px 0 0; max-width: 34em; color: var(--paper-soft); }

/* ── The illuminated glass pill (the app's primary CTA) ─────────────── */

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none;
  background:
    radial-gradient(ellipse 150% 140% at 50% -20%, rgba(255, 255, 255, 0.55), transparent 55%),
    linear-gradient(180deg, rgba(242, 238, 228, 0.94) 0%, rgba(231, 226, 212, 0.84) 100%);
  -webkit-backdrop-filter: blur(7px) saturate(1.15);
  backdrop-filter: blur(7px) saturate(1.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 14px 22px -12px rgba(0, 0, 0, 0.5), 0 0 34px -8px rgba(225, 112, 74, 0.32);
}
a.pill:active { transform: scale(0.97); }
.pill.is-pending { cursor: default; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 14px 22px -12px rgba(0, 0, 0, 0.5); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(225, 112, 74, 0.8); }
.text-link { font-size: 15px; font-weight: 500; color: var(--paper); }

/* ── Band teaser (/) ────────────────────────────────────────────────── */

.teaser { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.teaser-main { flex: 1; display: grid; place-items: center; padding-block: 8px clamp(48px, 9vh, 112px); }
.teaser-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.teaser-orb { width: min(64vw, 320px); aspect-ratio: 1; height: auto; }
.band-image { width: min(90vw, 640px); height: auto; border-radius: 28px; }
.teaser h1 { margin-top: 0; font-size: clamp(44px, 9vw, 88px); font-weight: 700; }
.coming { margin: 14px 0 0; font-size: 14px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-label); }
.pill-large { margin-top: clamp(32px, 6vh, 52px); min-height: 58px; padding: 0 36px; font-size: 17px; }
.teaser-note { margin: 22px 0 0; max-width: 30em; color: var(--paper-soft); font-size: 16px; }

/* ── /app ───────────────────────────────────────────────────────────── */

.hero .wrap {
  display: grid; gap: clamp(32px, 6vw, 72px); align-items: center;
  grid-template-columns: 1fr; padding-block: clamp(24px, 6vw, 72px) clamp(56px, 9vw, 104px);
}
@media (min-width: 880px) { .hero .wrap { grid-template-columns: 1.05fr 0.95fr; } }
.hero h1 { font-size: clamp(40px, 7vw, 68px); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 32px; }
.hero-visual { display: grid; place-items: center; }
.hero-visual .phone { width: min(70%, 290px); }
@media (max-width: 879px) { .hero-visual { order: 2; } .hero-visual .phone { width: min(62%, 240px); } }

.phone {
  border-radius: 34px; padding: 8px;
  background: linear-gradient(160deg, #2b333d, #12161b);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.phone img { border-radius: 27px; width: 100%; height: auto; }

.section { padding-block: clamp(48px, 8vw, 96px); }
.section-head { max-width: 40em; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2 { font-size: clamp(30px, 4.4vw, 44px); }
.section-head p { color: var(--paper-soft); margin: 14px 0 0; font-size: 18px; }

.screens { display: grid; gap: 28px; grid-template-columns: 1fr; justify-items: center; }
@media (min-width: 720px) { .screens { grid-template-columns: repeat(2, minmax(0, 280px)); justify-content: center; column-gap: 64px; align-items: start; } }
.screens figure { margin: 0; max-width: 260px; width: 100%; }
.screens figcaption { margin-top: 16px; font-size: 15px; color: var(--paper-soft); text-align: center; padding: 12px 16px; border-radius: 18px; }
.screens figcaption strong { display: block; color: var(--paper); font-weight: 600; font-size: 16px; }

/* Dark glass — the app's cards on its membership screen. */
.glass-dark, .veil {
  background: linear-gradient(180deg, rgba(20, 26, 33, 0.62), rgba(20, 26, 33, 0.70));
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  backdrop-filter: blur(16px) saturate(1.1);
  border-radius: var(--radius-card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 0 1px rgba(242, 238, 228, 0.10), 0 18px 34px -26px rgba(0, 0, 0, 0.6);
}
/* A text backing on the field: the same dark glass, padded, for headings and copy. */
.veil { padding: clamp(18px, 3vw, 28px) clamp(18px, 3vw, 30px); border-radius: 26px; }
.section-head.veil { display: inline-block; max-width: 46em; }
.teaser-copy { margin-top: clamp(12px, 3vh, 24px); display: flex; flex-direction: column; align-items: center; padding: 18px clamp(20px, 5vw, 44px) 28px; }

.features { display: grid; gap: 14px; grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; }
@media (min-width: 600px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .features { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.feature { padding: 22px 22px 22px 20px; display: grid; grid-template-columns: 44px 1fr; gap: 4px 16px; align-content: start; }
.feature .icon {
  grid-row: span 3; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(242, 238, 228, 0.08); box-shadow: inset 0 0 0 1px var(--hairline-dark);
}
.feature .icon svg { width: 22px; height: 22px; stroke: var(--paper); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 19px; line-height: 1.25; }
.feature p { margin: 0; color: var(--paper-soft); font-size: 16px; }
.tag { justify-self: start; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--caution-dark); border: 1px solid rgba(227, 179, 122, 0.45); border-radius: var(--radius-pill); padding: 2px 10px; }
.fine { font-size: 15px; color: var(--paper-soft); margin-top: 22px; max-width: 46em; }
.fine.veil { display: block; padding: 16px 20px; border-radius: 18px; }
.fine a { color: var(--paper); }

.principles { display: grid; gap: 14px; grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; }
@media (min-width: 760px) { .principles { grid-template-columns: repeat(2, 1fr); } }
.principles li { padding: 24px; }
.principles h3 { font-size: 20px; }
.principles p { margin: 8px 0 0; color: var(--paper-soft); font-size: 16px; }

.membership { padding: clamp(26px, 4vw, 40px); display: grid; gap: 24px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 820px) { .membership { grid-template-columns: 1.2fr 1fr; } }
.membership h2 { font-size: clamp(28px, 3.6vw, 38px); }
.price { margin: 0; font-family: var(--font-hero); font-weight: 700; font-size: clamp(34px, 5vw, 46px); line-height: 1; font-variant-numeric: tabular-nums; }
.price-second { margin-top: 14px; }
.price small { font-family: var(--font-sans); font-weight: 500; font-size: 17px; color: var(--paper-soft); }
.membership ul { margin: 14px 0 0; padding-left: 20px; color: var(--paper-soft); font-size: 16px; }
.membership li + li { margin-top: 6px; }

/* ── Footer ─────────────────────────────────────────────────────────── */

.site-footer { color: var(--paper-soft); font-size: 15px; border-top: 1px solid var(--hairline-dark); background: rgba(14, 18, 23, 0.82); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.site-footer .wrap { padding-block: 44px 36px; display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr auto; } }
.site-footer img { height: 26px; width: auto; }
.site-footer p { margin: 12px 0 0; max-width: 34em; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px 28px; grid-template-columns: repeat(2, auto); }
.site-footer a { color: var(--paper-soft); text-decoration: none; }
.site-footer a:hover { color: var(--paper); text-decoration: underline; }

/* ── Documents: a light glass reading sheet over the field ──────────── */

.doc { padding-block: 16px 72px; }
.sheet {
  color: var(--ink);
  background: linear-gradient(180deg, rgba(247, 239, 224, 0.95), rgba(240, 233, 219, 0.93));
  -webkit-backdrop-filter: blur(22px) saturate(1.05);
  backdrop-filter: blur(22px) saturate(1.05);
  border-radius: var(--radius-sheet);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 40px 80px -40px rgba(0, 0, 0, 0.6);
  padding: clamp(20px, 5vw, 56px);
}
.doc-body { overflow-wrap: break-word; }
@media (max-width: 420px) { .contact { padding: 18px; } .doc-toc { padding: 16px 18px; } }
.doc-head, .doc-body, .doc-toc, .contact { max-width: 46rem; }
.doc-head h1 { font-size: clamp(34px, 5.4vw, 52px); font-weight: 700; }
.doc-meta { margin: 14px 0 0; font-size: 14px; color: var(--ink-faint); }
.draft-note {
  margin: 24px 0 0; padding: 16px 18px; border-radius: 16px;
  border: 1px solid rgba(134, 90, 31, 0.4); background: rgba(154, 106, 44, 0.08); color: var(--ink); font-size: 15px;
}
.draft-note strong { color: var(--caution); }
.doc-body { margin-top: 32px; }
.doc-body h2 { font-size: 26px; margin: 44px 0 12px; scroll-margin-top: 24px; }
.doc-body h3 { font-size: 20px; margin: 30px 0 10px; scroll-margin-top: 24px; }
.doc-body h4 { font-size: 18px; margin: 24px 0 8px; }
.doc-body p, .doc-body li { color: #2c3139; }
.doc-body ul { padding-left: 22px; }
.doc-body li + li { margin-top: 8px; }
.doc-body a { color: var(--accent-ink); }
.doc-section { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--hairline); scroll-margin-top: 16px; }
.doc-section > h2 { margin-top: 0; font-size: 30px; }
.doc-section .doc-meta { margin-top: 6px; }
.inset {
  background: rgba(255, 255, 255, 0.55); border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 0 0 1px rgba(27, 32, 39, 0.06);
}
.doc-toc { margin-top: 28px; padding: 18px 22px; }
.doc-toc h2 { font-family: var(--font-sans); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.doc-toc ol { margin: 10px 0 0; padding-left: 20px; columns: 1; font-size: 15px; }
@media (min-width: 720px) { .doc-toc ol { columns: 2; column-gap: 32px; } }
.doc-toc li { break-inside: avoid; margin-bottom: 4px; }
mark.todo {
  background: rgba(225, 112, 74, 0.16); color: var(--accent-ink); border-radius: 6px; padding: 1px 6px;
  font-weight: 600; box-decoration-break: clone; -webkit-box-decoration-break: clone; overflow-wrap: anywhere;
}

.contact { margin-top: 28px; padding: 24px; display: grid; gap: 6px; }
.contact .label { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.contact a.email { font-family: var(--font-hero); font-weight: 600; font-size: clamp(19px, 5.2vw, 32px); text-decoration: none; color: var(--ink); overflow-wrap: anywhere; }
.contact a.email:hover { text-decoration: underline; }
.contact p { margin: 4px 0 0; color: var(--ink-soft); font-size: 16px; }

.not-found { padding-block: 64px 120px; }
.not-found .veil { display: inline-block; }
.not-found h1 { font-size: clamp(34px, 5vw, 48px); }
.not-found p { color: var(--paper-soft); }
.not-found a { color: var(--paper); }

@media print {
  .site-header nav, .preview-bar, .skip-link, .backdrop { display: none; }
  html, body { background: #fff; color: #000; }
  .sheet, .glass-dark, .inset { box-shadow: none; background: #fff; border: 1px solid #ccc; }
}
