/* Landing evolution - 2026-10-11. Sora headings, themed capability tiles,
   a shared sticky walkthrough, asymmetric examples and quiet ink bookends. Tokens come from
   landing-v5.css and theme.css; this file adds layout and the heading face only.
   Accent #487ee8 marks emphasis and focus. Motion is limited to short transitions that
   are switched off under prefers-reduced-motion, and nothing here hides content. */

:root {
  --v6-heading: 'Sora', 'Source Sans 3', system-ui, sans-serif;
  --v6-enlarge: rgba(13, 13, 13, 0.82);
}

/* ---------------------------------------------------------------- Heading face */

#landing-hero h1,
.v5 .v5-title,
.v5 .v5-sig-copy h3,
.v5 .v6-step h3,
.v5 .v6-example h3,
.v5 .v6-team h3,
.v5 .v6-more-grid h3,
.v5 .v5-plan h3,
.v5 .v5-plan-price strong,
.v5 .v5-download h3,
.v5 .v5-template-body h3,
.v5 #blog-title,
#lyre-community-title {
  font-family: var(--v6-heading);
}
/* Sora runs wider than Source Sans, so the display sizes step down a little. */
#landing-hero h1 {
  font-size: clamp(38px, 6.2vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.v5 .v5-title {
  font-size: clamp(30px, 4.1vw, 44px);
  line-height: 1.14;
  letter-spacing: -0.02em;
}
.v5 .v5-sig-copy h3 {
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.16;
  letter-spacing: -0.018em;
}

/* ---------------------------------------------------------------- Shared controls */

.v5-zoom,
.v6-plate {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: zoom-in;
}
/* The control is visible without hover, so touch and keyboard users see it too. */
.v5-zoom::after,
.v6-plate::after {
  content: 'Enlarge';
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: var(--v6-enlarge);
  color: #f3f3f3;
  font: 600 12px/1.3 var(--v5-font);
  letter-spacing: 0.01em;
  pointer-events: none;
}
.v5-hero-desktop .v5-zoom::after {
  right: auto;
  left: 14px;
  bottom: 14px;
}
.v5-zoom:focus-visible,
.v6-plate:focus-visible,
.v6-more summary:focus-visible,
.v6-limits summary:focus-visible,
.lyre-lightbox-close:focus-visible {
  outline: 2px solid var(--v5-blue);
  outline-offset: 3px;
}
.lyre-lightbox-close:focus-visible {
  outline-color: #fff;
}
/* Keep the enlarged capture inside the dialog's padded area on narrow screens. */
.lyre-lightbox {
  grid-template-columns: minmax(0, 1fr);
}
.lyre-lightbox-image {
  max-width: min(92vw, 100%);
  min-width: 0;
}

/* ---------------------------------------------------------------- Hero */

.lyre-cta-platform {
  color: #505050;
  font-size: 13px;
  font-weight: 500;
}
.v5-hero .lyre-download-primary {
  gap: 8px;
}
/* Browser access is the quiet route: a text link, not a second button. Phones that
   are offered no installer keep the promoted button from landing-v5.css. */
.v5-hero .lyre-hero-downloads:has(.lyre-download-primary) .lyre-browser-quiet {
  min-height: 50px;
  padding: 0 8px;
  border: 0;
  background: none;
  color: #d9d9d9;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(217, 217, 217, 0.4);
  text-underline-offset: 5px;
}
.v5-hero .lyre-hero-downloads:has(.lyre-download-primary) .lyre-browser-quiet:hover {
  background: none;
  color: #fff;
  text-decoration-color: var(--v5-blue);
}
.v5-hero .lyre-hero-downloads a:focus-visible {
  outline-color: var(--v5-blue);
}
.lyre-download-primary,
.lyre-browser-link,
.v5-button,
.v5-text-link {
  transition:
    transform 160ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Capture enlargement stays visible on every chapter. */
.v5-sig-visual .v5-zoom::after {
  right: 8px;
  bottom: 8px;
}

/* ---------------------------------------------------------------- Walkthrough (themed) */

.v6-tour {
  padding: 96px 0;
  background: var(--site-surface);
}
.v6-tour-head {
  max-width: 760px;
}
.v6-steps {
  margin: 72px 0 0;
  padding: 0;
  list-style: none;
}
.v6-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  padding: 72px 0;
  border-top: 1px solid var(--site-border);
  scroll-margin-top: 88px;
}
.v6-step h3 {
  font-size: clamp(24px, 2.8vw, 30px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.v6-step-copy > p {
  max-width: 54ch;
  margin-top: 14px;
  color: var(--site-muted);
  font-size: 17px;
  line-height: 1.6;
  text-wrap: pretty;
}
.v6-step-copy > .v6-step-detail {
  color: var(--site-muted);
  font-size: 15px;
  line-height: 1.55;
}
.v6-step-copy .v5-text-link {
  margin-top: 18px;
}
.v6-step-visual {
  min-width: 0;
}

/* Enhancement renders each capture once: either inline or in this shared stage. */
.v6-tour-staged .v6-walkthrough {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: 64px;
  align-items: start;
  margin-top: 56px;
}
.v6-tour-staged .v6-steps {
  margin: 0;
}
.v6-tour-staged .v6-step {
  min-height: 480px;
  padding: 48px 0;
}
.v6-tour-stage {
  position: sticky;
  top: 104px;
  display: grid;
}
.v6-tour-panel {
  grid-area: 1 / 1;
  align-self: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
.v6-tour-panel[data-active='true'] {
  opacity: 1;
  pointer-events: auto;
}
.v6-tour-panel[inert] {
  visibility: hidden;
}
/* Fade the departing panel as well; inert still excludes its controls and alt text. */
@media (prefers-reduced-motion: no-preference) {
  .v6-tour-panel[inert] {
    visibility: visible;
  }
}
.v6-tour-stage .v6-phone-solo {
  max-width: 230px;
}
.v6-tour-stage .v6-phone-pair {
  gap: 16px;
}

.v6-plates {
  display: grid;
  gap: 16px;
}
.v6-plates-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.v6-plates-2 > .v6-plate-lead {
  grid-column: 1 / -1;
}
.v6-plates figure {
  margin: 0;
}
.v6-plate {
  overflow: hidden;
  border: 1px solid var(--site-border);
  border-radius: 16px;
  background: var(--site-raised);
  box-shadow: var(--v5-shadow);
  transition: border-color 160ms ease;
}
.v6-plate:hover {
  border-color: rgba(143, 176, 242, 0.55);
}
.v6-plate img {
  width: 100%;
  height: auto;
}
.v6-phone-solo {
  width: min(100%, 280px);
  margin: 0 auto;
  text-align: center;
}
.v6-phone-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 240px));
  justify-content: center;
  gap: 28px;
}
.v6-tour .v5-phone-frame {
  border-color: rgba(255, 255, 255, 0.14);
}
/* Crop the real 378x822 captures to their app content. Original files stay intact:
   Library: x8/y64, 362x708; Agent: x8/y64, 362x730 (including App/Agent tabs). */
.v6-phone-crop {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--v5-shadow);
}
.v6-phone-crop-library {
  aspect-ratio: 362 / 708;
}
.v6-phone-crop-agent {
  aspect-ratio: 362 / 730;
}
.v6-phone-crop img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: calc(100% * 378 / 362);
  max-width: none;
  height: auto;
  margin-top: calc(-100% * 64 / 362);
  margin-left: calc(-100% * 8 / 362);
  border-radius: 0;
}

