/* LungType home. REVIZE-2 #30 2. tur (30 Ekim gece, orkestratör düzeni): only the first screen is a full-height scene; the rest is
   ordinary sections in one container width (the header's), headings left-aligned and the same size, a fixed 160 px (phones 96 px)
   between sections, no progress marks. Earlier: V1 (23 Ekim 2026, Berke "her ekranda tek odak"; revize 2 aynı gün): full-screen scenes on #000001.
   One heading, one sentence and at most one visual per scene; scrolling brings the next scene (free scrolling;
   no snapping since 30 Ekim, Berke). Black and white only: no accent color here, the voice dot is white.
   The one entrance transition is CSS (scroll-driven, where supported). js/sahne.js plays each scene's visual
   while that scene is on screen; without JS or with reduced motion every visual shows its last frame.
   Loaded after site.css on the home page only (gen.py, html.sahneli). */

/* ---------- Tokens: LungType black, whatever the theme or accent setting says ---------- */
:root.sahneli, :root.sahneli[data-theme], :root.sahneli[data-accent] {
  color-scheme: dark;
  --zemin: #000001;
  --yuzey: #111113;
  --kart: #1F1F22;
  --kart-ustu: #2A2A2E;
  --ayrac: #1E1E21;
  --murekkep: #FFFFFF;
  --ikincil: #A8A8AC;      /* 8.6:1 on #000001 */
  --ucuncul: #8E8E93;      /* 6.4:1 */
  --soluk: #7C7C80;        /* spoken words in the demo, 5.0:1 */
  --iz: #5C5C60;           /* bar track, 3.2:1 (non-text) */
  --nokta: #6A6A6E;        /* progress marks, 3.9:1 */
  --ters: #FFFFFF; --ters-ustu: #000001; --ters-ustu-ikincil: #4D4D4D;
  --tus-golge: #0D0D0F; --isik: #3A3A3E; --cubuk: #111113;
  --vurgu: #FFFFFF; --vurgu-ustu: #000001; --vurgu-ustu-ikincil: #333336; --vurgu-ters: #FFFFFF;
  --s-ust: calc(var(--ust-h) + 24px);
  --s-alt: 56px;
  --e-sahne: cubic-bezier(.16, .84, .24, 1);   /* fast start, long soft settle (ILKELER İ9) */
}

html.sahneli { background: var(--zemin); }   /* 30 Ekim (Berke): no scroll snapping, the page never re-centres itself */
@media (prefers-reduced-motion: no-preference) { html.sahneli { scroll-behavior: smooth; } }
.sahneli body { background: var(--zemin); color: var(--murekkep); }
.sahneli ::selection { background: rgba(255, 255, 255, .26); }

/* Header floats over the scenes (solid, no blur) so each scene owns the full screen height. */
.sahneli .ust-serit { position: fixed; top: 0; left: 0; right: 0; }
.sahneli [data-theme-toggle] { display: none; }
.sahneli .dil-onerisi { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; }

