/**
 * stokeonstocks.com — matches app.stokeonstocks.com teal accent + wordmark
 * Teal #0d9488: buttons, links, section accents (same as app)
 * Orange #d97706: wordmark "ON" only
 */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-subtle: #f1f5f9;
  --fill: #f1f5f9;

  --sos-accent: #0d9488;
  --sos-accent-strong: #0f766e;
  --sos-accent-soft: #14b8a6;
  --sos-accent-bg: rgba(13, 148, 136, 0.08);
  --sos-accent-line: rgba(13, 148, 136, 0.35);
  --sos-accent-shadow: 0 1px 3px rgba(13, 148, 136, 0.35);

  /* Wordmark ON only */
  --brand-stoke: #0f172a;
  --brand-on: #d97706;
  --brand-stocks: #475569;

  --radius: 14px;
  --radius-sm: 10px;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-brand: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --header-brand-icon: 72px;
  --header-brand-font: 20px;
  /* Icon artwork centroid is ~14px left of canvas center (353px source) */
  --brand-icon-optical-ratio: 0.0397;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-feature-settings: "ss01" on, "cv11" on;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

a:not(.btn):not(.app-brand) {
  color: var(--sos-accent-strong);
  font-weight: 600;
  text-decoration: none;
}

a:not(.btn):not(.app-brand):hover {
  text-decoration: underline;
  color: var(--sos-accent);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  position: sticky;
  top: 0;
  z-index: 10;
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: var(--header-brand-icon);
  height: var(--header-brand-icon);
  flex-shrink: 0;
  border-radius: 22%;
  transform: translateX(calc(var(--header-brand-icon) * var(--brand-icon-optical-ratio)));
}

.app-brand-strip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.app-brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  line-height: 1;
  white-space: nowrap;
  font-family: var(--font-brand);
  font-size: var(--header-brand-font);
}

.app-brand-stoke {
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--brand-stoke);
}

.app-brand-on {
  font-weight: 900;
  letter-spacing: -0.06em;
  color: var(--brand-on);
  text-transform: uppercase;
  font-size: 0.92em;
}

.app-brand-stocks {
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--brand-stocks);
  font-size: 0.88em;
}

.site-header nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.site-header nav a:not(.btn) {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.site-header nav a:not(.btn):hover {
  color: var(--sos-accent-strong);
  text-decoration: none;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 52rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, transparent 120px);
}

.hero-brand-mark {
  display: block;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 22%;
  margin: 0 auto 1rem;
  transform: translateX(calc(120px * var(--brand-icon-optical-ratio)));
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sos-accent-strong);
  background: var(--sos-accent-bg);
  border: 1px solid var(--sos-accent-line);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.watchlist-style-title,
.section-title {
  margin: 1rem 0;
  padding-left: 11px;
  border-left: 3px solid var(--sos-accent);
  text-align: left;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.25;
  font-family: var(--font-body);
}

.hero .watchlist-style-title {
  text-align: center;
  border-left: none;
  padding-left: 0;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.hero .watchlist-style-title::before {
  content: "";
  display: block;
  width: 3px;
  height: 2rem;
  background: var(--sos-accent);
  border-radius: 2px;
  margin: 0 auto 0.75rem;
  box-shadow: var(--sos-accent-shadow);
}

.section h2.section-title {
  text-align: center;
  border-left: none;
  padding-left: 0;
}

.section h2.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--sos-accent);
  border-radius: 2px;
  margin: 0.5rem auto 0;
}

.lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 40rem;
  margin: 0 auto 1.5rem;
}

.hero-cta {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 auto;
}

.btn,
a.btn,
button.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none !important;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
  transition: box-shadow 0.15s ease, opacity 0.15s ease, background 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.btn-primary,
a.btn-primary,
button.btn-primary {
  background: var(--sos-accent) !important;
  color: #ffffff !important;
  border-color: var(--sos-accent) !important;
  box-shadow: var(--sos-accent-shadow);
}

.btn-primary:hover,
a.btn-primary:hover,
button.btn-primary:hover {
  background: var(--sos-accent-strong) !important;
  border-color: var(--sos-accent-strong) !important;
  color: #ffffff !important;
}

