/* Phone pass (Dan, 2026-11-21, with a UX review of the 390px layout).
   Loaded last. Every width: the page never scrolls sideways, the bigger
   build cards are one glass piece with their picture inside, and the mock
   browser stands off the page. Phones: the hero leads with headline, a short
   lead and the actions in thumb reach; every section head centers while
   longer body copy stays left; the off-the-shelf slip sits centered; the
   team's systems read; the closing globe is simply larger. Tokens only. */

/* ── every width ───────────────────────────────────────────────────── */
html, body { overflow-x: clip; }

/* bigger builds: a glass card holding its picture as an inset window */
.big-card {
  padding: 10px 10px 1.2em;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 18px 40px -18px black, inset 0 1px 0 color-mix(in srgb, var(--ink) 16%, transparent);
  border-radius: 18px;
}
.big-card .app-shot { margin: 0 0 1em; border-radius: 11px; border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.big-card > .app-coin { margin-left: 0.5em; }
.big-card > b, .big-card > span:not(.app-coin) { padding-right: 0.6em; }

/* the mock browser: a lighter window with a real edge and lift */
.br-win {
  background: color-mix(in srgb, var(--ink) 12%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--ink) 26%, transparent);
  box-shadow: 0 30px 70px -24px black, 0 0 0 6px color-mix(in srgb, var(--ink) 4%, transparent);
}
.br-bar { background: color-mix(in srgb, var(--ink) 18%, var(--paper)); }
.apps-pair > div, .br-win, .br-form, .br-field, .br-drop { min-width: 0; }
.br-file { min-width: 0; }
@media (max-width: 760px) { .br-area u { height: 5em; } }
.br-field u { background: color-mix(in srgb, var(--paper) 55%, transparent); }

/* nothing grows or shrinks while it animates, so the page never moves on
   its own under a reader (Dan, 2026-11-21: "fighting the user for scroll") */
.sh-btn small { max-height: none !important; overflow: visible; }
.sh-btn.shake small, .sh-btn.lit small { max-height: none; }
.rm-ic i { min-height: 2.5em; }
.rm-ask { min-height: 2.9em; }
.vt-said { min-height: 3.2em; }
@media (max-width: 760px) { .vt-said { min-height: 4.8em; } }
.ob-track { transition: none; }
html { overflow-anchor: auto; }

/* ── phones ────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  /* hero: art, headline, lead, actions, then the quote and the models */
  .hs-stage { aspect-ratio: 16 / 10; margin: -8px 0 -20px; }
  .hs-plate { object-position: 50% 62%; }
  .hh .hh-text { display: flex; flex-direction: column; align-items: center; text-align: center; padding-inline: 20px; }
  .hh .hh-statement { order: 1; font-size: 44px; line-height: 1; letter-spacing: -0.025em; margin: 0; }
  .hh .hh-bridge { order: 2; font-size: 17px; line-height: 1.5; max-width: 34ch; margin: 14px auto 0; color: var(--ink-2); }
  .hh .acts { order: 3; flex-direction: column; align-items: stretch; gap: 10px; margin-top: 24px; width: 100%; max-width: 360px; }
  .hh .cta { justify-content: center; min-height: 56px; font-size: 18px; }
  .hh .act-quiet {
    text-align: center; padding: 14px; border-radius: var(--radius-md, 12px);
    border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  }
  .hh .hh-quote { order: 4; margin: 32px auto 0; padding: 0; max-width: 30ch; font-size: 19px; }
  .hh .hh-quote::before { position: static; display: block; translate: none; font-size: 1.6em; line-height: .6; }
  .hh .hh-quote span { font-size: 11px; letter-spacing: .08em; }
  .hh .hh-models { order: 5; margin: 18px auto 0; max-width: 34ch; font-size: 14px; color: var(--ink-3); }

  /* section heads center; one-line intros center; longer copy stays left */
  :is(.fb-head, .bd-head, .org-head, .ap-head, .tm-head, .et-head, .store-head, .breath-head, .yours-head, .room-head, .talk-head),
  :is(.fb-ask, .bd-ask, .org-ask, .ap-ask, .tm-ask, .et-ask, .yours-sub, .talk-sub) { text-align: center; margin-inline: auto; }
  .yours .yours-lede { text-align: center; justify-self: center; }
  .room-head { max-width: 18ch; }
  :is(.call, .rm) { margin-top: 56px; }

  /* Your world. Your call.: the head and its three lines as one centered
     unit, the paragraph under them left */
  .call-say, .call-how, .rm-stage { padding-inline: 20px; box-sizing: border-box; }
  .call-say .call-lines { text-align: center; justify-items: center; font-size: 20px; }
  .call-say > .room-line { margin-top: 20px; }

  /* What it can reach: three short sections, each with a small gold head */
  .rm-copy { row-gap: 1.4em; padding-inline: 20px; }
  .rm-copy .room-head { margin-bottom: 0.2em; }
  .rm-copy .room-line { text-align: left; }
  .rm-copy .room-line b { font-size: 19px; margin-bottom: .2em; }

  /* off the shelf: the slip is a centered receipt, not a full-width band */
  .bd-receipt { width: min(100%, 340px); margin: 0 auto; box-sizing: border-box; padding: 1.1em 1.2em 1.6em; }

  /* bigger builds read at phone size */
  .big-card span:not(.app-coin) { font-size: 16px; line-height: 1.5; }
  .big-card b { font-size: 19px; }

  /* the closing globe: no frame, no hint, a whole world a little larger,
     trusted to a thumb (Dan, 2026-11-21) */
  .hero-foot .hero-sky {
    position: relative; inset: auto; width: min(100vw, 480px); aspect-ratio: 1; height: auto; min-height: 0;
    margin: 20px auto 0; overflow: visible; opacity: 1;
  }
  .hero-foot .hero-sky .hero-canvas { -webkit-mask-image: none; mask-image: none; }
}

