/* =================================================================
   otterlog.ai — v1 styles
   Mirrors the brand tokens defined in WEBSITE_AND_BRAND.md §5,
   which mirror the app's tailwind config so brand drift between
   site and app is impossible. If you change a token here, change
   it in both places.
   ================================================================= */


/* =========================================================
   TOKENS
========================================================= */
:root {
  /* Fonts (same family as Papi Labs so the studio relationship is felt) */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text',
                  'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono:    ui-monospace, 'SF Mono', Monaco, 'Cascadia Code', Consolas, monospace;

  /* Brand */
  --teal-500: #14B8A6;
  --teal-600: #0D9488;
  --teal-50:  #F0FDFA;
  --teal-deep: #0F594D;   /* Pulled from the mascot's body for shadows + accents */

  /* Neutrals (DARK mode is the default per spec) */
  --bg:        #0D0D0D;
  --bg-soft:   #161616;
  --bg-elev:   #1E1E1E;
  --bg-elev-2: #262626;

  --text:        #FFFFFF;
  --text-soft:   #A0A0A0;
  --text-muted:  #666666;
  --border:      rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.15);

  /* Semantic */
  --success: #30D158;
  --danger:  #FF3B30;
  --info:    #007AFF;

  /* Geometry */
  --radius-sm: 6px;
  --radius:    8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --max-content: 1200px;
  --max-prose:   720px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --speed: 200ms;
}

/* ============================================================
   THEME SYSTEM
   Three states, in priority order:
   1. data-theme="light" or "dark": explicit user choice via the
      a11y widget. Always wins, regardless of OS.
   2. OS prefers-color-scheme=light AND no explicit user theme:
      light tokens via the media query.
   3. Otherwise: dark tokens (the :root defaults above).
   The :not([data-theme="dark"]) guard on the media query ensures
   a user who has explicitly chosen dark isn't overridden by OS.
============================================================ */
[data-theme="light"] {
  --bg:            #FFFFFF;
  --bg-soft:       #F7F7F7;
  --bg-elev:       #FFFFFF;
  --bg-elev-2:     #F0F0F0;
  --text:          #0D0D0D;
  --text-soft:     #525252;
  --text-muted:    #A0A0A0;
  --border:        rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.15);
  --teal-500:      #0D9488;
  --teal-600:      #0F766E;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg:            #FFFFFF;
    --bg-soft:       #F7F7F7;
    --bg-elev:       #FFFFFF;
    --bg-elev-2:     #F0F0F0;
    --text:          #0D0D0D;
    --text-soft:     #525252;
    --text-muted:    #A0A0A0;
    --border:        rgba(0,0,0,0.08);
    --border-strong: rgba(0,0,0,0.15);
    --teal-500:      #0D9488;
    --teal-600:      #0F766E;
  }
}

/* High-contrast override (a11y widget). Pushes text to pure white
   on dark / pure black on light, keeps the teal accent strong. */
[data-high-contrast="true"] {
  --text:       #FFFFFF;
  --text-soft:  #E5E5E5;
  --text-muted: #B5B5B5;
  --border:        rgba(255,255,255,0.18);
  --border-strong: rgba(255,255,255,0.28);
}
[data-high-contrast="true"][data-theme="light"],
:root[data-high-contrast="true"][data-theme="light"] {
  --text:       #000000;
  --text-soft:  #1A1A1A;
  --text-muted: #4A4A4A;
  --border:        rgba(0,0,0,0.18);
  --border-strong: rgba(0,0,0,0.30);
}

/* Text-scale (a11y widget). Headings use clamp(px) so they ignore
   this; body, prose, and form text inherit it because they use
   1em/1rem-relative sizes derived from html font-size. */
html { font-size: calc(16px * var(--text-scale, 1)); }

/* Underline-links toggle. Default (no attribute): prose links keep
   their border-bottom underlines as defined elsewhere. Toggling off
   in the widget removes them across all prose surfaces. */
