/* Face first — the site's look (website/directions/b, chosen 2026-10-27).
   A man full-bleed, the icon's violet as the ground for sections that show real
   screens, white headlines with the icon's yellow on the second line, near-black
   for reading. Flat colour, no glow. Bricolage Grotesque Display for headings,
   Figtree for text. Tokens come from the app (Teleprompter/DesignSystem). */

@font-face { font-family: "Bricolage Display"; src: url("/fonts/BricolageGrotesque-Display.ttf") format("truetype");
             font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/Figtree-var.ttf") format("truetype");
             font-weight: 300 900; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --violet: #4A3BE6;   /* white 6.86, lilac 4.97, yellow 4.47 (large text only) */
  --deep: #2A1FA0;     /* white 11.65, lilac 8.43, yellow 7.59 */
  --ink: #07080B;      /* the app's bg: white 20.03, grey 8.94, yellow 13.04 */
  --surface: #16181F;  /* panels on ink: white 17.3, grey 7.7 */
  --white: #FFFFFF;
  --text: #E6E8EF;     /* running text on ink: 16.4 */
  --lilac: #DCD8F6;
  --grey: #A8ADBD;
  --accent-soft: #A79FFF; /* the app's accentSoft: links on ink, 7.9 */
  --yellow: #FFC93C;
  --record: #E5453D;
  --edge: rgba(255, 255, 255, .16);

  --display: "Bricolage Display", ui-sans-serif, system-ui, sans-serif;
  --sans: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --t-small: 1rem;
  --t-body: 1.1875rem;
  --t-h3: 1.5rem;
  --t-big: clamp(1.5rem, 1.1rem + 1.2vw, 2rem);
  --t-h2: clamp(2.25rem, 1.1rem + 3.8vw, 3.75rem);
  --t-hero: clamp(2.75rem, .9rem + 5.6vw, 6rem);

  --gutter: clamp(20px, 5vw, 72px);
  --space-2: 16px; --space-3: 24px; --space-4: 40px; --space-5: 64px; --space-6: clamp(88px, 10vw, 152px);
  --measure: 40rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; hanging-punctuation: first allow-end; scroll-padding-top: 24px; }
body { margin: 0; background: var(--ink); color: var(--white); font: 400 var(--t-body)/1.55 var(--sans);
       -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, figure, ol, ul, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: -60px; background: var(--white); color: var(--deep); padding: 10px 14px;
        border-radius: 8px; font-weight: 700; z-index: 10; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }

.hl { font: 800 var(--t-h2)/.98 var(--display); letter-spacing: -.028em; text-wrap: balance; }
.hl .l2 { display: block; color: var(--yellow); }

/* the button: white pill with deep-violet text, like the app's own primary */
.get { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px;
       background: var(--white); color: var(--deep); border-radius: 999px; text-decoration: none;
       font: 700 1.0625rem/1 var(--sans); white-space: nowrap; transition: background-color .15s ease-out; }
.get:hover { background: var(--lilac); }

/* the iPhone: a real capture inside a drawn body; the island is in the capture */
.phone { --w: 300px; width: var(--w); padding: calc(var(--w) * .03); border-radius: calc(var(--w) * .17);
         background: #0B0B0E; box-shadow: 0 0 0 1.5px #55555F, 0 0 0 4px #17171B, 0 40px 80px -24px rgba(8, 4, 40, .65); }
.phone img { width: 100%; border-radius: calc(var(--w) * .14); }

/* ---------- header ---------- */
.top { position: relative; z-index: 3; }
.top.over { position: absolute; inset: 0 0 auto 0; }
.top .wrap { display: flex; align-items: center; gap: var(--space-3); padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.brand span { font: 800 1.125rem/1.1 var(--display); letter-spacing: -.01em; }
.nav ul { display: flex; gap: var(--space-3); }
.nav a { text-decoration: none; font-weight: 600; font-size: var(--t-small); }
.nav a:hover, .nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }
.top .get { min-height: 42px; padding: 0 18px; font-size: var(--t-small); }

/* language menu and the narrow-screen menu: <details>, so they work without script */
.lang-top, .menu { position: relative; }
.lang-top summary, .menu summary { list-style: none; cursor: pointer; }
.lang-top summary::-webkit-details-marker, .menu summary::-webkit-details-marker { display: none; }
.lang-top summary { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 4px; font-weight: 600; font-size: var(--t-small); }
.lang-top summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
                           transform: rotate(45deg) translateY(-2px); }