/* ---------- Scene ---------- */
.sahne {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: var(--s-ust) var(--kenar) var(--s-alt);
}
.s-ic {
  width: 100%; max-width: 940px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.s-baslik {
  font-family: var(--f-bric); font-weight: 800; font-stretch: 80%;
  font-size: clamp(44px, min(6.4vw, 10.4vh), 92px); line-height: 1.02; letter-spacing: -0.01em;
  text-wrap: balance; color: var(--murekkep); max-width: 13em;
}
.s-dev { font-size: clamp(56px, min(8.4vw, 13.6vh), 128px); line-height: 1; max-width: none; }
.s-dev > span { display: block; }
.s-metin {
  margin-top: 22px; max-width: 31em;
  font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--ikincil); text-wrap: pretty;
}
.s-eylem { margin-top: 44px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.s-meta { font-size: 13.5px; line-height: 1.45; color: var(--ucuncul); max-width: 62em; text-wrap: balance; }
.s-parca { white-space: nowrap; }
.s-metin.s-kazanc { margin-top: 6px; color: var(--murekkep); }
.s-baglanti { margin-top: 28px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.sahneli .metin-dugme { color: var(--murekkep); font-size: 16px; }
.sahneli .dugme.birincil:hover { background: #E6E6E6; }

/* Scenes that read as a column (questions): left-aligned */
.s-liste .s-ic { max-width: 760px; align-items: stretch; text-align: left; }
.s-liste .s-baslik { max-width: none; }
.s-liste .s-metin { max-width: 36em; }
.s-liste .s-baglanti { justify-content: flex-start; }

/* ---------- The one entrance transition (CSS only, scroll-driven where the browser supports it) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .sahne { view-timeline: --sahne block; }
    .s-ic { animation: sahne-gir var(--e-sahne) both; animation-timeline: --sahne; animation-range: entry 30% entry 95%; }
  }
}
@keyframes sahne-gir { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* ---------- The speech line: LungType's recording pill, drawn plainly (app Cubuk: rest line 36×5, listening 112×32) ---------- */
.cz {
  position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; overflow: hidden;
  width: 112px; height: 32px; border-radius: 16px; background: #111113; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14);
  transition: width var(--d-hap) var(--e-hap), height var(--d-hap) var(--e-hap), border-radius var(--d-hap) var(--e-hap), box-shadow .3s ease;
}
.cz-dalga { display: inline-flex; align-items: center; gap: 2.25px; height: 16px; transition: opacity .18s ease; }
.cz-dalga i { display: block; width: 2.5px; height: 16px; border-radius: 2px; background: rgba(255, 255, 255, .92); transform: scaleY(.5); }
.cz-dalga i:nth-child(3n) { transform: scaleY(.85); }
.cz-dalga i:nth-child(4n) { transform: scaleY(.3); }
.cz-dalga i:nth-child(5n+1) { transform: scaleY(.7); }
.cz-donen { position: absolute; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); border-top-color: #FFFFFF; opacity: 0; transition: opacity .18s ease; }
.cz[data-hal="dinlenme"] { width: 36px; height: 5px; border-radius: 2.5px; background: rgba(17, 17, 19, .49); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }
.cz[data-hal="dinlenme"] .cz-dalga, .cz[data-hal="isleniyor"] .cz-dalga { opacity: 0; }
.cz[data-hal="isleniyor"] .cz-donen { opacity: 1; }
.hareket .cz[data-hal="isleniyor"] .cz-donen { animation: don .9s linear infinite; }
.hareket .cz.canli .cz-dalga i { animation: dalga .8s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.17s); }
.hareket .cz.canli .cz-dalga i:nth-child(2n) { animation-duration: .62s; }
.hareket .cz.canli .cz-dalga i:nth-child(3n) { animation-duration: 1.05s; }

/* ---------- 1. First screen: heading, one sentence, button; the desktop scene under it is css/masaustu.css (REVIZE-2 #30) ---------- */
.s-ilk .s-ic { max-width: calc(var(--en) - 2 * var(--kenar)); }   /* lines up with the header (.kap) */
.s-hero { width: 100%; display: flex; flex-direction: column; align-items: center; }
.s-hero-bas { display: flex; flex-direction: column; align-items: center; }
.s-hero .s-eylem { margin-top: 36px; }
@media (min-width: 900px) {                       /* wide screens: the heading on one line so the desktop starts higher */
  .s-hero .s-dev { font-size: clamp(56px, min(6.4vw, 10.4vh), 104px); }
  .s-hero .s-dev > span { display: inline; }
}

/* ---------- 2. Time: two plain bars on one scale; the basis right under them, readable ---------- */
.sz { width: 100%; max-width: 760px; margin-top: 44px; text-align: left; }
.sz-liste { list-style: none; display: grid; gap: 20px; }
.sz-etiket { display: block; margin-bottom: 10px; font-family: var(--f-bric); font-stretch: 85%; font-weight: 700; font-size: 22px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.sz-cubuk { position: relative; display: block; height: 18px; width: calc(var(--uz) * 100%); border-radius: 6px; transform-origin: left center; }
.sz-cubuk i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--dolu) * 100%); border-radius: 6px; transform-origin: left center; }
/* keyboard: a range (3–4 h): solid to the faster typist, outlined to the 40 words/min assumption */
.sz-cubuk.aralik { box-shadow: inset 0 0 0 1.5px var(--iz); }
.sz-cubuk.aralik i { background: var(--iz); }
.sz-satir.lt .sz-cubuk i { background: var(--murekkep); }
.sz-not { margin-top: 20px; font-size: 15px; line-height: 1.55; color: var(--ikincil); }
.sz[data-adim] .sz-cubuk { transition: transform .95s var(--e-sahne); }
.sz[data-adim] .sz-satir.lt .sz-cubuk { transition-delay: .35s; }
.sz[data-adim="0"] .sz-cubuk { transform: scaleX(0); transition: none; }

