/* ============================================================
   90 Day Free SSL — Design tokens & base components
   Clean / minimal · trust blue · light theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Neutrals — cool, subtly blue-tinted */
  --bg:           #F6F8FC;
  --bg-2:         #EEF2F9;
  --surface:      #FFFFFF;
  --surface-2:    #FAFBFE;
  --border:       #E4E9F2;
  --border-2:     #D4DBEA;
  --text:         #0F1828;
  --text-2:       #46536B;
  --text-3:       #8A96AB;
  --text-muted:   #7D8AA1;

  /* Trust blue */
  --primary:      #2B62E5;
  --primary-700:  #1E4ECB;
  --primary-800:  #1A41A8;
  --primary-soft: #EAF0FE;
  --primary-soft2:#DCE6FD;
  --ring:         rgba(43, 98, 229, 0.18);

  /* Status */
  --green:        #15924F;
  --green-soft:   #E4F5EA;
  --amber:        #C2780A;
  --amber-soft:   #FBF0DC;
  --red:          #D23B3B;
  --red-soft:     #FCEAEA;

  /* Radii & shadow */
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --shadow-sm: 0 1px 2px rgba(15,24,40,.05), 0 1px 1px rgba(15,24,40,.04);
  --shadow:    0 4px 16px rgba(20,38,77,.07), 0 1px 3px rgba(20,38,77,.05);
  --shadow-lg: 0 18px 50px rgba(20,38,77,.13), 0 4px 14px rgba(20,38,77,.06);

  --maxw: 1120px;
  --font: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--primary-soft2); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }

/* ---------- Top navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; cursor: pointer; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(150deg, var(--primary), var(--primary-800));
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 4px 12px var(--ring);
}
.brand-name { font-weight: 800; letter-spacing: -0.02em; font-size: 16.5px; white-space: nowrap; }
.brand-name span { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  padding: 8px 13px; border-radius: 9px; font-size: 14.5px; font-weight: 500; white-space: nowrap;
  color: var(--text-2); transition: .15s; cursor: pointer; border: none; background: none;
}
.nav-link:hover { background: var(--bg-2); color: var(--text); }
.nav-link.active { color: var(--primary); background: var(--primary-soft); }
.nav-right { display: flex; align-items: center; gap: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--r);
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  padding: 12px 20px; transition: .16s ease; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px var(--ring); }
.btn-primary:hover { background: var(--primary-700); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--text-3); }
.btn-soft { background: var(--primary-soft); color: var(--primary-700); }
.btn-soft:hover { background: var(--primary-soft2); }
.btn-sm { padding: 8px 14px; font-size: 13.5px; border-radius: 9px; }
.btn-lg { padding: 15px 26px; font-size: 16px; border-radius: var(--r-lg); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
}
.card-pad { padding: 24px; }

/* ---------- Form fields ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.label { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.label .opt { font-weight: 500; color: var(--text-3); }
.input, .select {
  width: 100%; padding: 13px 15px; border-radius: var(--r); line-height: 1.4;
  border: 1px solid var(--border-2); background: var(--surface);
  font-size: 15px; color: var(--text); transition: .15s;
}
.input::placeholder { color: var(--text-3); }
.input:focus, .select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring); }
.input.mono { font-family: var(--mono); letter-spacing: -0.01em; }
.input-affix { position: relative; display: flex; align-items: center; }
.input-affix .prefix { position: absolute; left: 15px; color: var(--text-3); font-size: 15px; pointer-events: none; }
.input-affix .input { padding-left: 0; }
.hint { font-size: 12.5px; color: var(--text-muted); }
.hint.err { color: var(--red); }
.field-err .input { border-color: var(--red); }

code, .code { font-family: var(--mono); font-size: .92em; color: var(--primary-700); background: var(--primary-soft); padding: 1px 6px; border-radius: 6px; }
.hl { color: var(--primary); }

/* ---------- Custom select ---------- */
.sel { position: relative; }
.sel-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 15px; border-radius: var(--r); border: 1px solid var(--border-2);
  background: var(--surface); font-size: 15px; color: var(--text); line-height: 1.4; transition: .15s; text-align: left;
}
.sel-btn:hover { border-color: var(--text-3); }
.sel-btn.open { border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring); }
.sel-btn .ph { color: var(--text-3); }
.sel-chev { color: var(--text-3); display: inline-flex; transition: .2s; flex: none; }
.sel-pop {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 50;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  box-shadow: var(--shadow-lg); padding: 6px; max-height: 264px; overflow-y: auto;
  animation: popIn .14s ease both; transform-origin: top;
}
@keyframes popIn { from { opacity: 0; transform: translateY(-6px) scale(.985); } to { opacity: 1; transform: none; } }
.sel-opt {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border: none; background: none; border-radius: 9px;
  font-size: 14.5px; color: var(--text-2); text-align: left; transition: .1s;
}
.sel-opt:hover { background: var(--bg-2); color: var(--text); }
.sel-opt.on { background: var(--primary-soft); color: var(--primary-800); font-weight: 600; }

