/* Homepage: hero, editorial intro, workflow chapters, caption playground and
   the native feature list. */

/* ---------------------------------------------------------------- hero */

.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); align-items: center; gap: var(--space-8); padding-top: var(--space-7); padding-bottom: var(--section-y); }
.hero-content { position: relative; z-index: 3; }
/* The H1 is the product description, a full sentence, so it is set smaller
   than the two-word slogan it replaced and overlaps the carousel less. */
.hero h1 {
  font-size: clamp(46px, 4.7vw, 78px);
  line-height: 1.02;
  letter-spacing: -.055em;
  margin-top: var(--space-4);
  position: relative;
  z-index: 4;
  font-weight: 450;
  text-wrap: balance;
}
.hero h1 span { position: relative; white-space: nowrap; }
.hero h1 span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: .06em;
  height: .14em;
  border-radius: 2px;
  background: var(--lime);
  z-index: -1;
}
/* A plain line of small print under the actions, on every width. */
.hero-note { color: var(--muted); font-size: 13px; line-height: 1.6; max-width: 440px; margin-top: var(--space-5); text-wrap: pretty; }
.hero-note a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.hero-description { color: var(--muted); font-size: var(--text-lead); line-height: 1.6; margin-top: var(--space-5); max-width: 560px; text-wrap: pretty; }
.hero-cta { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-5); margin-top: var(--space-6); }

/* The hero carousel: seven native captures take turns in the centre. Every
   size is in container units so the phones scale with the visual column. The
   phone frame matches the app's product-stack renderer (ink bezel, faint rim). */
/* Phones entering from the right pass the viewport edge on narrow screens.
   clip, not hidden: no scroll container, so sticky positioning still works. */
#main { overflow-x: clip; }
/* The carousel stands on a lit stage: a soft key light from above and a
   contact shadow under the phones. Phones entering
   from the side slide in from behind the stage's edge. */
.hero-visual {
  position: relative;
  z-index: 1;
  height: 620px;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-xl);
  background: var(--stage-light);
  box-shadow: var(--raise-2);
  container-type: size;
}
/* Stacking comes from depth, not z-index: z-index can't be animated on the
   compositor, and an animation that changes it runs on the main thread. With
   no perspective, translateZ changes only the order, never the size. */
.hero-carousel { position: absolute; inset: 0; --phone-w: min(37.6cqw, 38cqh); transform-style: preserve-3d; }
.hero-carousel::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(50% + var(--phone-w) * .98);
  width: calc(var(--phone-w) * 2.4);
  height: calc(var(--phone-w) * .26);
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(10 8 19 / .3), rgb(10 8 19 / .1) 55%, transparent);
}
.hero-phone {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--phone-w);
  padding: calc(var(--phone-w) * .02);
  border-radius: calc(var(--phone-w) * .118);
  background: var(--device-frame);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / .16),
    0 0 0 1px rgb(10 8 19 / .55),
    0 calc(var(--phone-w) * .02) calc(var(--phone-w) * .04) rgb(10 8 19 / .16),
    0 calc(var(--phone-w) * .12) calc(var(--phone-w) * .22) calc(var(--phone-w) * -.06) rgb(10 8 19 / .42);
  opacity: 0;
  transform: translate3d(78%, -45%, 10px) scale(.42);
}
.hero-phone img { display: block; width: 100%; height: auto; border-radius: calc(var(--phone-w) * .098); }
/* Glass: a faint specular sweep across the screen. */
.hero-phone::after {
  content: "";
  position: absolute;
  inset: calc(var(--phone-w) * .02);
  border-radius: calc(var(--phone-w) * .098);
  background: linear-gradient(118deg, rgb(255 255 255 / .2) 0%, rgb(255 255 255 / .05) 26%, transparent 42%);
  pointer-events: none;
}
/* Resting layout, and all that shows with reduced motion: script, recorder, review. */
.hero-phone:nth-child(1) { opacity: 1; transform: translate3d(-50%, -50%, 30px) scale(1); }
.hero-phone:nth-child(2) { opacity: 1; transform: translate3d(40.5%, -46.6%, 20px) scale(.63); }
.hero-phone:nth-child(7) { opacity: 1; transform: translate3d(-141%, -42%, 20px) scale(.63); }