/* ---------- 3. Meetings: one transcript column with speaker initials ---------- */
.st { width: 100%; max-width: 640px; margin-top: 48px; text-align: left; }
.st-kart { background: var(--yuzey); border-radius: 22px; padding: 20px 24px 6px; }
.st-bas { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.st-ad { font-weight: 600; font-size: 15px; }
.st-kaynak { font-size: 13px; color: var(--ucuncul); }
.st-liste { list-style: none; }
.st-blok { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--ayrac); }
.st-avatar {
  flex: none; width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--kart-ustu); color: var(--murekkep); font: 700 13px/1 var(--f-bric);
}
.st-blok.sen .st-avatar { background: var(--murekkep); color: var(--zemin); }
.st-kim { font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.st-saat { color: var(--ucuncul); font-weight: 400; font-variant-numeric: tabular-nums; margin-left: 6px; }
.st-soz { margin-top: 2px; font-size: 16px; line-height: 1.5; color: var(--ikincil); }
.st[data-adim] .st-blok { transition: opacity .45s ease, transform .6s var(--e-sahne); }
.st[data-adim] .st-blok:not(.gorundu) { opacity: 0; transform: translateY(10px); }

/* ---------- 4. Command Mode: the selected sentence becomes the rewritten one ---------- */
.sk { width: 100%; max-width: 600px; margin-top: 48px; }
.sk-kart { display: grid; align-items: center; background: var(--yuzey); border-radius: 22px; padding: 22px 26px; text-align: left; }
.sk-once, .sk-sonra { grid-area: 1 / 1; font-size: 19px; line-height: 1.55; color: var(--murekkep); transition: opacity .4s ease; }
.sk-once mark { color: inherit; background: rgba(255, 255, 255, .22); border-radius: 4px; padding: 1px 0; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-color .35s ease; }
.sk-once { opacity: 0; }
.sk-komut { margin-top: 18px; height: 32px; display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 16px; color: var(--ikincil); }
.sk-soz { transition: opacity .3s ease; }
/* playing: 0 sentence → 1 selected → 2 the command is said → 3 written (= the static last frame) */
.sk[data-adim="0"] .sk-once, .sk[data-adim="1"] .sk-once, .sk[data-adim="2"] .sk-once { opacity: 1; }
.sk[data-adim="0"] .sk-sonra, .sk[data-adim="1"] .sk-sonra, .sk[data-adim="2"] .sk-sonra { opacity: 0; }
.sk[data-adim="0"] .sk-once mark { background-color: transparent; }
.sk[data-adim="0"] .sk-soz, .sk[data-adim="1"] .sk-soz { opacity: 0; }

/* ---------- Frequently asked questions ---------- */
.ss { margin-top: 32px; border-top: 1px solid var(--ayrac); }
.ss details { border-bottom: 1px solid var(--ayrac); }
.ss summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; font-weight: 600; font-size: 17px; line-height: 1.4; border-radius: 8px;
}
.ss summary::-webkit-details-marker { display: none; }
.ss summary::after {
  content: ""; flex: none; width: 8px; height: 8px; margin-right: 4px;
  border-right: 2px solid var(--ikincil); border-bottom: 2px solid var(--ikincil); transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .3s var(--e-giris);
}
.ss details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.ss details > div { padding: 0 0 20px; color: var(--ikincil); max-width: 46em; }
.ss details > div a { color: var(--murekkep); }

