/* ============================================================================
   The Ultimate Guide for Architects Using AI — sales page
   Layout concept: a specification document. Numbers hang in a left gutter,
   content sits on one shared left edge, sections divide with hairlines.
   No cards. No shadows. No radii above 2px.
   ========================================================================= */

/* Typefaces live in fonts.css, loaded before this file. */

/* --- 2. Tokens ----------------------------------------------------------- */

:root {
  /* Brand — these four hexes only. */
  --navy:        #002957;   /* primary surface                              */
  --navy-deep:   #022C5E;   /* depth: insets, open rows, final CTA          */
  --cyan:        #33CBCC;   /* CTAs and focus rings ONLY                    */
  --teal:        #35A9A7;   /* every other accent: rules, numbers, hovers   */

  /* Neutrals */
  --paper:       #F1F4F6;   /* light surface                                */
  --ink:         #0E1A24;   /* text on paper            15.9:1 on --paper   */
  --ink-mute:    #5C6D7B;   /* secondary text on paper   4.8:1 on --paper   */

  /* Derived text colours on dark surfaces */
  --on-navy:      #DCE6EE;  /* 11.4:1 on --navy                             */
  --on-navy-mute: #9FB3C4;  /*  6.7:1 on --navy                             */

  /* Mono label colour. Teal is legible on the dark surfaces (5.0:1) but only
     reaches 2.6:1 on --paper, so light sections flip it to navy (13:1).
     Set per surface below; never hard-code --teal on a light background. */
  --label: var(--teal);

  /* Hairlines */
  --rule-dark:   rgba(53, 169, 167, .34);   /* teal, on navy                 */
  --rule-light:  rgba(14, 26, 36, .15);     /* ink, on paper                 */

  /* Type */
  --sans: 'Archivo', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --fs-mono: .78rem;
  --fs-sm:   .9rem;
  --fs-body: 1.0625rem;
  --fs-lg:   1.4rem;
  --fs-h3:   1.15rem;
  --fs-h2:   clamp(2.1rem, 1.6rem + 2vw, 3.1rem);
  --fs-h1:   clamp(2rem, 1.5rem + 2.4vw, 3rem);

  --lh-tight: 1.08;
  --lh-body:  1.62;

  /* Space */
  --sp-1: .375rem;
  --sp-2: .75rem;
  --sp-3: 1.25rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4.5rem;
  --sp-7: 7rem;

  /* Layout */
  --wrap:   1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);   /* page side padding               */
  --index:  9.5rem;                      /* width of the number gutter      */
  --measure: 64ch;
}

/* --- 3. Reset ------------------------------------------------------------ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 600; line-height: var(--lh-tight); letter-spacing: -.017em; }
p  { margin: 0; }
ol, ul, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
cite { font-style: normal; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 60;
  clip-path: inset(50%);
  padding: var(--sp-2) var(--sp-3);
  background: var(--cyan);
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { clip-path: none; left: var(--sp-3); top: var(--sp-2); }

.nowrap { white-space: nowrap; }

/* --- 4. Layout primitives ------------------------------------------------ */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--sp-7); }
.section--tight { padding-top: 0; }

.section--paper { background: var(--paper); color: var(--ink); --label: var(--navy); }
.section--navy  { background: var(--navy);  color: var(--on-navy); }
.section--deep  { background: var(--navy-deep); color: var(--on-navy); }

/* The spec band: number in the gutter, everything else on one left edge. */
.band {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}
.band__body { min-width: 0; }
.band__body--narrow { max-width: var(--measure); }

.band__num {
  font-family: var(--mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--label);
  padding-top: .55rem;
}
.section--paper .band__num { border-top: 1px solid var(--rule-light); }
.section--navy  .band__num,
.section--deep  .band__num { border-top: 1px solid var(--rule-dark); }
.band__num--center { border: 0; padding-top: 0; margin-bottom: var(--sp-3); }

@media (min-width: 60rem) {
  .band { grid-template-columns: var(--index) 1fr; gap: 0 var(--sp-4); }
}

.lead {
  font-size: var(--fs-lg);
  line-height: 1.45;
  max-width: 46ch;
  margin-top: var(--sp-3);
  letter-spacing: -.008em;
}
.section--paper .lead { color: var(--ink-mute); }
.section--navy  .lead { color: var(--on-navy-mute); }

.band__close {
  max-width: var(--measure);
  margin-top: var(--sp-5);
  padding-top: var(--sp-3);
}
.section--paper .band__close { border-top: 1px solid var(--rule-light); }
.section--navy  .band__close { border-top: 1px solid var(--rule-dark); color: var(--on-navy-mute); }

