/* Layout QA (Nov 2026), loaded after style.css: same cool palette as the website, no beige/ochre,
   white input fields, labels with links read as one sentence. */
:root{--bg:#f3f5f8;--line:#d6dce5;--gold-soft:#edf1f7;--warn:#edf1f7;--warnline:#1b3a63}
@media (prefers-color-scheme:dark){:root{--bg:#0b1220;--line:#2a3850;--gold-soft:#14223a;--warn:#14223a;--warnline:#a9c1e4}}
.banner{background:var(--gold-soft);border-left-color:var(--band)}
textarea,input,select{background:var(--card)}
input[type=file]{padding:8px}
label.check input{flex:none}
label.check > span{min-width:0}
p,li{text-wrap:pretty}h1,h2,h3{text-wrap:balance}
main{padding-left:16px;padding-right:16px}
@media (max-width:600px){.card{padding:16px}.top nav a{margin-left:10px}}
.brand{color:#fff}
.sample-box{background:var(--card);border:1px solid var(--line);border-left:4px solid var(--gold);padding:12px 16px;margin:14px 0}
.sample-box p{margin:0 0 8px}.sample-box p:last-child{margin:0;display:flex;flex-wrap:wrap;gap:8px 18px;align-items:center}
.sample-box .sample-alt{font-size:14px}

/* trust signals next to the pay buttons + refund promise (24.11.2026) */
.trust-strip{list-style:none;margin:16px 0 4px;padding:12px 14px;display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px 18px;border:1px solid var(--line);background:var(--card);font-size:13.5px;color:var(--muted)}
.trust-strip li{margin:0;line-height:1.4}.trust-strip b{display:block;color:var(--ink);font-size:14px}
.trust-strip .trust-more{display:flex;align-items:center}.trust-strip .trust-more a{font-weight:600}
.pack-desc p{margin:0}.pack-desc .refund-line{margin-top:12px}
.refund-line{margin:0;padding:8px 10px;border-left:3px solid var(--gold);background:var(--gold-soft);font-size:14px;line-height:1.45}
.refund-line b{display:block;color:var(--ink)}.refund-line .small{display:block;margin-top:2px}
/* language menu in the header (keeps the chosen language; switching is an explicit choice) */
.top nav{display:flex;align-items:center;flex-wrap:wrap;gap:4px 0}
.lang-menu{position:relative;margin-left:14px}
.lang-menu summary{cursor:pointer;list-style:none;border:1px solid var(--band-line);border-radius:2px;padding:1px 8px;color:var(--band-ink);font-size:13px;letter-spacing:.04em}
.lang-menu summary::-webkit-details-marker{display:none}
.lang-menu ul{position:absolute;right:0;top:calc(100% + 6px);z-index:20;margin:0;padding:6px 0;list-style:none;background:#fff;border:1px solid var(--line);box-shadow:0 6px 18px rgba(14,34,64,.15);min-width:150px}
.lang-menu li a{display:block;margin:0!important;padding:6px 14px;color:var(--ink,#0f1b2d)!important}
.lang-menu li a[aria-current]{font-weight:600}
[dir=rtl] .top nav a{margin-left:0;margin-right:14px}
[dir=rtl] .lang-menu{margin-left:0;margin-right:14px}
[dir=rtl] .lang-menu ul{right:auto;left:0}
footer .small{font-size:12px}
@media (max-width:600px){[dir=rtl] .top nav a{margin-right:10px}}

/* Phones: the header wraps and the language button can sit at the left edge; a menu anchored to the button's
   right edge then runs off the screen. Anchor the open menu to the header instead (full width, both directions). */
@media (max-width:600px){.top{position:relative}.lang-menu{position:static}.lang-menu ul,[dir=rtl] .lang-menu ul{left:16px;right:16px;top:100%;min-width:0}}
/* Error pages (404, 429 …): same frame as every other page */
.err-page{text-align:start}.err-page h1{margin-top:0}
/* Report tables on phones: long words and links wrap; a table that is still too wide scrolls inside the card
   instead of making the whole page wider than the screen */
.report td,.report th{overflow-wrap:break-word}
@media (max-width:600px){.report table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch;font-size:13px}
.report td,.report th{padding:6px 5px}}
/* "What a chatbot can't give you": below the packs on /buy */
.edge-box{margin:24px 0 8px;padding:18px 20px;background:var(--band);color:#eef2f8;border-top:3px double #c9a45a}
.edge-box h2{margin:0 0 12px;font:600 1.2rem/1.3 var(--f-display);color:#fff}
.edge-box ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px 22px;font-size:13.5px;line-height:1.45;color:#c4cddb}
.edge-box ul:has(> li:nth-child(4):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width:560px){.edge-box ul:has(> li:nth-child(4):last-child){grid-template-columns:minmax(0,1fr)}}
.edge-box li{margin:0;padding-inline-start:10px;border-inline-start:2px solid #c9a45a}
.edge-box b{display:block;color:#fff;font-size:14px}
.edge-box p{margin:12px 0 0}.edge-box a{color:#fff;font-weight:600}
/* preselected single Auto-Scan at the top of /buy (?pack=single, links from the guides) */
.pack-pre{display:block;margin:16px 0 20px;border:1px solid var(--line);border-top:3px solid #c9a45a;border-inline-start:4px solid #c9a45a}
.pack-pre .pack-name{font:400 1.35rem/1.25 var(--f-display);min-height:0}
.pack-pre .buy-contact{margin:14px 0 4px}
.pack-pre .pack-action button{width:100%;min-height:48px;font-size:1rem}
.pack-pre .pre-more{margin:10px 0 0}.pack-pre .pre-more a{font-weight:600}
@media (min-width:700px){.pack-pre .pack-action button{width:auto;min-width:260px}}

/* discreet way back to the marketing site (app.commoscan.com is a separate domain) */
.back-site{margin:0 0 10px;font-size:13px;letter-spacing:.01em}
.back-site a{color:var(--muted,#5b6577);text-decoration:none;border-bottom:1px solid transparent}
.back-site a::before{content:"\2190\00a0";color:#a8843a}
[dir=rtl] .back-site a::before{content:"\2192\00a0"}
.back-site a:hover{color:var(--ink,#0f1b2d);border-bottom-color:#c9a45a}
/* App header on phones (28.11.2026): links move into a burger menu so the header stays one row */
.app-menu{display:none;position:static;margin-left:12px}
.app-menu summary{list-style:none;cursor:pointer;display:grid;place-items:center;width:40px;height:40px;border:1px solid var(--band-line)}
.app-menu summary::-webkit-details-marker{display:none}
.app-menu .burger,.app-menu .burger::before,.app-menu .burger::after{display:block;width:18px;height:2px;background:var(--band-ink);position:relative;content:""}
.app-menu .burger::before{position:absolute;top:-6px}.app-menu .burger::after{position:absolute;top:6px}
.app-menu-panel{position:absolute;left:16px;right:16px;top:100%;z-index:30;display:grid;padding:6px 0;background:#fff;border:1px solid var(--line);box-shadow:0 6px 18px rgba(14,34,64,.15)}
.app-menu-panel a{display:block;margin:0!important;padding:12px 16px;color:var(--ink,#0f1b2d)!important}
.nav-links{display:contents}
[dir=rtl] .app-menu{margin-left:0;margin-right:12px}
@media (max-width:700px){
  .top{position:relative;flex-wrap:nowrap}
  .nav-links{display:none}
  .app-menu{display:block}
  .top nav{flex-wrap:nowrap}
  .top .pill{font-size:13px;white-space:nowrap}
}
/* Buy page (28.11.2026): products first, guides as their own group, fine print after the offer */
.buy-lead{margin:4px 0 16px;max-width:70ch}
.packs-head{font:400 1.35rem/1.25 var(--f-display);margin:28px 0 12px}
.packs-head:first-of-type{margin-top:8px}
.packs-guides .pack{border-top:1px solid var(--line)}
.packs-guides .pack-name{font-size:1.02rem}
.packs-guides .pack-price{font-size:1.5rem}
.buy-fine{margin-top:24px;padding-top:16px;border-top:1px solid var(--line)}
.buy-fine .msg{margin-top:0}

#packs{grid-template-columns:repeat(2,minmax(0,1fr))}
#packs .pack-deal{grid-column:1/-1}
@media (max-width:700px){#packs{grid-template-columns:minmax(0,1fr)}}
.pack-price .cur{font:inherit;color:inherit;letter-spacing:0}
.pack-name{min-height:0}
#packs .pack-deal .pack-action a.button{display:inline-block;width:auto;min-width:260px}
@media (max-width:700px){#packs .pack-deal .pack-action a.button{display:block;width:100%}}

/* Spacing and alignment pass (28.11.2026) */
/* Pre-check: each tick box keeps its text beside it (long answers wrap under the text, not under the box);
   the question of a tick group is a bold label like every other question, the answers sit in one framed box */
.pc-form label.check{display:flex;gap:8px;align-items:flex-start;font-weight:400}
label.check input{margin:0;margin-top:calc((1lh - 1em)/2);width:1em;height:1em}
.pc-set{border:0;padding:0;margin:12px 0;min-width:0}
.pc-set legend{float:left;width:100%;padding:0;margin:0 0 4px;font-weight:600}
.pc-set legend .muted{font-weight:400;display:block;margin-top:2px}
.pc-set .pc-boxes{clear:both;border:1px solid var(--line);background:var(--card);padding:8px 12px}
@media (max-width:600px){.pc-form button.primary{width:100%;min-height:48px}}
/* Buy page: room above the group headings; registry guides two per row, a single or last odd guide full width
   (a lone narrow card left half the row empty) */
.packs-head,.packs-head:first-of-type{margin-top:28px}
#packs-reports{margin-top:24px}
.packs.packs-guides{grid-template-columns:repeat(2,minmax(0,1fr))}
.packs.packs-guides>.pack:last-child:nth-child(odd){grid-column:1/-1}
@media (max-width:700px){.packs.packs-guides{grid-template-columns:minmax(0,1fr)}}
/* pre-check: country type-ahead and locked warning signs */
.pc-form [hidden]{display:none!important}
.pc-origin{margin:12px 0}.pc-origin>label{display:block;font-weight:600}
.pc-combo{position:relative;margin-top:4px}
.pc-combo input{display:block;width:100%;font-size:16px;font-weight:600;padding:10px 38px 10px 12px;border:1px solid var(--line);background:var(--card);color:inherit;border-radius:0}
[dir=rtl] .pc-combo input{padding:10px 12px 10px 38px}
.pc-combo input:focus{outline:2px solid var(--accent);outline-offset:-1px;border-color:var(--accent)}
.pc-combo.pc-ok::after{content:"";position:absolute;inset-inline-end:14px;top:50%;width:6px;height:11px;margin-top:-8px;border:solid var(--low);border-width:0 2px 2px 0;transform:rotate(45deg)}
.pc-lb{position:absolute;z-index:20;inset-inline:0;top:100%;margin:2px 0 0;padding:4px 0;list-style:none;background:var(--card);border:1px solid var(--line);box-shadow:0 8px 24px rgba(15,30,60,.14);max-height:min(336px,45vh);overflow-y:auto}
.pc-lb li{padding:10px 12px;cursor:pointer;line-height:1.3}
.pc-lb li[aria-selected=true],.pc-lb li:hover{background:rgba(29,78,137,.12)}
.pc-lb li.pc-lb-other{color:var(--muted);font-style:italic}
.pc-hint{color:var(--critical);margin:6px 0 0}
.pc-combo input[aria-invalid=true]{border-color:var(--critical)}
@media (max-width:600px){.pc-lb li{padding:13px 12px}}
.pc-lock{background:var(--card);user-select:none;-webkit-user-select:none}
.pc-lock h3{font-family:var(--f-head,inherit);font-size:17px;font-weight:600;margin:4px 0 2px;color:var(--ink)}
.pc-lock.pc-l-critical{border-left-color:var(--critical)}.pc-lock.pc-l-high{border-left-color:var(--high)}.pc-lock.pc-l-medium{border-left-color:var(--medium)}
[dir=rtl] .pc-sig{border-left-width:1px;border-right-width:4px}
[dir=rtl] .pc-lock.pc-l-critical{border-right-color:var(--critical)}[dir=rtl] .pc-lock.pc-l-high{border-right-color:var(--high)}[dir=rtl] .pc-lock.pc-l-medium{border-right-color:var(--medium)}
[dir=rtl] .pc-open{border-right-color:var(--critical)}
.pc-blur{white-space:normal;filter:blur(5px);color:var(--muted);margin:4px 0 2px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pc-blur.pc-blur-t{font-weight:700;font-size:16px;color:var(--ink);opacity:.55;margin-top:6px;-webkit-line-clamp:1}

/* /buy: products and prices visible on the first screen, also on phones (audit 28.11.2026) */
.buy-overview{list-style:none;margin:8px 0 18px;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.buy-overview a{display:flex;flex-direction:column;gap:2px;height:100%;padding:10px 12px;border:1px solid var(--line);border-top:2px solid var(--gold,#b08d3c);background:var(--card);text-decoration:none;color:inherit}
.buy-overview .ov-name{font-weight:600;font-size:.95em}
.buy-overview .ov-price{font-size:.9em;opacity:.85}
@media (max-width:420px){.buy-overview a{padding:8px}.buy-overview .ov-name{font-size:.85em}.buy-overview .ov-price{font-size:.8em}}
/* /buy hero (30.11.2026): name and price on one line, short text, full-width button on the first phone screen */
.buy-hero .hero-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}
.buy-hero .hero-head .pack-name{margin:0}
.buy-hero .hero-desc{margin:8px 0 14px}
.buy-hero .pack-note{margin:10px 0 0}
.buy-hero .refund-line{margin:12px 0 0}
.buy-hero .hero-fine{margin:10px 0 0}
@media (max-width:600px){
  .buy-hero{padding:14px 16px;margin-top:10px}
  .buy-hero .pack-price{font-size:1.75rem}
  section.card:has(.buy-hero) > h1{font-size:1.45rem;margin-bottom:.25rem}
  .buy-hero .refund-line .muted{display:block;margin-top:2px}
}
/* upload-first start page (01.12.2026) */
.scan-simple h1{margin-bottom:6px}
.scan-lead{font-size:17px;margin:0 0 18px}
.scan-drop{display:flex;flex-wrap:wrap;align-items:center;gap:10px;border:2px dashed #c9a45a;border-radius:6px;padding:18px 16px;margin:0 0 12px;cursor:pointer;background:#fbf8f1}
.scan-drop input[type=file]{position:absolute;width:1px;height:1px;opacity:0}
.scan-drop-btn{display:inline-block;background:var(--band,#0e2240);color:#fff;padding:10px 16px;border-radius:4px;font-weight:600}
.scan-simple textarea{width:100%;margin:0 0 14px}
.scan-btn{width:100%;font-size:18px;padding:14px}
.scan-left{margin:8px 0 0;text-align:center}
.scan-fine{margin:10px 0 0;text-align:center}
.scan-trust{margin:12px 0 0;text-align:center;color:var(--navy,#0f1f3d);font-weight:600}
.scan-more{margin:4px 0 14px;text-align:center}
.scan-account summary{cursor:pointer;font-weight:600}
.scan-wait{text-align:center}
.scan-spinner{width:38px;height:38px;margin:18px auto;border:4px solid #e3e6ec;border-top-color:#c9a45a;border-radius:50%;animation:scanspin 1s linear infinite}
@keyframes scanspin{to{transform:rotate(360deg)}}
.actions .en-link{align-self:center;margin-inline-start:6px}
/* installable app: quiet install card below the scan form (never covers the button) (pwa.js), notch-safe header when installed */
.app-hint{position:relative;margin:20px 0;background:var(--band);color:var(--band-ink);border:1px solid var(--band-line);
  border-top:2px solid #c9a45a;border-radius:8px;padding:14px 44px 14px 16px;font-size:.92rem;line-height:1.45}
[dir=rtl] .app-hint{padding:14px 16px 14px 44px}
.app-hint[hidden],.app-hint [hidden]{display:none}
.app-hint-row{display:flex;align-items:center;gap:14px}
.app-hint-icon{width:40px;height:40px;border-radius:9px;flex:none}
.app-hint b{display:block;font-weight:600;color:#fff}
.app-hint p{margin:2px 0 0;color:var(--band-muted)}
.app-hint ol{margin:8px 0 0;padding-inline-start:20px;color:var(--band-ink)}
.app-hint ol li{margin:3px 0}
.app-hint .share-ic{width:15px;height:17px;vertical-align:-3px;margin:0 2px;color:#c9a45a}
.app-hint-install{margin-inline-start:auto;flex:none;font:inherit;font-weight:600;background:#c9a45a;color:#0e2240;border:0;border-radius:6px;padding:9px 16px;cursor:pointer}
.app-hint-x{position:absolute;top:6px;right:6px;width:34px;height:34px;border:0;background:none;color:var(--band-muted);font-size:22px;line-height:1;cursor:pointer;border-radius:6px}
[dir=rtl] .app-hint-x{right:auto;left:6px}
.app-hint-x:hover,.app-hint-x:focus-visible{color:#fff}
@media (display-mode:standalone){.top{padding-top:max(12px,env(safe-area-inset-top))}
  .top,main,footer{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}}
/* Compact /buy (02.12.2026): three USP lines in the hero, everything else under "More options and details" */
.hero-usps{list-style:none;margin:10px 0 12px;padding:0;display:grid;gap:6px;line-height:1.4}
.hero-usps li{margin:0;padding-inline-start:10px;border-inline-start:2px solid #c9a45a}
.buy-more{margin:16px 0 8px}
.buy-more>summary{cursor:pointer;font-weight:600;padding:10px 0;color:var(--ink)}
.buy-mor{margin:8px 0 0}
