/* Homepage sections promoted from /section-drafts: questions by role, security cards, early access band.
   Everything is scoped to .sd-scope so the shared names (.chip, .lg, .tg) cannot reach other sections. */
.sd-scope{--ink:#1f2933;--ink-2:#3f4854;--muted:#6b7480;--faint:#98a1ab;--line:#e5e8ec;--line-2:#eef1f4;--wash:#f5f7f9;--accent:#475569;--accent-2:#566376;--accent-soft:#e8ecf1;
  --field:radial-gradient(48% 60% at 4% 8%,rgba(147,190,226,.42),transparent 70%),radial-gradient(42% 48% at 96% 4%,rgba(255,196,164,.36),transparent 70%),radial-gradient(48% 60% at 98% 98%,rgba(167,160,255,.3),transparent 70%),#f6f7f9;
  --field-soft:radial-gradient(60% 80% at 0% 0%,rgba(147,190,226,.22),transparent 70%),radial-gradient(50% 70% at 100% 100%,rgba(167,160,255,.16),transparent 70%),#fafbfc;
  --shadow:0 1px 2px rgba(30,41,59,.04),0 18px 40px -24px rgba(30,41,59,.22);
  --solid:linear-gradient(180deg,var(--accent-2),var(--accent));
  color:var(--ink);font-family:'DM Sans',sans-serif}