[data-underline-links="false"] .prose-block p a,
[data-underline-links="false"] .welcome-card p a,
[data-underline-links="false"] .prose-legal p a,
[data-underline-links="false"] .release-body a {
  border-bottom-color: transparent;
}


/* =========================================================
   RESET
========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.625;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--teal-500); text-decoration: none; transition: color var(--speed) var(--ease); }
a:hover { color: var(--teal-600); }
button { font: inherit; cursor: pointer; }


/* =========================================================
   LAYOUT
========================================================= */
.container {
  width: 100%;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 720px) {
  .container { padding: 0 40px; }
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.sr-only:focus {
  position: fixed; top: 8px; left: 8px;
  width: auto; height: auto; clip: auto;
  padding: 8px 14px; background: var(--teal-500); color: #fff;
  border-radius: var(--radius); z-index: 100;
}


/* =========================================================
   NAV
========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13,13,13,0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
@media (prefers-color-scheme: light) {
  .nav { background: rgba(255,255,255,0.78); }
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
/* Logo asset is now tight-cropped (800x320, aspect 2.5). Display
   height kept comparable to the 90px-untrimmed equivalent: visible
   logo is similar, nav is shorter, footer logo is finally readable. */
.wordmark img { height: 64px; width: auto; }
.nav nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav nav a {
  color: var(--text-soft);
  font-size: 14.5px;
  font-weight: 500;
}
.nav nav a:hover { color: var(--text); }
.nav-cta {
  background: var(--teal-500);
  color: var(--bg) !important;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 600;
}
.nav-cta:hover { background: var(--teal-600); }
@media (max-width: 640px) {
  .nav nav { gap: 16px; }
  .nav nav a:not(.nav-cta) { display: none; }
}


/* =========================================================
   HERO
========================================================= */
.hero {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* Soft teal nebula behind the mascot. */
  content: '';
  position: absolute;
  top: 10%;
  right: -8%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(20,184,166,0.16), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
@media (prefers-color-scheme: light) {
  .hero::before { background: radial-gradient(ellipse, rgba(13,148,136,0.10), transparent 65%); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 900px) {
  .hero { padding: 120px 0 140px; }
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 60px;
  }
}

.hero-copy {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.hero-copy.in-view { opacity: 1; transform: translateY(0); }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-500);
  padding: 6px 12px;
  background: rgba(20,184,166,0.08);
  border: 1px solid rgba(20,184,166,0.2);
  border-radius: 999px;
  margin-bottom: 24px;
}

h1 {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: clamp(40px, 5.8vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
  font-variation-settings: "opsz" 80;
}
.accent { color: var(--teal-500); }

.lede {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--text-soft);
  margin: 0 0 32px;
  max-width: 540px;
}

.system-req {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}


/* Email capture forms */
.email-capture {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin-bottom: 10px;
}
.email-capture input {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  color: var(--text);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  transition: border-color var(--speed) var(--ease), background var(--speed) var(--ease);
}
.email-capture input::placeholder { color: var(--text-muted); }
.email-capture input:focus {
  outline: none;
  border-color: var(--teal-500);
  background: var(--bg-elev-2);
}
.email-capture button {
  padding: 13px 22px;
  background: var(--teal-500);
  color: var(--bg);
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.email-capture button:hover { background: var(--teal-600); transform: translateY(-1px); }
.email-capture button:active { transform: translateY(0); }
@media (max-width: 540px) {
  .email-capture { flex-direction: column; }
}

.form-note {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--text-muted);
  max-width: 480px;
}


/* Mascot block with sound-wave halos */
.hero-mascot {
  position: relative;
  justify-self: center;
  width: clamp(280px, 45vw, 520px);
  aspect-ratio: 1;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease) 100ms, transform 700ms var(--ease) 100ms;
}
.hero-mascot.in-view { opacity: 1; transform: translateY(0); }
.hero-mascot img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Three concentric pulsing rings emanating from the mascot's
   sound-wave ear, scaled to feel ambient rather than busy. */
