/* ============================================================
   The Art of Allowing — marketing site stylesheet.
   Duo design system; token values are the app's
   (frontend/src/app.css) so site and app match at the handoff.
   ============================================================ */

/* ============================================================
   tokens — both themes.

   why: unlike the app (always dark by default), the site
   follows prefers-color-scheme when the visitor has never
   chosen — with no preference resolving to dark, since Night
   Sky is the brand. Each page's inline <head> bootstrap always
   sets data-theme to "dark" or "light", so exactly one of
   these blocks is live at any moment.
   ============================================================ */
:root,
[data-theme="dark"] {
  --duo-bg: #070b1a;
  --duo-text: #e7eaf5;
  --duo-body: #c8cde4;
  --duo-muted: #8b93b8;
  --duo-btn-fg: #070b1a;
  --duo-accent: #f18a62;
  --duo-accent-rgb: 241, 138, 98;
  --duo-accent2: #f5c069;
  --duo-accent2-rgb: 245, 192, 105;
  --duo-card: rgba(255, 255, 255, 0.05);
  --duo-card-hi: rgba(255, 255, 255, 0.08);
  --duo-ring: rgba(255, 255, 255, 0.1);
  --duo-ring-hi: rgba(255, 255, 255, 0.22);
  --duo-chipbg: rgba(255, 255, 255, 0.07);
  --duo-chipbg-lo: rgba(255, 255, 255, 0.04);
  --duo-on-bd: rgba(var(--duo-accent-rgb), 0.4);
  --duo-inputbg: rgba(255, 255, 255, 0.05);
  --duo-rule: rgba(255, 255, 255, 0.1);
  --duo-orb-a: rgba(var(--duo-accent-rgb), 0.2);
  --duo-orb-b: rgba(var(--duo-accent2-rgb), 0.2);
  --duo-orbline: rgba(255, 255, 255, 0.07);
  --duo-navbg: rgba(7, 11, 26, 0.8);
  --duo-shadow: 0 10px 40px rgba(var(--duo-accent-rgb), 0.25);
  --duo-danger: #fb7185;
  --font-display: "Fraunces", Georgia, serif;
  --font-ui: "Inter", system-ui, sans-serif;
}

[data-theme="light"] {
  --duo-bg: #faf5ec;
  --duo-text: #211d16;
  --duo-body: #4a4234;
  --duo-muted: #6f6453;
  --duo-btn-fg: #faf5ec;
  --duo-accent: #a8542b;
  --duo-accent-rgb: 168, 84, 43;
  --duo-accent2: #6b7a4f;
  --duo-accent2-rgb: 107, 122, 79;
  --duo-card: #ffffff;
  --duo-card-hi: #fffdf8;
  --duo-ring: #e9dfcc;
  --duo-ring-hi: #d8c9ac;
  --duo-chipbg: #f3ecdd;
  --duo-chipbg-lo: #f6f0e3;
  --duo-on-bd: rgba(var(--duo-accent-rgb), 0.4);
  --duo-inputbg: #fffdf8;
  --duo-rule: #e4dac8;
  --duo-orb-a: rgba(var(--duo-accent-rgb), 0.14);
  --duo-orb-b: rgba(var(--duo-accent2-rgb), 0.14);
  --duo-orbline: rgba(33, 29, 22, 0.12);
  --duo-navbg: rgba(250, 245, 236, 0.9);
  --duo-shadow: 0 10px 36px rgba(168, 84, 43, 0.22);
  --duo-danger: #b32a4d;
}

/* why: native form controls and scrollbars follow the theme */
:root {
  color-scheme: dark;
}
[data-theme="light"] {
  color-scheme: light;
}

/* ============================================================
   fonts — self-hosted variable subsets (latin), no CDN.
   ============================================================ */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("fonts/fraunces-var.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 300 600;
  font-display: swap;
  src: url("fonts/fraunces-var-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter-var.woff2") format("woff2");
}

/* ============================================================
   base — reset, body, focus, aurora.
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}
/* why: the app's .duo-app aurora, moved onto body — the site has
   no shell wrapper, every page wears the same quiet wash. Static,
   fixed, near-invisible; the orb tokens carry the tint. */
body {
  background:
    radial-gradient(60% 50% at 70% 0%, var(--duo-orb-b), transparent 60%),
    radial-gradient(50% 40% at 15% 20%, var(--duo-orb-a), transparent 60%),
    radial-gradient(70% 60% at 50% 110%, var(--duo-orb-a), transparent 60%),
    var(--duo-bg);
  background-attachment: fixed;
  color: var(--duo-body);
  font: 400 17px/1.65 var(--font-ui);
  /* why: the gradient layers can't interpolate — they'd snap anyway;
     only the text color fades on theme change */
  transition: color 0.3s;
}
:focus-visible {
  outline: 2px solid var(--duo-accent);
  outline-offset: 2px;
}

