/* The studio and product pages share a masthead, product photography and actions. */
.landing {
  --shell: 83rem;
  --gutter: clamp(1.25rem, 5.5vw, 5rem);
  --lavender: #cab8ff;
  --axis: #484758;
  --ink-soft: #d5d9e5;
  --ink-faint: #bcc3d5;
  --ink-muted: #abb3c6;
  --paper: #f3f1f8;
  --paper-ink: #211e2c;
  --paper-body: #484456;
  --type-caption: .8125rem;
  --type-label: .9375rem;
  --type-reading: clamp(1.125rem, 1.04rem + .35vw, 1.3rem);
  --motion-fast: 160ms;
  --motion-step: 220ms;
  --section-space: clamp(3.75rem, 7.8vw, 7.25rem);
}
[hidden] { display: none !important; }
.landing :is(.mast-copy, .feature-copy, .beta-controls, .footer-grid > div, .note-grid > div) { min-inline-size: 0; }
.landing :is(h1, h2, h3, p, dd, dt, .action) { overflow-wrap: anywhere; }
.landing .site { border-bottom: 1px solid var(--rule); }
.landing .site-inner { min-height: 4.75rem; flex-wrap: wrap; padding-block: .5rem; gap: clamp(.7rem, 3vw, 3rem); }
.landing .site nav { margin-inline-start: auto; }
.landing .mark { gap: .45rem; min-height: 44px; }
.landing .mark-glyph { width: 2rem; height: 2rem; }
.landing .mark-word { font-size: 1.4rem; letter-spacing: -.055em; }
.landing .nav-link, .nav-beta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-body);
  font-size: var(--type-label);
  font-weight: 550;
}
.landing .nav-link { color: var(--ink-soft); }
.landing .site .nav-links { flex-wrap: wrap; }
.landing .nav-link:hover, .landing .nav-link[aria-current] { color: white; }
.nav-beta {
  border: 1px solid var(--axis);
  border-radius: 100px;
  padding-inline: 1.05rem;
  gap: 1rem;
  text-decoration: none;
}
.nav-beta:hover { color: var(--lavender); border-color: var(--lavender); }
.masthead { position: relative; overflow: clip; }
.mast-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 5rem);
  padding-block: clamp(3.8rem, 6.3vw, 7rem);
}
.studio-mast { border-bottom: 1px solid var(--rule-hi); }
.studio-mast .mast-grid { min-height: clamp(35rem, 45vw, 42rem); }
.mast-copy { position: relative; z-index: 2; }
.kicker, .product-type, .image-credit, .hero-print figcaption, .product-print figcaption {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--type-caption);
  line-height: 1.5;
}
.kicker, .product-type {
  display: flex;
  gap: .7rem;
  align-items: center;
  margin: 0 0 1.35rem;
  color: #d2c6ea;
  text-transform: uppercase;
  letter-spacing: .065em;
}
.kicker i, .product-type i { height: .46rem; width: .46rem; background: var(--lavender); border-radius: 50%; flex: none; }
.mast-copy h1 {
  max-width: none;
  font-size: clamp(3.4rem, 6.7vw, 6.6rem);
  line-height: 1.01;
  font-weight: 600;
  letter-spacing: -.05em;
  font-variation-settings: "wdth" 94;
}
.mast-copy em { color: var(--lavender); font-style: normal; }
.intro {
  max-width: 35rem;
  margin: 1.65rem 0 0;
  font-size: clamp(1.1875rem, 1.06rem + .48vw, 1.5rem);
  color: var(--ink-soft);
  line-height: 1.52;
  text-wrap: pretty;
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.45rem; margin-top: 1.9rem; }
.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  gap: 1rem;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 600;
  text-decoration: none;
}
.action > span, .nav-beta > span { transition: transform .2s var(--ease); }
.action:hover > span, .nav-beta:hover > span { transform: translateX(2px); }
.button-primary, .action-light {
  padding: .8rem 1.2rem;
  border-radius: 9px;
  color: #161126;
  background: var(--lavender);
  transition: background-color .2s var(--ease);
}
.button-primary:hover, .action-light:hover { color: #161126; background: #e4d9ff; }
.action-link { color: inherit; }
.action-link:hover { color: var(--lavender); }
.route-art {
  --ribbon-crop: 48% 53%;
  position: absolute;
  inset: 0 min(-2vw, -1rem) 0 39%;
  overflow: hidden;
  isolation: isolate;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 91%, transparent);
}
.route-art img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--ribbon-crop);
}
.route-art .route-light { display: none; }