/* every title centers on phones (title audit at 360, 390 and 430, 2026-11-21) */
@media (max-width: 760px) {
  .ob-head { text-align: center; }
  .ob-head .ob-title { margin-inline: auto; }
  .yours .yours-head, .yours .yours-sub { margin-inline: auto; justify-self: center; }
  .rm-copy .room-head { margin-inline: auto; }
  .letter .letter-head { text-align: center; }
  .ud .ud-cap { text-align: center; }
  .apps .apps-sub { text-align: center; }
}
@media (max-width: 760px) { .apps-pair:not(.apps-reach) > div > h3, .apps-pair:not(.apps-reach) > div > h3 + p { text-align: center; } }

/* hero actions on phones (CTA pass, 2026-11-21). The lantern measured 91px
   tall: the page has no border-box reset, so min-height: 56px sized only the
   content box and the 16px + 17px padding and 2px border landed on top of it.
   Both actions now size by their outer edge: the lantern a full-width 56px
   thumb target (above the 44pt / 48dp floor, the usual landing-page primary
   height), the second action a lighter 48px glass button in the same shape,
   so the lantern clearly leads. Tokens and color-mix only. */
@media (max-width: 760px) {
  .hh .acts { gap: 12px; max-width: 360px; }
  .hh .acts .cta {
    box-sizing: border-box; width: 100%; min-height: 56px; height: auto;
    padding: 0 24px; justify-content: center; align-items: center;
    font-size: 18px; line-height: 1.15;
  }
  .hh .acts .act-quiet {
    box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 0.4em;
    width: 100%; min-height: 48px; padding: 0 20px;
    border-radius: var(--act-r);
    border: 1px solid color-mix(in oklab, var(--lamp) 32%, transparent);
    background: color-mix(in oklab, var(--paper) 42%, transparent);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    color: var(--ink); font-size: 16px; font-weight: 500; line-height: 1.2;
  }
  .hh .acts .act-quiet:hover {
    border-color: color-mix(in oklab, var(--lamp) 60%, transparent);
    background: color-mix(in oklab, var(--lamp) 10%, color-mix(in oklab, var(--paper) 42%, transparent));
  }
}
@media (max-width: 760px) { .store-deck, .store-line { text-align: center; margin-inline: auto; } }

/* ── For teams and organizations, phones (2026-11-21, 360 / 390 / 430) ──
   1. The three diagrams run edge to edge of the panel, exactly centered: the
      old 112% width with a -6% margin pushed them right and clipped their
      right edge inside the track. They now bleed by the panel's own padding
      on both sides, so the art is as large as the phone allows.
   2. Labels that collided at phone size are nudged apart (SVG text accepts a
      CSS transform, in viewBox units) and picked out by their x position,
      which org.js and approve.js set and never change.
   3. Versus team plans: the two sides read apart. In the picture the team
      plan is muted and grey, Astrolabe is lit in lamp gold. In the table each
      row is a card: the question on top, then two labelled columns, the team
      plan quiet and grey, Astrolabe on a lamp-gold wash with a gold dot. */