/* ============================================================
   type — Fraunces display with the italic accent word as the
   signature; Inter for UI/eyebrows.
   ============================================================ */
.eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--duo-muted);
}
.display {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--duo-text);
}
.display em,
.display-sm em {
  font-style: italic;
  color: var(--duo-accent);
}
.display-sm {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.15;
  color: var(--duo-text);
}
a {
  color: var(--duo-accent);
}

/* ============================================================
   layout — type and air; hairlines between sections.
   ============================================================ */
.wrap {
  max-width: 1040px;
  margin-inline: auto;
  padding-inline: 24px;
}
.wrap-narrow {
  max-width: 640px;
}
section {
  padding-block: clamp(72px, 10vw, 128px);
}
section + section {
  border-top: 1px solid var(--duo-rule);
}

/* ============================================================
   buttons.
   ============================================================ */
.btn-primary {
  /* also used on <a>: anchors need the centering + link reset */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: var(--duo-accent);
  color: var(--duo-btn-fg);
  font: 600 15px var(--font-ui);
  padding: 14px 28px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: box-shadow 0.25s, transform 0.15s;
}
.btn-primary:hover:not(:disabled) {
  box-shadow: var(--duo-shadow);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: default;
}

/* ============================================================
   utilities.
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.micro {
  font-size: 13px;
  color: var(--duo-muted);
}
.quiet-link {
  color: var(--duo-muted);
  text-decoration: none;
}
.quiet-link:hover {
  color: var(--duo-accent);
  text-decoration: underline;
}

/* ============================================================
   motion — reduced-motion users get an instant, still page.
   (.reveal arrives with the shell markup; the guard leads.)
   ============================================================ */
@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 !important;
  }
  .js .reveal {
    transition: none;
  }
}

/* ============================================================
   nav — sticky, blurred, quiet.
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--duo-navbg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--duo-rule);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}
.wordmark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 19px;
  color: var(--duo-text);
  text-decoration: none;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a {
  font-size: 15px;
  color: var(--duo-muted);
  text-decoration: none;
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--duo-text);
}
.theme-toggle {
  background: none;
  border: 0;
  padding: 6px;
  font-size: 16px;
  line-height: 1;
  color: var(--duo-muted);
  cursor: pointer;
}
.theme-toggle:hover {
  color: var(--duo-text);
}

/* ============================================================
   anchors — smooth scroll; sticky-nav clearance on jumps.
   ============================================================ */
html {
  scroll-behavior: smooth;
}
section[id],
[id="top"] {
  scroll-margin-top: 76px;
}

/* ============================================================
   hero.
   ============================================================ */
.hero {
  padding-top: clamp(48px, 8vw, 96px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-copy .eyebrow {
  margin-bottom: 18px;
}
.hero-copy .display {
  margin-bottom: 18px;
}
.hero-sub {
  font-size: 19px;
  max-width: 46ch;
  margin-bottom: 28px;
}
.hero-orb {
  display: flex;
  justify-content: center;
}

/* lead form — layout only; interactive states arrive in Task 8 */
.lead-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.lead-form input {
  flex: 1 1 240px;
  background: var(--duo-inputbg);
  border: 1px solid var(--duo-ring);
  border-radius: 999px;
  padding: 12px 18px;
  color: var(--duo-text);
  font: 400 15px var(--font-ui);
}
.lead-form input::placeholder {
  color: var(--duo-muted);
}
.lead-form .micro {
  flex-basis: 100%;
}
.form-note {
  min-height: 1.4em;
  font-size: 14px;
}
@media (max-width: 800px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .lead-form {
    flex-direction: column;
    align-items: stretch;
  }
  .lead-form .btn-primary {
    width: 100%;
  }
}

/* ============================================================
   orb — the one motion motif (duo-design-system §7.2);
   hero at ×1.25, .orb-sm for section dividers.
   ============================================================ */
.orb {
  position: relative;
  width: 320px;
  height: 320px;
}
.orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--duo-orbline);
}
.orb .r1 {
  inset: 0;
}
.orb .r2 {
  inset: 40px;
  border-color: var(--duo-on-bd);
  opacity: 0.5;
  animation: orb-breathe 10s ease-in-out infinite;
  animation-delay: 1.4s;
}
.orb .r3 {
  inset: 80px;
  animation: orb-breathe 10s ease-in-out infinite;
  animation-delay: 0.7s;
}
.orb-core {
  position: absolute;
  inset: 80px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 40% 35%,
    var(--duo-orb-a),
    var(--duo-orb-b) 70%,
    transparent
  );
  filter: blur(28px);
  animation: orb-breathe 10s ease-in-out infinite;
}
@keyframes orb-breathe {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}
.orb-sm {
  width: 120px;
  height: 120px;
}
.orb-sm .r2 {
  inset: 15px;
}
.orb-sm .r3 {
  inset: 30px;
}
.orb-sm .orb-core {
  inset: 30px;
  filter: blur(12px);
}

