/* Page CSS of the home page: what sits inside a visual and the kit lacks. Written with the page, see docs/JOURNAL.md. */
/* the hero's one quiet line (layout-v4.md): the spoken language, 14px */
  .hero__proof { display: flex; align-items: center; gap: var(--s-2); font-size: var(--t-small); color: var(--muted); }
  .hero__proof label { flex-shrink: 0; }
  .hero__proof select { min-width: 0; max-width: 100%; height: 44px; padding: 0 var(--s-6) 0 var(--s-2); border: 0; border-radius: var(--r-sm); background-color: transparent; color: var(--ink); font: 500 var(--t-small)/1 var(--font-text); cursor: pointer; }
  .hero__proof select:hover { background-color: color-mix(in oklab, var(--ink) 6%, transparent); }
  .hero__proof select option { background: var(--p-surface); color: var(--p-ink); }
  @media (max-width: 639px) { .hero__proof select { font-size: 16px; } }

  .lt-fits { width: 100%; padding: 6px 16px 14px; }
  .lt-fits__head, .lt-fits__row { display: grid; grid-template-columns: 112px minmax(0, 1fr) 56px; align-items: center; gap: 12px; height: 44px; white-space: nowrap; }
  .lt-fits__head { color: var(--u-muted); border-bottom: 1px solid var(--u-line); }
  .lt-fits__head span { grid-column: 2 / 4; display: flex; justify-content: space-between; font: 400 12px/16px var(--ui-mono); }
  .lt-fits__row i { display: block; height: 6px; border-radius: 3px; background: var(--u-fill-3); position: relative; }
  .lt-fits__row i::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: var(--u-ink); }
  .lt-fits__row.is-pro i::before { background: var(--u-accent); }
  .lt-fits__row em { font: normal 400 12px/16px var(--ui-mono); color: var(--u-muted); text-align: right; }
  /* frames that take what their column or screen leaves */
  .split-col > .panel { flex: 1 1 0; --p-h: 200px; }
  main > #privacy { scroll-margin-top: var(--bar, 64px); height: auto; min-height: 0; padding-block: clamp(32px, 5vw, 72px); background: var(--lt-surface); }
  #privacy > .wrap { height: auto; }
  /* the waveform in the closing button stands where the kit's arrow would */
  .btn--xl > svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
  /* a plan that leads somewhere answers the pointer like any linked card (the motion layer does not lift plans) */
  #pricing .card--plan:has(a[href]):hover { background-color: color-mix(in oklab, var(--card) 94%, var(--ink)); }

  /* below 1280 a section grows with what it holds, so its content grid takes its own height */
  @media (max-width: 1279px) { #pricing .grid.fill, #questions .grid.fill { flex: 0 0 auto; } }
  @media (min-width: 640px) and (max-width: 1023px) {
    #pricing .grid > .card--plan { grid-column: auto / span 6; }
    #pricing .panel { display: none; }
    #questions .split-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-4) var(--gutter); }
    #questions .split-col > :not(figure) { grid-column: 1; }
    #questions .lt-facts-shot { grid-column: 2; grid-row: 1 / span 3; align-self: start; }
  }
  /* a phone */
  @media (max-width: 639px) {
    .split-col > .panel { flex: none; --p-h: 330px; }
  }

/* ---------- Added when the page joined the site ---------- */
/* Pro: keep the picture of a video. Same quiet level as the spoken language. */
.hero__keep { flex-wrap: wrap; margin-top: calc(var(--s-2) * -1); }
.hero__keep input { width: 18px; height: 18px; margin: 0; accent-color: var(--action); }
.hero__keep label { color: var(--ink); min-height: 44px; display: inline-flex; align-items: center; cursor: pointer; }
.hero__keep span { flex-basis: 100%; }
/* A refused file: what happened and what to do, under the hero's controls. */
.lt-problem:empty { display: none; }
.lt-problem__box { margin-top: var(--s-4); padding: var(--s-4) var(--s-5); border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); font-size: var(--t-body); line-height: 1.5; }
.lt-problem__box strong { display: block; font-weight: 500; }
.lt-problem__box p { margin: var(--s-1) 0 0; color: var(--ink); }
.lt-problem__box > .link { display: inline-block; margin-top: var(--s-3); }
.lt-problem__box form { margin-top: var(--s-3); }
.lt-problem__box .inline-form { display: flex; gap: var(--s-2); }
.lt-problem__box .input { flex: 1; min-width: 0; height: 44px; padding: 0 var(--s-3); border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--bg); color: var(--ink); font: 400 16px/1 var(--font-text); }
.lt-problem__box .btn { background: var(--bg); color: var(--ink); border-color: var(--line-strong); }
.lt-problem__box .side__note { margin-top: var(--s-2); font-size: var(--t-small); }
.nav__logo { font-family: var(--lt-display); font-weight: 400; }
.sample {
  --played: 0%; --wave-mask: url('/assets/samples/en.svg');
  display: flex; flex-direction: column; align-self: center; height: auto; min-height: 0;
  border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden;
  color: var(--lt-ink); background: var(--lt-surface); font-variant-numeric: tabular-nums;
}
html:lang(fr) .sample { --wave-mask: url('/assets/samples/fr.svg'); }
.sample__bar, .sample__transport { background: var(--lt-raised); }
.sample__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 22px; border-bottom: 1px solid var(--line); font-size: 14px; }
.sample__bar span:last-child, .sample__credit, .sample__clock { color: var(--lt-muted); }
.sample__content { padding: clamp(16px, 2.2vw, 32px); }
.sample__content .sample__title { font: 400 clamp(26px, 3vw, 42px)/1.15 var(--lt-display); margin: 0; color: var(--lt-ink); }
.sample__content .sample__credit { font: 400 14px/1.5 var(--lt-text); margin: 4px 0 18px; }
.sample__line {
  display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: baseline; gap: 10px;
  width: 100%; min-height: 44px; background: transparent; color: inherit; border: 0; border-radius: 3px;
  padding: 7px 0; text-align: start; font: 400 clamp(16px, 1.35vw, 20px)/1.45 var(--lt-text); cursor: pointer;
}
.sample__line time { font-size: 14px; color: var(--lt-copper); }
.sample__line span { justify-self: start; padding: 1px 4px; border-radius: 2px; }
.sample__line:hover span { background: var(--lt-raised); }
.sample__line[aria-current=true] span { color: var(--lt-marker); background: var(--lt-marker-bg); }
.sample__transport { border-top: 1px solid var(--line); padding: 13px 20px; }
.sample__transport audio[controls] { display: block; width: 100%; }
.sample__controls:not([hidden]) { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 14px; align-items: center; }
.sample__controls[hidden] { display: none; }
.sample__play { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; color: var(--lt-canvas); background: var(--lt-copper); cursor: pointer; }
.sample__play svg { width: 18px; height: 18px; fill: currentColor; }
.sample__play:not([data-playing=true]) .when-playing, .sample__play[data-playing=true] .when-paused { display: none; }
.sample__wave { position: relative; height: 44px; }
.sample__wave::before { content: ''; position: absolute; inset: 2px 0; pointer-events: none; mask: var(--wave-mask) center / 100% 100% no-repeat; background: linear-gradient(to right, var(--lt-copper) var(--played), #8b8982 var(--played)); }
.sample__wave input { position: relative; appearance: none; background: transparent; border: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.sample__wave input::-webkit-slider-thumb { appearance: none; width: 2px; height: 32px; background: var(--lt-copper); }
.sample__wave input::-moz-range-thumb { border: 0; border-radius: 0; width: 2px; height: 32px; background: var(--lt-copper); }
.sample__wave input:focus-visible { outline: 2px solid var(--lt-marker); outline-offset: 2px; }
.sample__clock { font-size: 14px; white-space: nowrap; }
.sample__clock b { color: var(--lt-ink); font-weight: 500; }
@media (max-width: 639px) {
  .sample__bar, .sample__transport { padding: 10px 15px; }
}

@media (max-width: 639px) {
  .hero__proof { flex-wrap: wrap; gap: 0 8px; }
  .sample__transport { order: 1; border-top: 0; border-bottom: 1px solid var(--line); }
  .sample__content { order: 2; }
}

@media (min-width: 1024px) {
  .hero--collage .hero__grid { grid-template-rows: auto; align-content: center; align-items: start; }
  .sample__content { flex: 1; display: flex; flex-direction: column; justify-content: center; }
  .sample__line { padding-block: 10px; }
}

/* Graphite behind the dark product windows keeps the outline of each window visible. */
.panel { --ground-bg: #77716a; --ground-surface: #838078; --ground-accent: #9f8268; }
.card > h3, .card.card--plan > h3, .faq__item h3 { font: 400 var(--t-card)/1.3 var(--lt-display); }
@media (max-width: 639px) {
  .hero--collage .hero__text > * + *, .hero--collage .hero__text > .btn-row { margin-top: 12px; }
  .sample__content .sample__credit { margin-bottom: 8px; }
}


.hero--collage:has(.lt-product-hero) { height: auto; min-height: 100svh; }
.hero--collage .hero__grid:has(.lt-product-hero) { align-items: center; }
.lt-product-hero { display: block; align-self: center; margin: 0; min-width: 0; height: auto; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.lt-product-hero img, .lt-showcase img, .lt-facts-shot img { display: block; width: 100%; height: auto; }
main > section.lt-showcase { height: auto; min-height: 0; padding-block: clamp(48px, 7vw, 112px); border-top: 1px solid var(--line); }
.lt-showcase h2 { max-width: 21ch; font: 400 var(--t-h2)/1.08 var(--lt-display); color: var(--lt-ink); text-wrap: balance; }
.lt-showcase h3 { font: 400 var(--t-card)/1.25 var(--lt-display); color: var(--lt-ink); }
.lt-showcase p { color: var(--lt-muted); line-height: 1.55; max-width: 62ch; }
.lt-product-copy > * + *, .lt-product-tools p { margin-top: 14px; }
.lt-product-copy .link { display: inline-flex; align-items: center; min-height: 44px; }
.lt-product-split, main > section.lt-showcase > .wrap.lt-product-split { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: clamp(24px,6vw,96px); align-items: center; }
.lt-library-shot, .lt-detail-shot, .lt-facts-shot { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--lt-canvas); }
.lt-library-shot, .lt-product-tools { margin: clamp(24px,4vw,56px) 0 0; }
.lt-product-tools { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(20px,3vw,44px); }
.lt-detail-shot { display: grid; place-items: center; height: clamp(200px,23vw,300px); margin-bottom: 20px; padding: clamp(16px,2vw,28px); background: var(--lt-raised); }
.lt-detail-shot img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.lt-facts-shot { max-width: 430px; margin: 24px 0 0; padding: 16px; }
@media (max-width: 1023px) {
  .hero--collage .lt-product-hero { width: 100%; flex: none; }
}
@media (max-width: 700px) {
  .lt-product-split, main > section.lt-showcase > .wrap.lt-product-split, .lt-product-tools { grid-template-columns: 1fr; }
  .lt-product-tools { row-gap: 36px; }
  .hero--collage:has(.lt-product-hero) { min-height: 0; }
}
.lt-product-hero picture, .lt-library-shot picture { display: block; }
@media (max-width: 700px) {
  .lt-library-shot { max-width: 430px; }
}

.lt-speed { border-top: 1px solid var(--line); margin-top: clamp(32px, 5vw, 72px); padding-top: 32px; align-items: start; }

@media (min-width: 1280px) and (min-height: 800px) {
  main > section.lt-showcase { height: 100svh; padding-block: clamp(48px, 8svh, 88px); }
  .lt-showcase .lt-library-shot img { max-height: 48svh; object-fit: contain; }
  .lt-speed { align-items: stretch; }
}

/* Let the editor run the full width of the cover. The controls above it stay together. */
main > .hero--collage:has(.lt-product-hero) {
  height: auto;
  padding-block: calc(var(--nav) + clamp(34px, 4.5vw, 76px)) clamp(32px, 5vw, 76px);
}
.hero--collage .hero__grid:has(.lt-product-hero) {
  display: grid; grid-template-columns: minmax(0, 1fr); align-content: start;
  gap: clamp(24px, 3.2vw, 54px);
}
.hero--collage .hero__grid .hero__text {
  grid-column: 1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center; gap: clamp(24px, 5vw, 86px); width: 100%;
}
.hero--collage .hero__grid h1 { font-size: clamp(52px, 5.5vw, 96px); line-height: .99; letter-spacing: -.045em; }
.hero--collage h1 em { display: block; color: var(--lt-copper); font-style: normal; }
.hero--collage .hero__text > .lt-intro-actions { margin-top: 0; }
.hero--collage .hero__lead { max-width: 46ch; font-size: clamp(17px, 1.36vw, 22px); line-height: 1.4; }
.lt-intro-actions .btn-row { margin-block: 16px 4px; }
.lt-intro-actions .hero__proof { margin: 0; }
.lt-intro-actions select { padding-right: 25px; }
.hero--collage .lt-product-hero {
  --frame-inset: clamp(12px, 3vw, 48px);
  grid-column: 1; position: relative; isolation: isolate; width: 100%; margin: 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-content: flex-start; gap: 0 4px;
  min-height: 0; padding: 10px var(--frame-inset) var(--frame-inset);
  border: 1px solid #514b44; border-radius: 12px;
  background: linear-gradient(145deg, #423d37, #2b2927 42%, #202223 78%);
  box-shadow: inset 0 1px #ffffff12, 0 18px 40px -18px #000b;
}
.lt-product-hero > label {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 16px; min-height: 44px; margin-bottom: 10px; border-radius: 5px; color: #d6cfc6;
  font: 500 15px/1 var(--lt-text); cursor: pointer;
}
.lt-product-hero > label svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lt-product-hero > input:checked + label { color: var(--lt-ink); background: #191b1c; box-shadow: inset 0 0 0 1px #686058, 0 1px 2px #0005; }
.lt-product-hero > input:checked + label svg { color: var(--lt-copper); }
.lt-product-hero > input:focus-visible + label { outline: 2px solid var(--lt-ink); outline-offset: 2px; }
.lt-tour-panel {
  display: none; order: 1; flex: 0 0 100%; min-width: 0; overflow: hidden;
  border: 1px solid #5b5751; border-radius: 6px; color: var(--lt-ink); background: #101213;
  box-shadow: 0 9px 18px -4px #0009;
}
.lt-tour-choice:checked + label + .lt-tour-panel { display: block; }
.lt-tour-panel picture { display: grid; align-items: start;  }
.lt-tour-panel img { align-self: center; }
.lt-tour-panel > span {
  min-height: 44px; display: flex; justify-content: space-between; align-items: center;
  padding: 6px 16px; background: #212221; border-top: 1px solid var(--line); font-size: var(--t-small);
}
.lt-tour-panel i { color: var(--lt-copper); font-style: normal; font-size: 19px; }
.lt-tour-panel:hover > span { color: var(--lt-copper); }
.nav .lt-language {
  display: inline-grid; place-items: center; min-width: 44px; height: 44px;
  font-weight: 500; font-size: 14px; color: var(--lt-ink); text-decoration: underline;
  text-underline-offset: 5px; text-decoration-color: #82786d;
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes lt-preview-in { from { opacity: .72; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  .lt-tour-choice:checked + label + .lt-tour-panel { animation: lt-preview-in 240ms ease-out; }
  .lt-tour-panel i { transition: transform 160ms ease-out; }
  .lt-tour-panel:hover i, .lt-tour-panel:focus-visible i { transform: translate(2px,-2px); }
}
@media (max-width: 1023px) {
  .nav:not(.is-open) .nav__actions > .lt-language { display: inline-grid; }
  .nav.is-open .nav__actions .lt-language { justify-self: center; }
}
@media (max-width: 760px) {
  .hero--collage .hero__grid .hero__text { grid-template-columns: 1fr; gap: 18px; }
  .hero--collage .hero__grid h1 { font-size: clamp(40px, 9.5vw, 66px); }
  .hero--collage .hero__lead { max-width: 50ch; }
  .hero--collage .lt-product-hero { --frame-inset: 8px; padding-top: 4px; gap: 0; }
  .lt-product-hero > label { flex: 1; margin-bottom: 4px; padding: 0 4px; font-size: 14px; gap: 5px; white-space: nowrap; }
  .lt-product-hero > label svg { width: 15px; }
}
@media (max-width: 700px) {
  .lt-tour-panel picture { aspect-ratio: auto; }
  .nav:not(.is-open) .nav__actions > .btn--primary { display: none; }
}
.lt-audition:not([hidden]) {
  display: flex; order: 1; align-items: center; gap: 9px; min-height: 44px; margin: 0 0 10px auto;
  padding: 0 12px; border: 0; border-radius: 5px; background: #222321; color: var(--lt-ink);
  font: 500 14px/1 var(--lt-text); cursor: pointer;
}
.lt-audition svg { width: 14px; height: 14px; fill: var(--lt-copper); }
.lt-audition:not([data-playing=true]) .when-playing, .lt-audition[data-playing=true] .when-paused { display: none; }
.lt-audition i {
  width: clamp(45px,7vw,120px); height: 24px;
  background: linear-gradient(to right,var(--lt-copper) var(--played,0%),#8d8880 var(--played,0%));
  mask: url('/assets/samples/en.svg') center / 100% 100% no-repeat;
}
html:lang(fr) .lt-audition i { mask-image: url('/assets/samples/fr.svg'); }
.lt-audition time { font-variant-numeric: tabular-nums; color: var(--lt-muted); }
.lt-audition:hover, .lt-audition:focus-visible { background: #171919; }
.lt-tour-panel { order: 2; }
@media (max-width: 760px) {
  .lt-audition:not([hidden]) { flex-basis: 100%; margin: 2px 0 8px; }
  .lt-audition i { flex: 1; }
}
.lt-audition-fallback { order: 1; display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 10px auto; color: var(--lt-ink); }
.lt-audition:not([hidden]) ~ .lt-audition-fallback { display: none; }
@media (max-width: 760px) {
  .lt-audition-fallback { flex-basis: 100%; margin: 2px 0 8px; padding: 0 12px; }
}
