/* xiko-security additions on top of xiko.uk's site.css. Same layer and tokens, so the theme, light/dark and
   type all come from site.css; this file only adds the pieces xiko.uk does not have. */
@layer site {
/* ---------- brand: the face mark and the name ---------- */
.brand { width: auto; gap: 10px; color: var(--t1); font-size: 17px; font-weight: 500; letter-spacing: -.03em; white-space: nowrap; }
.brand .mark { width: 38px; height: auto; flex: none; transition: transform .6s var(--ease); }
.brand:hover .mark { transform: rotate(-8deg); }
.brand-foot { height: auto; margin-left: 0; font-size: 19px; }
.brand-foot .mark { width: 44px; }
.foot-blurb { margin-top: 16px; }
.foot address a { color: var(--t1); }
@media (max-width: 1100px) and (min-width: 961px) { .brand-name { display: none; } }

/* ---------- legal pages: logo, short nav, theme switch ---------- */
.legal-bar .legal-home { width: 40px; height: auto; }
.legal-bar .legal-home .mark { width: 38px; height: auto; }
.legal-bar .theme-btn { flex: none; width: 36px; height: 36px; }
.legal-bar .theme-btn svg { width: 16px; height: 16px; }
.legal-doc h3 { font-size: 17px; letter-spacing: -.01em; margin: 24px 0 8px; }
.legal-doc .lead-p { color: var(--t1); font-size: 18px; }
.legal-doc a { color: var(--t1); text-decoration: underline; text-underline-offset: .2em; text-decoration-color: var(--line-3); }
.legal-doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 0 18px; }
.legal-doc th, .legal-doc td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--t2); }
.legal-doc th { color: var(--t1); font-weight: 500; }
.legal-doc ol { list-style: decimal; padding-left: 22px; margin: 0 0 14px; }
.legal-doc .legal-contact { margin-top: 32px; padding: 20px 22px; border: 1px solid var(--glass-line); border-radius: 16px; background: var(--glass); }
.legal-doc .legal-contact h2 { margin-top: 0; }

/* ---------- hero: copy on the left, the ASCII globe on the right (drawn like xiko.uk's dagger) ---------- */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 80px); align-items: center; width: 100%; }
.hero h1 { max-width: 16ch; }
.scan-frame { position: relative; margin: 0; display: grid; gap: 14px; padding: 18px 18px 16px; border-radius: 24px; border: 1px solid var(--glass-line); background: var(--glass); box-shadow: inset 0 1px 0 var(--glass-hi), 0 40px 80px -40px var(--shadow); backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6); }
.scan-top { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 500; color: var(--t3); }
.scan-top b { color: var(--t1); font-weight: 500; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.scan-globe { margin: 0 auto; font: 500 clamp(8px, .95vw, 13.5px)/1.18 var(--mono); white-space: pre; color: var(--t1); text-shadow: 0 0 22px var(--dglow); user-select: none; cursor: grab; touch-action: pan-y; transition: text-shadow .4s var(--ease); min-height: 32em; }
.scan-globe:active { cursor: grabbing; }
.scan-globe.is-hit { text-shadow: 0 0 26px var(--dglow), 0 0 2px var(--t1); }
.scan-log { display: grid; gap: 6px; min-height: 7.4em; }
.scan-log li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--glass-line); font-size: 13px; color: var(--t2); opacity: 0; transform: translateY(-6px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.scan-log li.in { opacity: 1; transform: none; }
.scan-log time { font: 500 11.5px/1 var(--mono); color: var(--t3); }
.scan-log span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scan-log b { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--t3); }
.scan-log li.is-flag { border-color: var(--t3); color: var(--t1); background: var(--s2); }
.scan-log li.is-flag b { color: var(--t1); }

