/* Customer pages use web.css. Only compact layout and app states need extras. */
.dt-profile { padding: 18px 16px 16px; }
.dt-profile::after { height: 64px; }
.dt-profile .avatar { width: 64px; height: 64px; margin: 8px auto; }
.dt-profile .topic-emoji { font-size: 2rem; }
.dt-profile h1 { font-size: clamp(1.85rem, 5vw, 2.5rem); text-wrap: balance; }
.dt-profile .lead { font-size: 1rem; }
.dt-profile .dt-choices { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; max-width: 380px; margin-inline: auto; }
.dt-choices .btn { min-height: 50px; padding: 10px 14px; font-size: 1rem; }
.dt-profile .dt-small a, .dt-back-link a { color: var(--ink); text-underline-offset: .2em; }
.dt-back-link { max-width: 680px; margin: 12px auto; font-size: .9rem; }
#dt-app { max-width: 680px; margin-inline: auto; }
.dt-details, .dt-imei-guide { max-width: 680px; margin: 18px auto; padding: 14px; background: var(--card); border-radius: 16px; }
.dt-details > summary, .dt-imei-guide > summary { cursor: pointer; padding-block: 8px; font-weight: 700; }
.dt-details[open] > summary, .dt-imei-guide[open] > summary { margin-bottom: 12px; }
.dt-details > p + p { margin-top: 10px; }
.dt-guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-block: 16px; }
.dt-guide-grid figure { margin: 0; min-width: 0; }
.dt-guide-grid img { display: block; width: 100%; height: auto; border-radius: 12px; }
.dt-guide-grid figcaption { font-size: .9rem; margin-top: 8px; }
.dt-guide-grid figcaption b { display: block; }
.dt-login { display: grid; gap: 14px; }
.dt-login > p { margin: 0; }
#dt-app .dt-card { padding: 18px; }
#dt-app .dt-form { gap: 16px; }
#dt-app .dt-form label, #dt-app .dt-form legend { color: var(--ink); }
#dt-app .dt-hint { color: var(--muted); line-height: 1.7; }
#dt-app .dt-form fieldset { min-width: 0; }
#dt-app .dt-identifiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
#dt-app .dt-identifiers > :last-child { grid-column: 1 / -1; }
#dt-app .dt-help summary { color: var(--ink); padding-block: 8px; }
#dt-app .dt-help[open] > summary { margin-bottom: 10px; }
#dt-app .dt-note { border-inline-start-color: var(--line); }
#dt-app .dt-warn { border-inline-start-color: var(--brand); }
#dt-app .dt-bad { border-inline-start-color: var(--bad); }
#dt-app .dt-ok { border-inline-start-color: var(--good); }
#dt-app .dt-steps li.now { color: var(--navy); }
#dt-app .btn:disabled { opacity: .6; cursor: wait; }
#dt-app .dt-card, #dt-app .dt-row, #dt-app .dt-declare { overflow-wrap: anywhere; min-width: 0; }
#dt-app input, #dt-app textarea { caret-color: var(--brand); }
.dt-details :focus-visible, .dt-imei-guide :focus-visible, #dt-app :focus-visible, .dt-choices :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (max-width: 560px) {
  .dt-guide-grid, #dt-app .dt-identifiers { grid-template-columns: 1fr; }
  #dt-app .dt-card { padding: 14px; }
  .dt-guide-grid img { max-height: 210px; object-fit: contain; }
}

/* ===== Device Trust service layout (one column, no chat chrome) ===== */
body.dt-bare { background: var(--bar); color: var(--ink); }
@media (prefers-color-scheme: dark) { body.dt-bare { background: var(--wall); } }
.dt-bare a { text-underline-offset: .2em; }
.dt-bare h1, .dt-bare h2 { font-family: var(--font); font-weight: 800; letter-spacing: -.01em; }
.dt-code { display: inline-block; direction: ltr; unicode-bidi: isolate; font-weight: 700; }

/* Header */
.dt-top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bar) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { .dt-top { background: color-mix(in srgb, var(--wall) 88%, transparent); } }
.dt-top-in { max-width: 1080px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dt-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 800; white-space: nowrap; }
.dt-brand img { height: 26px; width: auto; }
.dt-brand span { padding-inline-start: 8px; border-inline-start: 1px solid var(--line); font-size: .95rem; }
.dt-nav { display: flex; align-items: center; gap: 4px; }
.dt-nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem; white-space: nowrap; }
.dt-nav a:hover, .dt-nav a[aria-current="page"] { color: var(--ink); background: var(--card); }
.dt-nav .dt-nav-cta { background: var(--brand); color: var(--navy); }
.dt-nav .dt-nav-cta:hover, .dt-nav .dt-nav-cta[aria-current="page"] { background: var(--brand); color: var(--navy); filter: brightness(1.05); }
@media (max-width: 640px) {
  .dt-nav a:not(.dt-nav-cta):not([href="/my-reports"]) { display: none; }
  .dt-brand span { display: none; }
}