.sound-halo {
  position: absolute;
  top: 18%;
  right: 10%;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  border: 2px solid var(--teal-500);
  opacity: 0;
  z-index: 1;
  animation: halo-pulse 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.halo-2 { animation-delay: 1.3s; }
.halo-3 { animation-delay: 2.6s; }
@keyframes halo-pulse {
  0%   { transform: scale(0.6); opacity: 0; }
  20%  { opacity: 0.35; }
  100% { transform: scale(1.15); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sound-halo { animation: none; opacity: 0; }
}


/* =========================================================
   BLOCK BASICS (shared section styles)
========================================================= */
.block {
  padding: 88px 0;
  border-top: 1px solid var(--border);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.block.in-view { opacity: 1; transform: translateY(0); }
@media (min-width: 900px) {
  .block { padding: 120px 0; }
}

.block-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-500);
  margin-bottom: 12px;
}

.block h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 600;
  font-variation-settings: "opsz" 60;
}
.block-lede {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--text-soft);
  margin: 0 0 48px;
  max-width: 640px;
}

.link-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal-500);
  font-size: 15px;
  font-weight: 500;
  margin-top: 32px;
}
.link-secondary .arrow {
  transition: transform var(--speed) var(--ease);
}
.link-secondary:hover .arrow { transform: translateX(3px); }


/* =========================================================
   PRIVACY PROOF
   Built as a terminal-style card to read as "technical receipt"
   rather than marketing copy. The dots are intentionally OS-y.
========================================================= */
.proof { background: var(--bg-soft); }

.trace-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 16px;
  font-feature-settings: "tnum" 1, "ss01" 1;
}

.trace-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: var(--bg-elev-2);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-soft);
}
.trace-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--danger);
}
.trace-dot-amber { background: #FFB800; }
.trace-dot-green { background: var(--success); }
.trace-title {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.trace-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.trace-table th,
.trace-table td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.trace-table th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-elev-2);
}
.trace-table tbody tr:last-child td { border-bottom: none; }
.trace-table code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--teal-500);
  background: rgba(20,184,166,0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

.trace-footnote {
  margin: 0;
  padding: 18px 20px;
  background: var(--bg-elev-2);
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-soft);
}


/* =========================================================
   HOW IT WORKS
========================================================= */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  counter-reset: step;
}
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}
.steps li {
  padding: 28px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.steps li:hover {
  border-color: var(--teal-500);
  transform: translateY(-2px);
}
.step-num {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--teal-500);
  margin-bottom: 12px;
}
.steps h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
}
.steps p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
}


/* =========================================================
   FEATURE GRID
========================================================= */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  padding: 26px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease),
              border-color var(--speed) var(--ease), background var(--speed) var(--ease);
}
.feature-card.in-view { opacity: 1; transform: translateY(0); }
.feature-card:hover { border-color: var(--teal-500); background: var(--bg-elev); }

.feature-card svg {
  width: 28px;
  height: 28px;
  color: var(--teal-500);
  margin-bottom: 16px;
}
.feature-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
}
.feature-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-soft);
  line-height: 1.55;
}


/* =========================================================
   PRICING
========================================================= */
.price-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 16px;
}
@media (min-width: 820px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }

.price-card {
  padding: 32px 28px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease),
              border-color var(--speed) var(--ease), background var(--speed) var(--ease);
}
.price-card.in-view { opacity: 1; transform: translateY(0); }
.price-card:hover { border-color: var(--border-strong); }

.price-recommended {
  border-color: var(--teal-500);
  background: linear-gradient(180deg, rgba(20,184,166,0.06), var(--bg-soft));
}
.price-recommended:hover { border-color: var(--teal-500); }

.price-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.price-tag .badge {
  font-size: 10.5px;
  padding: 3px 8px;
  background: var(--teal-500);
  color: var(--bg);
  border-radius: 999px;
  letter-spacing: 0.06em;
}