/* ---------- cards, tiles and photos ---------- */
.cards { display: grid; gap: 18px; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 6px; border-radius: 12px; border: 1px solid var(--glass-line); background: var(--s2); color: var(--t1); }
.aside { margin-top: clamp(32px, 5vh, 56px); }
.scene.tight { padding-top: clamp(24px, 4vh, 48px); padding-bottom: clamp(24px, 4vh, 48px); }
.photo { position: relative; margin: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--glass-line); background: var(--s2); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.photo.tall { aspect-ratio: 4 / 5; }
.photo.banner { aspect-ratio: 21 / 9; margin-bottom: clamp(32px, 5vh, 56px); }
/* captions over photos stay dark in both themes so their light text always reads */
.photo-note { background: rgba(12, 12, 12, .62); border: 1px solid rgba(255, 255, 255, .12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); color: #fafafa; backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); }
.photo-note { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 10px; width: fit-content; max-width: calc(100% - 28px); padding: 12px 16px; border-radius: 14px; font-size: 16px; font-weight: 500; letter-spacing: -.02em; line-height: 1.35; }

/* ---------- before / now (editorial list) ---------- */
.item-ico { display: inline-block; width: 22px; height: 22px; margin-right: 10px; vertical-align: -3px; color: var(--t1); }
.vs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.vs p { margin: 0; font-size: 16.5px; }
.vs b { color: var(--t1); font-weight: 500; }
.vs .tag { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 500; color: var(--t3); }

/* ---------- lists with icons ---------- */
.icon-facts li { display: flex; gap: 14px; align-items: flex-start; }
.icon-facts .item-ico { flex: none; margin: 2px 0 0; }

/* ---------- self-managed / fully managed ---------- */
.plan-rows { margin: 0; }
.plan-rows div { padding: 12px 0; border-top: 1px solid var(--line); }
.plan-rows dt { font-size: 13.5px; font-weight: 500; color: var(--t3); margin-bottom: 4px; }
.plan-rows dd { margin: 0; font-size: 15.5px; color: var(--t2); line-height: 1.55; }

/* ---------- pinned attack steps: the days light up as the steps go by ---------- */
.pin-side { display: flex; justify-content: center; }
.pin-days { display: grid; gap: 12px; width: min(100%, 360px); }
.pin-days li { display: flex; gap: 16px; align-items: center; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--glass-line); background: var(--glass); color: var(--t3); transition: color .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease); }
.pin-days span { font: 500 13px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; min-width: 3ch; }
.pin-days i { font-style: normal; font-size: 15px; }
.pin-days li.was { color: var(--t2); }
.pin-days li.is-on { color: var(--t1); border-color: var(--t3); transform: translateX(-6px); }
html:not(.js) .pin-days li { color: var(--t2); }

/* ---------- request ---------- */
.request-lead { margin-top: 24px; }
.cform [data-slot="field-group"] { gap: 16px; }

/* ---------- guides: readable prose ---------- */
.phead .meta { margin-top: 18px; font-size: 14.5px; color: var(--t3); }
.prose { max-width: 720px; }
.prose section + section { margin-top: 40px; }
.prose h2 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.035em; line-height: 1.2; margin: 0 0 14px; }
.prose p, .prose li { font-size: 17.5px; line-height: 1.7; color: var(--t2); }
.prose strong { color: var(--t1); font-weight: 500; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1em; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li { margin-bottom: 8px; } .prose li::marker { color: var(--t3); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .vs { grid-template-columns: 1fr; }
  .cards-3, .cards-2 { grid-template-columns: 1fr; }
  .scan-frame { max-width: 560px; }
  .scan-globe { font-size: clamp(7.5px, 1.75vw, 12px); }
  .pin-side { display: none; }
  .photo.tall { aspect-ratio: 16 / 10; }
}
@media (max-width: 760px) {
  .scan-frame { padding: 14px 12px 12px; }
  .scan-globe { font-size: 7.6px; }
  .scan-top span:first-child { display: none; }
  .photo.banner { aspect-ratio: 16 / 10; }
  .legal-bar { gap: 14px; } .legal-nav { gap: 4px 14px; }
}
@media (prefers-reduced-transparency: reduce) { .scan-frame { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--s1); } .photo-note { backdrop-filter: none; -webkit-backdrop-filter: none; background: #111; } }
}
