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

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

.hero { position: relative; display: grid; grid-template-columns: 1.12fr 1fr; gap: 40px; padding-top: 55px; padding-bottom: 58px; }
.hero-content { position: relative; z-index: 3; padding-top: 19px; padding-bottom: 20px; }
/* 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: 30px;
  width: 122%;
  position: relative;
  z-index: 4;
  font-weight: 450;
}
.hero h1 span { position: relative; }
.hero h1 span::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 0;
  bottom: 4px;
  height: 10px;
  background: var(--lime);
  z-index: -1;
  transform: rotate(-2deg);
}
.hero-note { color: var(--muted); font-size: 10px; line-height: 1.6; max-width: 340px; margin-top: 16px; }
.hero-description { color: var(--muted); font-size: 19px; line-height: 1.55; margin-top: 35px; }
.hero-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 23px; margin-top: 30px; }
.hero-cta .text-link { font-size: 13px; }

/* 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; }
.hero-visual { position: relative; z-index: 1; height: 560px; margin-left: 20px; container-type: size; }
.hero-carousel { position: absolute; inset: 0; --phone-w: min(37.6cqw, 41cqh); }
.hero-phone {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--phone-w);
  padding: calc(var(--phone-w) * .0116);
  border-radius: calc(var(--phone-w) * .11);
  background: #0a0813;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .24), 0 calc(var(--phone-w) * .05) calc(var(--phone-w) * .12) rgb(10 8 19 / .22);
  opacity: 0;
  transform: translate(78%, -45%) scale(.42);
}
.hero-phone img { display: block; width: 100%; height: auto; border-radius: calc(var(--phone-w) * .098); }
/* Resting layout, and all that shows with reduced motion: script, recorder, review. */
.hero-phone:nth-child(1) { opacity: 1; z-index: 3; transform: translate(-50%, -50%) scale(1); }
.hero-phone:nth-child(2) { opacity: 1; z-index: 2; transform: translate(40.5%, -46.6%) scale(.63); }
.hero-phone:nth-child(7) { opacity: 1; z-index: 2; transform: translate(-141%, -42%) 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. */
@keyframes hero-carousel {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; z-index: 3; }
  9.266% { transform: translate(-50%, -50%) scale(1); opacity: 1; z-index: 3; }
  9.267% { transform: translate(-50%, -50%) scale(1); opacity: 1; z-index: 2; animation-timing-function: cubic-bezier(.6, .02, .24, 1); }
  14.286% { transform: translate(-141%, -42%) scale(.63); opacity: 1; z-index: 2; }
  23.552% { transform: translate(-141%, -42%) scale(.63); opacity: 1; z-index: 2; }
  23.553% { transform: translate(-141%, -42%) scale(.63); opacity: 1; z-index: 1; animation-timing-function: cubic-bezier(.6, .02, .24, 1); }
  28.571% { transform: translate(-178%, -40%) scale(.42); opacity: 0; z-index: 1; }
  37.838% { transform: translate(-178%, -40%) scale(.42); opacity: 0; z-index: 1; }
  37.839% { transform: translate(-178%, -40%) scale(.42); opacity: 0; z-index: 1; animation-timing-function: linear; }
  42.857% { transform: translate(78%, -45%) scale(.42); opacity: 0; z-index: 1; }
  57.143% { transform: translate(78%, -45%) scale(.42); opacity: 0; z-index: 1; }
  71.429% { transform: translate(78%, -45%) scale(.42); opacity: 0; z-index: 1; }
  80.695% { transform: translate(78%, -45%) scale(.42); opacity: 0; z-index: 1; }
  80.696% { transform: translate(78%, -45%) scale(.42); opacity: 0; z-index: 2; animation-timing-function: cubic-bezier(.6, .02, .24, 1); }
  85.714% { transform: translate(40.5%, -46.6%) scale(.63); opacity: 1; z-index: 2; }
  94.981% { transform: translate(40.5%, -46.6%) scale(.63); opacity: 1; z-index: 2; }
  94.982% { transform: translate(40.5%, -46.6%) scale(.63); opacity: 1; z-index: 3; animation-timing-function: cubic-bezier(.6, .02, .24, 1); }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; z-index: 3; }
}

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