/* ---------------------------------------------------------------- Ways to build (quiet) */

.v6-build {
  background: var(--site-background);
}
.v6-build-head {
  max-width: 720px;
}
.v6-examples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 48px 0 20px;
}
.v6-example {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--site-border);
  border-radius: 16px;
  background: var(--site-raised);
}
.v6-example:first-child {
  grid-column: 1 / -1;
  background: var(--site-surface);
  padding: 40px;
}
.v6-example:first-child h3 {
  font-size: clamp(28px, 3vw, 38px);
}
.v6-kicker {
  color: var(--v5-accent-text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}
.v6-example h3 {
  margin-top: 10px;
  font-size: 22px;
  line-height: 1.22;
  font-weight: 600;
  letter-spacing: -0.012em;
}
.v6-example blockquote {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--site-surface);
}
.v6-example blockquote p {
  color: var(--site-text);
  font-size: 16px;
  line-height: 1.55;
}
.v6-example blockquote footer {
  margin-top: 8px;
  color: var(--site-muted);
  font-size: 13px;
}
.v6-example-label {
  margin-top: 22px;
  color: var(--site-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}
.v6-example ul {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.v6-example li {
  position: relative;
  padding-left: 22px;
  font-size: 15.5px;
  line-height: 1.45;
}
.v6-example li::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 1px;
  width: 10px;
  height: 5px;
  border-bottom: 2px solid var(--v5-blue);
  border-left: 1px solid var(--site-border);
  transform: rotate(-45deg);
}
.v6-team {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 48px;
  margin-top: 56px;
  padding: 32px 0;
  border-top: 1px solid var(--site-border);
  border-bottom: 1px solid var(--site-border);
  scroll-margin-top: 88px;
}
.v6-team > div {
  max-width: 62ch;
}
.v6-team-actions {
  display: grid;
  gap: 8px;
}
.v6-team h3 {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.014em;
}
.v6-team p {
  margin-top: 10px;
  color: var(--site-muted);
  font-size: 17px;
  line-height: 1.55;
}
.v6-more {
  margin-top: 32px;
  border-bottom: 1px solid var(--site-border);
}
.v6-more summary,
.v6-limits summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 44px;
  padding: 14px 0;
  color: var(--site-text);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: color 160ms ease;
}
.v6-more summary::-webkit-details-marker,
.v6-limits summary::-webkit-details-marker {
  display: none;
}
.v6-more summary:hover,
.v6-limits summary:hover {
  color: var(--v5-accent-text);
}
.v6-more-hint {
  flex: 1;
  color: var(--site-muted);
  font-size: 15px;
  font-weight: 400;
}
.v6-more[open] .landing-faq-toggle::before,
.v6-limits[open] .landing-faq-toggle::before {
  content: '−';
}
.v6-more-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 56px;
  padding: 16px 0 32px;
}
.v6-more-grid h3 {
  font-size: 19px;
  line-height: 1.25;
  font-weight: 600;
}
.v6-more-grid p {
  margin-top: 8px;
  max-width: 56ch;
  color: var(--site-muted);
  font-size: 16px;
  line-height: 1.55;
}
.v6-more-grid .v6-more-meta {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
}
.v6-more-phones {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.v6-more-phones figure {
  width: 180px;
}
.v6-more-phones img {
  width: 100%;
  height: auto;
  border: 5px solid #252525;
  border-radius: 16px;
}
.v6-more-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0 32px;
  padding-bottom: 20px;
}