/* ============================================================
   reveal — fade in gently on scroll. Scoped to .js (set by
   site.js) so no-JS visitors and crawlers always see content.
   ============================================================ */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .revealed {
  opacity: 1;
  transform: none;
}

/* ============================================================
   sections — Task 5 (one-pager copy blocks).
   ============================================================ */

/* shared rhythm: eyebrows and section headings get air */
section .eyebrow {
  margin-bottom: 16px;
}
section .display-sm {
  margin-bottom: 28px;
}

/* ---- video placeholder ---- */
.video-frame {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--duo-ring);
  border-radius: 20px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  background: var(--duo-chipbg-lo);
}
.video-note {
  color: var(--duo-muted);
  font-size: 14px;
}

/* ---- reframe: pure typography ---- */
#reframe p {
  font-size: 19px;
  line-height: 1.7;
}
#reframe p + p {
  margin-top: 22px;
}

/* ---- how it works: three quiet cards ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--duo-card);
  border: 1px solid var(--duo-ring);
  border-radius: 16px;
  padding: 28px;
}
.card-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 22px;
  color: var(--duo-text);
  margin-bottom: 10px;
}

/* ---- the 8 weeks: vertical timeline of <details> phases ---- */
.timeline {
  border-left: 1px solid var(--duo-rule);
  margin-top: 8px;
}
.phase {
  position: relative;
  padding-left: 32px;
  padding-block: 8px;
}
.phase + .phase {
  margin-top: 28px;
}
/* the phase dot sits on the rule */
.phase::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 20px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--duo-accent);
}
.phase summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 40px;
}
.phase summary::-webkit-details-marker {
  display: none;
}
.phase summary > span {
  display: block;
}
.phase summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 6px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 26px;
  line-height: 1;
  color: var(--duo-muted);
}
.phase[open] summary::after {
  content: "−";
}
.phase-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  color: var(--duo-text);
}
.phase-blurb {
  color: var(--duo-muted);
  font-size: 15px;
  margin-top: 4px;
  max-width: 52ch;
}
.phase-body {
  margin-top: 14px;
}
.phase-body ul {
  list-style: none;
  padding: 0;
}
.phase-body li {
  position: relative;
  padding-left: 18px;
  padding-block: 3px;
  font-size: 16px;
}
.phase-body li::before {
  content: "·";
  position: absolute;
  left: 4px;
  color: var(--duo-muted);
}
.phase-empty {
  color: var(--duo-muted);
  font-size: 15px;
}

/* ---- about: photo beside text ---- */
.about-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
}
.photo-frame {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px solid var(--duo-ring);
  background: var(--duo-chipbg);
  display: grid;
  place-items: center;
}
.photo-initial {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 64px;
  color: var(--duo-accent);
}
.photo-caption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--duo-muted);
  text-align: center;
}
.about-copy p + p {
  margin-top: 18px;
}

/* ---- FAQ teaser ---- */
.qa-list {
  border-top: 1px solid var(--duo-rule);
}
.qa {
  padding-block: 22px;
  border-bottom: 1px solid var(--duo-rule);
}
.qa-q {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  color: var(--duo-text);
  margin-bottom: 8px;
}
.qa-a {
  font-size: 16px;
}
.qa-more {
  margin-top: 24px;
}
.qa-more a {
  text-decoration: none;
}
.qa-more a:hover {
  text-decoration: underline;
}

/* ---- close: centered invitation + second form ---- */
#close {
  text-align: center;
}
#close .display {
  margin-bottom: 28px;
}
#close .lead-form {
  justify-content: center;
}
#close .form-note {
  flex-basis: 100%;
}

/* ---- footer ---- */
.footer {
  border-top: 1px solid var(--duo-rule);
  padding-block: 32px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--duo-muted);
}
.footer-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  color: var(--duo-muted);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--duo-text);
}