@media (max-width: 760px) {
  /* 1. centered, full-bleed diagrams */
  .ob-panel :is(.org-svg, .ap-svg, .tm-svg) {
    width: calc(100% + 2 * var(--site-pad)); max-width: none;
    margin-left: calc(-1 * var(--site-pad)); margin-right: calc(-1 * var(--site-pad));
  }
  .ob-panel .org-art { margin-top: 8px; padding-bottom: 22px; }

  /* 2a. one shared brain: the customers' corner */
  .org-svg .org-world-label { font-size: 34px; }
  .org-svg .org-who { font-size: 34px; }
  .org-svg text.org-note[x="890"] { font-size: 26px; transform: translate(-115px, 8px); }

  /* 2b. approvals: "approved" rides above its check, clear of the lead's label */
  .ap-svg .org-who { font-size: 32px; }
  .ap-svg text.ap-note[x="850"] { transform: translate(0, -96px); }
  .ap-svg .org-world-label { font-size: 34px; }

  /* 3a. the picture: team plan quiet, Astrolabe lit */
  .tm-svg .tm-left { opacity: 0.62; filter: saturate(0.35); }
  .tm-svg .tm-left .tm-cap { fill: var(--ink-3); font-size: 42px; }
  .tm-svg .tm-right .tm-cap { fill: var(--lamp); font-size: 42px; }
  .tm-svg .tm-glass { stroke: color-mix(in srgb, var(--ink-3) 70%, transparent); }

  /* 3b. the table: one card per row, two labelled sides */
  .tm .tm-table { gap: 12px; margin-top: 28px; }
  .tm .tm-row:not(.tm-hdr) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px;
    padding: 14px; border-top: 0; border-radius: 14px;
    background: color-mix(in srgb, var(--ink) 5%, transparent);
  }
  .tm .tm-row:not(.tm-hdr) .tm-need { grid-column: 1 / -1; font-size: 18px; line-height: 1.3; text-align: left; }
  .tm .tm-row:not(.tm-hdr) :is(.tm-theirs, .tm-ours) {
    position: static; padding: 10px 11px 12px; border-radius: 10px;
    font-size: 15px; line-height: 1.45; text-align: left;
  }
  .tm .tm-row:not(.tm-hdr) .tm-theirs { color: var(--ink-3); background: color-mix(in srgb, var(--ink) 4%, transparent); }
  .tm .tm-row:not(.tm-hdr) .tm-ours { color: var(--ink); background: color-mix(in oklab, var(--lamp) 13%, transparent); }
  .tm .tm-row:not(.tm-hdr) :is(.tm-theirs, .tm-ours)::before {
    position: static; display: block; margin: 0 0 6px; width: auto; height: auto;
    border-radius: 0; box-shadow: none; vertical-align: baseline;
    font: 600 11px/1.2 var(--body); letter-spacing: 0.08em; text-transform: uppercase;
  }
  .tm .tm-row:not(.tm-hdr) .tm-theirs::before { content: "A team plan"; color: var(--ink-3); background: none; }
  .tm .tm-row:not(.tm-hdr) .tm-ours::before {
    content: "Astrolabe"; color: var(--lamp); padding-left: 13px;
    background: radial-gradient(circle at 3.5px 50%, var(--lamp) 3.5px, transparent 4px) no-repeat;
  }
}

/* Craft the place on narrow screens: the detail paragraph gets its own row
   under the promise (tight.css sets the grid map, this loads after it) */
@media (max-width: 900px) { .yours { grid-template-areas: "head" "sub" "more" "world" "call" "letter"; } .yours .yours-more { grid-area: more; } }

/* the team plans picture has its own phone drawing (teams.js), stacked and
   larger; it sits centered in the column at its natural size */
@media (max-width: 760px) {
  .ob-panel .tm-svg.tm-svg--phone { width: min(100%, 440px); max-width: 100%; margin: 24px auto 0; display: block; }
  .tm-svg--phone .tm-cap { font-size: 44px; }
}

/* phones: question, headline, then the picture, then the words (Dan,
   2026-11-21), in the fishbowl, one shared brain and approvals. The text
   block opens up so its pieces and the art share one column order. */
@media (max-width: 760px) {
  .fb-grid, .org-grid, .ap-wrap { display: flex; flex-direction: column; }
  .fb-text, .org-text, .ap-text { display: contents; }
  :is(.fb-ask, .org-ask, .ap-ask) { order: 1; }
  :is(.fb-head, .org-head, .ap-head) { order: 2; }
  :is(.fb-art, .org-art, .ap-art) { order: 3; margin-top: 18px; margin-bottom: 8px; }
  :is(.fb-points, .org-body, .ap-lead) { order: 4; }
  .org-points { order: 5; }
  .org-offer { order: 6; }
}

/* the voice of a member reads differently from the visitor's question:
   on phones Corey's words sit in a quiet glass card in white, the gold kept
   for the quote mark, so the gold italic stays the page's question voice; and
   the small print is brighter (Dan, 2026-11-21) */