/* ---------- Footer ---------- */
.sahneli .alt { padding-top: 72px; border-top: 1px solid var(--ayrac); }

/* ---------- Short laptop screens: the scene still fits one screen ---------- */
@media (min-width: 720px) and (max-height: 860px) {
  :root.sahneli { --s-ust: calc(var(--ust-h) + 16px); --s-alt: 32px; }
  .s-metin { margin-top: 16px; }
  .s-eylem { margin-top: 32px; }
}

/* ---------- Phones ---------- */
@media (max-width: 719px) {
  :root.sahneli { --s-ust: calc(var(--ust-h) + 16px); --s-alt: 40px; }
  .s-baslik { font-size: clamp(40px, 11vw, 52px); line-height: 1.04; }
  .s-dev { font-size: clamp(50px, 14.6vw, 64px); line-height: 1.02; }
  .s-metin { margin-top: 16px; font-size: 17px; }
  .s-eylem { margin-top: 32px; }
  .sz-etiket { font-size: 20px; }
  .sz-not { font-size: 14px; }
  .st-kart { padding: 16px 16px 4px; }
  .st-soz { font-size: 15px; }
  .sk-kart { padding: 18px 18px; }
  .sk-once, .sk-sonra { font-size: 17px; }
  .ss summary { font-size: 16px; padding: 16px 0; }
}

/* ================= REVIZE-2 #30 2. tur: sections, the "what it does" bento grid, the plain list ================= */
.bol { width: calc(100% - 2 * var(--kenar)); max-width: calc(var(--en) - 2 * var(--kenar)); margin: 160px auto 0; padding: 0; }
.sahneli main > .bol:first-of-type, .ms + .bol { margin-top: 160px; }
.sahneli .alt { margin-top: 160px; }
.bol-baslik { font-family: var(--f-bric); font-weight: 800; font-stretch: 80%; font-size: clamp(40px, 4.4vw, 64px); line-height: 1.02;
  letter-spacing: -0.01em; text-align: left; text-wrap: balance; color: var(--murekkep); }