/* --- 5. Buttons — the only cyan on the page ------------------------------ */

/* Qualified with the element (a.btn = 0,1,1) so our styling outranks any
   single-class rule Payhip's buy-button stylesheet injects. Payhip appends its
   CSS to head at runtime, which would win every specificity tie against a bare
   .btn. Payhip's own snippet ships data-theme="green"; green is not in this
   palette, so the CTAs carry data-theme="none" and this guard as well.
   Every button on this page is an anchor, so nothing is lost. */
a.btn {
  display: inline-block;
  background: var(--cyan);
  color: var(--navy);            /* navy on cyan = 7.3:1. White would be 2:1. */
  font-family: var(--sans);
  font-weight: 600;
  font-size: var(--fs-body);
  letter-spacing: -.005em;
  text-decoration: none;
  padding: .85rem 1.4rem;
  border: 1px solid var(--cyan);
  border-radius: 2px;
  transition: background-color .15s linear, border-color .15s linear;
}
a.btn:hover { background: var(--teal); border-color: var(--teal); }
a.btn:active { background: var(--teal); }

a.btn--lg { font-size: 1.15rem; padding: 1.05rem 2rem; margin-top: var(--sp-4); }
a.btn--sm { font-size: var(--fs-sm); padding: .6rem 1rem; }

/* Secondary: the free-prompts button. Outline only and teal, never cyan, so
   the buy buttons stay the loudest thing on the page. */
a.btn--ghost {
  background: transparent;
  color: var(--on-navy);
  border-color: var(--teal);
  font-weight: 500;
}
a.btn--ghost:hover,
a.btn--ghost:active { background: rgba(53, 169, 167, .16); border-color: var(--teal); }

/* --- 6. Masthead --------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--navy);
  border-bottom: 1px solid var(--rule-dark);
  color: var(--on-navy);
}
.masthead__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  min-height: 4rem;
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: .55rem;
  text-decoration: none;
  margin-right: auto;
}
.wordmark__name { font-weight: 600; letter-spacing: -.015em; }
.wordmark__meta {
  font-family: var(--mono);
  font-size: var(--fs-mono);
  color: var(--teal);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nav { display: none; gap: var(--sp-4); font-size: var(--fs-sm); }
.nav a { color: var(--on-navy-mute); text-decoration: none; }
.nav a:hover { color: var(--teal); }

.masthead a.btn--sm { display: none; }

@media (min-width: 48rem) { .nav { display: flex; } }
@media (min-width: 60rem) { .masthead a.btn--sm { display: inline-block; } }

/* --- 7. Hero ------------------------------------------------------------- */

.hero {
  background: var(--navy);
  color: var(--on-navy);
  padding-top: var(--sp-6);
  padding-bottom: var(--sp-5);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  align-items: center;
}

.hero__title {
  font-size: var(--fs-h1);
  font-weight: 600;
  letter-spacing: -.028em;
  max-width: 24ch;
  text-wrap: balance;
}
.hero__lede {
  margin-top: var(--sp-3);
  max-width: 52ch;
  font-size: var(--fs-lg);
  line-height: 1.45;
  color: var(--on-navy-mute);
}
.hero__lede cite { color: var(--on-navy); font-weight: 500; }

.hero__byline {
  margin-top: var(--sp-3);
  max-width: 48ch;
  font-size: var(--fs-sm);
  color: var(--on-navy-mute);
  padding-left: var(--sp-3);
  border-left: 2px solid var(--teal);
}

.hero__reassure {
  margin-top: var(--sp-2);
  font-family: var(--mono);
  font-size: var(--fs-mono);
  color: var(--on-navy-mute);
}

a.hero__prompts { margin-top: var(--sp-4); }

.hero__cover {
  margin: 0;
  justify-self: start;
  max-width: 24rem;
  border: 1px solid var(--rule-dark);
  padding: .5rem;
}
.hero__cover img { width: 100%; }

@media (min-width: 60rem) {
  .hero { padding-top: var(--sp-7); }
  .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: var(--sp-6); }
  .hero__cover { justify-self: end; }
}

