/* /security page. Loaded after ../site.css, so this file holds page-specific rules only.
   Colours and type come from the tokens declared in site.css. */

.nav ul a[aria-current="page"]{color:var(--gold)}
.ico{width:24px;height:24px;display:block;flex:0 0 auto}
#details,#review{scroll-margin-top:88px}

/* ---------- hero ---------- */
.s-hero .hero-grid{gap:56px}
.lock-art{display:flex;justify-content:center}
.lock-art svg{width:min(300px,62vw);height:auto;display:block}

/* the yard-line strip under the hero: a tall mark every 120px, short hashes between */
.hash{
  height:18px;background-color:var(--dark);background-repeat:no-repeat;
  background-position:0 100%,0 100%;background-size:100% 18px,100% 9px;
  background-image:
    repeating-linear-gradient(90deg,var(--gold) 0 2px,transparent 2px 120px),
    repeating-linear-gradient(90deg,rgba(226,185,47,.6) 0 1px,transparent 1px 24px);
}

/* ---------- section 2: the flow ---------- */
.flow{list-style:none;display:grid;grid-template-columns:repeat(4,1fr);margin-top:48px}
.flow li{position:relative;text-align:center;padding:0 10px}
.flow .fi{
  width:72px;height:72px;border-radius:50%;margin:0 auto 16px;
  display:flex;align-items:center;justify-content:center;
  border:2px solid var(--gold-ink);color:var(--gold-ink);
}
.flow .fi .ico{width:30px;height:30px}
/* the sign-off step is heavier, so the person visibly stays in charge */
.flow .key .fi{width:88px;height:88px;margin:-8px auto 8px;background:var(--gold);border-color:var(--gold);color:var(--ink)}
.flow .key .fi .ico{width:36px;height:36px}
.flow .ftxt{display:block}
.flow b{display:block;font-weight:800;color:var(--ink);font-size:1rem;line-height:1.25}
.flow .sub{display:block;font-size:.86rem;color:#4A4640;margin-top:3px}
.flow li:not(:last-child)::before{content:'';position:absolute;top:35px;left:calc(50% + 46px);right:calc(-50% + 46px);height:2px;background:var(--gold-ink);opacity:.45}
.flow li:not(:last-child)::after{content:'';position:absolute;top:30px;right:-7px;width:13px;height:13px;border-top:2.5px solid var(--gold-ink);border-right:2.5px solid var(--gold-ink);transform:rotate(45deg)}

/* ---------- section 2b: sign-off ---------- */
.so-tag .tag2{margin-bottom:16px}
.q-line{
  border-left:4px solid var(--gold);padding:6px 0 6px 22px;margin-top:26px;
  font-weight:800;font-size:clamp(1.15rem,2.4vw,1.55rem);line-height:1.35;max-width:40ch;color:var(--white);
}
.so-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:40px}
.so-card{background:var(--panel);border:1px solid var(--line-d);border-top:3px solid var(--gold);border-radius:2px;padding:24px 22px}
.so-card .ico{color:var(--gold);width:28px;height:28px;margin-bottom:14px}
.so-card h3{font-size:1.05rem;font-weight:900;color:var(--white);margin-bottom:8px}
.so-card p{color:#CFCBC4;font-size:.94rem}

/* ---------- section 3: tiles ---------- */
.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:36px}
.tile{display:flex;align-items:center;gap:14px;background:var(--white);border:1px solid var(--line-l);border-radius:12px;padding:18px 20px}
.tile .ic-chip{flex:0 0 44px;height:44px;border-radius:50%;background:var(--ink);color:var(--gold);display:flex;align-items:center;justify-content:center}
.tile .ic-chip .ico{width:22px;height:22px}
.tile .cap{font-weight:700;color:var(--ink);font-size:.95rem;line-height:1.35}
.s3 .lead + .lead{margin-top:16px}