.lang-top .langs, .menu-panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; padding: 10px;
                                background: var(--ink); border: 1px solid var(--edge); border-radius: 14px;
                                box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .6); }
.langs a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; }
.langs a:hover { background: var(--surface); }
.langs a[aria-current] { color: var(--yellow); }
.menu { display: none; }
.menu summary { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; }
.menu summary span, .menu summary span::before, .menu summary span::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; }
.menu summary span { position: relative; }
.menu summary span::before, .menu summary span::after { content: ""; position: absolute; left: 0; }
.menu summary span::before { top: -6px; } .menu summary span::after { top: 6px; }
.menu[open] summary span { background: transparent; }
.menu[open] summary span::before { top: 0; transform: rotate(45deg); }
.menu[open] summary span::after { top: 0; transform: rotate(-45deg); }
.menu-panel { min-width: 240px; }
.menu-panel > ul a { display: block; padding: 12px; font-weight: 700; text-decoration: none; }
.menu-panel .langs { border-top: 1px solid var(--edge); margin-top: 6px; padding-top: 6px; }

/* ---------- home: hero ---------- */
.hero { position: relative; }
.hero-photo { position: relative; height: clamp(380px, 46vw, 680px); overflow: hidden; background: #2b3a33; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 22%; }
.hero-photo::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 140px;
                     background: linear-gradient(rgba(7, 8, 11, .6), rgba(7, 8, 11, 0)); }
.hero-band { background: var(--violet); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-5);
             padding-block: clamp(40px, 5vw, 64px) clamp(56px, 7vw, 96px); }
.hero h1 { font: 800 var(--t-hero)/.95 var(--display); letter-spacing: -.032em; }
.hero h1 .l2 { display: block; color: var(--yellow); }
.hero .lede { margin-top: var(--space-3); max-width: 34ch; color: var(--lilac); font-size: clamp(1.1875rem, 1rem + .5vw, 1.4375rem); line-height: 1.45; }
.act { margin-top: var(--space-4); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.note { color: var(--lilac); font-size: var(--t-small); max-width: 34ch; }
.tilt { align-self: start; margin-top: calc(-1 * clamp(160px, 21vw, 330px)); margin-right: clamp(0px, 3vw, 48px); }
.tilt .phone { --w: clamp(220px, 21vw, 300px); transform: rotate(6deg); }

/* ---------- home: how it works, the recorder labelled ---------- */
.how { padding-block: var(--space-6); }
.how-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-5); align-items: center; }
.labeled { --w: clamp(220px, 24vw, 340px); position: relative; justify-self: end; margin-right: clamp(0px, 4vw, 64px); }
.labeled .phone { --w: clamp(220px, 24vw, 340px); }
.callout { position: absolute; display: flex; align-items: center; gap: 8px; color: var(--yellow);
           font: 700 1.125rem/1 var(--sans); white-space: nowrap; }
.callout i { display: block; flex: none; position: relative; height: 2.5px; border-radius: 2px; background: currentColor; width: var(--len); }
.callout i::after { content: ""; position: absolute; right: 0; top: 50%; width: 9px; height: 9px;
                    border-top: 2.5px solid currentColor; border-right: 2.5px solid currentColor; transform: translateY(-50%) rotate(45deg); }
.c-cam { left: 50%; bottom: calc(100% - var(--w) * .066); transform: translateX(-50%); flex-direction: column; gap: 6px; }
.c-cam i { width: 2.5px; height: 40px; }
.c-cam i::after { right: auto; left: 50%; top: auto; bottom: 0; transform: translateX(-50%) rotate(135deg); }
.c-script { top: calc(var(--w) * .36 - 9px); right: calc(100% - var(--w) * .05); }
.c-script i { --len: calc(var(--w) * .05 + 34px); }
.how .hl { margin-bottom: var(--space-3); }
.definition { color: var(--grey); max-width: 46ch; margin-bottom: var(--space-5); }
.steps { counter-reset: step; max-width: 36em; }
.steps > li, .prose .steps ol > li { counter-increment: step; display: grid; grid-template-columns: 48px 1fr; column-gap: var(--space-3); }
.steps > li + li { margin-top: var(--space-4); }
.steps > li::before, .prose .steps ol > li::before { content: counter(step); grid-row: 1 / span 2; width: 48px; height: 48px; border-radius: 50%;
                    display: grid; place-items: center; background: var(--yellow); color: var(--ink); font: 800 1.5rem/1 var(--display); }