.origin-section { display: grid; grid-template-columns: 1fr 1fr; gap: 8%; padding-block: 95px 105px; border-bottom: 1px solid var(--line); }
.origin-section .section-index { margin-bottom: 24px; }
.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: 20px; }
.origin-story .origin-meaning { color: var(--ink); padding-top: 22px; border-top: 1px solid var(--line); }

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

.studio-section { padding-top: 40px; padding-bottom: 115px; }
.section-heading { display: block; }
.section-heading .section-index { grid-column: 1 / -1; margin-bottom: 24px; }
/* 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: 430px;
  padding-bottom: 6px;
  margin-top: 24px;
}

.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: 10px; color: var(--muted); }
.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: 60px 65px 60px 0; }
.studio-copy h3 { font-size: 35px; line-height: 1.14; letter-spacing: -1.3px; }
.studio-copy p { margin-top: 25px; max-width: 360px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.studio-copy ul { list-style: none; margin: 32px 0 35px; padding: 0; }
.studio-copy li { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 14px; }
.studio-copy li svg { color: var(--accent-text); flex-shrink: 0; }
.studio-copy small { display: block; max-width: 320px; font-size: 11px; line-height: 1.6; color: var(--muted); }
.studio-copy p + p { margin-top: 14px; }
/* 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: 12px; margin-bottom: 18px; font-size: 18px; }
.studio-step > span { font-size: 10px; color: var(--muted); }
.studio-section.is-tabbed .studio-step { display: none; }
.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: 16px; padding: 17px 24px; background: #f4f1e7; color: #0a0813; border-top: 1px solid #0a081314; }
.display-caption > span { font-size: 9px; letter-spacing: 1.2px; color: #55534d; flex-shrink: 0; }
.display-caption > p { font-size: 12px; line-height: 1.5; text-align: right; max-width: 210px; }

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

.captions-section { padding-top: 40px; padding-bottom: 115px; }
.captions-heading { display: block; }
.captions-heading .section-index { display: block; margin-bottom: 25px; }
.captions-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 85px; margin-top: 56px; 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: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.control-label { display: block; font-size: 10px; color: var(--muted); margin-bottom: 10px; }
.style-choices, .line-choices { display: flex; gap: 5px; }
.style-choices button, .line-choices button { padding: 8px 11px; border: 1px solid var(--line); border-radius: 99px; font-size: 11px; min-height: 38px; transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast), transform var(--dur-base) var(--ease-spring); }
@media (hover: hover) {
  .style-choices button:hover, .line-choices button:hover { background: var(--surface); }
}
.studio-tabs button:active { transform: scale(.985); transition-duration: .1s; }
.style-choices button[aria-pressed="true"], .line-choices button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--inverse); }
.playground-note { font-size: 10px; color: var(--muted); margin-top: 16px; }

.caption-count { display: flex; align-items: end; gap: 26px; border-bottom: 1px solid var(--line); padding-bottom: 27px; }
.caption-count > span { font-size: 120px; letter-spacing: -9px; line-height: .92; font-weight: 400; }
.caption-count p { font-size: 13px; color: var(--muted); padding-bottom: 7px; }
.caption-feature { display: flex; gap: 22px; margin-top: 28px; }
.caption-feature > span { font-size: 10px; color: var(--muted); padding-top: 5px; }
.caption-feature h3 { font-size: 21px; letter-spacing: -.6px; }
.caption-feature p { color: var(--muted); font-size: 14px; line-height: 1.7; margin-top: 8px; }
.captions-story small { display: block; margin-top: 30px; padding-left: 35px; font-size: 10px; line-height: 1.7; color: var(--muted); }

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

.native-section { padding-top: 70px; padding-bottom: 70px; border-top: 1px solid var(--line); }
.native-title .section-index { display: block; margin-bottom: 24px; }
/* 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; justify-content: center; align-items: center; gap: 12px; text-align: center; color: var(--muted); font-size: 11px; margin-top: 50px; }
.compatibility svg { flex-shrink: 0; }

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

.explore-section { padding-top: 90px; padding-bottom: 100px; border-top: 1px solid var(--line); }
.explore-heading .section-index { display: block; margin-bottom: 24px; }
.explore-heading h2 { max-width: 980px; }
.explore-heading > p { color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 640px; margin-top: 24px; }
.explore-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 50px; }
.explore-card { display: flex; flex-direction: column; padding: 28px 24px 26px; border-radius: 8px; background: var(--surface); }
.explore-card h3 { font-size: 26px; letter-spacing: -.8px; 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: 14px; line-height: 1.6; margin-top: 10px; }
.explore-card ul { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--line); }
.explore-card li a { display: block; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.4; transition: color .2s, padding-left .2s; }
@media (hover: hover) {
  .explore-card li a:hover { color: var(--accent-text); padding-left: 4px; }
}

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

@media (min-width: 1600px) {
  .hero { gap: 70px; }
  .hero-visual { height: 640px; }
  .hero-content { padding-top: 35px; }
  .hero h1 { margin-top: 50px; }
  .hero-description { margin-top: 40px; }
}

@media (max-width: 1180px) {
  .hero { gap: 25px; }
  .hero-visual { height: 510px; }
  .hero-description { font-size: 17px; }
  .hero h1 { font-size: 5.4vw; }
  .hero-cta { gap: 16px; }
  .hero-cta .button { padding: 14px 18px; gap: 12px; font-size: 13px; }
  .studio-copy { padding-right: 35px; }
  .studio-panel { min-height: 615px; }
  .studio-display .screen-phone { width: 220px; }
  .captions-layout { gap: 50px; }
  .caption-count { gap: 20px; }
  .caption-count > span { font-size: 100px; }
  .caption-count p { font-size: 11px; }
  .explore-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1.1fr 1fr; padding-top: 40px; }
  .hero h1 { margin-top: 26px; font-size: 5.6vw; width: 128%; }
  .hero-visual { height: 470px; margin-left: 10px; }
  .hero-cta { flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 23px; }
  .hero-description { font-size: 15px; }
  .eyebrow { font-size: 8px; letter-spacing: 1.1px; }
  .origin-section { gap: 6%; padding-block: 70px; }
  .origin-story p { font-size: 14px; }
  .section-heading > p, .captions-heading > p { font-size: 14px; }
  .studio-panel { min-height: 570px; }
  .studio-copy h3 { font-size: 28px; }
  .studio-copy p { font-size: 14px; }
  .studio-copy li { font-size: 12px; }
  .studio-display { padding: 25px 25px 75px; }
  .studio-display .screen-phone { width: 195px; border-radius: 30px; }
  .screen-phone img { border-radius: 24px; }
  .display-caption { padding: 14px 16px; gap: 12px; }
  .display-caption p { font-size: 11px; max-width: 150px; }
  .display-caption > span { font-size: 8px; }
  .captions-layout { gap: 30px; grid-template-columns: 1.1fr 1fr; }
  .caption-count > span { font-size: 86px; }
  .caption-count p { font-size: 10px; }
  .caption-feature { margin-top: 20px; gap: 15px; }
  .caption-feature h3 { font-size: 18px; }
  .caption-feature p { font-size: 12px; }
  .captions-story small { padding-left: 25px; }
  .caption-photo { aspect-ratio: 4 / 5; }
  .caption-sample { font-size: 34px; }
  .native-features h3 { font-size: 21px; }
  .native-features p { font-size: 13px; }
}

@media (max-width: 700px) {
  .hero { display: flex; flex-direction: column; gap: 35px; padding-top: 28px; padding-bottom: 35px; }
  .hero-content { padding: 0; }
  .eyebrow { font-size: 8px; letter-spacing: 1.4px; }
  .hero h1 { width: 100%; font-size: clamp(36px, 9.2vw, 56px); margin-top: 22px; line-height: 1.04; letter-spacing: -.05em; }
  .hero h1 span::after { height: 6px; bottom: 3px; }
  .hero-description { font-size: 16px; margin-top: 22px; }
  .hero-cta { flex-direction: row; align-items: center; gap: 16px; margin-top: 24px; }
  .hero-cta .button { font-size: 12px; min-height: 50px; gap: 10px; padding: 13px 17px; }
  .hero-cta .button > svg:last-child { display: none; }
  .hero-cta .text-link { font-size: 11px; gap: 8px; }
  .hero-visual { width: 100%; height: auto; aspect-ratio: 1 / 1.02; margin: 0; }
  .hero-carousel { --phone-w: min(40cqw, 42cqh); }

  .origin-section { grid-template-columns: 1fr; padding-block: 55px; gap: 28px; }
  .origin-section h2 { font-size: 35px; }
  .origin-section .section-index { margin-bottom: 18px; }
  .origin-story p { font-size: 15px; }

  .studio-section { padding-top: 40px; padding-bottom: 70px; }
  .section-heading .section-index { display: block; margin-bottom: 22px; }
  .section-heading > p, .captions-heading > p { max-width: 310px; margin-top: 20px; font-size: 15px; }
  .studio-tabs { margin-top: 30px; gap: 3px; }
  .studio-tabs button { padding: 14px 11px; gap: 10px; font-size: 14px; }
  .studio-tabs button > span { font-size: 8px; }
  .studio-tabs button > svg { width: 15px; }
  .studio-panel { display: flex; flex-direction: column; min-height: 0; }
  .studio-copy { padding: 32px 5px 26px; min-height: 367px; }
  .studio-copy h3 { font-size: 30px; }
  .studio-copy p { margin-top: 20px; font-size: 14px; max-width: 100%; }
  .studio-copy ul { margin: 23px 0; }
  .studio-copy li { font-size: 13px; margin-bottom: 12px; }
  .studio-copy small { max-width: 100%; font-size: 10px; }
  .studio-display { height: 570px; margin-top: 0; margin-bottom: 20px; }
  .studio-display .screen-phone { width: 220px; border-radius: 34px; }
  .studio-display .screen-phone img { border-radius: 28px; }
  .display-caption > p { max-width: 160px; }

  .captions-section { padding-top: 15px; padding-bottom: 70px; }
  .captions-layout { display: flex; flex-direction: column; gap: 38px; margin-top: 30px; }
  .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: 18px; }
  .style-choices button, .line-choices button { padding: 9px 12px; }
  .caption-count { gap: 30px; padding-bottom: 25px; }
  .caption-count > span { font-size: 110px; }
  .caption-count p { font-size: 14px; padding-bottom: 10px; }
  .caption-feature { margin-top: 24px; gap: 22px; }
  .caption-feature h3 { font-size: 23px; }
  .caption-feature p { font-size: 15px; margin-top: 9px; }
  .captions-story small { font-size: 11px; padding-left: 33px; }

  .native-section { padding-top: 40px; padding-bottom: 35px; }
  .native-features { width: 100%; }
  .native-features article { grid-template-columns: 30px 1fr; gap: 10px 18px; padding-block: 24px; }
  .native-features h3 { font-size: 24px; }
  .native-features p { grid-column: 2; grid-row: auto; font-size: 14px; }
  .native-features a { margin-top: 3px; }
  .compatibility { margin-top: 30px; align-items: flex-start; text-align: left; font-size: 10px; }

  .explore-section { padding-top: 55px; padding-bottom: 60px; }
  .explore-heading > p { font-size: 15px; margin-top: 20px; }
  .explore-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }
  .explore-card { padding: 24px 20px 22px; }
  .explore-card h3 { font-size: 24px; }
  .studio-step { font-size: 16px; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 9.2vw; }
  .hero-cta { gap: 10px; }
  .hero-cta .button { padding: 13px 15px; }
  .hero-cta .text-link { font-size: 10px; }
  .studio-tabs button { gap: 7px; }
  .studio-tabs button > svg { display: none; }
  .studio-display { height: 540px; }
  .caption-sample.lines-1 { font-size: 25px; }
}
