/* Ana səhifə. Hər bölmə fərqli kompozisiyadır; ortaq olan yalnız qatlanmış künc motividir. */

.landing { overflow-x: hidden; }
.landing .top { position: absolute; left: 0; right: 0; top: 0; max-width: none; }
.sec { padding: clamp(96px, 12vw, 200px) var(--margin); }
.inner { max-width: var(--max); margin: 0 auto; }

/* ---------- Hero: nəhəng vərəq, küncü qatlanmış ---------- */
.hero {
  position: relative; min-height: max(100svh, 720px); overflow: hidden;
  display: grid; grid-template-columns: repeat(12, 1fr); align-items: center;
  padding: 120px var(--margin) 64px;
}
.hero-copy { grid-column: 1 / 7; padding-left: 4%; position: relative; z-index: 2; }
.hero h1 { font-size: var(--step-display); line-height: 0.9; letter-spacing: -0.05em; }
.hero-copy > p:not(.hero-note) { font-size: var(--step-lead); line-height: 1.35; margin-top: 28px; max-width: 26ch; letter-spacing: -0.015em; }
.hero-act { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; margin-top: 36px; }
.hero-act a:not(.btn) { font-weight: 500; }
.hero-copy .hero-note { margin-top: 22px; font-size: var(--step-small); color: var(--muted); }