.steps h3 { font: 800 var(--t-h3)/1.2 var(--display); letter-spacing: -.01em; padding-top: 10px; }
.steps p { margin-top: 8px; color: var(--grey); max-width: 52ch; }
.more { margin-top: var(--space-4); font-weight: 700; }
.more a { text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }

/* ---------- home: who uses it ---------- */
.who { background: var(--violet); padding-block: var(--space-6); }
.who .hl { margin-bottom: var(--space-5); }
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-5) var(--space-4); align-items: start; }
.mosaic figure img { width: 100%; object-fit: cover; }
.m1 { grid-column: 1 / span 7; }
.m1 img { aspect-ratio: 3 / 2; }
.m2 { grid-column: 9 / span 4; margin-top: clamp(0px, 8vw, 120px); }
.m2 img { aspect-ratio: 4 / 5; object-position: 50% 35%; }
.m3 { grid-column: 1 / span 4; }
.m3 img { aspect-ratio: 4 / 5; object-position: 45% 30%; }
.more-people { grid-column: 6 / span 7; align-self: center; }
.mosaic figcaption { margin-top: var(--space-2); font-size: clamp(1.1875rem, 1rem + .4vw, 1.375rem); line-height: 1.4; max-width: 34ch; }
.mosaic figcaption a, .more-people a { display: block; width: fit-content; margin-top: 10px; font-weight: 700; font-size: var(--t-small);
                                        font-family: var(--sans); letter-spacing: 0; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }
.more-people p { font: 800 var(--t-big)/1.2 var(--display); letter-spacing: -.012em; max-width: 24em; }
.more-people a { display: block; }
.more-people p + p { margin-top: 1.1em; }

/* ---------- home: voice ---------- */
.voice { padding-block: var(--space-6); }
.voice-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-5); align-items: center; }
.voice-text p { margin-top: var(--space-3); color: var(--grey); max-width: 44ch; }
.voice-text .hl { margin-bottom: var(--space-2); }
.voice-text .more { margin-top: var(--space-4); color: var(--white); }
.trio { display: flex; justify-content: center; align-items: flex-start; gap: clamp(12px, 2vw, 28px); }
.trio .phone { --w: clamp(120px, 15vw, 220px); }
.trio .phone:nth-child(2) { margin-top: var(--space-5); }
.trio .phone:nth-child(3) { margin-top: calc(var(--space-5) * 2); }

/* ---------- home: captions ---------- */
.cap { background: var(--deep); padding-block: var(--space-6); overflow: hidden; }
.cap-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-5); align-items: center; }
.cap-text p { margin-top: var(--space-3); color: var(--lilac); max-width: 44ch; }
.cap-text .hl { margin-bottom: var(--space-2); }
.cap-text .more { color: var(--white); }
.pair { position: relative; --w: clamp(200px, 20vw, 290px); height: calc(var(--w) * 2.3); }
.pair .phone { --w: clamp(200px, 20vw, 290px); position: absolute; top: 0; }
.pair .back { left: 0; transform: rotate(-7deg); }
.pair .front { right: 0; top: 10%; transform: rotate(5deg); }

/* ---------- home: rig ---------- */
.rig { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: stretch; }
.rig-photo { min-height: 560px; }
.rig-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 40%; }
.rig-body { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5); padding: var(--space-6) var(--gutter); }
.rig-text { flex: 1 1 17em; max-width: 30em; }
.rig-text p { margin-top: var(--space-3); color: var(--grey); }
.rig .phone { --w: clamp(200px, 17vw, 250px); }

/* ---------- home: languages ---------- */
.lang { background: var(--violet); padding-block: var(--space-6); }
.lang-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-5); align-items: end; }
.lang-grid p { margin-top: var(--space-3); color: var(--lilac); max-width: 42ch; }
.names { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1em .55em; font: 800 clamp(2rem, 1rem + 3.4vw, 4rem)/1.1 var(--display); letter-spacing: -.024em; }