.bol-metin { margin-top: 18px; max-width: 34em; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--ikincil); }
.bol-eylem { margin-top: 36px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.bol .s-meta { text-align: left; }
.bol .s-baglanti { justify-content: flex-start; }

/* the bento grid: 12 columns, boxes of different sizes, one idea each; same radius, 40 px inside, title top-left, picture at the bottom */
.nb-izgara { list-style: none; margin-top: 48px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.nb { grid-column: span 4; display: flex; flex-direction: column; gap: 32px; padding: 40px; border-radius: 28px; background: var(--yuzey);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); text-align: left; min-width: 0; }
.nb-8 { grid-column: span 8; }
.nb-bas h3 { font-family: var(--f-bric); font-weight: 800; font-stretch: 80%; font-size: 30px; line-height: 1.08; letter-spacing: -0.005em;
  text-wrap: balance; color: var(--murekkep); }
.nb-cumle { margin-top: 12px; font-size: 16px; line-height: 1.5; color: var(--ikincil); text-wrap: pretty; }
.nb-cumle + .nb-cumle { margin-top: 4px; }
.nb-gorsel { margin-top: auto; min-width: 0; }
@media (max-width: 1023px) { .nb, .nb-8 { grid-column: span 6; } .nb-8 { grid-column: 1 / -1; } }
@media (max-width: 719px) {
  .bol { margin-top: 96px; }
  .ms + .bol, .sahneli .alt { margin-top: 96px; }
  .bol-baslik { font-size: clamp(36px, 10vw, 46px); }
  .nb-izgara { margin-top: 32px; grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .nb, .nb-8 { grid-column: 1 / -1; padding: 32px; border-radius: 24px; gap: 28px; }
  .nb-bas h3 { font-size: 27px; }
}
@media (max-width: 380px) { .nb, .nb-8 { padding: 32px 24px; } }

/* B1: the said words in a bubble; the dropped part is struck and falls; the clean line under it */
.nb-soz { padding: 22px 26px 24px; border-radius: 20px; background: #1A1A1D; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.nb-etiket { font-size: 13px; font-weight: 500; color: var(--ucuncul); }
.nb-etiket-2 { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--ayrac); }
.nb-ham { margin-top: 6px; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.4; font-weight: 500; color: #9C9CA1; }
.nb-temiz { margin-top: 6px; min-height: 2.8em; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.4; font-weight: 500; color: var(--murekkep); }
.nb-soz .ms-k[data-at] .ms-cizik { transform: scaleX(1); }      /* finished frame: struck, faded */
.nb-soz .ms-k[data-at] { opacity: .45; }
.nb-soz .ms-cizik { height: 2px; background: #FFFFFF; }

/* B2: the key and the listening pill */
.nb-tus-sahne { display: flex; align-items: center; justify-content: center; gap: 28px; min-height: 180px; padding: 24px 0 8px; }
.nb-tus-sahne .cz { transform: scale(1.25); }
.nb-tus { position: relative; flex: none; width: 108px; height: 108px; }
.nb-tus-kapak { position: absolute; inset: 0; border-radius: 20px; background: linear-gradient(180deg, #FAFAFB, #DCDCE1);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06), inset 0 -3px 0 rgba(0, 0, 0, .12), 0 7px 0 #8E8E94, 0 16px 30px rgba(0, 0, 0, .35); transition: transform .14s ease; }
.nb-tus-ad { position: absolute; left: 13px; bottom: 11px; font-size: 16px; font-weight: 600; color: #3A3A3E; pointer-events: none; }
.nb-tus.basili .nb-tus-kapak { transform: translateY(6px); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06), inset 0 -2px 0 rgba(0, 0, 0, .12), 0 1px 0 #8E8E94, 0 8px 16px rgba(0, 0, 0, .3); }

/* B3: the big number and two thin bars inside the box */
.nb .sz { max-width: none; margin-top: 0; }
.sz-buyuk { font-size: 17px; line-height: 1.3; color: var(--ikincil); margin-bottom: 22px; }
.sz-buyuk b { display: block; margin-bottom: 2px; font-family: var(--f-bric); font-weight: 800; font-stretch: 80%; font-size: 72px; line-height: 1; color: var(--murekkep); font-variant-numeric: tabular-nums; }
.nb .sz-liste { gap: 14px; }
.nb .sz-etiket { font-size: 15px; margin-bottom: 7px; }
.nb .sz-cubuk { height: 8px; border-radius: 4px; }
.nb .sz-cubuk i { border-radius: 4px; }
.nb .sz-not { margin-top: 16px; font-size: 12.5px; line-height: 1.5; color: var(--ucuncul); }

/* B4, B5: the meeting transcript and Command Mode cards inside the box */
.nb .st, .nb .sk { max-width: none; margin-top: 0; }
.nb .st-kart, .nb .sk-kart { background: #1A1A1D; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); border-radius: 18px; }
.nb .st-kart { padding: 16px 18px 4px; }
.nb .st-soz { font-size: 14.5px; }
.nb .sk-kart { padding: 18px 20px; }
.nb .sk-once, .nb .sk-sonra { font-size: 17px; }

/* What's inside: a plain list in two columns, as tall as its content */
.ic-liste { list-style: none; margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.ic-liste li { padding: 18px 0; border-top: 1px solid var(--ayrac); font-size: 18px; line-height: 1.45; color: var(--murekkep); }
@media (max-width: 719px) { .ic-liste { margin-top: 28px; grid-template-columns: minmax(0, 1fr); } .ic-liste li { font-size: 16px; padding: 15px 0; } }

/* the first screen keeps its own height; the scene under it is the hero's (css/masaustu.css) */
.bol .ss { margin-top: 32px; }