.sheet {
  --fold: clamp(90px, 9vw, 150px);
  position: absolute; left: 50%; top: 96px; width: 66vw; height: calc(100% + 40px);
  background: var(--accent);
  clip-path: polygon(var(--fold) 0, 100% 0, 100% 100%, 0 100%, 0 var(--fold));
}
.sheet::before { /* qatlanmış küncün arxa üzü */
  content: ""; position: absolute; left: 0; top: 0; width: var(--fold); height: var(--fold);
  background: var(--accent-deep); clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.stage {
  position: absolute; z-index: 1; left: calc(50% + 4vw); right: 2vw; top: 96px; bottom: 64px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding-top: 40px;
}
.minibook { position: relative; }
.minibook .pg { background: #fff; overflow: hidden; }
.minibook .pg img { width: 100%; height: 100%; object-fit: cover; }
.book-ctl { display: flex; align-items: center; gap: 8px; color: var(--accent-ink); }
.book-ctl button {
  width: 46px; height: 46px; border: 0; background: rgba(4, 19, 12, .12); color: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background-color .15s ease, transform .15s var(--ease-out);
}
.book-ctl button:hover { background: rgba(4, 19, 12, .22); }
.book-ctl button:active { transform: scale(0.92); }
.book-ctl button[aria-pressed="true"] { background: var(--accent-ink); color: var(--accent); }
.book-ctl .s-off { display: none; }
.book-ctl button[aria-pressed="false"] .s-on { display: none; }
.book-ctl button[aria-pressed="false"] .s-off { display: block; }
.book-ctl .pnum { min-width: 70px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 500; font-size: var(--step-small); }
.book-hint { font-size: var(--step-small); color: var(--accent-ink); }

/* ---------- Nümunələr: vərəq üstündə kitab ---------- */
.showcase { position: relative; min-height: 100svh; display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; gap: 0 24px; }
.show-stage { grid-column: 5 / 12; grid-row: 1; position: relative; height: min(76vh, 780px); display: flex; align-items: flex-end; justify-content: center; }
.show-shape {
  --fold: 18%; position: absolute; left: 10%; right: 10%; top: 12%; bottom: 0; background: var(--field-2);
  clip-path: polygon(0 0, calc(100% - var(--fold)) 0, 100% calc(var(--fold) * .8), 100% 100%, 0 100%);
  transition: background-color .45s ease;
}
.show-book { position: relative; height: 100%; aspect-ratio: 0.707; margin-bottom: 7%; }
.show-book img {
  --ear: 16%; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  clip-path: polygon(0 0, calc(100% - var(--ear)) 0, 100% calc(var(--ear) * .707), 100% 100%, 0 100%);
  opacity: 0; transition: opacity .3s ease;
}
.show-book img.on { opacity: 1; }
.show-list { grid-column: 1 / 5; grid-row: 1; align-self: end; padding-bottom: 7%; position: relative; z-index: 1; }
.show-list h2, .show-list button {
  display: block; font-size: var(--step-mid); line-height: 1.15; letter-spacing: -0.04em; font-weight: 500;
}
.show-list h2 { color: var(--muted); margin-bottom: 4px; }
.show-list button { font-family: inherit; background: none; border: 0; padding: 2px 0; color: var(--muted); cursor: pointer; text-align: left; transition: color .2s ease; }
.show-list button:hover { color: var(--ink); }
.show-list button[aria-pressed="true"] { color: var(--ink); }
.show-list button[aria-pressed="true"]::before { content: ""; display: inline-block; width: .42em; height: .56em; margin-right: .3em; background: var(--accent); vertical-align: .08em; clip-path: polygon(0 0, 60% 0, 100% 30%, 100% 100%, 0 100%); }
.show-fact { grid-column: 12 / 13; grid-row: 1; align-self: end; padding-bottom: 7%; font-size: var(--step-body); line-height: 1.4; min-width: 170px; margin-left: -60px; }
.show-fact a { display: inline-block; margin-top: 10px; font-weight: 500; }

/* ---------- Necə işləyir: bir zolaq ---------- */
.how h2 { font-size: var(--step-display); margin-bottom: 64px; max-width: 11ch; }
.bar { display: flex; gap: 6px; height: 22vh; min-height: 150px; }
.seg { padding: 20px; position: relative; min-width: 12%; }
.seg b { font-weight: 500; font-size: var(--step-lead); letter-spacing: -0.03em; line-height: 1.05; display: block; }
.seg:nth-child(1) { flex: 5; background: var(--field-1); color: #fff; }
.seg:nth-child(2) { flex: 2; background: var(--accent); color: var(--accent-ink); }
.seg:nth-child(3) { --ear: 34px; flex: 2; background: var(--field-2); clip-path: polygon(0 0, calc(100% - var(--ear)) 0, 100% var(--ear), 100% 100%, 0 100%); }
.bar-notes { display: flex; gap: 6px; margin-top: 18px; }
.bar-notes p { font-size: var(--step-body); max-width: 24ch; }
.bar-notes p:nth-child(1) { flex: 5; } .bar-notes p:nth-child(2) { flex: 2; } .bar-notes p:nth-child(3) { flex: 2; }

/* ---------- Embed: tünd yaşıl sahə ---------- */
.embed { background: var(--field-1); color: var(--field-1-ink); }
.embed .inner { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.embed h2 { font-size: var(--step-head); margin-bottom: 24px; }
.embed p { max-width: 34ch; color: var(--field-1-muted); font-size: var(--step-lead); line-height: 1.35; letter-spacing: -0.015em; }
.code { margin-top: 32px; background: #0a1f17; padding: 20px 22px 18px; }
.code pre { margin: 0; white-space: pre-wrap; word-break: break-all; font: 400 14px/1.55 ui-monospace, "Cascadia Mono", Consolas, monospace; color: #d9f2e6; }
.code .btn { margin-top: 16px; }
.frame { --ear: 56px; aspect-ratio: 4 / 3; background: #2a2724; clip-path: polygon(0 0, calc(100% - var(--ear)) 0, 100% var(--ear), 100% 100%, 0 100%); }
.frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- İmkanlar: şəkilli sözlərlə abzas ---------- */
.features .statement { font-size: var(--step-mid); line-height: 1.22; letter-spacing: -0.03em; font-weight: 500; max-width: 44ch; }
.slot {
  display: inline-block; height: 1em; width: 1.9em; vertical-align: -0.12em; margin: 0 .08em; overflow: hidden; position: relative;
  --ear: .3em; clip-path: polygon(0 0, calc(100% - var(--ear)) 0, 100% var(--ear), 100% 100%, 0 100%);
}
.slot img { width: 100%; height: 100%; object-fit: cover; }
.slot.ui { background: var(--surface); display: inline-flex; align-items: center; justify-content: center; color: var(--accent-deep); }
.slot.ui svg { width: .62em; height: .62em; }
.slot.toggle { background: var(--ink); }
.slot.toggle::after { content: ""; position: absolute; right: .14em; top: .14em; bottom: .14em; aspect-ratio: 1; background: var(--accent); }
.flist { list-style: none; margin: 96px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(32px, 6vw, 96px); max-width: 1100px; }
.flist li { display: grid; grid-template-columns: 22px 1fr; gap: 4px 16px; }
.flist li::before { content: ""; grid-row: 1 / 3; width: 16px; height: 21px; margin-top: 5px; background: var(--accent); clip-path: polygon(0 0, 55% 0, 100% 34%, 100% 100%, 0 100%); }
.flist b { font-weight: 500; font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.2; }
.flist span { color: var(--ink); }
.feat-act { margin: 72px 0 0 50%; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; max-width: 520px; }
.feat-act p { font-size: var(--step-body); }

/* ---------- Suallar ---------- */
.faq .inner { display: grid; grid-template-columns: 4fr 8fr; gap: 24px; align-items: start; }
.faq h2 { font-size: var(--step-head); position: sticky; top: 96px; }
.tiles { display: flex; flex-direction: column; gap: 8px; }
.tiles details { background: var(--surface); transition: background-color .25s ease; }
.tiles details[open] { background: var(--accent); color: var(--accent-ink); }
.tiles summary { list-style: none; cursor: pointer; min-height: 72px; padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: var(--step-body); font-weight: 500; letter-spacing: -0.015em; }
.tiles summary::-webkit-details-marker { display: none; }
.plus { width: 16px; height: 16px; position: relative; flex-shrink: 0; }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; background: currentColor; transition: transform .25s var(--ease-out); }
.plus::after { transform: rotate(90deg); }
details[open] .plus::after { transform: rotate(0deg); }
.tiles details p { padding: 0 24px 24px; font-size: var(--step-body); max-width: 52ch; }
.tiles summary:hover { background: rgba(12, 31, 23, .04); }

/* ---------- Son çağırış: boşluqlu cümlə ---------- */
.cta { background: var(--surface); }
.cta form { font-size: var(--step-display); font-weight: 500; letter-spacing: -0.05em; line-height: 1.08; max-width: 14em; }
.cta .blank {
  font: inherit; letter-spacing: -0.03em; width: 7em; height: 1.08em; vertical-align: top; padding: 0 .2em;
  background: var(--bg); color: var(--ink); border: 0;
  --ear: .3em; clip-path: polygon(0 0, calc(100% - var(--ear)) 0, 100% var(--ear), 100% 100%, 0 100%);
}
.cta .blank::placeholder { color: var(--muted); }
.cta .go {
  font: inherit; letter-spacing: -0.05em; height: 1.08em; padding: 0 .25em; vertical-align: top; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); transition: transform .15s var(--ease-out), background-color .15s ease;
  --ear: .3em; clip-path: polygon(0 0, calc(100% - var(--ear)) 0, 100% var(--ear), 100% 100%, 0 100%);
}
.cta .go:hover { background: #22b77d; }
.cta .go:active { transform: scale(0.97); }
.cta .after { margin-top: 28px; font-size: var(--step-body); max-width: 60ch; }

/* ---------- Footer: bloklardan qurulmuş ad ---------- */
.foot { background: var(--field-1); color: var(--field-1-ink); padding: 72px var(--margin) 32px; }
.mark { display: flex; gap: 4px; align-items: flex-end; height: 34svh; min-height: 200px; }
.mark span {
  flex: 1; display: flex; align-items: flex-end; justify-content: center; overflow: hidden;
  font-size: clamp(56px, 11vw, 190px); font-weight: 500; line-height: .78; letter-spacing: -0.06em; padding-bottom: .04em;
}
.mark span:nth-child(1) { height: 100%; background: var(--accent); color: var(--field-1); }
.mark span:nth-child(2) { height: 72%; background: var(--field-2); color: var(--field-1); }
.mark span:nth-child(3) { height: 86%; background: #ffffff; color: var(--field-1); }
.mark span:nth-child(4) { height: 64%; background: var(--accent); color: var(--field-1); }
.mark span:nth-child(5) { height: 94%; background: var(--field-2); color: var(--field-1); }
.mark span:nth-child(6) { height: 78%; background: #ffffff; color: var(--field-1); }
.mark span:nth-child(7) { height: 68%; background: var(--accent); color: var(--field-1); }
.mark span:nth-child(8) { --ear: 34%; height: 100%; background: var(--field-2); color: var(--field-1); clip-path: polygon(0 0, calc(100% - var(--ear)) 0, 100% calc(var(--ear) * .6), 100% 100%, 0 100%); }
.foot-cols { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-top: 56px; font-size: var(--step-small); }
.foot-cols nav { grid-column: span 2; display: flex; flex-direction: column; gap: 10px; }
.foot-cols nav b { font-weight: 500; margin-bottom: 4px; }
.foot-cols a { color: var(--field-1-muted); text-decoration: none; }
.foot-cols a:hover { color: #fff; text-decoration: underline; }
.foot-cols .credits { grid-column: 8 / 13; color: var(--field-1-muted); font-size: var(--step-small); line-height: 1.5; max-width: 60ch; }
.foot-cols .credits a { text-decoration: underline; }
.foot-last { display: flex; justify-content: space-between; align-items: center; margin-top: 56px; font-size: var(--step-small); color: var(--field-1-muted); gap: 16px; }

/* ---------- Hərəkət ---------- */
.js [data-r] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--i, 0) * 75ms); }
.js [data-r].in { opacity: 1; transform: none; }
.js .show-book.shut { clip-path: inset(100% 0 0 0); }
.show-book { transition: clip-path 1.1s var(--ease-out); clip-path: inset(0 0 0 0); }
.show-book img.on { animation: drift 9s ease-in-out infinite alternate; }
.js .show-book.shut img.on { transform: scale(1.12); }
.show-book img { transition: opacity .3s ease, transform 1.1s var(--ease-out); }
@keyframes drift { from { translate: 0 0; } to { translate: 0 -10px; } }
.js [data-rise] { transform: scaleY(0.2); transform-origin: bottom; transition: transform .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-rise].in { transform: none; }
.js .sheet { transform: translateX(14vw); transition: transform 1.2s var(--ease-out); }
.js .sheet.in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js [data-r], .js [data-rise] { opacity: 1; transform: none; }
  .js .show-book.shut { clip-path: none; }
  .js .sheet { transform: none; }
  .show-book img.on { animation: none; }
}

/* ---------- Telefon ---------- */
@media (max-width: 900px) {
  .hero { display: block; padding: 104px 16px 0; min-height: 0; }
  .hero-copy { padding-left: 0; }
  .hero h1 { font-size: 11.5vw; }
  .hero-copy > p:not(.hero-note) { font-size: var(--step-body); }
  .sheet { display: none; }
  .stage {
    --fold: 64px; position: static; margin: 44px -16px 0; padding: 84px 16px 36px; background: var(--accent);
    clip-path: polygon(var(--fold) 0, 100% 0, 100% 100%, 0 100%, 0 var(--fold));
  }
  .landing .nav-links a[href^="#"] { display: none; }
  .js .sheet { transform: none; }

  .showcase { display: block; min-height: 0; }
  .show-stage { height: 112vw; max-height: 620px; }
  .show-shape { left: 4%; right: 4%; }
  .show-list { padding: 28px 0 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
  .show-list h2 { display: none; }
  .show-list button { font-size: var(--step-lead); }
  .show-fact { margin: 12px 0 0; padding: 0; }

  .how h2 { font-size: 11vw; margin-bottom: 40px; }
  .bar { flex-direction: column; height: 70svh; }
  .seg { min-height: 72px; }
  .bar-notes { display: none; }
  .seg .note { display: block; font-size: var(--step-body); margin-top: 10px; max-width: 30ch; }

  .embed .inner { grid-template-columns: 1fr; }
  .flist { grid-template-columns: 1fr; margin-top: 64px; }
  .feat-act { margin-left: 0; }
  .features .statement { font-size: 24px; }

  .faq .inner { grid-template-columns: 1fr; }
  .faq h2 { position: static; font-size: 9vw; margin-bottom: 20px; }
  .tiles summary { min-height: 64px; padding: 20px; }
  .tiles details p { padding: 0 20px 20px; }

  .cta form { font-size: 9vw; }
  .cta .blank { width: 5.2em; }

  .mark { height: 22svh; min-height: 120px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-cols nav { grid-column: span 1; }
  .foot-cols .credits { grid-column: 1 / -1; }
}
@media (min-width: 901px) { .seg .note { display: none; } }