.sd-scope a:focus-visible,.sd-scope button:focus-visible,.sd-scope input:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.sd-sr{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@keyframes sd-rise{from{opacity:0;transform:translateY(6px)}}

.sd-scope .sd-card{background:#fff;border:1px solid rgba(30,41,59,.08);border-radius:18px;box-shadow:var(--shadow)}
.sd-scope .sd-fine{margin:16px 0 0;font-size:12.5px;color:var(--faint)}
.sd-scope .sd-fine.is-center{text-align:center}
.sd-scope .lg{display:inline-grid;place-items:center;flex-shrink:0;width:16px;height:16px}
.sd-scope .lg svg{width:100%;height:100%;fill:var(--brand)}
.sd-scope .ic{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.sd-scope .mark{fill:currentColor}
.sd-scope .chip{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 10px 0 8px;border-radius:999px;border:1px solid var(--line);background:#fff;font-size:12.5px;font-weight:500;color:var(--ink-2);white-space:nowrap}
.sd-scope .chip .lg{width:14px;height:14px}
.sd-scope .stack{display:inline-flex;align-items:center;vertical-align:middle;padding-left:6px}
.sd-scope .stack .lg{width:24px;height:24px;margin-left:-6px;padding:5px;border-radius:50%;background:#fff;border:1px solid var(--line)}
.sd-scope .c-ic{width:34px;height:34px;flex-shrink:0;border-radius:10px;display:grid;place-items:center;color:var(--accent);background:var(--accent-soft)}
.sd-scope .c-ic .ic{width:16px;height:16px}

/* B1 · Role tabs */
.sd-scope .b1{display:grid;grid-template-columns:.9fr 1.3fr;gap:56px;align-items:start}
.sd-scope .b1 .sx-head{margin-bottom:28px}
.sd-scope .b1-tabs{display:grid;gap:6px}
.sd-scope .b1-tabs button{display:grid;gap:2px;padding:14px 18px;border-radius:14px;border:1px solid transparent;background:none;font:inherit;text-align:left;color:var(--ink);cursor:pointer;transition:background .2s,border-color .2s}
.sd-scope .b1-tabs button strong{font-size:15px;font-weight:600}
.sd-scope .b1-tabs button span{font-size:13px;color:var(--muted)}
.sd-scope .b1-tabs button:hover{background:var(--wash)}
.sd-scope .b1-tabs button[aria-selected=true]{border-color:var(--line);background:#fff;box-shadow:var(--shadow)}
.sd-scope .b1-main{padding:6px 30px;background:var(--field-soft)}
.sd-scope .b1-main [role=tabpanel]{animation:sd-rise .3s cubic-bezier(.2,.7,.2,1)}
.sd-scope .b1-list{margin:0;padding:0;list-style:none}
.sd-scope .b1-list li{padding:24px 0}
.sd-scope .b1-list li+li{border-top:1px solid rgba(30,41,59,.08)}
.sd-scope .b1-list p{margin:0 0 14px;font:500 18px/1.45 'DM Sans',sans-serif;letter-spacing:-.2px;color:var(--ink)}
.sd-scope .b1-src{display:flex;flex-wrap:wrap;gap:6px}


.sd-scope .b1>*{min-width:0}

/* Toggles */
.sd-scope .tg{position:relative;flex-shrink:0;width:30px;height:18px;margin-left:auto;border-radius:999px;background:#dfe4ea}
.sd-scope .tg:after{content:'';position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(30,41,59,.25)}

/* C1 · Principle cards */
.sd-scope .c3{display:grid;grid-template-columns:repeat(6,1fr);gap:16px}
.sd-scope .c3-card{grid-column:span 2;display:flex;flex-direction:column;overflow:hidden;border-radius:20px;border:1px solid var(--line);background:#fff}
.sd-scope .c3-card.c3-wide{grid-column:span 3}
.sd-scope .c3-v{height:156px;display:flex;align-items:center;justify-content:center;gap:8px;padding:20px;border-bottom:1px solid var(--line-2);background:var(--field-soft)}
.sd-scope .c3-body{padding:20px 22px 24px}
.sd-scope .c3-body h3{margin:0 0 6px;font:600 16px 'DM Sans',sans-serif}
.sd-scope .c3-body p{margin:0;font-size:14px;line-height:1.55;color:var(--muted)}
.sd-scope .c3-pill{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;border-radius:999px;border:1px solid var(--line);background:#fff;font-size:12.5px;font-weight:600;color:var(--ink-2);box-shadow:0 1px 2px rgba(30,41,59,.05)}
.sd-scope .c3-pill .ic{width:14px;height:14px}
.sd-scope .c3-pill.is-off{background:rgba(255,255,255,.55);color:var(--faint);box-shadow:none;text-decoration:line-through}
.sd-scope .c3-v-scope{flex-direction:column;align-items:stretch;gap:6px;padding:18px 48px}
.sd-scope .c3-v-scope div{display:flex;justify-content:space-between;align-items:center;height:34px;padding:0 12px;border-radius:9px;border:1px solid var(--line);background:#fff;font-size:12.5px;color:var(--ink-2)}
.sd-scope .tg{margin-left:12px;width:28px;height:16px}
.sd-scope .tg:after{width:12px;height:12px}
.sd-scope .tg.is-on{background:var(--accent)}
.sd-scope .tg.is-on:after{left:14px}
.sd-scope .c3-v-eu{flex-direction:column;gap:10px}
.sd-scope .c3-v-eu svg{width:150px;height:auto}
.sd-scope .c3-v-eu circle{fill:#cfd6de}
.sd-scope .c3-v-eu circle.on{fill:var(--accent)}
.sd-scope .c3-v-key{gap:10px}
.sd-scope .c3-keybox{width:40px;height:40px;border-radius:11px;display:grid;place-items:center;border:1px solid var(--line);background:#fff;color:var(--accent)}
.sd-scope .c3-keybox .ic{width:18px;height:18px}
.sd-scope .c3-dots{font-size:18px;letter-spacing:2px;color:#9aa3ad}
.sd-scope .c3-v-log{flex-direction:column;align-items:stretch;gap:6px;padding:16px 22px}
.sd-scope .c3-v-log div{display:grid;grid-template-columns:16px 34px 1fr;gap:8px;align-items:center;height:30px;padding:0 10px;border-radius:8px;border:1px solid var(--line);background:#fff;font-size:12px;color:var(--ink-2)}
.sd-scope .c3-v-log em{font-size:11px;font-style:normal;font-weight:600;color:var(--accent)}
.sd-scope .c3-v-log .lg{width:14px;height:14px}

/* D · Early access, shared form parts */
.sd-scope .f-field{display:grid;gap:8px;margin-bottom:20px}
.sd-scope .f-field>span{font-size:13px;font-weight:600;color:var(--ink-2)}
.sd-scope input[type=email]{height:46px;padding:0 14px;border-radius:11px;border:1px solid #d9dee4;background:#fff;font:15px 'DM Sans',sans-serif;color:var(--ink);box-shadow:0 1px 2px rgba(30,41,59,.04)}
.sd-scope input[type=email]:focus{outline:none;border-color:#9aa6b5;box-shadow:0 0 0 4px rgba(71,85,105,.1)}
.sd-scope .f-tools{display:flex;flex-wrap:wrap;gap:8px}
.sd-scope .f-tool{position:relative;display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 12px 0 10px;border-radius:999px;border:1px solid var(--line);background:#fff;font-size:13px;font-weight:500;color:var(--ink-2);cursor:pointer;transition:border-color .2s,background .2s,box-shadow .2s}
.sd-scope .f-tool input,.sd-scope .f-seg input{position:absolute;opacity:0;pointer-events:none}
.sd-scope .f-tool:hover{border-color:#c9d0d8}
.sd-scope .f-tool:has(input:checked){border-color:var(--accent);background:#f6f8fa;color:var(--ink);box-shadow:0 0 0 3px rgba(71,85,105,.08)}
.sd-scope .f-tool:has(input:focus-visible),.sd-scope .f-seg label:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:2px}
.sd-scope .f-tool .lg,.sd-scope .f-seg .lg{width:15px;height:15px}
.sd-scope .f-seg{display:inline-flex;gap:4px;padding:4px;border-radius:12px;border:1px solid var(--line);background:var(--wash)}
.sd-scope .f-seg label{position:relative;display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 14px;border-radius:9px;font-size:13px;font-weight:500;color:var(--ink-2);cursor:pointer}
.sd-scope .f-seg label:has(input:checked){background:#fff;color:var(--ink);box-shadow:0 1px 2px rgba(30,41,59,.12)}
.sd-scope .f-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:46px;padding:0 20px;border:0;border-radius:11px;background:var(--solid);font:600 14.5px 'DM Sans',sans-serif;color:#fff;cursor:pointer;box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 1px 2px rgba(51,65,85,.2),0 8px 18px -10px rgba(51,65,85,.5);white-space:nowrap}
.sd-scope .f-btn:hover{background:linear-gradient(180deg,#4d596b,#3e4a5c)}
.sd-scope .f-btn-ghost{height:46px;padding:0 18px;border-radius:11px;border:1px solid var(--line);background:#fff;font:600 14.5px 'DM Sans',sans-serif;color:var(--ink-2);cursor:pointer}
.sd-scope .f-fine{margin:12px 0 0;font-size:12.5px;color:var(--faint)}
.sd-scope .f-preview{margin:12px 0 0;font-size:13px;font-weight:500;color:var(--accent)}


/* D2 · Inline band */
.sd-scope .f2-band{padding:64px 48px 52px;border-radius:28px;background:var(--field);text-align:center}
.sd-scope .f2 .sx-head{margin-bottom:32px}
.sd-scope .f2-form{display:flex;flex-wrap:wrap;gap:8px;max-width:500px;margin:0 auto;padding:6px;border-radius:16px;border:1px solid rgba(30,41,59,.08);background:#fff;box-shadow:var(--shadow);transition:box-shadow .2s}
.sd-scope .f2-form:focus-within{box-shadow:0 0 0 4px rgba(71,85,105,.1),var(--shadow)}
.sd-scope .f2-form input[type=email]{flex:1;min-width:0;border:0;box-shadow:none}
.sd-scope .f2-form input[type=email]:focus{box-shadow:none}
.sd-scope .f2-form .f-preview{flex-basis:100%;margin:6px 0 4px}
.sd-scope .f2-tools{margin-top:30px}
.sd-scope .f2-tools p{margin:0 0 12px;font-size:13.5px;color:var(--muted)}
.sd-scope .f2-tools .f-tools{justify-content:center}


@media(max-width:900px){
  .sd-scope .b1{grid-template-columns:1fr;gap:8px}
  .sd-scope .c3{grid-template-columns:1fr 1fr}
  .sd-scope .c3-card,.sd-scope .c3-card.c3-wide{grid-column:span 1}
}
@media(max-width:760px){
  .sd-scope .b1-main{padding:4px 20px}
  .sd-scope .b1-list p{font-size:17px}
  .sd-scope .c3{grid-template-columns:1fr}
  .sd-scope .f2-band{padding:40px 20px}
  .sd-scope .f2-form{flex-direction:column}
  .sd-scope .f2-form .f-btn{width:100%}
}
@media(prefers-reduced-motion:reduce){.sd-scope *{animation:none!important;transition:none!important}}
/* Left-aligned homepage headers have no bottom margin of their own. */
.sd-scope .sx-head:not(.sx-head-center){margin-bottom:44px}
.sd-scope .b1 .sx-head{margin-bottom:28px}
@media(max-width:760px){.sd-scope .sx-head:not(.sx-head-center){margin-bottom:32px}}

.sd-scope .f2-form{border-radius:14px}