.btn-secondary,
a.btn-secondary,
button.btn-secondary {
  background: var(--surface) !important;
  color: var(--sos-accent-strong) !important;
  border: 1px solid var(--sos-accent-line) !important;
  font-weight: 600;
}

.btn-secondary:hover,
a.btn-secondary:hover,
button.btn-secondary:hover {
  background: var(--sos-accent-bg) !important;
  color: var(--sos-accent-strong) !important;
}

.btn-nav {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
  border-radius: var(--radius-sm);
}

.section {
  max-width: 64rem;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.section-alt {
  background: linear-gradient(180deg, var(--sos-accent-bg) 0%, var(--border-subtle) 100%);
  max-width: none;
}

.section-alt > .section-title,
.section-alt > .section-intro,
.section-alt > .products,
.section-alt > .flow {
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
}

.section-intro {
  text-align: center;
  color: var(--text-muted);
  max-width: 40rem;
  margin: 0 auto 2rem;
}

.checkout-panel {
  max-width: 28rem;
  margin: 0 auto 2.5rem;
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.checkout-label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.checkout-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
  line-height: 1.45;
}

.checkout-hint a {
  color: var(--sos-accent-strong);
}

.checkout-hint code {
  font-size: 0.82rem;
  background: var(--fill);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  color: var(--text);
}

.checkout-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 1.05rem;
  font-family: var(--font-body);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: var(--surface);
}

.checkout-input:focus {
  outline: none;
  border-color: var(--sos-accent);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.18);
}

.checkout-status {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  min-height: 1.25rem;
}

.checkout-status--pending {
  color: var(--text-muted);
}

.checkout-status--ok {
  color: var(--sos-accent-strong);
}

.checkout-status--error {
  color: #b91c1c;
}

.flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
}

.flow-card,
.product-card,
.price-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.flow-card {
  border-top: 3px solid var(--sos-accent);
}

.flow-card h3,
.product-card h3 {
  margin-top: 0;
  color: var(--sos-accent-strong);
  font-weight: 700;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.5rem;
  padding: 0 1.5rem 2rem;
}

.products--focused {
  max-width: 960px;
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.product-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sos-accent-strong);
  background: var(--sos-accent-bg);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.product-card--muted {
  opacity: 0.92;
  border-style: dashed;
}

.product-admin-note {
  max-width: 42rem;
  margin: 1.5rem auto 0;
  text-align: center;
  font-size: 0.85rem;
}

.flow--steps .flow-card {
  position: relative;
  padding-top: 2.5rem;
}

