.product-media-viewport.archive-viewport { aspect-ratio: 1120 / 606; background: #fdfbfd; container-type: inline-size; }
.archive-canvas { position: absolute; inset: 0; isolation: isolate; }
.archive-canvas > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.archive-upload-pane, .archive-ready-list, .archive-ready-pane, .archive-complete { opacity: 0; }
.archive-upload-pane, .archive-ready-pane { clip-path: inset(0 0 0 50%); }
.archive-ready-list { clip-path: inset(0 50% 0 0); }
.archive-canvas[data-archive-step="2"] .archive-upload-pane,
.archive-canvas[data-archive-step="3"] .archive-upload-pane,
.archive-canvas[data-archive-step="4"] .archive-upload-pane { opacity: 1; }
.archive-canvas[data-archive-step="4"] .archive-ready-list { opacity: 1; animation: archive-check-rows 1000ms steps(5, end) both; }
.archive-canvas[data-archive-step="5"] .archive-ready-list,
.archive-canvas[data-archive-step="6"] .archive-ready-list,
.archive-canvas[data-archive-step="5"] .archive-ready-pane,
.archive-canvas[data-archive-step="6"] .archive-ready-pane { opacity: 1; }
.archive-canvas[data-archive-step="7"] .archive-complete { opacity: 1; animation: archive-finish 300ms ease both; }
.archive-focus { display: none; position: absolute; left: 3.7%; top: 10%; width: 41.3%; height: 14%; border: 2px solid #16878a; border-radius: 6px; background: rgb(22 135 138 / 5%); box-shadow: 0 0 0 4px rgb(22 135 138 / 9%); }
.archive-canvas[data-archive-step="1"] .archive-focus,
.archive-canvas[data-archive-step="2"] .archive-focus { display: block; }
.archive-progress { display: none; position: absolute; left: 53.4%; right: 2.5%; top: 15.8%; height: 12%; background: #fefcfe; padding-top: .6%; }
.archive-canvas[data-archive-step="2"] .archive-progress,
.archive-canvas[data-archive-step="3"] .archive-progress,
.archive-canvas[data-archive-step="4"] .archive-progress { display: block; }
.archive-progress-track { width: 100%; height: .6cqw; min-height: 2px; background: #ceccce; border-radius: 20px; overflow: hidden; }
.archive-progress-track i { display: block; height: 100%; width: 100%; background: #178b8d; transform-origin: left; }
.archive-canvas[data-archive-step="2"] .archive-progress-track i { animation: archive-load 2400ms linear both; }
.archive-progress p { display: flex; align-items: center; gap: 1%; margin: 1.8% 0 0 !important; font-size: 1.3cqw !important; line-height: 1.6; color: #606060 !important; white-space: nowrap; }
.archive-progress-spinner { width: 1.3cqw; height: 1.3cqw; border: 1px solid #ccc; border-top-color: #178b8d; border-radius: 50%; animation: archive-spin 700ms linear infinite; flex-shrink: 0; }
.archive-checking-text { display: none; }
.archive-canvas[data-archive-step="3"] .archive-loading-text,
.archive-canvas[data-archive-step="4"] .archive-loading-text { display: none; }
.archive-canvas[data-archive-step="3"] .archive-checking-text,
.archive-canvas[data-archive-step="4"] .archive-checking-text { display: inline; }
.archive-cursor { display: none; position: absolute; width: 2.6%; height: 5%; left: 42%; top: 17%; filter: drop-shadow(0 1px 2px #777); }
.archive-cursor svg { width: 100%; height: 100%; position: relative; z-index: 1; }
.archive-cursor i { position: absolute; left: -20%; top: -10%; width: 100%; aspect-ratio: 1; border: 2px solid #16878a; border-radius: 50%; animation: archive-tap 650ms ease both; }
.archive-canvas[data-archive-step="1"] .archive-cursor { display: block; animation: archive-select 350ms ease both; }
.archive-canvas[data-archive-step="6"] .archive-cursor { display: block; left: 74%; top: 94%; animation: archive-submit 400ms ease both; }
.archive-error { padding: 12px; font-size: 13px; color: var(--text); }
[data-archive-story][data-playback="paused"] .archive-canvas * { animation-play-state: paused !important; }
@keyframes archive-load { from { transform: scaleX(.02); } to { transform: scaleX(1); } }
@keyframes archive-spin { to { transform: rotate(360deg); } }
@keyframes archive-tap { from { transform: scale(.35); opacity: .9; } to { transform: scale(1.8); opacity: 0; } }
@keyframes archive-select { from { transform: translate(80%, 80%); opacity: 0; } to { transform: translate(0, 0); opacity: 1; } }
@keyframes archive-submit { from { transform: translate(100%, -150%); } to { transform: translate(0, 0); } }
@keyframes archive-finish { from { opacity: 0; } to { opacity: 1; } }
@keyframes archive-check-rows { from { clip-path: inset(0 50% 100% 0); } to { clip-path: inset(0 50% 0 0); } }
@media (prefers-reduced-motion: reduce) {
  .archive-canvas * { animation: none !important; }
  .archive-cursor, .archive-focus { display: none !important; }
}
/* doc-types: tekdüze kutu ızgarası + öğretme notu */
.doc-types .chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 8px; }
.doc-types .chip { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 38px; padding: 6px 10px; line-height: 1.3; }
.doc-types__teach { display: flex; flex-direction: column; gap: 4px; border: 1px dashed var(--line); border-radius: 14px; padding: 13px 16px; background: color-mix(in srgb, var(--accent, #0E8A8C) 6%, transparent); }
.doc-types__teach b { font-size: 14px; color: var(--accent, #0E8A8C); }
.doc-types__teach span { font-size: 13px; color: var(--muted); }

/* --- doc types: 4 categorized columns --- */
.doc-types.doc-types { display: flex; flex-direction: column; align-items: stretch; gap: 26px; flex-wrap: nowrap; }
.dt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dt-card { display: flex; flex-direction: column; padding: 20px 18px; gap: 2px; border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.dt-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent, #0E8A8C) 35%, var(--line)); }
.dt-card__t { font-size: 14px; font-weight: 700; color: var(--ink); padding-bottom: 6px; }
.dt-list { list-style: none; margin: 0; padding: 0; }
.dt-list li { display: flex; align-items: center; gap: 8px; padding: 7.5px 0; font-size: 13.5px; font-weight: 500; line-height: 1.35; color: var(--muted); border-top: 1px solid color-mix(in srgb, var(--line) 55%, transparent); }
.dt-list li svg { flex: none; width: 13px; height: 13px; color: color-mix(in srgb, var(--accent, #0E8A8C) 65%, var(--muted)); }
.dt-more { margin-top: auto; padding-top: 10px; border-top: 1px solid color-mix(in srgb, var(--line) 55%, transparent); }
.dt-more summary { list-style: none; cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--accent, #0E8A8C); user-select: none; }
.dt-more summary::-webkit-details-marker { display: none; }
.dt-more summary:hover { text-decoration: underline; }
.dt-more__close { display: none; }
.dt-more[open] .dt-more__open { display: none; }
.dt-more[open] .dt-more__close { display: inline; }
.dt-more .dt-list li:first-child { border-top: 0; }
.dt-teach { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; padding: 30px 34px; border-radius: var(--r-card, 24px); border: 1px solid color-mix(in srgb, var(--accent, #0E8A8C) 42%, var(--line)); background: linear-gradient(135deg, color-mix(in srgb, var(--accent, #0E8A8C) 10%, var(--card)) 0%, color-mix(in srgb, var(--accent, #0E8A8C) 4%, var(--card)) 100%); }
.dt-teach b { font-size: 19px; font-weight: 700; color: var(--ink); }
.dt-teach span { font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 760px; }

/* --- features: 6 main + expandable rest --- */
.feat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feat { display: flex; flex-direction: column; gap: 12px; padding: 26px 24px; align-items: flex-start; }
.feat__ic { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--accent, #0E8A8C); background: color-mix(in srgb, var(--accent, #0E8A8C) 10%, transparent); }
.feat__ic svg { width: 20px; height: 20px; }
.feat b { font-size: 16.5px; line-height: 1.35; color: var(--ink); }
.feat .muted { font-size: 14px; line-height: 1.58; }
.feat-more { margin-top: 32px; display: flex; flex-direction: column; gap: 14px; }
.feat-more > b { font-size: 15px; font-weight: 600; color: var(--muted); }
.feat-expand summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; width: fit-content; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--accent, #0E8A8C); padding: 10px 20px; border: 1px solid color-mix(in srgb, var(--accent, #0E8A8C) 30%, var(--line)); border-radius: 999px; background: var(--card); transition: border-color .2s, background .2s; user-select: none; }
.feat-expand summary::-webkit-details-marker { display: none; }
.feat-expand summary:hover { border-color: var(--accent, #0E8A8C); }
.feat-expand summary svg { width: 14px; height: 14px; transition: transform .25s ease; }
.feat-expand[open] summary svg { transform: rotate(180deg); }
.feat-expand__close { display: none; }
.feat-expand[open] .feat-expand__open { display: none; }
.feat-expand[open] .feat-expand__close { display: inline; }
.feat-expand .feat-grid { margin-top: 20px; }

/* --- security: 3 grouped columns --- */
.sec-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sec-col { display: flex; flex-direction: column; gap: 10px; padding: 28px 26px; border: 1px solid var(--line); border-top: 3px solid color-mix(in srgb, var(--accent, #0E8A8C) 55%, var(--line)); border-radius: 18px; background: var(--card); }
.sec-col__t { font-size: 16px; font-weight: 700; color: var(--ink); }
.sec-col > .muted { font-size: 13.5px; line-height: 1.55; }
.sec-list { list-style: none; margin: 8px 0 0; padding: 12px 0 0; border-top: 1px solid color-mix(in srgb, var(--line) 55%, transparent); display: flex; flex-direction: column; gap: 10px; }
.sec-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; font-weight: 500; line-height: 1.45; color: var(--muted); }
.sec-list li svg { flex: none; width: 15px; height: 15px; margin-top: 1.5px; color: var(--accent, #0E8A8C); }

@media (max-width: 1020px) {
  .dt-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .sec-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .dt-grid, .feat-grid, .sec-cols { grid-template-columns: 1fr; }
  .feat { padding: 22px 20px; }
  .sec-col { padding: 24px 22px; }
}

/* ── pre-onboarding: balanced 3 + 2 ── */
section[aria-labelledby="preob-title"] .mods { grid-template-columns: repeat(6, 1fr); }
section[aria-labelledby="preob-title"] .mods > li { grid-column: span 2; }
section[aria-labelledby="preob-title"] .mods > li:nth-child(n+4) { grid-column: span 3; }

/* ── ortak çekirdek: 3×2 ── */
section[aria-labelledby="core-title"] .grid-auto { grid-template-columns: repeat(3, 1fr); }

/* ── AI bölümü: işleme / erişim grupları ── */
.ai-grp { display: flex; flex-direction: column; gap: 24px; }
section[aria-labelledby="ai-title"] .section-head + .ai-grp { margin-top: 24px; }
.ai-grp--sep { border-top: 1px solid var(--line); padding-top: 40px; margin-top: 8px; }
.ai-grp__lbl { display: flex; align-items: center; gap: 12px; margin: 0 0 -10px; font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.ai-grp__lbl::before { content: ""; width: 20px; height: 2px; border-radius: 2px; background: var(--accent, #0E8A8C); flex-shrink: 0; }
.ai-grp__lbl::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ── AI section-head: sağ metin başlıkla aynı ritimde ── */
section[aria-labelledby="ai-title"] .section-head { column-gap: 44px; }
section[aria-labelledby="ai-title"] .section-head > p { padding-top: 14px; }

/* ── story kartı: 5/7 oranı, sol metin dikey ortalı ── */
section[aria-labelledby="ai-title"] .story { align-items: center; }
section[aria-labelledby="ai-title"] .story__text { flex: 0 1 max(320px, calc(41.66% - 28px)); justify-content: center; }
section[aria-labelledby="ai-title"] .story__side { flex: 0 1 max(380px, calc(58.33% - 28px)); gap: 18px; }
section[aria-labelledby="ai-title"] .story__steps { gap: 12px; }
section[aria-labelledby="ai-title"] .story__steps li { padding: 16px 18px; gap: 14px; }

/* ── doküman kartı başlıklarında sayaç ── */
.dt-card__t { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.dt-count { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }

@media (max-width: 1020px) {
  section[aria-labelledby="preob-title"] .mods { grid-template-columns: repeat(2, 1fr); }
  section[aria-labelledby="preob-title"] .mods > li:nth-child(n+4) { grid-column: auto; }
  section[aria-labelledby="preob-title"] .mods > li { grid-column: auto; }
  section[aria-labelledby="preob-title"] .mods > li:nth-child(5) { grid-column: 1 / -1; }
  section[aria-labelledby="core-title"] .grid-auto { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  section[aria-labelledby="preob-title"] .mods { grid-template-columns: 1fr; }
  section[aria-labelledby="preob-title"] .mods > li:nth-child(n+4) { grid-column: auto; }
  section[aria-labelledby="preob-title"] .mods > li { grid-column: 1 / -1; }
  section[aria-labelledby="core-title"] .grid-auto { grid-template-columns: 1fr; }
}