@media (max-width: 760px) {
  .hh .hh-quote {
    box-sizing: border-box; width: 100%; max-width: 360px; margin: 30px auto 0; padding: 18px 20px 16px;
    border-radius: 18px; background: color-mix(in srgb, var(--ink) 6%, transparent);
    border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
    color: var(--ink); font: italic 500 18px/1.45 var(--display);
  }
  .hh .hh-quote::before { color: var(--lamp); font-size: 2em; line-height: .5; margin-bottom: 6px; }
  .hh .hh-quote span { color: color-mix(in oklab, var(--lamp) 70%, var(--ink)); font-size: 11px; letter-spacing: .1em; margin-top: 10px; }
  .hh .hh-models { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
  main > section.fb:not(.hero) { padding-top: 80px; }
  .hh { padding-bottom: 8px; }
}
.fb-points li { color: color-mix(in srgb, var(--k) 14%, var(--ink-2)); }
@media (max-width: 760px) { .fb-grid, .org-grid, .ap-wrap { row-gap: 14px; gap: 14px; } :is(.fb-art, .org-art, .ap-art) { margin-top: 10px; } }

/* the fishbowl world larger on phones: the drawing runs a little wider than
   the text column (its own margin is for the bowls), names a size up */
@media (max-width: 760px) {
  .fb-art .fb-svg { width: 116%; max-width: none; margin-left: -8%; }
  .fb-svg .fb-label { font-size: 26px; }
}

/* phones: lists stay a lined-up block, the block itself centered (Dan,
   2026-11-21: "lined up in a block still but in the center") */
@media (max-width: 760px) {
  .ud .ud-list { width: fit-content; margin-inline: auto; justify-items: start; text-align: left; }
  /* the closing section: centered head, the four things as a centered block,
     centered words and the same thumb-reach buttons as the hero */
  .hero-foot .hero-text { text-align: center; }
  .hero-foot .hero-statement { text-align: center; }
  .hero-foot .hero-second { display: block; width: fit-content; margin: 0.4em auto 0; text-align: left; }
  .hero-foot .bridge { margin-inline: auto; max-width: 34ch; }
  .hero-foot .acts { flex-direction: column; align-items: stretch; gap: 12px; width: 100%; max-width: 360px; margin-inline: auto; }
  .hero-foot .acts .cta { box-sizing: border-box; justify-content: center; min-height: 56px; padding: 0 24px; font-size: 18px; }
  .hero-foot .acts .act-quiet {
    box-sizing: border-box; display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px;
    border-radius: var(--act-r); border: 1px solid color-mix(in oklab, var(--lamp) 32%, transparent);
    background: color-mix(in oklab, var(--paper) 42%, transparent); color: var(--ink); font-size: 16px;
  }
  .hero-foot .terms { margin-inline: auto; max-width: 34ch; }
}

/* phones, 2026-11-21: the closing globe centered on the screen and larger;
   the house painting larger; air above the second and third feature pairs;
   the community doors as centered buttons */
@media (max-width: 760px) {
  .hero-foot .hero-sky { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); align-self: auto; }
  .rm-art { width: calc(100% + 2 * var(--site-pad)); margin-left: calc(-1 * var(--site-pad)); max-width: none; }
  .apps-pair > div + div, .apps-pair.apps-reach { margin-top: 44px; }
  .apps-reach .reach + .reach { margin-top: 32px; }
  .store-doors { display: flex; flex-direction: column; align-items: stretch; gap: 10px; width: 100%; max-width: 360px; margin-inline: auto; }
  .store-doors .linkdoor {
    box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 0.4em; min-height: 50px; padding: 0 18px;
    border-radius: var(--act-r); border: 1px solid color-mix(in oklab, var(--lamp) 45%, transparent); border-bottom-width: 1px;
    background: color-mix(in oklab, var(--lamp) 10%, transparent); color: var(--ink); font-size: 16px; text-align: center; text-decoration: none;
  }
  .store-doors .linkdoor.quiet { border-color: color-mix(in oklab, var(--ink) 20%, transparent); background: color-mix(in oklab, var(--paper) 42%, transparent); }
}
/* the house painting a size up on wide screens too */
@media (min-width: 761px) { .rm-art { width: min(100%, 980px); } }
@media (max-width: 760px) { .store-doors .linkdoor { display: block; padding: 14px 18px; line-height: 1.3; } }

/* wide screens: the closing globe is the top layer and its sky reaches up
   over the section above, so the pieces standing on the ball are never cut
   (Dan, 2026-11-22); page.js keeps the ball where it was */
@media (min-width: 761px) {
  main > section.hero-foot { position: relative; z-index: 3; }
  .hero-foot .hero-sky { --foot-lift: 200px; top: calc(-1 * var(--foot-lift)); }
}