/* ---------- home: questions and guides ---------- */
.faq-home { padding-block: var(--space-6) var(--space-5); }
.faq-home .hl, .arts .hl { margin-bottom: var(--space-4); }
.qa { max-width: 52rem; }
details.q, .qa details, .faq details { border-top: 1px solid var(--edge); }
.qa details:last-child, .faq details:last-child { border-bottom: 1px solid var(--edge); }
.qa summary, .faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding-block: 22px;
          cursor: pointer; list-style: none; font: 700 1.3125rem/1.3 var(--sans); }
.qa summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.qa summary::after, .faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2.5px solid var(--yellow); border-bottom: 2.5px solid var(--yellow);
                 transform: rotate(45deg) translateY(-3px); transition: transform .15s ease-out; }
.qa details[open] summary::after, .faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.qa details p { color: var(--grey); max-width: 60ch; padding-bottom: 24px; }
.arts { padding-block: var(--space-5) var(--space-6); }
.arts ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-5); max-width: 72rem; }
.arts ul a { font: 800 clamp(1.375rem, 1.1rem + .8vw, 1.875rem)/1.18 var(--display); letter-spacing: -.012em;
             text-decoration-color: var(--edge); text-decoration-thickness: 2px; text-underline-offset: .18em; }
.arts ul a:hover { text-decoration-color: var(--yellow); }
.arts .all { margin-top: var(--space-5); font-weight: 700; color: var(--grey); }
.arts .all a { color: var(--white); }

/* ---------- content pages: the violet band ---------- */
.band { background: var(--violet); }
.page-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); padding-block: var(--space-4) var(--space-5); }
.page-head.has-screen { grid-template-columns: minmax(0, 1fr) auto; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 10px; color: var(--lilac); font-size: var(--t-small); margin-bottom: var(--space-3); }
.crumbs li + li::before { content: "/"; margin-right: 10px; }
.page-head h1 { font: 800 clamp(2.25rem, 1rem + 4vw, 4.25rem)/1 var(--display); letter-spacing: -.03em; max-width: 15em; text-wrap: balance; }
.page-head .lede { margin-top: var(--space-3); color: var(--lilac); font-size: clamp(1.1875rem, 1rem + .5vw, 1.375rem); line-height: 1.5; max-width: 44ch; }
.page-head .lede p + p { margin-top: .6em; }
.page-head .lede a { color: var(--white); }
.page-head .meta { margin-top: var(--space-3); color: var(--lilac); font-size: var(--t-small); max-width: 60ch; }
.page-head .tilt { margin-top: 0; margin-bottom: calc(-1 * clamp(120px, 14vw, 220px)); position: relative; z-index: 2; }
.page-head .tilt .phone { --w: clamp(200px, 19vw, 280px); }
.page-photo { height: clamp(240px, 34vw, 560px); overflow: hidden; background: #22252F; }
.page-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

/* ---------- content pages: reading ---------- */
.doc { padding-block: var(--space-5) var(--space-6); }
.doc-grid { display: grid; grid-template-columns: minmax(0, var(--measure)) minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.prose { color: var(--text); min-width: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font: 800 clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem)/1.05 var(--display); letter-spacing: -.022em; color: var(--white);
            margin-top: 2.2em; text-wrap: balance; }
.prose h3 { font: 800 1.5rem/1.2 var(--display); letter-spacing: -.012em; color: var(--white); margin-top: 1.8em; }
.prose h4 { font: 700 1.1875rem/1.3 var(--sans); color: var(--white); margin-top: 1.5em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .7em; }
.prose a { color: var(--accent-soft); text-decoration-thickness: 1px; }
.prose a:hover { color: var(--white); }
.prose .get, .prose .get:hover { color: var(--deep); text-decoration: none; }
.prose strong { color: var(--white); font-weight: 700; }
.prose ul > li, .prose ol > li { position: relative; padding-left: 1.4em; }
.prose ul > li + li, .prose ol > li + li { margin-top: .5em; }
.prose ul > li::before { content: ""; position: absolute; left: .2em; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); }
.prose ol { counter-reset: n; }
.prose ol > li { counter-increment: n; }
.prose ol > li::before { content: counter(n) "."; position: absolute; left: 0; color: var(--yellow); font-weight: 700; }
.prose .steps ol > li { padding-left: 0; }
.prose .steps ol > li + li { margin-top: var(--space-3); }
.prose .steps ol > li::before { content: counter(step); position: static; grid-row: auto; width: 40px; height: 40px; font-size: 1.25rem; }
.prose .steps ol { counter-reset: step; }
.prose .steps ol > li { grid-template-columns: 40px 1fr; align-items: start; padding-top: 0; }
.prose .steps ol > li { line-height: 1.5; }
.prose .steps ol > li { padding-block: 6px 0; }
.prose blockquote { border-left: 3px solid var(--yellow); padding-left: 1em; color: var(--white); }