@media (max-width: 52rem) {
  .route-art {
    --ribbon-crop: 50% 58%;
    position: relative;
    inset: auto;
    height: clamp(11rem, 34vw, 16rem);
    margin: -.5rem calc(-1 * var(--gutter)) -3rem;
    mask-image: linear-gradient(180deg, transparent, #000 10%);
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* Lift the original strands through a travelling feathered band. Contrast
     pushes the dark ground to black, so screen blending only lights the ribbon. */
  .route-art .route-light {
    display: block;
    opacity: 0;
    mix-blend-mode: screen;
    filter: brightness(1.65) contrast(1.4) saturate(1.12);
    mask-image: linear-gradient(101deg, transparent 33%, rgb(0 0 0 / .22) 41%, #000 49%, transparent 54%);
    mask-size: 300% 100%;
    mask-repeat: no-repeat;
  }
  .route-art.is-visible .route-light {
    animation: ribbon-light 2.8s cubic-bezier(.29,.05,.36,1) .14s both;
  }
  @keyframes ribbon-light {
    0% { opacity: 0; mask-position: 100% 50%; }
    12%, 83% { opacity: 1; }
    100% { opacity: 0; mask-position: 0% 50%; }
  }
}

.panel-section { padding-block: var(--section-space); }
.studio-products { container: studio-products / inline-size; }
.section-heading { margin-bottom: 2rem; }
.section-heading .kicker, .situations .kicker { margin-bottom: .7rem; }
.landing h2 {
  margin: 0;
  font-size: clamp(2.25rem, 4.1vw, 4rem);
  letter-spacing: -.044em;
  font-weight: 600;
  line-height: 1.04;
  max-width: 24ch;
}
.feature-product {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--axis);
  border-radius: 1rem;
  background: var(--paper);
  color: var(--paper-ink);
}
.feature-copy { align-self: center; padding: clamp(2rem, 5vw, 5.25rem); }
.feature-copy h3 { margin: 0; font-size: clamp(3.4rem, 5vw, 5rem); line-height: 1; letter-spacing: -.055em; }
.feature-copy > p:not(.product-type), .studio-note p:not(.kicker), .beta-copy > p:not(.kicker) {
  max-width: 34rem; color: var(--ink-soft); margin: 1.1rem 0 0;
  font-size: var(--type-reading); line-height: 1.56;
}
.feature-copy > p:not(.product-type) { color: var(--paper-body); }
.product-type { color: #5b466f; text-transform: none; letter-spacing: 0; font-size: var(--type-label); }
.product-type i { background: #6c478c; }
.feature-copy .action-light { background: var(--paper-ink); color: #fff; }
.feature-copy .action-light:hover { background: #493768; }
.feature-copy .action-link { color: #43314f; }
.feature-copy .action-link:hover { color: #66428a; }
.product-print, .hero-print {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  margin: 0;
  background-color: #c5b6f1;
  background-image: linear-gradient(125deg, #d4dafa, transparent 48%), linear-gradient(310deg, #8882c1, transparent 62%);
  color: #28233d;
}
.product-print::before, .hero-print::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(ellipse at 115% 92%, transparent 0 22px, #51408026 22.5px 23.2px, transparent 24px 33px);
}
.product-print { min-height: 24rem; }
.handset {
  position: relative;
  width: 100%;
  background: #171820;
  border: 4px solid #25242c;
  border-radius: 2.4rem;
  padding: 3px;
  box-shadow: 0 0 0 1px #93939b, 1px 4px 0 1px #54525d, 13px 25px 36px -13px #24203d8a;
}
.handset img { display: block; width: 100%; height: auto; border-radius: 1.98rem; }
.product-print .handset { position: absolute; width: 55%; max-width: 17rem; left: 24%; top: 13%; transform: rotate(7deg); }
.product-print figcaption, .hero-print figcaption {
  position: absolute; z-index: 2; bottom: 0; left: 0;
  padding: .45rem .8rem;
  background: #eeeafb; color: #403b55;
}
.runway-entry {
  display: grid; grid-template-columns: auto minmax(8rem, .7fr) 1.5fr auto;
  gap: 1.15rem; align-items: center; text-decoration: none; margin-top: .65rem;
  padding: 1.2rem clamp(1rem, 3vw, 3rem);
  background: #101216; border: 1px solid var(--rule-hi); border-radius: .85rem;
}
.runway-entry:hover { border-color: #557371; color: var(--ink); }
.runway-icon { display: grid; place-items: center; line-height: 1; font-size: 1.5rem; background: #c6e7dd; color: #154e4d; width: 2.85rem; height: 2.85rem; border-radius: .75rem; }
.runway-entry strong, .runway-entry small { display:block; }
.runway-entry strong { font: 550 1.45rem/1.2 var(--font-display); letter-spacing: -.025em; }
.runway-entry small, .runway-summary { color: var(--ink-soft); font-size: var(--type-label); }
.round-arrow { font-size: 1.35rem; }
.studio-note, .situations { background: #12121a; border-block: 1px solid var(--rule); }
.note-grid { display: grid; grid-template-columns: .85fr 1fr; gap: 8%; padding-block: var(--section-space); }
.studio-note .signal-wrap { max-width: 24rem; }
.studio-note .action { margin-top: 1rem; }
.noum-mast { border-bottom: 1px solid var(--rule-hi); }
.noum-mast .mast-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.hero-print {
  container: coach-art / inline-size;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: end;
  min-height: clamp(24rem, 34vw, 32rem);
  padding-block-start: clamp(6rem, 11vw, 10rem);
  border-radius: 1rem;
}
.hero-phone { position: absolute; top: 8%; width: 52%; max-width: 17.5rem; left: 13%; transform: rotate(-6deg); }
.transcript-quote {
  position: relative;
  justify-self: end;
  width: 61%;
  max-width: 21rem;
  margin: 0 5% clamp(.75rem, 1.8vw, 1.5rem) 0;
  padding: clamp(.95rem, 1.7vw, 1.65rem);
  border: 1px solid #fff;
  border-radius: .85rem;
  background: #fffefa;
  color: var(--paper-ink);
  box-shadow: 0 2px 5px #32224412, 0 14px 32px -9px #34244760;
}
.transcript-quote p { margin: 0; }
.transcript-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font: 560 var(--type-caption)/1.35 var(--font-body);
  color: #504760;
}
.transcript-label::before {
  content: "";
  width: .55rem;
  height: .55rem;
  flex: none;
  border-radius: 50%;
  background: #347958;
}
.transcript-quote p + p {
  margin-top: .65rem;
  font: 560 clamp(1.13rem, 1.58vw, 1.55rem)/1.28 var(--font-display);
  letter-spacing: -.018em;
}
.hero-print figcaption { position: relative; justify-self: start; max-width: 100%; }
.hero-print figcaption span { color: #6c6383; padding-inline: .34rem; }
.landing [id] { scroll-margin-top: 6rem; }
/* All four figures share grid tracks. Inactive panels reserve space but
   visibility also removes their content and links from keyboard/AT navigation. */
.sr-only, .choice-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.loop {
  --stage-ink: #221d30;
  --stage-body: #393444;
  --stage-accent: #45345e;
  --stage-mount: #dcd9e7;
  container: practice-loop / inline-size;
  min-inline-size: 0;
  margin: 0;
  padding: .5rem;
  border: 1px solid var(--axis);
  border-radius: 1rem;
  background: var(--surface);
}

.loop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: auto auto;
  row-gap: .5rem;
  isolation: isolate;
}

.choice {
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
  min-inline-size: 0;
  min-block-size: 3.25rem;
  padding: .7rem clamp(.6rem, 1.5vw, 1.4rem) .8rem;
  border: 1px solid transparent;
  border-radius: .55rem;
  color: var(--ink-soft);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
}
.choice-name { min-inline-size: 0; overflow-wrap: anywhere; }
.choice[for="step-practice"] { grid-column: 1; }
.choice[for="step-feedback"] { grid-column: 2; }
.choice[for="step-retry"] { grid-column: 3; }
.choice[for="step-progress"] { grid-column: 4; }
.choice-tick { visibility: hidden; flex: none; line-height: 1; }
.choice-input:checked + .choice {
  color: var(--ink);
  background: #312b40;
}
.choice-input:checked + .choice .choice-tick { visibility: visible; color: var(--lavender); }
.choice-input:focus-visible + .choice {
  outline: 2px solid var(--lavender);
  outline-offset: -2px;
}

.choice-track {
  grid-area: 1 / 1 / 2 / 2;
  z-index: 1;
  align-self: end;
  pointer-events: none;
  padding-inline: clamp(.6rem, 1.5vw, 1.4rem);
  transform: translateX(var(--stage-offset, 0%));
}
.choice-track::after {
  content: "";
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--lavender);
}
#step-feedback:checked ~ .choice-track { --stage-offset: 100%; }
#step-retry:checked ~ .choice-track { --stage-offset: 200%; }
#step-progress:checked ~ .choice-track { --stage-offset: 300%; }

.step-panel {
  grid-area: 2 / 1 / 3 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .94fr);
  align-items: stretch;
  margin: 0;
  overflow: hidden;
  visibility: hidden;
  border-radius: .65rem;
  color: var(--stage-ink);
  background: var(--paper);
}
.choice-input:checked + .choice + .step-panel { visibility: visible; }

.step-explainer {
  min-inline-size: 0;
  overflow-wrap: anywhere;
  align-self: center;
  padding: clamp(1.25rem, 4.2vw, 4rem);
}
.step-explainer .kicker { margin: 0 0 .8rem; color: var(--stage-accent); }
.step-explainer h3 {
  margin: 0;
  font-size: clamp(1.85rem, 3.2vw, 3rem);
  line-height: 1.1;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.step-explainer > p:not(.kicker) {
  max-inline-size: 40ch;
  margin: .9rem 0 0;
  color: var(--stage-body);
  font-size: 1.125rem;
  line-height: 1.55;
}
.step-full {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-block-size: 2.75rem;
  margin-block-start: .75rem;
  color: var(--stage-accent);
  font-size: 1rem;
  font-weight: 500;
  text-decoration-color: currentColor;
  text-underline-offset: .2em;
}
.step-full:hover { color: var(--stage-ink); }
.step-full:focus-visible { outline-color: var(--stage-accent); }

.step-screen {
  position: relative;
  min-inline-size: 0;
  min-block-size: 24rem;
  overflow: hidden;
  background: var(--stage-mount);
}
.step-screen img {
  position: absolute;
  inset-inline: 0;
  top: var(--screen-top, -5.1rem);
  display: block;
  width: min(100%, 22rem);
  height: auto;
  margin-inline: auto;
  box-shadow: 0 0 2rem #31283d1c;
}
.step-feedback { --screen-top: -5.8rem; }
.step-retry { --screen-top: -3rem; }
.step-progress { --screen-top: -4.9rem; }

@media (hover: hover) {
  .choice-input:not(:checked) + .choice:hover { color: var(--ink); background: #24212c; }
}
@media (prefers-reduced-motion: no-preference) {
  .choice-track { transition: transform var(--motion-step) var(--ease); }
  .choice-input:checked + .choice + .step-panel .step-screen img {
    animation: stage-arrive var(--motion-step) var(--ease) both;
  }
  @keyframes stage-arrive {
    from { transform: translateY(.4rem); }
    to { transform: none; }
  }
}

@container practice-loop (max-width: 37rem) {
  .loop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto auto auto;
    gap: .3rem;
  }
  .choice { min-block-size: 3rem; padding: .65rem .8rem; }
  .choice[for="step-retry"] { grid-area: 2 / 1; }
  .choice[for="step-progress"] { grid-area: 2 / 2; }
  .choice-input:checked + .choice { border-color: var(--lavender); }
  .choice-track { display: none; }
  .step-panel {
    grid-area: 3 / 1 / 5 / -1;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: subgrid;
    row-gap: 0;
  }
  .step-explainer { align-self: start; padding: 1.4rem; }
  .step-screen { min-block-size: 18rem; }
}
/* When font zoom leaves little inline space, the checked border carries the
   state and the name can use the entire target. */
@container practice-loop (max-width: 17rem) {
  .choice { justify-content: center; padding-inline: .25rem; text-align: center; }
  .choice-tick { display: none; }
  .step-explainer { padding-inline: 1rem; }
}
@media (forced-colors: active) {
  .choice-input:checked + .choice { border-color: Highlight; }
  .choice-input:focus-visible + .choice { outline-color: Highlight; }
}

.image-credit, .privacy-link { margin: .8rem 0 0; color: var(--ink-faint); }
.situations > .shell { padding-block: var(--section-space); }
.scenario-list { margin: 2rem 0 0; }
.scenario-list > div { display: grid; grid-template-columns: .9fr 1fr; gap: 2rem; padding: 1.5rem 0; border-top: 1px solid var(--axis); }
.scenario-list dt { font: 530 clamp(1.4rem, 2.3vw, 2rem)/1.15 var(--font-display); letter-spacing: -.035em; }
.scenario-list dd { margin: 0; color: var(--ink-soft); max-width: 50ch; font-size: var(--type-reading); line-height: 1.56; }
.beta-section { padding-block: var(--section-space); }
.beta-box {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(2rem, 5vw, 5rem);
  border: 1px solid #494155; border-radius: 1rem;
  padding: clamp(1.5rem, 4.3vw, 4.5rem);
  background: linear-gradient(115deg,#211c2e,#16151d);
}
.beta-box h2 { max-width: 16ch; text-wrap: balance; }
.beta-box .signup { margin: 0; }
.beta-box .signup-row { max-width: none; }
.beta-box .signup-input, .beta-box .signup-button { min-height: 46px; border-radius: .55rem; }
.beta-box .signup-input { flex: 1 1 11rem; border-color: #787088; }
.beta-box .signup-button { color: #211b34; background: var(--lavender); font: 600 1rem var(--font-body); }
.beta-box .signup-button:disabled { cursor: wait; }
.signup-status:empty { margin: 0; min-height: 0; }
.signup-status.is-ok { color: #c6eadb; }
.beta-controls :is(.privacy-link, .signup-note, .signup-alt, .signup-status) { font-size: var(--type-label); }
.beta-controls .signup-label {
  font: 600 1rem/1.5 var(--font-body);
  text-transform: none;
  letter-spacing: normal;
  color: var(--ink);
}
.beta-controls a:not(.action), .landing .legal a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: #9893ab;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}
.beta-controls a:not(.action):hover, .landing .legal a:hover { color: white; text-decoration-color: currentColor; }
.landing .legal { font: 400 var(--type-label)/1.6 var(--font-body); }
.landing .legal.muted { font-size: var(--type-caption); }
.landing .footer-grid, .landing .footer-legal { overflow-wrap: anywhere; }
.landing .signup-status.is-ok {
  border-inline-start: 3px solid #98d4b8;
  padding: .55rem .85rem;
  background: #1e2928;
  border-radius: .25rem;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-print.is-visible .hero-phone {
    animation: present-handset 480ms var(--ease) both;
  }
  .hero-print.is-visible .transcript-quote {
    animation: present-transcript 360ms var(--ease) 110ms both;
  }
  @keyframes present-handset {
    from { transform: translateY(.85rem) rotate(-3deg); }
    to { transform: rotate(-6deg); }
  }
  @keyframes present-transcript {
    from { transform: translateY(.85rem) scale(.98); }
    to { transform: none; }
  }
  .action, .signup-button { transition: transform var(--motion-fast) var(--ease), background-color var(--motion-fast) var(--ease); }
  .action:active, .signup-button:active { transform: translateY(1px); }
}
@media (max-width: 52rem) {
  .mast-grid, .noum-mast .mast-grid { grid-template-columns: 1fr; gap: 2rem; padding-block: 3rem; }
  .studio-mast .mast-grid { min-height: auto; }
  .studio-mast .mast-copy { max-width: 35rem; }
  .hero-print { min-height: clamp(20rem, 56vw, 26rem); }
  .hero-phone { left: 20%; width: 40%; top: 9%; }
  .transcript-quote { width: 49%; margin-inline-end: 8%; }
  .feature-copy { padding: 2rem; }
  .note-grid { grid-template-columns: .7fr 1.2fr; }
}
@media (max-width: 40rem) {
  .landing .site-inner { min-height: 3.8rem; gap: .5rem; }
  .landing .mark-word { font-size: 1.2rem; }
  .landing .mark-glyph { width: 1.65rem; height: 1.65rem; }
  .landing .nav-links { gap: clamp(.8rem, 3.7vw, 1.5rem); }
  .landing .nav-beta { display: none; }
  .landing .nav-link { font-size: var(--type-label); }
  .mast-copy h1 { font-size: clamp(2.7rem, 1.55rem + 7.1vw, 4.7rem); }
  .actions { gap: .65rem 1rem; }
  .kicker { font-size: var(--type-caption); letter-spacing: .04em; }
  .feature-product, .note-grid, .beta-box, .scenario-list > div { grid-template-columns: minmax(0, 1fr); }
  .feature-copy { padding: 1.65rem; }
  .product-print { min-height: 16rem; }
  .product-print .handset { left: 28%; top: 10%; width: 52%; }
  .hero-phone { width: 53%; left: 11%; }
  .transcript-quote { width: 69%; margin-inline-end: 4%; }
  .runway-entry { grid-template-columns: auto 1fr auto; }
  .runway-summary { grid-column: 2/4; grid-row: 2; }
  .round-arrow { grid-column: 3; grid-row: 1; }
  .note-grid { gap: 1.3rem; }
  .studio-note .signal-wrap { max-width: 14rem; margin-top: 0; }
  .scenario-list > div { gap: .55rem; }
  .beta-box .signup-row { flex-direction: column; }
  .beta-box .signup-input { flex: auto; width: 100%; }
  .landing .site-inner { justify-content: space-between; }
  .landing .site nav { margin-inline-start: 0; max-inline-size: 100%; }
  .landing .footer-nav { row-gap: 0; }
  .landing .mast-grid { min-inline-size: 0; }
  .landing .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .beta-box { padding-inline: min(5vw, 1.65rem); }
  .landing h2 { font-size: clamp(1.9rem, 1.3rem + 4vw, 2.85rem); }
}
/* Keep the actual text in flow when zoom leaves little space for artwork. */
@container coach-art (max-width: 16rem) {
  .transcript-quote { justify-self: center; width: 94%; margin-inline: 0; padding: .75rem; }
}
@container studio-products (max-width: 16rem) {
  .runway-entry { grid-template-columns: minmax(0, 1fr) auto; gap: .35rem .4rem; padding: min(4vw, 1rem); }
  .runway-entry > span { min-inline-size: 0; overflow-wrap: anywhere; }
  .runway-icon { display: none; }
  .runway-entry .round-arrow { grid-column: 2; grid-row: 1; }
  .runway-summary { grid-column: 1 / -1; grid-row: 2; }
}
@media (forced-colors: active) {
  .action, .signup-button { border: 1px solid ButtonText; }
}

.maker-byline {
  max-width: 40ch;
  margin: 1.1rem 0 0;
  color: var(--ink-faint);
  font-size: var(--type-label);
  line-height: 1.5;
}
.maker-byline a { color: var(--ink); text-underline-offset: .18em; }
.studio-note .founder-signoff { margin-top: 1.5rem; }
.founder-signoff strong, .founder-signoff span { display: block; }
.founder-signoff strong { color: var(--ink); font: 600 1.45rem/1.3 var(--font-display); }
.founder-signoff span { color: var(--ink-faint); font-size: var(--type-label); }
.beta-copy a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }

/* ---------- Noum's document pages: privacy, support, how Noum coaches ----------
   Generated by tools/gen-noum-pages.py from the Noum repository's own words.
   They belong to the Noum page, so they use its language: the lavender kicker,
   the row list, the invitation box. The policy is four thousand words that
   people search rather than read, so it is set as a document: a light sheet on
   the dark ground (the same paper the Noum page uses for its screenshots and
   transcript card), with a contents rail that follows the reader. */

.landing {
  --paper-rule: #dbd6e8;
  --paper-tint: #e8e3f4;
  --paper-accent: #5d3f86;   /* 8.0:1 on --paper */
}

.docs-hero { padding-block: clamp(2.6rem, 5.5vw, 5rem) clamp(1.6rem, 3vw, 2.6rem); }
.docs-hero .kicker a { color: inherit; text-decoration-color: #6f6787; text-underline-offset: .22em; }
.docs-hero .kicker a:hover { color: white; }
.docs-hero h1 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(2.6rem, 1.6rem + 4.4vw, 5rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.048em;
  font-variation-settings: "wdth" 94;
  text-wrap: balance;
}
.docs-hero .intro { max-width: 40rem; }
.docs-meta {
  margin: 1.2rem 0 0;
  color: var(--ink-faint);
  font: 400 var(--type-caption)/1.5 var(--font-mono);
  letter-spacing: .02em;
}
.docs-meta strong { font-weight: 400; color: var(--ink-muted); }

.docs-layout {
  display: grid;
  gap: 1.25rem;
  padding-bottom: var(--section-space);
}

/* Contents. A plain card above the sheet on a phone; a rail that stays in view
   beside it on a wide screen, with the section being read picked out. */
.docs-rail {
  border: 1px solid var(--axis);
  border-radius: 1rem;
  padding: .7rem 1.1rem;
}
.docs-rail ul { list-style: none; margin: 0; padding: 0; }
.docs-rail li + li { border-top: 1px solid var(--rule); }
.docs-rail a {
  display: grid;
  grid-template-columns: 1.9rem 1fr;
  align-items: baseline;
  min-height: 44px;
  padding: .62rem 0;
  color: var(--ink-soft);
  font-size: var(--type-label);
  line-height: 1.35;
  text-decoration: none;
}
.docs-rail a span { color: var(--ink-muted); font: 400 var(--type-caption) var(--font-mono); }
.docs-rail a:hover, .docs-rail a.is-current { color: white; }
.docs-rail a.is-current span { color: var(--lavender); }

.sheet {
  min-inline-size: 0;
  border-radius: 1rem;
  padding: clamp(1.35rem, 4.6vw, 4rem);
  background: var(--paper);
  color: var(--paper-body);
  font-size: 1.0625rem;
  line-height: 1.68;
}
.sheet :is(p, li, h2, h3, td, th) { overflow-wrap: anywhere; }
.sheet :is(p, ul, h2, h3) { max-width: 43rem; }
.sheet p { margin: 0 0 1rem; }
.sheet strong { color: var(--paper-ink); font-weight: 620; }
.sheet a { color: var(--paper-accent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
.sheet a:hover { color: var(--paper-ink); }
.sheet :is(a, summary):focus-visible { outline: 2px solid var(--paper-accent); outline-offset: 2px; }
.sheet code {
  padding: .08em .34em;
  border-radius: .3rem;
  background: var(--paper-tint);
  color: var(--paper-ink);
  font: 400 .86em var(--font-mono);
}
.sheet-lead {
  margin: 0;
  color: var(--paper-ink);
  font-size: clamp(1.125rem, 1.05rem + .4vw, 1.3rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.sheet-section { margin-top: clamp(2.6rem, 5vw, 4rem); padding-top: clamp(1.6rem, 3vw, 2.4rem); border-top: 1px solid var(--paper-rule); scroll-margin-top: 5.5rem; }
.landing .sheet h2 {
  margin: 0 0 1.4rem;
  color: var(--paper-ink);
  font-size: clamp(1.75rem, 1.35rem + 1.7vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -.038em;
}
.sheet-num { color: var(--paper-accent); }
.sheet h3 {
  margin: 2.2rem 0 .7rem;
  color: var(--paper-ink);
  font: 600 1.28rem/1.2 var(--font-display);
  letter-spacing: -.022em;
}
.sheet h2 + h3 { margin-top: 0; }

.sheet ul { margin: 0 0 1.1rem; padding: 0; list-style: none; }
.sheet li { position: relative; margin: 0 0 .5rem; padding-left: 1.25rem; }
.sheet li::before {
  content: "";
  position: absolute;
  left: .15rem;
  top: .68em;
  width: .36rem;
  height: .36rem;
  border-radius: 50%;
  background: var(--paper-accent);
  opacity: .55;
}
/* A list whose every item opens with its own name: set as ruled rows. */
.sheet-terms { border-bottom: 1px solid var(--paper-rule); }
.sheet .sheet-terms > li { margin: 0; padding: .8rem 0; border-top: 1px solid var(--paper-rule); }
.sheet .sheet-terms > li::before { content: none; }

/* The one sentence a reader is looking for. */
.sheet-callout {
  margin: 1.6rem 0;
  padding: 1.05rem 1.25rem;
  border-left: 3px solid var(--paper-accent);
  border-radius: 0 .6rem .6rem 0;
  background: var(--paper-tint);
  color: var(--paper-ink);
  font-size: 1.125rem;
  line-height: 1.5;
}
.sheet .sheet-callout { max-width: 42rem; }
.sheet-fine { margin: 2.4rem 0 0; color: #5a556b; font-size: var(--type-label); }

/* Tables keep the policy's own column headings. Wide: a ruled table across the
   whole sheet. Narrow: each row stacks and every cell carries its heading
   (data-label, set by the generator); the header row is hidden from sight
   there, not from screen readers. */
.sheet-table {
  width: 100%;
  table-layout: fixed;
  margin: 1.4rem 0 1.6rem;
  border-collapse: collapse;
  font-size: .9375rem;
  line-height: 1.55;
}
.sheet-table :is(th, td) { padding: .85rem 1.1rem .85rem 0; border-top: 1px solid var(--paper-rule); text-align: left; vertical-align: top; }
.sheet-table th {
  border-top: 0;
  padding-block: 0 .6rem;
  color: var(--paper-accent);
  font: 400 var(--type-caption) var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.sheet-table :is(th, td):first-child { width: 23%; }
.sheet-table td:first-child { color: var(--paper-ink); font-weight: 620; }
.sheet-table :is(th, td):last-child { padding-right: 0; }
.sheet-table tr:last-child td { border-bottom: 1px solid var(--paper-rule); }

@media (max-width: 47.99rem) {
  .sheet-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .sheet-table, .sheet-table tbody, .sheet-table tr, .sheet-table td { display: block; }
  .sheet-table { font-size: 1rem; }
  .sheet-table tr { padding: 1rem 0; border-top: 1px solid var(--paper-rule); }
  .sheet-table tr:last-child { border-bottom: 1px solid var(--paper-rule); }
  .sheet-table td, .sheet-table td:first-child, .sheet-table tr:last-child td { width: auto; padding: 0; border: 0; }
  .sheet-table td:first-child { width: auto; font: 600 1.15rem/1.25 var(--font-display); letter-spacing: -.02em; }
  .sheet-table td + td { margin-top: .8rem; }
  .sheet-table td:not(:first-child)::before {
    content: attr(data-label);
    display: block;
    margin-bottom: .2rem;
    color: var(--paper-accent);
    font: 400 var(--type-caption) var(--font-mono);
    letter-spacing: .06em;
    text-transform: uppercase;
  }
}

@media (min-width: 66rem) {
  .docs-layout { grid-template-columns: 15.5rem minmax(0, 1fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: start; }
  .docs-rail { position: sticky; top: 6.25rem; border: 0; border-radius: 0; padding: 0; }
  .docs-rail li + li { border-top: 0; }
  .docs-rail a { min-height: 0; padding: .42rem 0; }
  .sheet { max-width: 56rem; }
}

/* How Noum coaches: the six principles as the Noum page sets its situations,
   and the boundary as a closing box. Support: one box, one action. */
.principles > .shell { padding-block: 0 var(--section-space); }
.principles .scenario-list { margin-top: 0; }
.landing .scenario-list dt h2 { max-width: 16ch; font: inherit; letter-spacing: inherit; text-wrap: balance; }
.boundary-box { margin-top: clamp(2rem, 4vw, 3.5rem); border-color: #5b5170; align-items: start; }
.boundary-box h2 { max-width: 12ch; }
.boundary-box p { margin: 0; color: var(--ink-soft); font-size: var(--type-reading); line-height: 1.56; max-width: 34rem; }
.support-box { align-items: start; }
/* The arrow is drawn here, not typed in the page: the button's words are the
   policy's words, and Noum's release check counts every character of them. */
.action-out::after { content: "↗" / ""; transition: transform .2s var(--ease); }
.action-out:hover::after { transform: translateX(2px); }
.support-box .beta-copy > p { margin-top: 1.1rem; }
.support-box .signup-note { margin: 1.1rem 0 0; color: var(--ink-faint); max-width: 30rem; line-height: 1.55; }
.docs-end { padding-bottom: var(--section-space); }
