/* Sanal deneme tanıtım sayfaları (/uzerinde-dene ve alt sayfası; kombinle/seo/uzerinde_dene.py). seo.css'in
   değişkenleriyle: açık ve koyu tema oradan gelir. Örnek kartları ana sayfa bölümüyle aynı işaretleme (tryon-*). */

.ud { --ud-gap: clamp(36px, 5vw, 56px); max-width: 980px; margin: 0 auto; padding-bottom: 24px; }
.ud h2 { margin: 0 0 14px; font-family: var(--font-display); font-size: clamp(23px, 3.4vw, 30px); line-height: 1.18; font-weight: 650; }
.ud h3 { margin: 18px 0 8px; font-size: 16px; letter-spacing: -0.01em; }
.ud p { margin: 0 0 12px; color: var(--ink-2); line-height: 1.65; }
.ud a { text-underline-offset: 3px; }

.ud-hero { padding: 6px 0 4px; }
.ud-eyebrow { margin: 0 0 10px !important; color: var(--muted) !important; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.ud-hero h1 { margin: 0; font-family: var(--font-display); font-size: clamp(30px, 6vw, 48px); line-height: 1.08; font-weight: 650; text-wrap: balance; }
.ud-hero h1 em { font-style: italic; color: var(--accent); }
.ud-lede { max-width: 760px; margin: 16px 0 0 !important; font-size: clamp(16px, 1.6vw, 18px); }
.ud-get { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 22px 0 0; }
.ud-get-note { margin: 0 !important; color: var(--muted) !important; font-size: 14px; }
.ud-meta { margin: 16px 0 0 !important; color: var(--muted) !important; font-size: 13px; }

/* App Store ve Google Play rozetleri: resmî dosyalar, oran değişmez (seo.css'teki tryon-box kuralıyla aynı) */
.ud-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ud-badges .store-badge { display: inline-flex; flex: none; border-radius: 9px; line-height: 0; }
.ud-badges .store-badge img { display: block; width: auto; height: 40px; }
.ud-badges .store-badge img.gp-badge { height: calc(40px * 250 / 192); margin: calc(40px * -29 / 192) 0; }
.cb-ios .ud-badges .badge-play, .cb-android .ud-badges .badge-apple { display: none; }

.ud-tldr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: var(--ud-gap) 0 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.ud-tldr div { padding: 14px 16px; background: var(--surface); }
.ud-tldr dt { margin: 0 0 3px; color: var(--muted); font-size: 12px; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; }
.ud-tldr dd { margin: 0; color: var(--ink); font-size: 14.5px; line-height: 1.45; }

.ud-sec { margin-top: var(--ud-gap); scroll-margin-top: 76px; }

.ud-steps { list-style: none; display: grid; gap: 16px; margin: 0; padding: 0; counter-reset: none; }
.ud-steps li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; align-items: start; }
.ud-steps h3 { margin: 6px 0 4px; }
.ud-steps p { margin: 0; font-size: 15px; }
.ud-steps + p { margin-top: 16px !important; }
.ud-no { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); font: 600 16px/1 var(--font-display); }

.ud-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.ud-cols h3 { margin-top: 4px; }
.ud-list { margin: 0 0 8px; padding: 0; list-style: none; display: grid; gap: 8px; }
.ud-list li { position: relative; padding-left: 22px; color: var(--ink-2); line-height: 1.5; }
.ud-list li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.ud-yes li::before { background: var(--ok); }
.ud-no-list li::before { width: 9px; height: 2px; top: 0.72em; left: 3px; border-radius: 1px; background: var(--danger); }

.ud-tips { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ud-tips li { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.ud-tips strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: 15px; }

.ud-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.ud-table-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ud-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 14px; line-height: 1.45; }
.ud-table th, .ud-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--ink-2); }
.ud-table thead th { color: var(--ink); font-size: 13px; font-weight: 650; background: var(--surface-2); }
.ud-table thead th:nth-child(2) { color: var(--accent); }
.ud-table tbody th { color: var(--ink); font-weight: 600; white-space: nowrap; }
.ud-table tbody tr:last-child th, .ud-table tbody tr:last-child td { border-bottom: 0; }
.ud-table td:nth-child(2) { color: var(--ink); }

.ud-card { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; transition: border-color 0.2s, transform 0.2s; }
.ud-card:hover { border-color: var(--ink-2); transform: translateY(-1px); }
.ud-card strong { display: block; margin-bottom: 4px; font-family: var(--font-display); font-size: 20px; font-weight: 650; }
.ud-card span { color: var(--ink-2); font-size: 14.5px; }