.app-box { display: grid; grid-template-columns: 64px 1fr; gap: var(--space-3); padding: var(--space-3); background: var(--surface);
           border: 1px solid var(--edge); border-radius: 18px; margin-bottom: var(--space-4); }
.app-box img { width: 64px; height: 64px; border-radius: 14px; }
.app-box p { margin: 0; }
.app-box p + p { margin-top: .6em; }
.app-box-title { font: 800 1.25rem/1.2 var(--display); letter-spacing: -.01em; color: var(--white); }
.app-box .muted { color: var(--grey); font-size: var(--t-small); }
.app-box .get { margin-top: var(--space-2); min-height: 48px; }

.prose .answer { font-size: 1.3rem; color: var(--white); }
.prose aside.note { background: var(--surface); border-left: 4px solid var(--yellow); border-radius: 0 14px 14px 0; padding: var(--space-3); }
.prose aside.note > * + * { margin-top: .7em; }

.prose figure.screen { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); margin-block: var(--space-4); }
.prose figure.screen .phone { --w: clamp(220px, 60vw, 280px); }
.prose figure figcaption { color: var(--grey); font-size: var(--t-small); text-align: center; max-width: 36ch; }
.prose figure.photo { margin-block: var(--space-4); }
.prose figure.photo img { border-radius: 4px; }
.prose figure.photo figcaption { text-align: left; margin-top: 10px; }

.prose .table { overflow-x: auto; margin-block: var(--space-4); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--t-small); line-height: 1.45; min-width: 520px; }
.prose caption { text-align: left; color: var(--grey); padding-bottom: 12px; font-weight: 600; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--edge); }
.prose thead th { color: var(--white); font-weight: 700; border-bottom: 2px solid var(--yellow); }
.prose tbody th { color: var(--white); font-weight: 700; }

.faq { margin-top: var(--space-5) !important; }
.faq h2 { margin-bottom: var(--space-3); }
.faq details > *:not(summary) { color: var(--grey); padding-bottom: 20px; max-width: 60ch; }
.faq details > * + *:not(summary) { margin-top: .6em; }

.toc { position: sticky; top: var(--space-4); align-self: start; padding-left: var(--space-4); border-left: 1px solid var(--edge); max-width: 22rem; }
.toc h2 { font: 700 var(--t-small)/1.4 var(--sans); color: var(--grey); margin-bottom: var(--space-2); }
.toc li + li { margin-top: 10px; }
.toc a { color: var(--text); text-decoration: none; font-size: var(--t-small); line-height: 1.35; display: block; }
.toc a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--yellow); }

.doc-plain .doc-grid { grid-template-columns: minmax(0, 46rem); }

/* related guides and the closing band */
.related { padding-block: 0 var(--space-6); }
.related .hl { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); margin-bottom: var(--space-4); }
.related ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.related a { display: block; text-decoration: none; }
.related img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; margin-bottom: var(--space-2); }
.related span { font: 800 1.375rem/1.2 var(--display); letter-spacing: -.012em; }
.related a:hover span { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }
.cta { background: var(--violet); padding-block: var(--space-6); }
.cta p { margin-top: var(--space-3); color: var(--lilac); max-width: 52ch; }
.cta .get { margin-top: var(--space-4); }

/* hubs */
.hub { padding-block: var(--space-5) var(--space-6); }
.hub section + section { margin-top: var(--space-6); }
.hub .hl { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); margin-bottom: var(--space-4); }
.index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-5); }
.index a { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--space-3); align-items: start; text-decoration: none; }
.index img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.index .phone { --w: 120px; justify-self: center; }
.index-title { display: block; font: 800 1.5rem/1.15 var(--display); letter-spacing: -.012em; }
.index-desc { display: block; margin-top: 8px; color: var(--grey); font-size: var(--t-small); line-height: 1.5; }
.index a:hover .index-title { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }

/* 404 */
.nf + .nf { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--edge); }
.nf-title { font: 800 1.75rem/1.1 var(--display); }
.nf p { color: var(--lilac); margin-top: .5em; }
.nf a { color: var(--white); font-weight: 700; }

/* ---------- footer ---------- */
.foot { background: var(--deep); padding-block: var(--space-5) var(--space-4); font-size: var(--t-small); color: var(--lilac); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: var(--space-4); }
.foot-brand img { width: 48px; height: 48px; border-radius: 11px; margin-bottom: var(--space-2); }
.foot-brand strong { display: block; color: var(--white); font: 800 1.25rem/1.2 var(--display); letter-spacing: -.01em; }
.foot-brand p { margin-top: 8px; max-width: 36ch; }
.foot-brand .get { margin-top: var(--space-3); }
.foot h2 { font: 600 var(--t-small)/1.4 var(--sans); color: var(--lilac); margin-bottom: var(--space-2); }
.foot li + li { margin-top: 10px; }
.foot nav a { color: var(--white); text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.foot .langs a { display: inline; padding: 0; }
.foot .langs a:hover { background: none; }
.foot nav a[aria-current] { color: var(--yellow); }
.legal { grid-column: 1 / -1; padding-top: var(--space-3); border-top: 1px solid var(--edge); }

/* ---------- narrower screens ---------- */
@media (max-width: 1180px) {
  .nav, .lang-top { display: none; }
  .menu { display: block; }
  .toc { display: none; }
  .doc-grid { grid-template-columns: minmax(0, var(--measure)); }
}
@media (max-width: 900px) {
  .hero-grid, .how-grid, .cap-grid, .lang-grid, .voice-grid, .page-head.has-screen { grid-template-columns: 1fr; }
  .tilt { margin-top: var(--space-2); justify-self: center; margin-right: 0; }
  .page-head .tilt { margin-bottom: calc(-1 * var(--space-5)); }
  .labeled { justify-self: end; margin-right: 8px; order: 2; }
  .mosaic { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .m1 { grid-column: 1 / -1; }
  .m2 { grid-column: 1 / span 3; margin-top: 0; }
  .m3 { grid-column: 4 / span 3; }
  .more-people { grid-column: 1 / -1; }
  .pair { max-width: 520px; margin-inline: auto; width: 100%; }
  .rig { grid-template-columns: 1fr; }
  .rig-photo { min-height: 0; }
  .rig-photo img { aspect-ratio: 4 / 3; height: auto; }
  .arts ul, .index, .related ul { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .top .get { display: none; }
  .callout { font-size: .9375rem; }
  .act .get { width: 100%; }
  .mosaic figcaption { font-size: 1.0625rem; }
  .index a { grid-template-columns: 1fr; }
  .app-box { grid-template-columns: 1fr; }
  .trio .phone { --w: calc((100vw - 2 * var(--gutter) - 24px) / 3); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
.cta .note { margin-top: var(--space-3); max-width: 52ch; }

/* The comparison is mostly tables: give them the width, keep the prose at a reading measure. */
body[data-kind="compare"] .doc-grid { grid-template-columns: minmax(0, 72rem); }
body[data-kind="compare"] .prose > :not(.table):not(.screen) { max-width: var(--measure); }
body[data-kind="compare"] .prose table { min-width: 720px; }

/* Table captions sit above the scroll box. On legal and support pages a narrow
   screen stacks each row, with the column names beside the values. */
.prose .table-caption { color: var(--grey); font-size: var(--t-small); font-weight: 600; margin-top: var(--space-4); }
.prose .table-caption + .table { margin-top: 10px; }
@media (max-width: 640px) {
  .doc-plain .prose table { min-width: 0; }
  .doc-plain .prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .doc-plain .prose tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--edge); }
  .doc-plain .prose th, .doc-plain .prose td { display: block; border: 0; padding: 4px 0; }
  .doc-plain .prose td::before { content: attr(data-label); display: block; color: var(--grey); font-size: .875rem; font-weight: 600; }
}