/* Title block — the hard facts, where a drawing sheet puts them. */
.titleblock {
  margin-top: var(--sp-6);
  border: 1px solid var(--rule-dark);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.titleblock__cell {
  padding: .7rem var(--sp-3);
  border-right: 1px solid var(--rule-dark);
  border-bottom: 1px solid var(--rule-dark);
}
.titleblock dt {
  font-family: var(--mono);
  font-size: var(--fs-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
}
.titleblock dd {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.015em;
}
.titleblock__sub {
  font-family: var(--mono);
  font-size: var(--fs-mono);
  color: var(--on-navy-mute);
}

@media (min-width: 40rem) { .titleblock { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 64rem) {
  .titleblock { grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(0, 1.6fr); }
  .titleblock__cell { border-bottom: 0; }
  .titleblock__cell--wide { border-right: 0; }
}

/* --- 8. Problem ---------------------------------------------------------- */

.reasons { margin-top: var(--sp-5); }

.reason {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: var(--sp-3);
  padding-block: var(--sp-4);
  border-top: 1px solid var(--rule-light);
  max-width: 62ch;
}
.reason__num {
  font-family: var(--mono);
  font-size: var(--fs-mono);
  letter-spacing: .1em;
  color: var(--label);
  padding-top: .3rem;
}
.reason h3 { font-size: var(--fs-h3); }
.reason p  { margin-top: var(--sp-1); color: var(--ink-mute); }
.reason__num + div p { color: var(--ink-mute); }

/* --- 9. Contents index --------------------------------------------------- */

.index { margin-top: var(--sp-5); border-top: 1px solid var(--rule-dark); }
.index__row { border-bottom: 1px solid var(--rule-dark); }

.index summary,
.faq summary {
  display: grid;
  align-items: baseline;
  gap: var(--sp-1) var(--sp-3);
  padding-block: var(--sp-3);
  cursor: pointer;
  list-style: none;
}
.index summary::-webkit-details-marker,
.faq summary::-webkit-details-marker { display: none; }

.index summary { grid-template-columns: 1fr 1.5rem; grid-template-areas: "part mark" "title title" "count count"; }

.index__part  { grid-area: part;  font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: .12em; color: var(--teal); }
.index__title { grid-area: title; font-size: var(--fs-h3); font-weight: 500; letter-spacing: -.012em; }
.index__count { grid-area: count; font-family: var(--mono); font-size: var(--fs-mono); color: var(--on-navy-mute); }
.mark { justify-self: end; font-family: var(--mono); color: var(--teal); line-height: 1; }
.mark::after { content: '+'; }
details[open] .mark::after { content: '\2212'; }

/* Grid placement is the index's business only. Applying it in the FAQ, whose
   template has no "mark" area, pushed the glyph into an implicit second row. */
.index__mark { grid-area: mark; }

.index summary:hover .index__title { color: var(--teal); }

.index__panel {
  background: var(--navy-deep);
  border-left: 2px solid var(--teal);
  padding: var(--sp-3) var(--sp-3) var(--sp-3) 0;
  margin-bottom: var(--sp-3);
  max-width: 62ch;
  color: var(--on-navy-mute);
}

/* Chapter numbers run 1-62 across the whole book, hanging in their own
   column so the titles keep a single left edge inside the panel. */
.chapters li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: var(--sp-2);
  align-items: baseline;
  padding-block: .3rem;
  color: var(--on-navy);
  line-height: 1.45;
}
.chapters li + li { border-top: 1px solid rgba(53, 169, 167, .18); }
.chapters span {
  font-family: var(--mono);
  font-size: var(--fs-mono);
  color: var(--teal);
  justify-self: end;
}

@media (min-width: 48rem) {
  .index summary {
    grid-template-columns: 8rem 1fr auto 1.5rem;
    grid-template-areas: "part title count mark";
  }
  .index__panel { margin-left: calc(8rem + var(--sp-3)); }
}

/* --- 10. Schedule (who it's for) ----------------------------------------- */

.sched__head {
  margin-top: var(--sp-5);
  font-family: var(--mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--label);
}
.sched__head--no { color: var(--ink-mute); }

.sched { margin-top: var(--sp-2); border-top: 1px solid var(--rule-light); }
.sched__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-1) var(--sp-4);
  padding-block: var(--sp-3);
  border-bottom: 1px solid var(--rule-light);
}
.sched dt { font-weight: 500; letter-spacing: -.01em; }
.sched dd { color: var(--ink-mute); }
.sched--no dt { color: var(--ink-mute); }

@media (min-width: 48rem) {
  .sched__row { grid-template-columns: minmax(0, 19rem) minmax(0, 1fr); }
}

/* --- 11. Sample spreads -------------------------------------------------- */