.ud-faq { display: grid; gap: 8px; }
.ud-faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.ud-faq summary { padding: 14px 44px 14px 16px; position: relative; cursor: pointer; list-style: none; color: var(--ink); font-weight: 600; line-height: 1.4; }
.ud-faq summary::-webkit-details-marker { display: none; }
.ud-faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 20px; font-weight: 400; }
.ud-faq details[open] summary::after { content: "\2212"; }
.ud-faq details p { margin: 0 !important; padding: 0 16px 16px; }

.ud-related { margin-top: var(--ud-gap); }
.ud .chips-block h2 { margin: 0 0 10px; font-family: var(--font-text); font-size: 13px; font-weight: 650; line-height: 1.3; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.ud-about { margin-top: var(--ud-gap); padding: 18px 20px; border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--surface); }
.ud-about h2 { font-size: 19px; margin-bottom: 6px; }
.ud-about p { margin: 0 !important; font-size: 14.5px; }
.ud-final { margin-top: var(--ud-gap); padding: clamp(22px, 4vw, 34px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); text-align: center; }
.ud-final p { max-width: 520px; margin: 0 auto 16px !important; }
.ud-final .ud-badges { justify-content: center; }
.ud-fine { margin-top: 12px !important; color: var(--muted) !important; font-size: 13px; }

/* Örnek kartları (ana sayfa bölümüyle aynı işaretleme, api/landing.py `_tryon_card`): her görselin altında künye */
.ud-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; }
.ud-grid:has(> li:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ud .tryon-card { min-width: 0; }
.ud .tryon-figure { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.ud .tryon-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; background: var(--line); }
.ud .tryon-shot { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 5; background: var(--surface-2); }
.ud .tryon-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ud .tryon-tag { position: absolute; left: 8px; top: 8px; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: #1b1a17; font-size: 11.5px; font-weight: 600; line-height: 1.3; }
.ud .tryon-tag.is-after { background: #1b1a17; color: #fff; }
.ud .tryon-credit { padding: 8px 10px; color: var(--ink-2); font-size: 12.5px; line-height: 1.35; text-align: center; text-wrap: balance; }
.ud .tryon-info { padding: 12px 2px 0; }
.ud .tryon-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; margin: 0 0 6px; font-size: 15.5px; letter-spacing: -0.01em; }
.ud .tryon-total { color: var(--ink-2); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ud .tryon-pieces { list-style: none; display: grid; gap: 3px; margin: 0; padding: 0; }
.ud .tryon-pieces { gap: 6px; }
.ud .tryon-pieces li { display: flex; flex-direction: column; color: var(--ink-2); font-size: 13px; line-height: 1.4; }
.ud .tryon-store { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .ud-tldr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* dar ekranda örnekler yana kaydırılan şerit; sayfa yatay taşmaz */
  .ud-grid, .ud-grid:has(> li:nth-child(3):last-child) {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(78%, 320px); gap: 12px;
    margin-inline: -16px; padding: 0 16px 4px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none;
  }
  .ud-grid::-webkit-scrollbar { display: none; }
  .ud .tryon-card { scroll-snap-align: start; }
}
@media (max-width: 720px) {
  .ud-hero h1 { font-size: clamp(28px, 8.4vw, 38px); }
  .ud-cols, .ud-tips { grid-template-columns: minmax(0, 1fr); }
  .ud-tldr { grid-template-columns: minmax(0, 1fr); }
  /* karşılaştırma tablosu telefonda satır başına bir kart: başlık satırı gizli, her hücre sütun adıyla */
  .ud-table-wrap { overflow: visible; border: 0; background: none; }
  .ud-table { min-width: 0; }
  .ud-table thead { display: none; }
  .ud-table, .ud-table tbody, .ud-table tr, .ud-table th, .ud-table td { display: block; width: 100%; }
  .ud-table tr { margin-bottom: 10px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
  .ud-table tbody th { padding: 10px 14px; background: var(--surface-2); white-space: normal; }
  .ud-table td { padding: 8px 14px; }
  .ud-table td::before { content: attr(data-label); display: block; margin-bottom: 1px; color: var(--muted); font-size: 12px; font-weight: 600; }
  .ud-table td:nth-child(2)::before { color: var(--accent); }
  .ud-table tbody tr:last-child td { border-bottom: 1px solid var(--line); }
  .ud-table tbody tr td:last-child { border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { .ud-card { transition: none; } .ud-card:hover { transform: none; } }