/* ---------- Modal ---------- */
.modal-ov {
  position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(13, 22, 41, 0.46); backdrop-filter: blur(3px);
  animation: ovIn .16s ease both;
}
@keyframes ovIn { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  width: 100%; background: var(--surface); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); overflow: hidden; max-height: 88vh; display: flex; flex-direction: column;
  animation: modalIn .2s cubic-bezier(.2,.8,.3,1) both;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px; border-bottom: 1px solid var(--border); }
.modal-title { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.modal-x { width: 34px; height: 34px; border-radius: 9px; border: none; background: var(--bg-2); color: var(--text-2); display: grid; place-items: center; flex: none; transition: .14s; }
.modal-x:hover { background: var(--border-2); color: var(--text); }
.modal-body { padding: 24px; overflow-y: auto; }
.modal-foot { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; background: var(--surface-2); }

/* ---------- Toggle switch ---------- */
.switch { position: relative; width: 42px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; background: var(--border-2); border-radius: 999px; transition: .2s; }
.switch .track::after { content:""; position:absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: .2s; }
.switch input:checked + .track { background: var(--primary); }
.switch input:checked + .track::after { transform: translateX(18px); }

/* ---------- Checkbox ---------- */
.check { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; }
.check .box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--border-2); background: var(--surface); flex: none; display: grid; place-items: center; transition: .15s; margin-top: 1px; }
.check.on .box { background: var(--primary); border-color: var(--primary); }
.check .box svg { opacity: 0; transition: .15s; }
.check.on .box svg { opacity: 1; }

/* ---------- Badges / pills ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-green .dot { background: var(--green); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-amber .dot { background: var(--amber); }
.badge-red  { background: var(--red-soft); color: var(--red); }
.badge-red .dot { background: var(--red); }
.badge-blue { background: var(--primary-soft); color: var(--primary-700); }
.badge-blue .dot { background: var(--primary); }
.badge-gray { background: var(--bg-2); color: var(--text-2); }
.badge-gray .dot { background: var(--text-3); }

/* ---------- Stepper ---------- */
.stepper { display: flex; align-items: center; gap: 0; }
.step { display: flex; align-items: center; gap: 12px; }
.step-num {
  width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-weight: 700; font-size: 15px; border: 2px solid var(--border-2); color: var(--text-3); background: var(--surface); transition: .25s;
}
.step.active .step-num { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.step.done .step-num { border-color: var(--primary); background: var(--primary); color: #fff; }
.step-text { display: flex; flex-direction: column; line-height: 1.2; }
.step-text .k { font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.step-text .t { font-size: 14.5px; font-weight: 600; color: var(--text-2); }
.step.active .step-text .t, .step.done .step-text .t { color: var(--text); }
.step-bar { flex: 1; height: 2px; background: var(--border-2); margin: 0 16px; border-radius: 2px; min-width: 24px; overflow: hidden; }
.step-bar i { display: block; height: 100%; width: 0; background: var(--primary); transition: .4s; }
.step-bar.fill i { width: 100%; }

/* ---------- DNS record card ---------- */
.dns-card { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.dns-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.dns-head .ix { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; color: var(--text-2); }
.dns-row { display: grid; grid-template-columns: 88px 1fr auto; gap: 14px; align-items: center; padding: 13px 18px; }
.dns-row + .dns-row { border-top: 1px dashed var(--border); }
.dns-row .rk { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); }
.dns-val { font-family: var(--mono); font-size: 13.5px; color: var(--text); word-break: break-all; line-height: 1.45; }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--border-2); background: var(--surface); color: var(--text-2); font-size: 12.5px; font-weight: 600; transition: .14s; white-space: nowrap; }
.copy-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.copy-btn.done { color: var(--green); border-color: var(--green); background: var(--green-soft); }

/* ---------- Language switcher ---------- */
.lang-switch { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 9px; border: 1px solid var(--border-2); background: var(--surface); color: var(--text-2); cursor: pointer; transition: .14s; }
.lang-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.lang-pop { position: absolute; top: calc(100% + 6px); right: 0; min-width: 168px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 5px; z-index: 50; }
.lang-opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; border: none; background: none; border-radius: 8px; font-size: 14px; color: var(--text); cursor: pointer; transition: .12s; }
.lang-opt:hover { background: var(--surface-2); }
.lang-opt.on { background: var(--primary-soft); color: var(--primary-800); font-weight: 600; }