/* ---------------------------------------------------------------- Starting points */

.v6-demo-kinds {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 32px;
  max-width: 760px;
  margin: 0;
}
.v6-demo-kinds div {
  padding-left: 14px;
  border-left: 1px solid var(--site-border);
}
.v6-demo-kinds dt {
  color: var(--site-text);
  font-size: 15px;
  font-weight: 700;
}
.v6-demo-kinds dd {
  margin: 4px 0 0;
  color: var(--site-muted);
  font-size: 14px;
  line-height: 1.5;
}
#starting-points {
  background: var(--site-surface);
  scroll-margin-top: 88px;
}
#starting-points .v5-templates-head {
  display: grid;
  gap: 28px;
}
#starting-points .v5-template {
  transition:
    transform 200ms ease,
    box-shadow 200ms ease;
}

/* ---------------------------------------------------------------- Pricing */

.v6-plan-scope {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 32px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--site-muted);
  font-size: 15px;
  line-height: 1.5;
}
.v6-plan-scope li {
  padding-left: 14px;
  border-left: 1px solid var(--site-border);
}
.v6-plan-scope strong {
  display: block;
  color: var(--site-text);
  font-weight: 700;
}
.v6-limits {
  display: block;
}
.v6-limits[open] {
  display: grid;
}
.v6-limits summary {
  font-size: 16px;
}
.v6-limits > p {
  margin-top: 10px;
}
.v6-limits a {
  color: var(--site-text);
  text-underline-offset: 3px;
}