@media (prefers-reduced-motion: no-preference) {
  .hero-phone { animation: hero-carousel 25.9s linear infinite; }
  .hero-phone:nth-child(2) { animation-delay: -22.2s; }
  .hero-phone:nth-child(3) { animation-delay: -18.5s; }
  .hero-phone:nth-child(4) { animation-delay: -14.8s; }
  .hero-phone:nth-child(5) { animation-delay: -11.1s; }
  .hero-phone:nth-child(6) { animation-delay: -7.4s; }
  .hero-phone:nth-child(7) { animation-delay: -3.7s; }
}

/* 7 screens, 2.4s rest and 1.3s glide per step (25.9s loop). Generated: edit the
   slot values and timings together, then recompute the percentages. The
   translateZ steps (10, 20, 30px) are the stacking order, changing at the same
   instants the z-index used to. */
@keyframes hero-carousel {
  0% { transform: translate3d(-50%, -50%, 30px) scale(1); opacity: 1; }
  9.266% { transform: translate3d(-50%, -50%, 30px) scale(1); opacity: 1; }
  9.267% { transform: translate3d(-50%, -50%, 20px) scale(1); opacity: 1; animation-timing-function: cubic-bezier(.6, .02, .24, 1); }
  14.286% { transform: translate3d(-141%, -42%, 20px) scale(.63); opacity: 1; }
  23.552% { transform: translate3d(-141%, -42%, 20px) scale(.63); opacity: 1; }
  23.553% { transform: translate3d(-141%, -42%, 10px) scale(.63); opacity: 1; animation-timing-function: cubic-bezier(.6, .02, .24, 1); }
  28.571% { transform: translate3d(-178%, -40%, 10px) scale(.42); opacity: 0; }
  37.838% { transform: translate3d(-178%, -40%, 10px) scale(.42); opacity: 0; }
  37.839% { transform: translate3d(-178%, -40%, 10px) scale(.42); opacity: 0; animation-timing-function: linear; }
  42.857% { transform: translate3d(78%, -45%, 10px) scale(.42); opacity: 0; }
  57.143% { transform: translate3d(78%, -45%, 10px) scale(.42); opacity: 0; }
  71.429% { transform: translate3d(78%, -45%, 10px) scale(.42); opacity: 0; }
  80.695% { transform: translate3d(78%, -45%, 10px) scale(.42); opacity: 0; }
  80.696% { transform: translate3d(78%, -45%, 20px) scale(.42); opacity: 0; animation-timing-function: cubic-bezier(.6, .02, .24, 1); }
  85.714% { transform: translate3d(40.5%, -46.6%, 20px) scale(.63); opacity: 1; }
  94.981% { transform: translate3d(40.5%, -46.6%, 20px) scale(.63); opacity: 1; }
  94.982% { transform: translate3d(40.5%, -46.6%, 30px) scale(.63); opacity: 1; animation-timing-function: cubic-bezier(.6, .02, .24, 1); }
  100% { transform: translate3d(-50%, -50%, 30px) scale(1); opacity: 1; }
}

/* ---------------------------------------------------------------- origin */

.origin-section { display: grid; grid-template-columns: 1fr 1fr; gap: 8%; padding-block: var(--section-y); border-bottom: 1px solid var(--line); }
.origin-section .section-index { margin-bottom: var(--space-4); }
.origin-section h2 { font-size: clamp(32px, 3.6vw, 55px); line-height: 1.12; }
.origin-story { max-width: 540px; }
.origin-story p { color: var(--muted); font-size: 16px; line-height: 1.8; }
.origin-story p + p { margin-top: var(--space-5); }
.origin-story .origin-meaning { color: var(--ink); padding-top: var(--space-5); border-top: 1px solid var(--line); }

/* ---------------------------------------------------------------- workflow */

.studio-section { padding-block: var(--section-y); }
.section-heading { display: block; }
.section-heading .section-index { grid-column: 1 / -1; margin-bottom: var(--space-4); }
/* 430px applies from 701px upward for the same reason: the late rule in the
   original stylesheet outranked the 900px one. */
.section-heading > p, .captions-heading > p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  max-width: 460px;
  margin-top: var(--space-5);
}