/* ---------- section 4: promises ---------- */
.pgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:48px}
.pcard{
  background:var(--white);color:var(--ink);border-radius:12px;padding:24px;
  box-shadow:0 4px 6px rgba(0,0,0,.15),0 20px 40px rgba(0,0,0,.25);
  display:flex;flex-direction:column;gap:12px;
}
.pc-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.pcard .ic-chip{width:44px;height:44px;flex:0 0 44px;border-radius:50%;background:var(--ink);color:var(--gold);display:flex;align-items:center;justify-content:center}
.pcard .ic-chip .ico{width:22px;height:22px}
.pcard .tag2{margin-bottom:0;white-space:nowrap}
/* the cards are WHITE even though they sit in a dark band, so they need the light-surface tag colours */
.pcard .tag-build{color:var(--ink);border-color:var(--ink)}
.pcard .tag-road{color:#5A554E;border-color:#8A857D}
.pcard h3{font-size:1.08rem;font-weight:900;line-height:1.3}
.pcard p{font-size:.93rem;color:#4A4640}
.pcard a{text-decoration:underline;text-underline-offset:3px}
.pc-check{margin-top:auto;padding-top:12px;border-top:1px solid #EDE9E1;font-size:.82rem;color:#5A554E}
.pc-check b{display:block;margin-bottom:3px;font-family:'IBM Plex Mono',monospace;font-size:.64rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--gold-ink)}

/* ---------- section 5: what SOS AI always does ---------- */
.always{max-width:560px;margin:64px auto 0;border:2px solid var(--gold);border-radius:12px;padding:28px 32px;background:rgba(226,185,47,.06)}
.always h2{font-size:1.3rem;font-weight:900;line-height:1.2;color:var(--white)}
.always ul{list-style:none;margin-top:14px}
.always li{display:flex;gap:12px;align-items:flex-start;margin-top:12px;color:#EDEAE4;font-size:.98rem}
.always li .ico{color:var(--gold);width:22px;height:22px;margin-top:2px}

/* ---------- section 6: the plain table ---------- */
.tscroll{overflow-x:auto;margin-top:28px}
.spec{width:100%;border-collapse:collapse;background:var(--white);border:1px solid var(--line-l);font-size:.94rem}
.spec th,.spec td{padding:14px 18px;text-align:left;vertical-align:top;border-bottom:1px solid #EDE9E1}
.spec thead th{font-family:'IBM Plex Mono',monospace;font-size:.66rem;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--gold-ink);border-bottom:2px solid var(--ink)}
.spec tbody th{width:22%;font-weight:800;color:var(--ink)}
.spec td{color:#4A4640}
.spec td.st{width:1%;white-space:nowrap}
.spec .tag2{margin-bottom:0}

/* ---------- section 7: review ---------- */
.review{margin-top:72px;padding-top:56px;border-top:1px solid var(--line-l);max-width:62ch}
.review .actions{margin-top:26px}

/* ---------- section 8: close ---------- */
.close{text-align:center}
.close .ico{width:56px;height:56px;color:var(--gold);margin:0 auto 22px}
.close h2{max-width:20ch;margin:0 auto}
.close .lead{margin-left:auto;margin-right:auto;max-width:54ch}
.close .actions{margin-top:30px;display:flex;justify-content:center}
.close .legal{margin-top:22px;font-size:.88rem;color:#BFBAB2}
.close .legal a{text-decoration:underline;text-underline-offset:3px}
.close .legal a:hover{color:var(--gold)}

/* footer legal bar */
.copy a{text-decoration:underline;text-underline-offset:3px}
.copy a:hover{color:var(--gold)}

/* ---------- responsive ---------- */
@media (max-width:980px){
  .pgrid{grid-template-columns:repeat(2,1fr)}
  .so-grid,.tiles{grid-template-columns:1fr}
}
@media (max-width:720px){
  .flow{grid-template-columns:1fr;gap:26px;margin-top:36px}
  .flow li{display:flex;align-items:center;gap:16px;text-align:left;padding:0}
  .flow .ftxt{flex:1}
  .flow .fi,.flow .key .fi{margin:0;flex:0 0 64px;width:64px;height:64px}
  .flow .key .fi{flex-basis:72px;width:72px;height:72px}
  .flow li:not(:last-child)::before,.flow li:not(:last-child)::after{display:none}
}
@media (max-width:640px){
  .pgrid{grid-template-columns:1fr}
  .always{padding:24px 22px}
  /* the table becomes stacked blocks instead of a sideways scroll */
  .spec,.spec tbody,.spec tr,.spec th,.spec td{display:block;width:auto}
  .spec thead{position:absolute;left:-9999px}
  .spec tr{padding:14px 16px;border-bottom:1px solid #EDE9E1}
  .spec th,.spec td{border:0;padding:2px 0}
  .spec tbody th{width:auto}
  .spec td.st{margin-top:8px;width:auto;white-space:normal}
}