.price-amount {
  margin: 18px 0 16px;
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 96;
}
.price-amount .currency {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-soft);
  vertical-align: top;
  margin-right: 4px;
}

.price-detail {
  margin: 0 0 28px;
  font-size: 14.5px;
  color: var(--text-soft);
  line-height: 1.55;
}

.price-cta {
  display: inline-block;
  color: var(--teal-500);
  font-weight: 600;
  font-size: 15px;
}

.price-founder { border-color: rgba(20,184,166,0.3); }

.price-refund {
  margin: 36px 0 0;
  font-size: 15px;
  color: var(--text-soft);
}


/* =========================================================
   FAQ
========================================================= */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  max-width: 760px;
}
.faq-list details {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-list summary {
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 50px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform var(--speed) var(--ease);
}
.faq-list details[open] summary::after {
  content: '−';
  color: var(--teal-500);
}
.faq-list details p {
  margin: 0;
  padding: 0 22px 22px;
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.6;
}


/* =========================================================
   FINAL CTA
========================================================= */
.final-cta {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  position: relative;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(20,184,166,0.12), transparent 60%);
  pointer-events: none;
}
.final-cta .container { position: relative; text-align: center; }
.final-cta h2 { max-width: 780px; margin-left: auto; margin-right: auto; }
.final-cta .block-lede { margin-left: auto; margin-right: auto; }
.email-capture-large {
  margin: 0 auto 10px;
  max-width: 520px;
}
.email-capture-large input { padding: 15px 18px; font-size: 16px; }
.email-capture-large button { padding: 15px 26px; font-size: 16px; }
.final-cta .form-note { margin-left: auto; margin-right: auto; text-align: center; }


/* =========================================================
   FOOTER
========================================================= */
footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding-top: 72px;
}
footer .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
@media (min-width: 720px) {
  footer .container { grid-template-columns: 1.2fr 2fr; gap: 64px; }
}
.footer-brand img { height: 48px; margin-bottom: 14px; }
.footer-tagline {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--text-soft);
}
.footer-meta {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 560px) {
  .footer-links { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
}
.footer-links h4 {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.footer-links a {
  display: block;
  padding: 4px 0;
  color: var(--text-soft);
  font-size: 14.5px;
  font-weight: 400;
}
.footer-links a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  padding-bottom: 32px;
  border-top: 1px solid var(--border);
}
.footer-bottom p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}
.contact a {
  color: var(--text-soft);
  font-size: 13px;
}
.contact a:hover { color: var(--teal-500); }


/* =========================================================
   DOWNLOAD PAGE
   Hero is a single column (no mascot). OS cards are side by
   side on desktop, stacked on mobile. JS adds .recommended to
   whichever card matches the detected platform.
========================================================= */
.download-hero {
  padding: 80px 0 40px;
  text-align: center;
}
.download-hero h1 { margin-left: auto; margin-right: auto; max-width: 760px; }
.download-hero .lede {
  margin: 0 auto;
  max-width: 540px;
  text-align: center;
}
.download-hero .eyebrow { margin-bottom: 20px; }
.detected-badge {
  margin: 28px auto 0;
  display: inline-block;
  padding: 8px 16px;
  background: rgba(20,184,166,0.08);
  border: 1px solid rgba(20,184,166,0.25);
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-soft);
}
.detected-badge strong { color: var(--teal-500); }

.download-grid-wrap { padding-top: 40px; padding-bottom: 60px; border-top: none; }
.download-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 720px) {
  .download-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

.dl-card {
  padding: 36px 32px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--speed) var(--ease), background var(--speed) var(--ease),
              transform var(--speed) var(--ease);
}
.dl-card:hover { border-color: var(--border-strong); }
.dl-card.recommended {
  border-color: var(--teal-500);
  background: linear-gradient(180deg, rgba(20,184,166,0.06), var(--bg-soft));
  box-shadow: 0 4px 24px -8px rgba(20,184,166,0.18);
}