.studio-tabs { display: flex; gap: 8px; margin-top: 50px; border-bottom: 1px solid var(--line); }
.studio-tabs button { flex: 1; display: flex; align-items: center; padding: 20px 22px; gap: 20px; font-size: 18px; border-radius: 8px 8px 0 0; transition: background var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-spring); }
.studio-tabs button > span { font-size: var(--text-caption); color: var(--muted); font-variant-numeric: tabular-nums; }
.studio-tabs button > svg { margin-left: auto; }
@media (hover: hover) {
  .studio-tabs button:hover { background: var(--surface); }
}
.studio-tabs button[aria-selected="true"] { background: var(--lime); color: #0a0813; }
.studio-tabs button[aria-selected="true"] > span { color: #4e600f; }

.studio-panel { display: grid; grid-template-columns: 1fr 1.1fr; min-height: 660px; border-bottom: 1px solid var(--line); }
.studio-copy { display: flex; align-items: center; padding: var(--space-8) var(--space-8) var(--space-8) 0; }
.studio-copy h3 { font-size: 35px; line-height: 1.14; letter-spacing: -.04em; }
.studio-copy p { margin-top: var(--space-5); max-width: 360px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.studio-copy ul { list-style: none; margin: var(--space-6) 0; padding: 0; }
.studio-copy li { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); font-size: 15px; }
.studio-copy li svg { color: var(--accent-text); flex-shrink: 0; }
.studio-copy small { display: block; max-width: 320px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.studio-copy p + p { margin-top: var(--space-3); }
/* Each stage names itself when it stands alone as a section (no JavaScript).
   Once studio-tabs.js turns the stages into tabs, the tab says it instead. */
.studio-step { display: flex; align-items: baseline; gap: var(--space-3); margin-bottom: var(--space-4); font-size: 18px; }
.studio-step > span { font-size: var(--text-caption); color: var(--muted); }
.studio-section.is-tabbed .studio-step { display: none; }
/* Tabbed, the three stages share one cell: the section keeps the height of the
   tallest and the outgoing stage fades as the next one enters. */
.studio-section.is-tabbed { display: grid; grid-template-columns: minmax(0, 1fr); }
.studio-section.is-tabbed > .studio-panel { grid-area: 3 / 1; transition: opacity .22s var(--ease-out), visibility 0s linear .22s; }
.studio-section.is-tabbed > .studio-panel:not(.is-active) { opacity: 0; visibility: hidden; }
.studio-section.is-tabbed > .studio-panel.is-active { transition-delay: 0s; }
.studio-section:not(.is-tabbed) .studio-panel:first-of-type { margin-top: 40px; border-top: 1px solid var(--line); }

/* Links inside running text are underlined; standalone text links are not. */
.origin-story a, .section-heading p a, .studio-copy p a, .studio-copy small a, .captions-heading p a,
.caption-feature p a, .native-features p a, .explore-heading p a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.native-features p a { display: inline; margin: 0; font-size: inherit; }

.studio-display {
  background: #f4f1e7;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 30px 38px 72px;
  margin-top: 22px;
  margin-bottom: 22px;
  border-radius: 8px;
}
.studio-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.screen-phone { width: 236px; border: 6px solid #1c1c21; background: #17171b; border-radius: 37px; box-shadow: 10px 22px 34px #302b2438, 0 3px 7px #302b241a; position: relative; z-index: 1; }
.screen-phone img { border-radius: 31px; }
.display-caption { position: absolute; z-index: 2; bottom: 0; left: 0; right: 0; display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) var(--space-5); background: #f4f1e7; color: #0a0813; border-top: 1px solid #0a081314; }
.display-caption > span { font-size: var(--text-caption); font-weight: 500; color: #4e600f; flex-shrink: 0; }
.display-caption > p { font-size: 13px; line-height: 1.5; text-align: right; max-width: 240px; }

/* ---------------------------------------------------------------- captions */

.captions-section { padding-block: var(--section-y); }
.captions-heading { display: block; }
.captions-heading .section-index { margin-bottom: var(--space-4); }
.captions-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: var(--space-8); margin-top: var(--space-7); align-items: start; }

.caption-photo { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 8px; background: #333; }
.caption-photo > img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.caption-photo::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, #0009); pointer-events: none; }

.caption-sample {
  position: absolute;
  inset: auto 12px 50px;
  z-index: 2;
  text-align: center;
  color: white;
  font-size: clamp(26px, 3.2vw, 48px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -1.2px;
  text-wrap: balance;
}
.caption-sample em { font-style: normal; }
.caption-clean { text-shadow: 0 2px 5px #0009; }
.caption-highlight em { background: var(--lime); color: #0a0813; padding: 0 8px 3px; box-decoration-break: clone; }
.caption-highlight.lines-1 > span { background: var(--lime); color: #0a0813; padding: 0 8px 3px; }
.caption-editorial { font-weight: 300; letter-spacing: -1.6px; }
.caption-editorial em { font-style: italic; }
.caption-bold { text-transform: uppercase; font-weight: 850; letter-spacing: -1px; text-shadow: 3px 3px 0 #0a0813; }
.caption-sample.lines-1 { font-size: clamp(22px, 2.5vw, 37px); }

.caption-controls { padding-top: var(--space-5); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-5); }
.control-label { display: block; font-size: var(--text-caption); color: var(--muted); margin-bottom: var(--space-2); }
/* Segmented tracks: a recessed groove with the chosen option raised in it. */
.style-choices, .line-choices { display: flex; gap: 2px; padding: var(--space-1); border-radius: 99px; background: var(--sunken); box-shadow: var(--well); }
.style-choices button, .line-choices button { padding: 8px 14px; border: 0; border-radius: 99px; color: var(--muted); font-size: 13px; min-height: 36px; transition: background var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), color var(--dur-fast), transform var(--dur-base) var(--ease-spring); }
@media (hover: hover) {
  .style-choices button:hover, .line-choices button:hover { color: var(--ink); }
}
.studio-tabs button:active { transform: scale(.985); transition-duration: .1s; }
.style-choices button[aria-pressed="true"], .line-choices button[aria-pressed="true"] { background: var(--raised-strong); color: var(--ink); box-shadow: var(--raise-1); }
.playground-note { font-size: var(--text-caption); color: var(--muted); margin-top: var(--space-4); }

.caption-count { display: flex; align-items: end; gap: var(--space-5); border-bottom: 1px solid var(--line); padding-bottom: var(--space-5); }
.caption-count > span { font-size: 120px; letter-spacing: -.075em; line-height: .92; font-weight: 400; }
.caption-count p { font-size: var(--text-small); color: var(--muted); padding-bottom: var(--space-2); }
/* Numbers sit in small recessed badges, the same as the retake steps. */
.caption-feature { display: flex; gap: 20px; margin-top: var(--space-6); }
.caption-feature > span {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  height: 30px;
  margin-top: -2px;
  border-radius: 50%;
  background: var(--sunken);
  box-shadow: var(--well);
  color: var(--accent-text);
  font-size: var(--text-caption);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.caption-feature h3 { font-size: 21px; letter-spacing: -.025em; }
.caption-feature p { color: var(--muted); font-size: 15px; line-height: 1.7; margin-top: var(--space-2); }
/* Indented to the feature text: the 30px badge plus the 20px gap. */
.captions-story small { display: block; margin-top: var(--space-6); padding-left: 50px; font-size: 13px; line-height: 1.7; color: var(--muted); }

/* ---------------------------------------------------------------- native */

.native-section { padding-block: var(--section-y); border-top: 1px solid var(--line); }
.native-title .section-index { margin-bottom: var(--space-4); }
/* Block at every width, including mobile: the original stylesheet set this
   after its media queries, so it deliberately overrode them. */
.native-layout { display: block; margin-top: 40px; }
.native-features article {
  display: grid;
  grid-template-columns: 35px minmax(200px, .85fr) 1fr;
  column-gap: 25px;
  padding-block: 32px;
  border-bottom: 1px solid var(--line);
}
.native-features article:last-child { border: 0; }
.native-features svg { color: var(--accent-text); margin-top: 2px; }
.native-features h3 { font-size: 24px; letter-spacing: -.7px; }
.native-features p {
  grid-column: 3;
  grid-row: 1 / span 2;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin-top: 0;
  max-width: 470px;
}
.native-features article > a { grid-column: 2; width: fit-content; margin-top: 14px; font-size: 12px; }
.native-features .platform-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; }
.native-features .platform-note a { display: inline; margin: 0; font-size: inherit; text-decoration: underline; }
.native-features .youtube-mark { flex-shrink: 0; margin-top: 3px; }
.compatibility { display: flex; align-items: flex-start; gap: var(--space-3); color: var(--muted); font-size: 13px; line-height: 1.6; margin-top: var(--space-6); }
.compatibility svg { flex-shrink: 0; }

/* ---------------------------------------------------------------- explore */

.explore-section { padding-block: var(--section-y); border-top: 1px solid var(--line); }
.explore-heading .section-index { margin-bottom: var(--space-4); }
.explore-heading h2 { max-width: 980px; }
.explore-heading > p { color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 640px; margin-top: var(--space-5); }
.explore-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-7); }
.explore-card { display: flex; flex-direction: column; padding: var(--space-6) var(--space-5); border-radius: var(--radius-md); background: var(--surface); }
.explore-card h3 { font-size: 26px; letter-spacing: -.03em; line-height: 1.1; }
.explore-card h3 a { display: inline-flex; align-items: center; gap: 8px; }
@media (hover: hover) {
  .explore-card h3 a:hover { color: var(--accent-text); }
}
.explore-card > p { color: var(--muted); font-size: var(--text-small); line-height: 1.6; margin-top: var(--space-2); }
.explore-card ul { list-style: none; margin: var(--space-5) 0 0; padding: 0; border-top: 1px solid var(--line); }
.explore-card li a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.4; transition: color .2s, transform var(--dur-base) var(--ease-out); }
@media (hover: hover) {
  .explore-card li a:hover { color: var(--accent-text); transform: translateX(4px); }
}

/* ---------------------------------------------------------------- responsive */

@media (min-width: 1600px) {
  .hero { gap: var(--space-9); }
  .hero-visual { height: 680px; }
}

@media (max-width: 1180px) {
  .hero { gap: var(--space-7); }
  .hero-visual { height: 540px; }
  .hero-description { font-size: 17px; }
  .hero h1 { font-size: 5.2vw; }
  .hero-cta { gap: var(--space-4); }
  .hero-cta .button { padding-inline: 20px; font-size: 14px; }
  .studio-copy { padding-right: var(--space-6); }
  .studio-panel { min-height: 615px; }
  .studio-display .screen-phone { width: 220px; }
  .captions-layout { gap: var(--space-7); }
  .caption-count { gap: var(--space-4); }
  .caption-count > span { font-size: 100px; }
  .caption-count p { font-size: 13px; }
  .explore-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: var(--space-6); padding-top: var(--space-6); }
  .hero h1 { font-size: 5.6vw; }
  .hero-visual { height: 480px; border-radius: var(--radius-lg); }
  .hero-cta { flex-direction: column; align-items: flex-start; gap: var(--space-3); margin-top: var(--space-5); }
  .hero-description { font-size: 16px; }
  .origin-section { gap: 6%; }
  .origin-story p { font-size: 15px; }
  .section-heading > p, .captions-heading > p { font-size: 15px; }
  .studio-panel { min-height: 570px; }
  .studio-copy h3 { font-size: 28px; }
  .studio-copy p { font-size: 15px; }
  .studio-copy li { font-size: var(--text-small); }
  .studio-display { padding: 24px 24px 76px; }
  .studio-display .screen-phone { width: 195px; border-radius: 30px; }
  .screen-phone img { border-radius: 24px; }
  .display-caption { padding: var(--space-3) var(--space-4); gap: var(--space-3); }
  .display-caption p { font-size: var(--text-caption); max-width: 160px; }
  .captions-layout { gap: var(--space-6); grid-template-columns: 1.1fr 1fr; }
  .caption-count > span { font-size: 86px; }
  .caption-feature { margin-top: var(--space-5); gap: 16px; }
  .caption-feature h3 { font-size: 18px; }
  .caption-feature p { font-size: var(--text-small); }
  .captions-story small { padding-left: 46px; }
  .caption-photo { aspect-ratio: 4 / 5; }
  .caption-sample { font-size: 34px; }
  .native-features h3 { font-size: 21px; }
  .native-features p { font-size: var(--text-small); }
}

@media (max-width: 700px) {
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-7); padding-top: var(--space-6); }
  /* On phones the hero is one centred column: label, headline, description,
     a full-width action with the secondary link beneath it, then the note. */
  .hero-content { display: flex; flex-direction: column; align-items: center; padding: 0; text-align: center; }
  .hero h1 { width: 100%; font-size: clamp(36px, 9.6vw, 56px); margin-top: var(--space-3); line-height: 1.04; letter-spacing: -.05em; }
  .hero-description { max-width: 36ch; margin-top: var(--space-4); font-size: 16px; }
  .hero-cta { flex-direction: column; align-items: center; gap: var(--space-3); width: 100%; margin-top: var(--space-6); }
  .hero-cta .button { width: min(100%, 360px); justify-content: center; padding-inline: 22px; }
  .hero-cta .text-link { gap: var(--space-2); }
  .hero-visual { width: 100%; height: auto; aspect-ratio: 1 / 1.08; margin: 0; border-radius: var(--radius-lg); }
  .hero-carousel { --phone-w: min(40cqw, 39cqh); }
  .hero-note { max-width: 36ch; margin-top: var(--space-4); }

  .origin-section { grid-template-columns: 1fr; gap: var(--space-6); }
  .origin-section h2 { font-size: 35px; }
  .origin-story p { font-size: 15px; }

  .section-heading > p, .captions-heading > p { max-width: 34ch; margin-top: var(--space-4); font-size: 15px; }
  .studio-tabs { margin-top: var(--space-6); gap: 3px; }
  .studio-tabs button { padding: 14px 11px; gap: 10px; font-size: var(--text-small); }
  .studio-tabs button > svg { width: 15px; }
  .studio-panel { display: flex; flex-direction: column; min-height: 0; }
  /* The stage photograph stays put; any spare height sits above it. */
  .studio-section.is-tabbed > .studio-panel { justify-content: space-between; }
  .studio-copy { padding: var(--space-6) 0 var(--space-5); min-height: 367px; }
  .studio-copy h3 { font-size: 30px; }
  .studio-copy p { margin-top: var(--space-4); font-size: 15px; max-width: 100%; }
  .studio-copy ul { margin: var(--space-5) 0; }
  .studio-copy li { font-size: var(--text-small); margin-bottom: var(--space-3); }
  .studio-copy small { max-width: 100%; font-size: var(--text-caption); }
  .studio-display { height: 570px; margin-top: 0; margin-bottom: var(--space-5); }
  .studio-display .screen-phone { width: 220px; border-radius: 34px; }
  .studio-display .screen-phone img { border-radius: 28px; }
  .display-caption > p { max-width: 160px; }

  .captions-layout { display: flex; flex-direction: column; gap: var(--space-7); margin-top: var(--space-6); }
  .caption-playground { width: 100%; }
  .caption-photo { aspect-ratio: 1 / 1; }
  .caption-sample { font-size: 37px; }
  .caption-sample.lines-1 { font-size: 28px; }
  .caption-controls { gap: var(--space-4); }
  .style-choices button, .line-choices button { padding: 9px 12px; }
  .caption-count { gap: var(--space-5); }
  .caption-count > span { font-size: 110px; }
  .caption-feature { margin-top: var(--space-5); gap: 20px; }
  .caption-feature h3 { font-size: 22px; }
  .caption-feature p { font-size: 15px; }
  .captions-story small { padding-left: 50px; }

  .native-features { width: 100%; }
  .native-features article { grid-template-columns: 30px 1fr; gap: 10px 18px; padding-block: var(--space-5); }
  .native-features h3 { font-size: 24px; }
  .native-features p { grid-column: 2; grid-row: auto; font-size: var(--text-small); }
  .native-features a { margin-top: 3px; }
  .compatibility { margin-top: var(--space-5); }

  .explore-heading > p { font-size: 15px; margin-top: var(--space-4); }
  .explore-grid { grid-template-columns: 1fr; gap: var(--space-3); margin-top: var(--space-6); }
  .explore-card { padding: var(--space-5) 20px; }
  .explore-card h3 { font-size: 24px; }
  .studio-step { font-size: 16px; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 9.6vw; }
  .hero-cta .button { padding-inline: 16px; font-size: 14px; }
  .studio-tabs button { gap: 7px; }
  .studio-tabs button > svg { display: none; }
  .studio-display { height: 540px; }
  .caption-sample.lines-1 { font-size: 25px; }
}