/* Page frame */
.dt-bare-main { max-width: 640px; margin: 0 auto; padding: 24px 16px 40px; display: grid; gap: 20px; }
.dt-bare-main.dt-wide { max-width: 1080px; gap: 40px; padding-top: 32px; }
.dt-bare-main > * { margin-block: 0; }
.dt-bare-main .dt-details, .dt-bare-main .dt-imei-guide, .dt-bare-main #dt-app { max-width: none; margin: 0; }
.dt-bare-main section > h2 { font-size: clamp(1.3rem, 3.4vw, 1.7rem); margin-bottom: 16px; }

/* Landing: one question, one box, and a phone that shows where the number comes from */
.dt-hero2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.dt-hero-main { display: grid; gap: 14px; }
.dt-hero2 h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.15; }
.dt-hero-lead { font-size: 1.15rem; line-height: 1.7; color: var(--muted); max-width: 40ch; }
.dt-check-card { display: grid; gap: 10px; margin-top: 8px; }
.dt-check-form { display: flex; gap: 8px; padding: 6px; border-radius: 18px; background: var(--card); border: 1.5px solid var(--line); box-shadow: var(--lift); }
.dt-check-form:focus-within { border-color: var(--brand); }
.dt-check-form input { flex: 1; min-width: 0; min-height: 54px; padding: 10px 14px; border: 0; background: transparent; color: var(--ink); font-size: 1.2rem; letter-spacing: .04em; outline: none; }
.dt-check-form input::placeholder { letter-spacing: 0; font-size: 1rem; }
.dt-check-form input:placeholder-shown { direction: rtl; text-align: right; }
.dt-check-form .btn { min-height: 54px; padding-inline: 28px; border-radius: 14px; font-size: 1.1rem; box-shadow: none; }
.dt-check-help { font-size: .9rem; color: var(--muted); }
.dt-limits { display: none; font-size: .85rem; color: var(--muted); }
.dt-check-card:has(#dt-check-result:not(:empty)) .dt-limits { display: block; }
.dt-free { font-size: .9rem; color: var(--muted); }

.dt-demo { margin: 0; display: grid; justify-items: center; gap: 14px; }
.dt-demo figcaption { text-align: center; color: var(--muted); line-height: 1.7; font-size: .98rem; }
.dt-demo figcaption .dt-code { color: var(--ink); }
.dt-phone { position: relative; width: 196px; height: 352px; padding: 9px; border-radius: 34px; background: #0a0d13; box-shadow: 0 0 0 2px #2a3240, var(--lift); }
.dt-phone::before { content: ""; position: absolute; top: 15px; left: 50%; width: 64px; height: 16px; margin-left: -32px; border-radius: 10px; background: #000; z-index: 2; }
.dt-phone-screen { position: relative; height: 100%; border-radius: 26px; background: linear-gradient(180deg, #161d29, #0d1219); padding: 54px 18px 20px; display: flex; flex-direction: column; align-items: center; gap: 18px; overflow: hidden; direction: ltr; }
.dt-phone-dial { height: 38px; display: flex; gap: 6px; color: #fff; font: 700 30px/38px "Segoe UI", system-ui, sans-serif; }
.dt-phone-dial span { opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease; }
.dt-phone-pad { display: grid; grid-template-columns: repeat(3, 34px); gap: 12px 18px; margin-top: auto; }
.dt-phone-pad i { width: 34px; height: 34px; border-radius: 50%; background: #232c3a; transition: background .15s ease, transform .15s ease; }
.dt-phone-imei { position: absolute; left: 12px; right: 12px; top: 112px; padding: 14px 10px; border-radius: 16px; background: #fff; color: #111b21; text-align: center; display: grid; gap: 4px; opacity: 0; transform: scale(.92); transition: opacity .25s ease, transform .25s ease; box-shadow: 0 12px 30px rgba(0, 0, 0, .4); }
.dt-phone-imei small { color: #5f6e78; font-weight: 700; letter-spacing: .1em; font-size: .72rem; }
.dt-phone-imei b { font: 700 17px/1.3 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .02em; }
/* data-step 1..5 types * # 0 6 #, 6..7 shows the number, 8 clears */
.dt-demo[data-step="1"] .dt-phone-dial span:nth-child(-n+1),
.dt-demo[data-step="2"] .dt-phone-dial span:nth-child(-n+2),
.dt-demo[data-step="3"] .dt-phone-dial span:nth-child(-n+3),
.dt-demo[data-step="4"] .dt-phone-dial span:nth-child(-n+4),
.dt-demo[data-step="5"] .dt-phone-dial span, .dt-demo[data-step="6"] .dt-phone-dial span, .dt-demo[data-step="7"] .dt-phone-dial span,
.dt-demo-still .dt-phone-dial span { opacity: 1; transform: none; }
.dt-demo[data-step="1"] .dt-phone-pad i:nth-child(10),
.dt-demo[data-step="2"] .dt-phone-pad i:nth-child(12),
.dt-demo[data-step="3"] .dt-phone-pad i:nth-child(11),
.dt-demo[data-step="4"] .dt-phone-pad i:nth-child(6),
.dt-demo[data-step="5"] .dt-phone-pad i:nth-child(12) { background: var(--brand); transform: scale(.9); }
.dt-demo[data-step="6"] .dt-phone-imei, .dt-demo[data-step="7"] .dt-phone-imei, .dt-demo-still .dt-phone-imei { opacity: 1; transform: none; }

/* Two doors, no icons: the words do the work */
.dt-doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dt-door { display: grid; gap: 6px; padding: 22px 24px; border-radius: 18px; background: var(--card); border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.dt-door b { font-size: 1.2rem; }
.dt-door span { color: var(--muted); }
.dt-door::after { content: "←"; font-weight: 800; color: var(--brand); margin-top: 4px; }
.dt-door:hover { border-color: var(--brand); transform: translateY(-2px); }
.dt-door-main { background: var(--brand); border-color: var(--brand); color: var(--navy); }
.dt-door-main span, .dt-door-main::after { color: color-mix(in srgb, var(--navy) 75%, transparent); }
.dt-door-main:hover { border-color: var(--brand); filter: brightness(1.04); }
.dt-shop-link { text-align: center; color: var(--muted); font-size: .92rem; line-height: 1.8; }
.dt-shop-link a { color: var(--ink); font-weight: 700; }
#dt-shop { margin-top: -16px; }
#dt-shop:not([open]) { display: none; }
#dt-shop:target, #dt-shop[open] { display: block; }

@media (max-width: 860px) {
  .dt-hero2 { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .dt-hero2 h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .dt-doors { grid-template-columns: minmax(0, 1fr); }
  .dt-door { padding: 18px 20px; }
  .dt-phone { width: 160px; height: 290px; border-radius: 30px; }
  .dt-phone-screen { padding: 44px 14px 16px; gap: 12px; border-radius: 23px; }
  .dt-phone-dial { font-size: 26px; }
  .dt-phone-pad { grid-template-columns: repeat(3, 26px); gap: 9px 14px; }
  .dt-phone-pad i { width: 26px; height: 26px; }
  .dt-phone-imei { top: 92px; left: 8px; right: 8px; }
  .dt-phone-imei b { font-size: 14px; }
}
@media (max-width: 420px) { .dt-check-form .btn { padding-inline: 18px; } }
@media (prefers-reduced-motion: reduce) { .dt-door, .dt-door:hover { transition: none; transform: none; } }

/* Expandable blocks (IMEI help, shop tools, FAQ) */
.dt-details, .dt-imei-guide { padding: 0; border-radius: 18px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.dt-details > summary, .dt-imei-guide > summary, .dt-faq summary { list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dt-details > summary::-webkit-details-marker, .dt-imei-guide > summary::-webkit-details-marker, .dt-faq summary::-webkit-details-marker { display: none; }
.dt-details > summary::after, .dt-imei-guide > summary::after, .dt-faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--muted); }
.dt-details[open] > summary::after, .dt-imei-guide[open] > summary::after, .dt-faq details[open] summary::after { content: "\2212"; }
.dt-details[open] > summary, .dt-imei-guide[open] > summary { margin: 0; border-bottom: 1px solid var(--line); }
.dt-details > :not(summary), .dt-imei-guide > :not(summary):not(script) { margin: 14px 20px; }
.dt-imei-guide > p:first-of-type { line-height: 1.8; }
.dt-dial { width: 100%; }
.dt-ios-only { display: none; }
.ios .dt-ios-only { display: grid; gap: 8px; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--brand) 9%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 40%, var(--line)); }
.ios .dt-not-ios { display: none; }
.dt-ios-steps { margin: 0; padding-inline-start: 22px; display: grid; gap: 6px; }
.dt-ios-steps small { color: var(--muted); }
.dt-guide-grid { gap: 14px; }
.dt-guide-grid img { background: var(--bar); }
@media (max-width: 560px) {
  .dt-guide-grid figure { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; align-items: center; }
  .dt-guide-grid img { max-width: 88px; margin: 0; }
  .dt-guide-grid figcaption { margin-top: 0; }
}

/* Form pages */
.dt-hero { display: grid; gap: 10px; padding-top: 4px; }
.dt-hero h1 { font-size: clamp(1.6rem, 5.4vw, 2.1rem); line-height: 1.25; }
.dt-hero .dt-hero-lead { margin-top: 0; }
.dt-mini-steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; counter-reset: dt-step; }
.dt-mini-steps li { counter-increment: dt-step; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: .88rem; font-weight: 600; line-height: 1.4; }
.dt-mini-steps li::before { content: counter(dt-step); flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand); font-weight: 800; font-size: .8rem; }
@media (max-width: 560px) { .dt-mini-steps { grid-template-columns: minmax(0, 1fr); } }
.dt-bare #dt-app .card, .dt-bare #dt-app .bubble { box-shadow: none; }
.dt-bare .notice { max-width: none; margin: 0; }

/* Footer */
.dt-foot { max-width: 1080px; margin: 0 auto; padding: 24px 16px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; line-height: 1.8; text-align: center; display: grid; gap: 6px; }
.dt-foot a { color: inherit; }

.dt-bare :focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .dt-path, .dt-path:hover { transition: none; transform: none; } }