.dl-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.dl-icon {
  width: 36px;
  height: 36px;
  color: var(--text);
  flex-shrink: 0;
}
.dl-card.recommended .dl-icon { color: var(--teal-500); }
.dl-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.dl-spec {
  margin: 0 0 28px;
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.dl-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  background: var(--teal-500);
  color: var(--bg) !important;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.dl-cta:hover { background: var(--teal-600); transform: translateY(-1px); }
.dl-cta .arrow { transition: transform var(--speed) var(--ease); }
.dl-cta:hover .arrow { transform: translateY(2px); }

.dl-postlaunch {
  margin: 18px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}
.dl-postlaunch .lo {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  font-size: 10.5px;
  color: var(--text-muted);
  margin-right: 6px;
}

.other-os {
  margin-top: 28px;
  padding: 16px 20px;
  background: rgba(255,184,0,0.06);
  border: 1px solid rgba(255,184,0,0.2);
  border-radius: var(--radius);
  font-size: 14.5px;
  color: var(--text-soft);
  line-height: 1.55;
}
.other-os strong { color: #FFB800; margin-right: 4px; }


/* =========================================================
   WELCOME / "YOU'RE IN GOOD COMPANY" GRID (download page)
   Four small cards reinforcing what kind of buyer Otterlog
   serves. Sits between the OS cards and the notify form.
========================================================= */
.welcome { background: var(--bg-soft); }
.welcome-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}
@media (min-width: 720px)  { .welcome-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .welcome-grid { grid-template-columns: repeat(4, 1fr); } }

.welcome-card {
  padding: 26px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.welcome-card:hover {
  border-color: var(--teal-500);
  transform: translateY(-2px);
}
.welcome-card svg {
  width: 26px;
  height: 26px;
  color: var(--teal-500);
  margin-bottom: 14px;
}
.welcome-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.welcome-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-soft);
  line-height: 1.6;
}
.welcome-card p a {
  color: var(--teal-500);
  border-bottom: 1px solid rgba(20,184,166,0.3);
}
.welcome-card p a:hover {
  border-bottom-color: var(--teal-500);
}


/* =========================================================
   NOTIFY (download page sub-section)
========================================================= */
.notify { text-align: center; }
.notify h2 { max-width: 720px; margin-left: auto; margin-right: auto; }
.notify .block-lede { margin-left: auto; margin-right: auto; }
.notify .email-capture-large { margin: 0 auto 10px; }
.notify .form-note { margin: 0 auto; text-align: center; }


/* =========================================================
   VERIFY YOUR DOWNLOAD (post-launch instructions)
========================================================= */
.verify { background: var(--bg-soft); }
.verify-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 16px;
}
@media (min-width: 720px) {
  .verify-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
.verify-card {
  padding: 26px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.verify-card h3 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
}
.verify-step {
  margin: 0 0 10px;
  font-size: 14.5px;
  color: var(--text-soft);
}
.verify-step strong {
  color: var(--teal-500);
  margin-right: 6px;
}
.verify-step code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bg-elev-2);
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--text);
  border: 1px solid var(--border);
}


/* =========================================================
   VERTICAL LANDING PAGE (/therapists, /lawyers, etc.)
   Reuses block styles but with denser, more authoritative
   spacing because the audience is reading carefully, not
   skimming.
========================================================= */
.vertical-hero {
  padding: 80px 0 40px;
  position: relative;
}
.vertical-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  max-width: 820px;
}
.vertical-hero .lede { max-width: 620px; }

.why-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 720px) { .why-list { grid-template-columns: repeat(2, 1fr); } }
.why-list li {
  padding: 24px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.why-list h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}
.why-list p {
  margin: 0;
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.6;
}

.objections {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  max-width: 760px;
}
.objection {
  padding: 22px 24px;
  background: var(--bg-soft);
  border-left: 3px solid var(--teal-500);
  border-radius: var(--radius);
}
.objection-q {
  display: block;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--text);
}
.objection-a {
  margin: 0;
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.6;
}