.spreads {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  margin-top: var(--sp-5);
}
.spread { margin: 0; }
.spread figcaption {
  margin-top: var(--sp-2);
  font-family: var(--mono);
  font-size: var(--fs-mono);
  color: var(--on-navy-mute);
}

.placeholder {
  aspect-ratio: 3 / 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  background: var(--navy-deep);
  border: 1px dashed var(--teal);
  color: var(--on-navy-mute);
  font-family: var(--mono);
  font-size: var(--fs-sm);
  text-align: center;
  padding: var(--sp-3);
}
.placeholder__tag {
  font-size: var(--fs-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
}

@media (min-width: 48rem) { .spreads { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --- 12. About ----------------------------------------------------------- */

/* About is the only section with no .lead, so its heading needs the gap. */
#about h2 { margin-bottom: var(--sp-3); }
#about p + p { margin-top: var(--sp-3); }
#about a { color: var(--ink); text-decoration-color: var(--teal); text-underline-offset: .2em; }
#about a:hover { color: var(--teal); }

/* --- 13. Videos ---------------------------------------------------------- */

.videos {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5) var(--sp-4);
  margin-top: var(--sp-5);
}
.video { min-width: 0; }

/* A 16:9 frame for the thumbnail, then for the player that replaces it.
   YouTube's hqdefault thumbnail is 4:3 with letterbox bars; cover crops them. */
.video__thumb,
.video__player {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--navy-deep);
  border: 1px solid var(--rule-dark);
  overflow: hidden;
}
.video__thumb img { width: 100%; height: 100%; object-fit: cover; }
.video__player iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Play mark: a square, not a disc, to keep to the 2px radius rule. */
.video__thumb::before,
.video__thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
}
.video__thumb::before {
  width: 3.25rem;
  height: 3.25rem;
  background: rgba(0, 41, 87, .85);
  border: 1px solid var(--teal);
  border-radius: 2px;
  transition: background-color .15s linear;
}
.video__thumb::after {
  width: .9rem;
  height: 1.05rem;
  background: var(--on-navy);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform: translateX(.12rem);
}
.video__thumb:hover::before { background: var(--teal); }
.video__thumb:hover::after  { background: var(--navy); }

.video__title {
  margin-top: var(--sp-2);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.3;
}
.video__meta {
  margin-top: var(--sp-1);
  font-family: var(--mono);
  font-size: var(--fs-mono);
  color: var(--on-navy-mute);
}

#videos .band__close a { color: var(--on-navy); text-decoration-color: var(--teal); text-underline-offset: .2em; }
#videos .band__close a:hover { color: var(--teal); }

@media (min-width: 40rem) { .videos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .videos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* --- 14. FAQ ------------------------------------------------------------- */

.faq { margin-top: var(--sp-4); border-top: 1px solid var(--rule-light); }
.faq__row { border-bottom: 1px solid var(--rule-light); }
.faq summary { grid-template-columns: 1fr 1.5rem; }
.faq__q { font-size: 1.05rem; font-weight: 500; letter-spacing: -.01em; }
.faq summary:hover .faq__q { color: var(--teal); }
.faq .mark { color: var(--ink-mute); }
.faq__a { padding-bottom: var(--sp-3); max-width: 58ch; color: var(--ink-mute); }

/* --- 15. Final CTA ------------------------------------------------------- */

.final { text-align: center; }
.final__inner { max-width: 42rem; }
.final h2 { font-size: var(--fs-h2); }
.final__price {
  margin-top: var(--sp-3);
  font-family: var(--mono);
  font-size: var(--fs-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-navy-mute);
}
.final__price span {
  display: block;
  font-family: var(--sans);
  font-size: 3.4rem;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: var(--on-navy);
}
.final__detail {
  margin-top: var(--sp-2);
  font-family: var(--mono);
  font-size: var(--fs-mono);
  color: var(--teal);
  letter-spacing: .08em;
}
.final__after {
  margin-top: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--on-navy-mute);
}

/* --- 16. Footer ---------------------------------------------------------- */

.footer {
  background: var(--navy);
  color: var(--on-navy-mute);
  border-top: 1px solid var(--rule-dark);
  padding-block: var(--sp-5);
  font-size: var(--fs-sm);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}
.footer__brand { color: var(--on-navy); font-weight: 600; font-size: var(--fs-body); }
.footer a { color: var(--on-navy-mute); text-decoration-color: var(--teal); text-underline-offset: .2em; }
.footer a:hover { color: var(--teal); }
.footer__col--note { max-width: 44ch; }
.footer__col--note p + p { margin-top: var(--sp-2); }
.footer__copy { font-family: var(--mono); font-size: var(--fs-mono); }