/* ---------- Settings ---------- */
.set-nav { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 13px; border: none; background: none; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--text-2); cursor: pointer; text-align: left; transition: .12s; }
.set-nav:hover { background: var(--surface-2); color: var(--text); }
.set-nav.active { background: var(--primary-soft); color: var(--primary-800); font-weight: 600; }
.set-savebar { position: sticky; bottom: 16px; display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
@media (max-width: 760px) {
  .settings-layout { grid-template-columns: 1fr !important; }
  .settings-layout > .card:first-child { position: static !important; grid-auto-flow: column; overflow-x: auto; }
}

/* ---------- Verification method picker ---------- */
.vmethods { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vmethod { position: relative; display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 15px 16px; border: 1.5px solid var(--border); border-radius: var(--r-lg); background: var(--surface); cursor: pointer; transition: .15s; }
.vmethod:hover { border-color: var(--border-2); background: var(--surface-2); }
.vmethod.on { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 4px var(--ring); }
.vmethod .vm-ic { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-2); color: var(--text-3); transition: .15s; }
.vmethod.on .vm-ic { background: var(--primary); color: #fff; }
.vmethod .vm-title { font-weight: 700; font-size: 14.5px; display: flex; align-items: center; gap: 7px; }
.vmethod .vm-sub { font-size: 12.5px; color: var(--text-3); line-height: 1.45; margin-top: 3px; }
.vmethod.on .vm-sub { color: var(--primary-700); }
.vmethod .vm-radio { position: absolute; top: 13px; right: 13px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-2); display: grid; place-items: center; transition: .15s; }
.vmethod.on .vm-radio { border-color: var(--primary); background: var(--primary); color: #fff; }
.vmethod .vm-tag { font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: var(--bg-2); color: var(--text-3); }
.vmethod.on .vm-tag { background: var(--primary); color: #fff; }
@media (max-width: 560px) { .vmethods { grid-template-columns: 1fr; } }

/* ---------- HTTP challenge file preview ---------- */
.http-file { margin: 4px 18px 16px; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; background: var(--bg-2); }
.http-file .hf-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.http-file .hf-name { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px; color: var(--text-2); }
.http-file .hf-body { padding: 14px; font-family: var(--mono); font-size: 13px; color: var(--text); word-break: break-all; line-height: 1.5; }

/* ---------- Table ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); padding: 12px 16px; border-bottom: 1px solid var(--border); }
.table td { padding: 15px 16px; border-bottom: 1px solid var(--border); font-size: 14.5px; vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: .12s; }
.table tbody tr:hover { background: var(--surface-2); }

/* ---------- Stat card ---------- */
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.stat .ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 14px; }
.stat .num { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.stat .lbl { font-size: 13.5px; color: var(--text-2); margin-top: 6px; font-weight: 500; }

/* ---------- Misc ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--primary-700); background: var(--primary-soft); padding: 6px 13px; border-radius: 999px; }
.divider { height: 1px; background: var(--border); border: none; margin: 0; }
.mut { color: var(--text-2); }
.hide-mobile { }
@media (max-width: 640px) { .hide-mobile { display: none !important; } }
.spin { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.fade-up { animation: fadeUp .4s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.pulse-dot { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:.35;} }

/* ---------- Prototype switcher ---------- */
.proto-bar {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 60;
  display: flex; align-items: center; gap: 4px; padding: 6px;
  background: rgba(15,24,40,.92); backdrop-filter: blur(12px); border-radius: 999px;
  box-shadow: var(--shadow-lg); max-width: calc(100vw - 24px); overflow-x: auto;
}
.proto-bar::-webkit-scrollbar { display: none; }
.proto-bar .pb-lbl { color: #8b97ad; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 0 10px 0 8px; flex: none; }
.proto-bar a { border: none; background: none; color: #cdd5e3; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; transition: .15s; white-space: nowrap; flex: none; cursor: pointer; }
.proto-bar a:hover { color: #fff; background: rgba(255,255,255,.08); }
.proto-bar a.active { color: #fff; background: var(--primary); }

/* ---------- Responsive grid utilities ---------- */
.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.split-3-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.cert-row { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
@media (max-width: 640px) { .cert-row { grid-template-columns: 1fr; } .cert-row > div:last-child { flex-direction: row !important; } }

/* ---------- Tabs (admin area) ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 24px; overflow-x: auto; }
.tab { padding: 12px 16px; font-size: 14.5px; font-weight: 600; color: var(--text-2); border: none; background: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary); border-color: var(--primary); }

/* ---------- Mobile nav ---------- */
.nav-burger { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--surface); color: var(--text); align-items: center; justify-content: center; }
.nav-mobile { display: none; }

/* ---------- Image placeholder (striped) ---------- */
.imgph {
  background: repeating-linear-gradient(135deg, var(--bg-2), var(--bg-2) 11px, var(--surface-2) 11px, var(--surface-2) 22px);
  border: 1px dashed var(--border-2); border-radius: var(--r); display: flex; align-items: center; justify-content: center;
  color: var(--text-3); font-family: var(--mono); font-size: 12px; text-align: center; padding: 12px;
}

/* ---------- SERP preview ---------- */
.serp { border: 1px solid var(--border); border-radius: var(--r); padding: 15px 17px; background: #fff; }
.serp-top { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.serp-fav { width: 26px; height: 26px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex: none; }
.serp-site { font-size: 12px; color: #202124; line-height: 1.3; }
.serp-url { font-size: 12px; color: #5f6368; }
.serp-title { color: #1a0dab; font-size: 18px; line-height: 1.3; margin: 2px 0 3px; font-weight: 400; }
.serp-desc { color: #4d5156; font-size: 13px; line-height: 1.5; }

/* ---------- Char counter ---------- */
.counter { font-size: 12px; font-weight: 600; }
.counter.ok { color: var(--green); }
.counter.warn { color: var(--amber); }
.counter.bad { color: var(--red); }

/* ---------- SEO checklist ---------- */
.seo-item { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; font-size: 13.5px; color: var(--text-2); }
.seo-item .mk { width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center; margin-top: 1px; }

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: .18s; cursor: pointer; }

/* ---------- Ad slot (Google AdSense placeholder) ---------- */
.ad-slot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 11px, var(--bg-2) 11px, var(--bg-2) 22px); border: 1px dashed var(--border-2); border-radius: var(--r); color: var(--text-3); text-align: center; overflow: hidden; }
.ad-slot .ad-lbl { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.ad-slot .ad-dim { font-family: var(--mono); font-size: 10.5px; opacity: .7; }
.ad-leaderboard { min-height: 90px; max-width: 728px; margin: 0 auto; }
.ad-rectangle { min-height: 250px; max-width: 336px; margin: 0 auto; }
.ad-infeed { min-height: 200px; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-2); }
.post-cover { aspect-ratio: 16/9; }
.post-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-title { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
.blog-feature { display: grid; grid-template-columns: 1.1fr 1fr; }
@media (max-width: 760px) { .blog-feature { grid-template-columns: 1fr; } .blog-feature .post-cover { border-right: none !important; border-bottom: 1px solid var(--border); min-height: 180px !important; } }

/* ---------- Article typography ---------- */
.article { max-width: 740px; margin: 0 auto; }
.article p { font-size: 17px; line-height: 1.7; color: var(--text); margin: 0 0 20px; }
.article h2 { font-size: 26px; letter-spacing: -0.025em; margin: 40px 0 14px; }
.article h3 { font-size: 20px; letter-spacing: -0.02em; margin: 28px 0 10px; }
.article ul, .article ol { font-size: 17px; line-height: 1.7; color: var(--text); padding-left: 22px; margin: 0 0 20px; }
.article li { margin-bottom: 8px; }
.article pre { background: #0f1828; color: #e6ebf5; font-family: var(--mono); font-size: 13.5px; line-height: 1.6; padding: 18px 20px; border-radius: var(--r); overflow-x: auto; margin: 0 0 22px; }
.article pre .c { color: #7d8aa1; }
.article blockquote { border-left: 3px solid var(--primary); background: var(--primary-soft); padding: 14px 18px; border-radius: 0 var(--r) var(--r) 0; margin: 0 0 22px; color: var(--primary-800); font-size: 16px; }
.article :not(pre) > code { font-family: var(--mono); font-size: .9em; color: var(--primary-700); background: var(--primary-soft); padding: 1px 6px; border-radius: 6px; }

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; gap: 36px; }
  .split-3-2 { grid-template-columns: 1fr; }
  .editor { grid-template-columns: 1fr !important; }
  .editor > div:last-child { position: static !important; }
}
@media (max-width: 860px) {
  .nav-links, .nav-right .btn, .nav-right .desktop-only { display: none; }
  .nav-burger { display: flex; }
  .dns-row { grid-template-columns: 1fr; gap: 8px; }
  .proto-bar .pb-lbl { display: none; }
}
@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .article h2 { font-size: 23px; }
  .article p, .article ul, .article ol { font-size: 16px; }
}