.flow-step {
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--sos-accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-actions {
  margin-top: 1rem;
}

.price-note {
  font-size: 0.82rem;
  color: var(--sos-accent-strong);
  font-weight: 600;
  margin: -0.25rem 0 0.75rem;
}

.payment-note,
.footer-muted {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1.25rem;
}

.footer-muted a {
  color: var(--text-muted);
  font-weight: 500;
}

.product-card--featured {
  border: 2px solid var(--sos-accent);
  box-shadow: var(--sos-accent-shadow);
}

.product-card ul {
  padding-left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.link {
  color: var(--sos-accent-strong);
  font-weight: 600;
}

.pricing-group {
  margin: 2.5rem auto 1rem;
  max-width: 64rem;
  padding: 0 1.5rem;
  color: var(--sos-accent-strong);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.25rem;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.price-card.featured {
  border: 2px solid var(--sos-accent);
  box-shadow: var(--sos-accent-shadow);
}

.badge {
  position: absolute;
  top: -0.6rem;
  right: 1rem;
  background: var(--sos-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
}

.price-card {
  position: relative;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--sos-accent-strong);
}

.price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.price-card ul {
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-grid-b2b .price-card {
  text-align: center;
}

.fine-print {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 64rem;
  margin: 1.5rem auto 0;
  padding: 0 1.5rem;
}

/* ---- Training / YouTube ---- */
.section-training {
  background: linear-gradient(180deg, #ffffff 0%, #f0faf8 100%);
  border-top: 1px solid var(--sos-accent-line);
  border-bottom: 1px solid var(--border);
}

.training-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2rem;
}

.training-head .eyebrow {
  color: var(--sos-accent-strong);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.training-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(240px, 0.9fr);
  gap: 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  align-items: start;
}

.training-feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.training-video-wrap {
  background: #0f172a;
  aspect-ratio: 16 / 9;
  position: relative;
}

.training-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.training-video-fallback {
  height: 100%;
  min-height: 220px;
}

.training-play {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  height: 100%;
  min-height: 220px;
  padding: 1.5rem 1.75rem;
  text-decoration: none !important;
  color: #e2e8f0 !important;
  background:
    radial-gradient(ellipse 80% 70% at 20% 40%, rgba(13, 148, 136, 0.35), transparent 55%),
    linear-gradient(145deg, #0f172a 0%, #134e4a 55%, #0f172a 100%);
  transition: opacity 0.15s ease;
}

.training-play:hover {
  opacity: 0.95;
}

.training-play-icon {
  flex: 0 0 auto;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  background: var(--sos-accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--sos-accent-shadow);
}

.training-play-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.training-ep {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5eead4;
}

.training-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.02em;
}

.training-sub {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.4;
}

.training-copy {
  padding: 1.35rem 1.5rem 1.5rem;
}

.training-copy h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.training-copy > p {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.training-points {
  margin: 0 0 1.15rem;
  padding-left: 1.15rem;
  color: var(--text);
  font-size: 0.9rem;
}

.training-points li {
  margin-bottom: 0.3rem;
}

.training-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.training-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.training-channel-card,
.training-series-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}

.training-channel-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sos-accent-strong);
}

.training-channel-card h3,
.training-series-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.training-channel-card p,
.training-series-card p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

@media (max-width: 900px) {
  .training-layout {
    grid-template-columns: 1fr;
  }
}

.section-cta {
  text-align: center;
  background: var(--sos-accent-bg);
  border-top: 1px solid var(--sos-accent-line);
  max-width: none;
}

.section-cta p {
  color: var(--text-muted);
  max-width: 32rem;
  margin: 0 auto 1.25rem;
}

.site-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: var(--surface);
}

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

.site-footer a:hover {
  color: var(--sos-accent-strong);
}

/* ---- Press / publisher landing (customer-facing) ---- */
body.press {
  background: #f7f4ee;
  --bg: #f7f4ee;
  --surface: #fffcf7;
}

.press-header {
  background: transparent;
  box-shadow: none;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding: 18px 32px;
}

.press-header .brand-mark {
  width: 40px;
  height: 40px;
}

.press-header .app-brand-strip {
  display: none;
}

.press-header .app-brand {
  gap: 10px;
}

.press-header .app-brand-wordmark {
  font-size: 18px;
}

.press-header nav a:not(.btn) {
  font-weight: 500;
  font-size: 0.95rem;
  color: #334155;
}

.offer-wrap {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.5rem 3.5rem;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.offer {
  display: block;
  background: var(--surface);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-top: 3px solid var(--sos-accent);
  border-radius: 14px;
  padding: 1.35rem 1.2rem 1.4rem;
  text-decoration: none !important;
  color: inherit;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  min-height: 8.5rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.offer:hover {
  border-color: var(--sos-accent);
  transform: translateY(-2px);
  text-decoration: none !important;
}

.offer h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.45rem;
  color: #0f172a;
}

.offer p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #64748b;
  font-weight: 400;
}

.offer--books { border-top-color: #0f766e; }
.offer--essays { border-top-color: #b45309; }
.offer--yt { border-top-color: #0f172a; }
.offer--tools { border-top-color: #1d4ed8; }

.section-head {
  margin: 0 0 1.75rem;
}

.section-head h2,
.offer-panel h2,
.press-book-body h3 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.section-head h2 {
  font-size: 1.85rem;
  margin: 0;
}

.offer-panel {
  padding: 3.25rem 1.5rem;
}

.offer-panel-inner {
  max-width: 40rem;
  margin: 0 auto;
}

.offer-panel h2 {
  font-size: 1.85rem;
  margin: 0 0 0.75rem;
}

.offer-panel p {
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 1.35rem;
}

.offer-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.offer-panel--paper {
  background: #fff;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.offer-panel--ink {
  background: #0f172a;
  color: #e2e8f0;
}

.offer-panel--ink h2 {
  color: #f8fafc;
}

.offer-panel--ink p {
  color: #94a3b8;
}

.press-kicker--on-ink {
  color: #5eead4;
}

.press-hero {
  max-width: 40rem;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3rem;
  text-align: left;
}

.press-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sos-accent-strong);
}

.press-hero h1 {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 5.2vw, 3.15rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #0f172a;
  margin: 0 0 1rem;
}

.press-lead {
  font-size: 1.15rem;
  line-height: 1.55;
  color: #475569;
  margin: 0 0 1.75rem;
  max-width: 34rem;
}

.press-hero .hero-cta {
  justify-content: flex-start;
}

.press-catalog {
  max-width: 52rem;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.press-book {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: start;
}

.press-cover {
  display: block;
  border-radius: 2px;
  overflow: hidden;
  box-shadow:
    0 12px 32px rgba(15, 23, 42, 0.14),
    0 1px 0 rgba(15, 23, 42, 0.06);
  background: #e2e8f0;
}

.press-cover img {
  display: block;
  width: 100%;
  height: auto;
}

.press-book-body h3 {
  font-size: 1.85rem;
  margin: 0 0 0.85rem;
}

.press-book-body p {
  margin: 0 0 0.85rem;
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 36rem;
}

.press-book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.press-band {
  background: #fff;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.press-band--quiet {
  background: transparent;
  border-bottom: none;
}

.press-band-inner {
  max-width: 40rem;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.press-band-inner h2,
.press-tools h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.7rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.press-band-inner p,
.press-tools-lead {
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

.press-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.press-links li {
  margin: 0.4rem 0;
}

.press-links a {
  font-size: 1.05rem;
}

.press-tools {
  max-width: 52rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 4.5rem;
}

.press-tool-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.press-tool-list li {
  background: var(--surface);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 1.25rem 1.2rem 1.35rem;
}

.press-tool-list h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: #0f172a;
}

.press-tool-list p {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.5;
}

.press-soon {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.press-footer {
  background: transparent;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

@media (max-width: 900px) {
  .offer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 800px) {
  .press-book {
    grid-template-columns: 140px 1fr;
    gap: 1.25rem;
  }

  .press-tool-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .press-hero {
    padding-top: 2.5rem;
  }

  .press-book {
    grid-template-columns: 1fr;
  }

  .press-cover {
    max-width: 180px;
  }

  .offer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 12px 16px;
  }

  .app-brand {
    gap: 10px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .app-brand-strip {
    max-width: min(168px, 46vw);
    padding: 6px 11px;
    border-radius: 10px;
  }

  .app-brand-wordmark {
    font-size: 14px;
  }

  .site-header nav {
    width: 100%;
    justify-content: flex-end;
  }
}

html {
  scroll-behavior: smooth;
}

#books,
#essays,
#youtube,
#tools {
  scroll-margin-top: 5.5rem;
}

.studio-section {
  max-width: 72rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.studio-section .section-head p {
  margin: 0.4rem 0 0;
  color: #64748b;
}

.studio-section--ink {
  max-width: none;
  background: #0f172a;
  color: #e2e8f0;
  padding: 3rem 0 4rem;
}

.studio-section--ink .section-head,
.studio-section--ink .studio-shell {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.studio-section--ink h2 {
  color: #f8fafc;
}

.studio-section--ink .section-head p {
  color: #94a3b8;
}

.studio-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 28rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.studio-shell--ink {
  background: #111827;
  border-color: rgba(255, 255, 255, 0.08);
}

.studio-rail {
  border-right: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 28rem;
  background: #f8fafc;
}

.studio-shell--ink .studio-rail {
  background: #0b1220;
  border-right-color: rgba(255, 255, 255, 0.08);
}

.studio-tabs {
  display: flex;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.studio-tabs button {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0.85rem 0.5rem;
  font: 600 0.78rem/1.2 var(--font-body);
  color: #64748b;
  cursor: pointer;
}

.studio-tabs button.is-on {
  color: #0f172a;
  box-shadow: inset 0 -2px 0 var(--sos-accent);
}

.studio-shell--ink .studio-tabs button.is-on {
  color: #f8fafc;
}

.lib-list {
  overflow: auto;
  max-height: 26rem;
  padding: 0.4rem 0;
}

.lib-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.7rem 1rem;
  font: 500 0.86rem/1.35 var(--font-body);
  color: #334155;
  cursor: pointer;
}

.lib-item:hover {
  background: rgba(13, 148, 136, 0.08);
}

.lib-item.is-on {
  background: rgba(13, 148, 136, 0.14);
  color: #0f766e;
}

.studio-shell--ink .lib-item {
  color: #cbd5e1;
}

.studio-shell--ink .lib-item.is-on {
  color: #5eead4;
  background: rgba(13, 148, 136, 0.18);
}

.studio-stage {
  position: relative;
  min-height: 28rem;
  background: #fff;
}

.studio-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.studio-stage--video {
  background: #000;
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.studio-empty {
  margin: 0;
  padding: 3rem 2rem;
  color: #94a3b8;
  font-size: 0.98rem;
}

@media (max-width: 800px) {
  .studio-shell {
    grid-template-columns: 1fr;
  }

  .studio-rail {
    min-height: 0;
    max-height: 14rem;
  }

  .lib-list {
    max-height: 12rem;
  }

  .studio-stage--video {
    min-height: 12rem;
  }
}

body.press {
  padding-bottom: 5.5rem;
}

.press-header nav {
  display: none;
}

.bento {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 0.85rem;
  max-width: 64rem;
  margin: 0 auto 3.5rem;
  padding: 0 1.5rem;
}

.bento-tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 10.5rem;
  padding: 1.35rem 1.3rem;
  border-radius: 18px;
  text-decoration: none !important;
  color: inherit;
  overflow: hidden;
  position: relative;
}

.bento-tile h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.45rem;
  margin: 0 0 0.25rem;
}

.bento-tile p {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
}

.bento-tile--books {
  grid-row: 1 / span 2;
  min-height: 22rem;
  background: #111827;
  color: #f8fafc;
}

.bento-tile--books p {
  color: #94a3b8;
}

.bento-tile--essays {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.bento-tile--yt {
  background: #0f172a;
  color: #f8fafc;
}

.bento-tile--yt p {
  color: #94a3b8;
}

.bento-tile--tools {
  background: #ecfdf5;
  border: 1px solid rgba(13, 148, 136, 0.18);
}

.bento-covers {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  align-items: flex-end;
}

.bento-covers .cover {
  width: 38%;
  transform: rotate(-6deg);
}

.bento-covers .cover:last-child {
  transform: rotate(5deg);
}

.book-spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.spread-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.1rem;
  align-items: start;
}

.spread-card img,
.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 4px;
}

.cover {
  aspect-ratio: 2 / 3;
  width: 220px;
  max-width: 100%;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
  background: #e2e8f0;
}

.shelf {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.shelf-book {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.shelf-copy {
  max-width: 32rem;
  padding-top: 0.5rem;
}

.shelf-copy h3 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.7rem;
  margin: 0 0 0.6rem;
}

.shelf-copy p {
  color: #475569;
  line-height: 1.6;
  margin: 0 0 1.1rem;
}

.spread-card h3 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.4rem;
  margin: 0 0 0.5rem;
}

.spread-card p {
  color: #475569;
  margin: 0 0 1rem;
  line-height: 1.55;
}

.stage,
.theater {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.theater {
  max-width: none;
  background: #070b14;
  color: #e2e8f0;
  padding: 2.5rem 0 4.5rem;
}

.theater .stage-head,
.theater .theater-player,
.theater .playlist {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.stage-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.stage-head h2,
.stage-head--ink h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.85rem;
  margin: 0;
}

.stage-head--ink p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.95rem;
}

.filmstrip {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding: 0.25rem 0 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.filmstrip--thumbs {
  padding-bottom: 0.4rem;
}

.strip-card {
  flex: 0 0 11.5rem;
  scroll-snap-align: start;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  border-radius: 12px;
  padding: 0.85rem 0.9rem;
  text-align: left;
  cursor: pointer;
  font: 600 0.86rem/1.35 var(--font-body);
  color: #0f172a;
}

.strip-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.55rem;
  background: #0f172a;
}

.strip-card span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.strip-card.is-on {
  border-color: var(--sos-accent);
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.25);
}

.theater .strip-card {
  background: #111827;
  border-color: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  flex-basis: 13.5rem;
}

.reader {
  position: relative;
  min-height: 82vh;
  background: #fffcf7;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  overflow: hidden;
}

.reader iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fffcf7;
}

.theater-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.theater-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.playlist-row {
  margin-bottom: 1.1rem;
}

.playlist-label {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 700;
}

.dock {
  position: fixed;
  left: 50%;
  bottom: 1.15rem;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  gap: 0.15rem;
  padding: 0.35rem;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.28);
}

.dock a {
  color: #cbd5e1 !important;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none !important;
  padding: 0.55rem 1rem;
  border-radius: 999px;
}

.dock a.is-on,
.dock a:hover {
  background: #0d9488;
  color: #fff !important;
}

@media (max-width: 800px) {
  .bento,
  .book-spread {
    grid-template-columns: 1fr;
  }

  .bento-tile--books {
    grid-row: auto;
    min-height: 16rem;
  }

  .spread-card {
    grid-template-columns: 100px 1fr;
  }

  .dock a {
    padding: 0.5rem 0.7rem;
    font-size: 0.8rem;
  }

  .shelf-book {
    flex-direction: column;
  }

  .cover {
    width: 160px;
  }
}

.immerse .dock {
  display: none;
}

.immerse {
  background: #f7f4ee;
}

body.press.immerse--ink {
  background: #0f0f0f;
  color: #eee;
}

.immerse-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: #f7f4ee;
  position: sticky;
  top: 0;
  z-index: 20;
}

.immerse-bar--ink {
  background: #0f0f0f;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.immerse-bar .brand-mark {
  width: 32px;
  height: 32px;
}

.immerse-bar .app-brand-wordmark {
  font-size: 15px;
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 auto 0 0.75rem;
  font-size: 0.82rem;
  color: #64748b;
  min-width: 0;
}

.crumb a {
  color: #0f766e;
  font-weight: 600;
}

.pager {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
}

.pager button {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font: 600 0.82rem var(--font-body);
  cursor: pointer;
  color: #0f172a;
}

.pager button:disabled {
  opacity: 0.35;
  cursor: default;
}

.studio-tabs--ink {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.studio-tabs--ink button {
  color: #94a3b8;
}

.studio-tabs--ink button.is-on {
  color: #f8fafc;
}

.immerse-title {
  margin: 0 auto 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.immerse-bar--ink .immerse-title {
  color: #94a3b8;
}

.immerse-link {
  font-size: 0.9rem;
  font-weight: 600;
}

.essay-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  height: calc(100vh - 53px);
}

.essay-toc {
  overflow-y: auto;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
}

.toc-list {
  display: flex;
  flex-direction: column;
  padding: 0.2rem 0 2rem;
}

.toc-part {
  margin: 0.85rem 0 0.15rem;
  padding: 0.35rem 1rem 0.15rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
}

.toc-item {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.65rem 1rem;
  font: 500 0.88rem/1.4 var(--font-body);
  color: #334155;
  cursor: pointer;
  border-left: 3px solid transparent;
  border-bottom: 1px solid #f1f5f9;
}

.toc-item:hover {
  background: #f8fafc;
}

.toc-item.is-on {
  border-left-color: var(--sos-accent);
  color: #0f766e;
  background: rgba(13, 148, 136, 0.08);
}

.essay-reader {
  position: relative;
  background: #fffcf7;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.essay-reader iframe {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 0;
  background: #fffcf7;
}

.essay-reader .studio-empty {
  padding: 4rem 2rem;
}

.yt-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 16px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 16px 16px 96px;
  align-items: start;
}

.yt-player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.yt-player-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.yt-playlist {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: calc(100vh - 72px);
  padding-bottom: 1rem;
}

.yt-row {
  display: flex;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 6px 8px;
  text-align: left;
  cursor: pointer;
  border-radius: 10px;
  color: #f1f5f9;
}

.yt-row span {
  color: #f1f5f9;
}

.yt-row img {
  width: 168px;
  height: 94px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 8px;
  background: #111;
}

.yt-row span {
  font: 500 0.88rem/1.35 var(--font-body);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yt-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

.yt-row.is-on {
  background: rgba(13, 148, 136, 0.2);
}

@media (max-width: 960px) {
  .essay-layout,
  .yt-layout {
    grid-template-columns: 1fr;
  }

  .essay-layout {
    height: auto;
  }

  .essay-toc {
    max-height: 40vh;
    border-right: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }

  .essay-reader {
    min-height: 70vh;
  }

  .yt-playlist {
    max-height: none;
  }

  .yt-row img {
    width: 140px;
    height: 78px;
  }
}