@media (min-width: 48rem) {
  .footer__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--sp-6); }
}

/* --- 17. Mobile sticky buy bar ------------------------------------------- */

.stickybar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: var(--navy-deep);
  border-top: 1px solid var(--teal);   /* a rule, not a shadow */
  transform: translateY(100%);
  transition: transform .2s ease-out;
}
.stickybar.is-visible { transform: translateY(0); }
.stickybar__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: .7rem var(--gutter);
  padding-bottom: max(.7rem, env(safe-area-inset-bottom));
}
.stickybar__label {
  display: none;
  flex: 1;
  min-width: 0;
  font-size: var(--fs-sm);
  line-height: 1.3;
  color: var(--on-navy-mute);
  /* Never let the reminder grow taller than the button beside it. */
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.stickybar a.btn--sm { flex: 1; text-align: center; }

@media (min-width: 30rem) {
  .stickybar__label { display: -webkit-box; }
  .stickybar a.btn--sm { flex: none; }
}

@media (min-width: 60rem) { .stickybar { display: none; } }

/* --- 18. Free prompts dialog --------------------------------------------- */

/* A paper sheet over the page. The dialog itself carries no padding, so a
   click whose target is the dialog element landed on the backdrop. */
.prompts {
  width: min(52rem, 100% - 2 * var(--gutter));
  max-width: none;
  max-height: calc(100dvh - 3rem);
  padding: 0;
  border: 1px solid var(--teal);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  --label: var(--navy);
}
.prompts::backdrop { background: rgba(0, 16, 36, .8); }
html:has(.prompts[open]) { overflow: hidden; }

.prompts__head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--navy);
  color: var(--on-navy);
  border-bottom: 1px solid var(--teal);
}
.prompts__eyebrow {
  font-family: var(--mono);
  font-size: var(--fs-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
}
.prompts__title { margin-top: .2rem; font-size: 1.5rem; }

/* Element-qualified for the same reason as a.btn: Payhip injects CSS late. */
button.prompts__close,
button.prompt__copy {
  flex: none;
  font-family: var(--mono);
  font-size: var(--fs-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 2px;
  padding: .55rem .9rem;
  cursor: pointer;
  transition: background-color .15s linear, color .15s linear;
}
button.prompts__close {
  background: transparent;
  color: var(--on-navy);
  border: 1px solid var(--rule-dark);
}
button.prompts__close:hover { border-color: var(--teal); color: var(--teal); }

.prompts__body { padding: var(--sp-4); }
.prompts__intro { max-width: var(--measure); color: var(--ink-mute); }

.prompt {
  margin-top: var(--sp-5);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--rule-light);
}
.prompt__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-3);
}
.prompt__num {
  font-family: var(--mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--label);
}
.prompt__title { margin-top: .3rem; font-size: 1.3rem; }
.prompt__what { margin-top: var(--sp-2); max-width: var(--measure); color: var(--ink-mute); font-size: var(--fs-sm); }

button.prompt__copy {
  background: var(--navy);
  color: var(--on-navy);
  border: 1px solid var(--navy);
}
button.prompt__copy:hover { background: var(--navy-deep); }
button.prompt__copy.is-copied { background: transparent; color: var(--navy); }

/* Wrapped rather than scrolled sideways, so it reads on a phone. Wrapping is
   display only: the clipboard gets the text with its original line breaks. */
.prompt__text {
  margin: var(--sp-3) 0 0;
  padding: var(--sp-3);
  background: rgba(0, 41, 87, .05);
  border-left: 2px solid var(--teal);
  font-family: var(--mono);
  font-size: var(--fs-mono);
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 2;
}

.prompts__rule {
  margin-top: var(--sp-5);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--rule-light);
  max-width: var(--measure);
  color: var(--ink-mute);
}
.prompts__rule strong { color: var(--ink); font-weight: 600; }

.prompts__status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Phones: the sheet takes the whole screen. */
@media (max-width: 40rem) {
  .prompts {
    width: 100%;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border: 0;
  }
  .prompts__head { padding: var(--sp-2) var(--gutter); padding-top: max(var(--sp-2), env(safe-area-inset-top)); }
  .prompts__body { padding: var(--sp-3) var(--gutter) max(var(--sp-5), env(safe-area-inset-bottom)); }
  .prompts__title { font-size: 1.2rem; }
}

/* --- 19. Motion ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .stickybar { transition: none; }
}