/* ---------------------------------------------------------------- Responsive */

@media (min-width: 1040px) {
  .v6-example:first-child {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: start;
    gap: 40px;
  }
  .v6-example:first-child .v6-example-label {
    margin-top: 0;
  }
}

@media (max-width: 1039px) {
  .v6-step,
  .v6-step:nth-child(even) {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 56px 0;
  }
  .v6-step:nth-child(even) .v6-step-copy {
    order: 0;
  }
  .v6-examples {
    grid-template-columns: minmax(0, 1fr);
  }
  .v6-example:first-child {
    padding: 28px;
  }
  .v5-sig {
    padding: 72px 0;
  }
}

@media (max-width: 879px) {
  .v6-plan-scope,
  .v6-demo-kinds,
  .v6-more-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .v6-more-hint {
    display: none;
  }
}

@media (max-width: 719px) {
  .v6-tour {
    padding: 24px 0 72px;
  }
  .v6-steps {
    margin-top: 40px;
  }
  .v6-step,
  .v6-step:nth-child(even) {
    padding: 44px 0;
  }
  .v6-plates-2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .v6-phone-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .v5-sig {
    padding: 56px 0;
  }
  .v5-signature .v5-sig:last-child {
    padding-bottom: 24px;
  }
  .v6-example,
  .v6-example:first-child {
    padding: 22px;
  }
  /* Enlargement stays reachable, but the pill should not cover small captures. */
  .v5-zoom::after,
  .v6-plate::after {
    right: 6px;
    bottom: 6px;
    padding: 2px 8px;
    font-size: 11px;
  }
}

/* Enlarged text: let controls and labels grow instead of clipping. */
.v6-more summary,
.v6-limits summary {
  overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: reduce) {
  .v6-tour-panel {
    transition: none;
  }
  .lyre-download-primary,
  .lyre-browser-link,
  .v5-button,
  .v5-text-link,
  .v6-plate,
  .v6-more summary,
  .v6-limits summary,
  #starting-points .v5-template {
    transition: none;
  }
  #starting-points .v5-template:hover {
    transform: none;
  }
}

/* Shared shape and reading rhythm, excluding the owner-pinned header geometry. */
.v5 h2,
.v5 h3,
#lyre-community-title {
  text-wrap: balance;
}
.v5 p,
.lyre-community p {
  text-wrap: pretty;
}
.v5-plan-badge,
.v5-sig-status {
  border: 1px solid var(--site-border);
  border-radius: 6px;
  color: var(--site-text);
  background: var(--site-raised);
  padding: 3px 10px;
  font: 600 12px/1.5 var(--v5-font);
  letter-spacing: 0;
}
.v5-plan-badge {
  border-color: var(--v5-blue);
  color: var(--v5-accent-text);
}
.v5-plan-featured {
  background: var(--site-background);
}
.v5-button,
.lyre-community a,
.lyre-download-primary:not(.lyre-download-header),
.lyre-browser-link:not(.lyre-browser-header) {
  border-radius: 12px;
}

@media (prefers-reduced-motion: no-preference) {
  .v5 button:active,
  .v5 a:active,
  .lyre-community a:active,
  #final-cta [role='button']:active {
    transform: scale(0.98);
  }
}

/* Focus is feedback, including on the fixed ink bookends in either appearance. */
#landing-hero a:focus-visible,
#final-cta [role='button']:focus-visible,
#final-cta a:focus-visible {
  outline: 2px solid #93b3f2;
  outline-offset: 4px;
}