/* =========================================================
   CHECK-LIST (pricing, "what you get" / "what you don't")
========================================================= */
.check-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-width: 760px;
}
@media (min-width: 640px) { .check-list { grid-template-columns: repeat(2, 1fr); } }

.check-list li {
  position: relative;
  padding: 12px 16px 12px 40px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.5;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 14px;
  top: 12px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--bg);
  background: var(--teal-500);
  border-radius: 50%;
}
.check-list-x li::before {
  content: '×';
  font-size: 16px;
  background: var(--text-muted);
}


/* =========================================================
   PROSE BLOCKS (about, press pitch, legal)
========================================================= */
.prose-block {
  max-width: var(--max-prose);
  margin: 0;
}
.prose-block p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-soft);
  margin: 0 0 20px;
}
.prose-block p strong { color: var(--text); }
.prose-block p a {
  color: var(--teal-500);
  border-bottom: 1px solid rgba(20,184,166,0.3);
}
.prose-block p a:hover { border-bottom-color: var(--teal-500); }

.prose-contact {
  margin-top: 28px !important;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 15px !important;
  color: var(--text-muted) !important;
}


/* =========================================================
   LEGAL PAGES (privacy-policy, terms, licenses)
========================================================= */
.legal { padding-top: 60px; padding-bottom: 100px; }
.prose-legal h2 {
  margin: 44px 0 14px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.prose-legal h2:first-of-type { margin-top: 0; }
.prose-legal h3 {
  margin: 28px 0 10px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
}
.prose-legal ul {
  margin: 0 0 20px;
  padding-left: 22px;
}
.prose-legal ul li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-soft);
  margin-bottom: 8px;
}
.prose-legal ul li strong { color: var(--text); }
.prose-legal code {
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--bg-elev-2);
  color: var(--teal-500);
  padding: 2px 6px;
  border-radius: 4px;
}
.legal-notice {
  margin-top: 48px;
  padding: 16px 20px;
  background: rgba(255,184,0,0.06);
  border: 1px solid rgba(255,184,0,0.2);
  border-radius: var(--radius);
  font-size: 14.5px !important;
  color: var(--text-soft) !important;
  line-height: 1.6;
}
.legal-notice strong { color: #FFB800; }


/* =========================================================
   LICENSE TABLES
========================================================= */
.license-table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  font-size: 14.5px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.license-table th,
.license-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.license-table th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-elev-2);
}
.license-table tbody tr:last-child td { border-bottom: none; }
.license-table td a {
  color: var(--teal-500);
  font-weight: 500;
}
.license-table td:nth-child(2) {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-soft);
}
.license-table td:nth-child(3) {
  font-size: 13px;
  color: var(--text-muted);
}


/* =========================================================
   RELEASE ENTRIES (changelog)
========================================================= */
.release {
  padding: 32px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
}
.release-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.release-version {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  background: var(--teal-500);
  color: var(--bg);
  border-radius: 999px;
}
.release-date {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.release h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
}
.release-body {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}
.release-pending .release-version {
  background: rgba(255,184,0,0.15);
  color: #FFB800;
  border: 1px solid rgba(255,184,0,0.3);
}


/* =========================================================
   PRESS KIT ASSETS GRID
========================================================= */
.press-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 16px;
}
@media (min-width: 720px) { .press-grid { grid-template-columns: repeat(2, 1fr); } }