/* ---- mobile collapses (same breakpoints as the shell) ---- */
@media (max-width: 720px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
@media (max-width: 560px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* ============================================================
   faq — /faq page (Task 6). Native <details> accordion; the
   +/− indicator mirrors the phase pattern from the one-pager.
   ============================================================ */
.faq-head .eyebrow {
  margin-bottom: 18px;
}
.faq-head .display {
  margin-bottom: 18px;
}
.faq-head .hero-sub {
  margin-bottom: 0;
  max-width: 44ch;
}
.faq-list {
  border-top: 1px solid var(--duo-rule);
}
.faq-item {
  padding-block: 22px;
  border-bottom: 1px solid var(--duo-rule);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 40px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.4;
  color: var(--duo-text);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 1px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 22px;
  line-height: 1;
  color: var(--duo-muted);
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-a {
  padding-top: 12px;
  padding-right: 40px;
  font-size: 16px;
}
.faq-a p + p {
  margin-top: 14px;
}

/* B1 minutes table — hairline rows, no grid; scrolls sideways
   on phones inside .faq-table-wrap */
.faq-table-wrap {
  overflow-x: auto;
  margin-block: 16px 18px;
}
.faq-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 620px;
  font-size: 14px;
}
.faq-table th,
.faq-table td {
  text-align: left;
  padding: 7px 12px 7px 0;
  border-bottom: 1px solid var(--duo-rule);
  white-space: nowrap;
}
.faq-table thead th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--duo-muted);
}
/* week labels as row headers — quiet, not the bold browser default */
.faq-table tbody th {
  font-weight: 400;
  color: var(--duo-text);
}
/* core days are Day 1 / 3 / 5 — columns 2, 4, 6 */
.faq-table td:nth-child(2),
.faq-table td:nth-child(4),
.faq-table td:nth-child(6) {
  font-weight: 600;
  color: var(--duo-text);
}
.faq-table tr.grace td,
.faq-table tr.grace th {
  font-style: italic;
  font-weight: 400;
  color: var(--duo-muted);
}

/* ============================================================
   legal — /privacy + /terms (Task 7). Plain prose in
   .wrap-narrow reusing the existing type scale; only rhythm
   helpers live here. Muted "last updated" line, Fraunces h2s,
   breathing room between sections.
   ============================================================ */
.legal-updated {
  font-size: 13px;
  color: var(--duo-muted);
  margin-bottom: 40px;
}
.legal h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.3;
  color: var(--duo-text);
  margin-block: 36px 12px;
}
.legal p + p,
.legal ul + p,
.legal p + ul {
  margin-top: 14px;
}
.legal ul {
  list-style: disc;
  padding-left: 22px;
}
.legal li + li {
  margin-top: 8px;
}
.legal strong {
  color: var(--duo-text);
}

/* ============================================================
   form states — lead-form feedback notes + the Turnstile slot
   (layout itself lives with the hero block above).
   ============================================================ */
/* why ok is accent, not accent2: light sage fails AA at 13-14px
   on the page background; accent passes in both themes */
[data-form-note][data-kind="ok"] {
  color: var(--duo-accent);
}
[data-form-note][data-kind="warn"] {
  color: var(--duo-danger);
}
/* why: the container only appears when captcha is on — reserving
   the widget's height keeps the button/note from jumping */
.ts-container {
  flex-basis: 100%;
  min-height: 65px;
}
.ts-container[hidden] {
  display: none;
}

/* ============================================================
   pf home — / (the Profound Freedom shelf). Only the course
   card layout lives here; the rest reuses the one-pager shell.
   ============================================================ */
.card.course-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  padding: 48px;
}
.course-card .display-sm {
  margin-bottom: 14px;
}
.course-card-pitch {
  font-size: 18px;
  max-width: 52ch;
}
.course-card-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
}
.future-note {
  margin-top: 28px;
}
@media (max-width: 720px) {
  .course-card {
    grid-template-columns: 1fr;
    padding: 32px;
  }
}

/* =====================================================}

   privacy notice — dismissible bottom bar injected by site.js
   ============================================================ */
.privacy-notice {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
  background: var(--duo-navbg);
  border-top: 1px solid var(--duo-ring);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  line-height: 1.25;
  color: var(--duo-body);
}

.privacy-notice-text {
  flex: 1;
  margin: 0;
}

.privacy-notice-text a {
  color: var(--duo-accent);
  text-decoration: underline;
}

.privacy-notice-btn {
  flex: none;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--duo-ring-hi);
  border-radius: 999px;
  background: var(--duo-card-hi);
  color: var(--duo-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.privacy-notice-btn:focus-visible,
.privacy-notice-text a:focus-visible {
  outline: 2px solid var(--duo-accent);
  outline-offset: 2px;
}

@media (min-width: 720px) {
  .privacy-notice {
    justify-content: center;
    font-size: 0.8125rem;
  }
  .privacy-notice-text {
    flex: 0 1 760px;
  }
}

/* ---- Plain-English terms list ---- */
.plain-list {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--duo-rule);
}
.plain-list li {
  padding-block: 16px;
  border-bottom: 1px solid var(--duo-rule);
  font-size: 16px;
}
.plain-list strong {
  color: var(--duo-text);
  font-weight: 500;
}

/* a Start button repeated where intent peaks (after "How it works", the terms) */
.section-cta {
  margin-top: 36px;
}
.section-cta .micro {
  margin-top: 10px;
}
.timeline-note {
  margin-top: 16px;
}

/* one-line nav on a phone: the wordmark and the links share 390px */
@media (max-width: 420px) {
  .nav-inner {
    gap: 10px;
  }
  .wordmark {
    font-size: 16px;
  }
  .nav-links {
    gap: 14px;
  }
  .nav-links a {
    font-size: 14px;
  }
  /* "About" is a scroll anchor on the same page; the wordmark, "The Practice",
     FAQ and the theme toggle are what a phone's width can carry. Matched by
     its target, since the home page's nav has no About at all. */
  .nav-links a[href$="#about"],
  /* on the course page the phone nav trades "The Practice" for the way back to the catalogue */
  .nav-links a[href="#how"] {
    display: none;
  }
}

/* a signed-in visitor's way back to their course: the one prominent thing in the nav */
.nav-links a.nav-app {
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--duo-accent);
  color: #1d1206;
  font-weight: 600;
}
.nav-links a.nav-app:hover {
  color: #1d1206;
  filter: brightness(1.08);
}
@media (max-width: 420px) {
  /* room for the button: keep only FAQ beside it */
  .signed-in .nav-links a:not(.nav-app):not([href="/faq"]) {
    display: none;
  }
  .nav-links a.nav-app {
    padding: 6px 12px;
    font-size: 13px;
  }
}

/* long unbreakable strings (the support address) must wrap, not scroll the page */
.legal {
  overflow-wrap: anywhere;
}

/* /sms — static rendering of the in-app opt-in screen */
.sms-mock {
  margin: 1.5rem 0;
  padding: 1.25rem;
  border: 1px solid var(--duo-ring);
  border-radius: 1rem;
  background: var(--duo-card);
}
.sms-mock-title { font-family: var(--font-display); font-size: 1.5rem; color: var(--duo-text); margin: 0 0 0.75rem; }
.sms-mock-note { font-size: 0.8rem; color: var(--duo-muted); margin: 0 0 0.5rem; }
.sms-mock-row { display: flex; gap: 0.5rem; }
.sms-mock-field {
  flex: 1;
  padding: 0.7rem 1rem;
  border: 1px solid var(--duo-ring);
  border-radius: 0.75rem;
  background: var(--duo-inputbg);
  color: var(--duo-muted);
  font-size: 0.9rem;
}
.sms-mock-btn {
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--duo-accent);
  color: var(--duo-btn-fg);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}
.sms-mock-tab {
  flex: 1;
  padding: 0.45rem 1rem;
  border: 1px solid var(--duo-ring);
  border-radius: 999px;
  color: var(--duo-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}
.sms-mock-tab-on { border-color: var(--duo-accent); background: var(--duo-accent); color: var(--duo-btn-fg); }
.sms-mock-heading { font-size: 0.9rem; font-weight: 600; color: var(--duo-text); margin: 1rem 0 0.25rem; }
.sms-mock-check { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.8rem; color: var(--duo-text); margin: 0.75rem 0 0; }
.sms-mock-box {
  flex: none;
  width: 0.9rem;
  height: 0.9rem;
  margin-top: 0.1rem;
  border: 1.5px solid var(--duo-muted);
  border-radius: 0.2rem;
  background: var(--duo-inputbg);
}
.sms-mock-fine { font-size: 0.75rem; line-height: 1.5; color: var(--duo-muted); margin: 0.75rem 0 0; }

.sms-mock-caption { font-size: 0.85rem; color: var(--duo-muted); margin: 1.25rem 0 0; }
.sms-mock + .sms-mock-caption { margin-top: 0; }

.legal-back { margin: 0 0 1rem; font-size: 0.9rem; }
.legal-back a { color: var(--duo-muted); text-decoration: none; }
.legal-back a:hover { color: var(--duo-text); }