.press-asset {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 22px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.press-asset:hover {
  border-color: var(--teal-500);
  transform: translateY(-1px);
}
.press-asset strong {
  font-size: 16px;
  font-weight: 600;
}
.press-asset span {
  font-size: 13px;
  color: var(--text-muted);
}
.press-asset .asset-coming {
  color: #FFB800;
  font-weight: 500;
}


/* =========================================================
   404
========================================================= */
.notfound {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
}
.notfound-card {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.notfound-card img {
  width: clamp(180px, 30vw, 240px);
  height: auto;
  margin: 0 auto 24px;
  display: block;
}
.notfound-card h1 {
  font-size: clamp(36px, 5.4vw, 56px);
}
.notfound-card .lede {
  max-width: 460px;
  margin: 0 auto 32px;
}
.notfound-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}


/* =========================================================
   ACCESSIBILITY WIDGET (same pattern as samantm + papilabs)
   Fixed launcher bottom-right, panel above it on open. Local-
   storage-backed prefs handled in a11y.js with an inline early-
   init script in <head> to avoid theme flash on cold load.
========================================================= */
.a11y-launcher {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  color: var(--text-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform var(--speed) var(--ease),
              border-color var(--speed) var(--ease),
              color var(--speed) var(--ease);
  cursor: pointer;
}

/* Subtle ambient teal ping so the launcher is discoverable. */
.a11y-launcher::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 999px;
  border: 2px solid var(--teal-500);
  opacity: 0;
  animation: a11y-ping 3.5s ease-out infinite;
  pointer-events: none;
}
@keyframes a11y-ping {
  0%   { transform: scale(1);   opacity: 0; }
  18%  { transform: scale(1);   opacity: 0.55; }
  100% { transform: scale(1.55); opacity: 0; }
}
.a11y-launcher:focus-within::before,
.a11y-launcher[aria-expanded="true"]::before { animation: none; opacity: 0; }
.a11y-launcher:hover {
  transform: translateY(-1px);
  border-color: var(--teal-500);
  color: var(--teal-500);
}
.a11y-launcher svg { width: 22px; height: 22px; }
.a11y-launcher:focus-visible { outline: 2px solid var(--teal-500); outline-offset: 3px; }

.a11y-panel {
  position: fixed;
  bottom: 76px;
  right: 20px;
  z-index: 99;
  width: min(320px, calc(100vw - 32px));
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity var(--speed) var(--ease),
              transform var(--speed) var(--ease);
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}
.a11y-panel.open { opacity: 1; transform: translateY(0); pointer-events: auto; }

.a11y-panel h2 {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-muted);
  margin: 0;
}

.a11y-group { display: flex; flex-direction: column; gap: 8px; }
.a11y-label {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

.a11y-segmented {
  display: flex;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.a11y-segmented button {
  flex: 1;
  padding: 8px 10px;
  border-radius: 6px;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease);
  text-transform: lowercase;
  cursor: pointer;
}
.a11y-segmented button[aria-pressed="true"] {
  background: var(--bg-elev);
  color: var(--text);
}
.a11y-segmented button:hover:not([aria-pressed="true"]) { color: var(--text); }

.a11y-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  padding: 6px 0;
}
.a11y-switch {
  position: relative;
  width: 34px;
  height: 20px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: background var(--speed) var(--ease),
              border-color var(--speed) var(--ease);
  flex-shrink: 0;
}
.a11y-switch::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: 16px;
  height: 16px;
  background: var(--text-muted);
  border-radius: 999px;
  transition: transform var(--speed) var(--ease),
              background var(--speed) var(--ease);
}
input[type="checkbox"]:checked + .a11y-switch { background: var(--teal-500); border-color: var(--teal-500); }
input[type="checkbox"]:checked + .a11y-switch::after { transform: translateX(14px); background: var(--bg); }
input[type="checkbox"]:focus-visible + .a11y-switch { outline: 2px solid var(--teal-500); outline-offset: 2px; }
.a11y-row input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }

.a11y-reset {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  font-weight: 500;
  color: var(--teal-500);
  text-align: left;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}
.a11y-reset:hover { color: var(--teal-600); }


/* =========================================================
   REDUCED MOTION
========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .hero-copy, .hero-mascot, .block, .feature-card, .price-card {
    opacity: 1 !important;
    transform: none !important;
  }
}
