/* ============================================================
   mdWOW — app.css
   Look & feel inspired by filemail.com:
   denim blue #1377C3, charcoal #23272B, jordy blue #94CBF5,
   clean white surfaces, Lato typography.
   ============================================================ */

:root{
  --blue:#1377C3;
  --blue-dark:#0E5E9C;
  --blue-deep:#0A4B7E;
  --blue-light:#94CBF5;
  --blue-tint:#EAF4FB;
  --blue-tint-2:#F4F9FD;
  --ink:#23272B;
  --ink-soft:#5C6670;
  --line:#DDE7EF;
  --green:#27AE60;
  --red:#E0484F;
  --radius:12px;
  --shadow:0 8px 24px rgba(19,119,195,.10);
}

html{scroll-behavior:smooth}
body{
  font-family:'Plus Jakarta Sans',sans-serif;
  background:var(--blue-tint-2);
  color:var(--ink);
  display:flex;flex-direction:column;min-height:100vh;
}
/* the editor app fills the viewport; footer sits just below the fold */
.workspace{height:calc(100vh - 88px)}

/* ---------------- top bar ---------------- */
.topbar{
  display:flex;align-items:center;gap:.75rem;
  padding:.65rem 1.1rem;
  background:#fff;
  border-bottom:1px solid var(--line);
  position:sticky;top:0;z-index:50;
  box-shadow:0 2px 10px rgba(35,39,43,.04);
}
.logo{
  font-weight:800;font-size:1.35rem;letter-spacing:-.5px;
  display:flex;align-items:center;gap:.45rem;text-decoration:none;color:var(--ink);
}
.logo .mark{
  display:inline-grid;place-items:center;width:34px;height:34px;border-radius:11px;
  background:var(--blue);color:#fff;font-size:1.05rem;
  transform:rotate(-6deg);box-shadow:0 4px 10px rgba(19,119,195,.35);
}
.logo small{font-weight:600;color:var(--ink-soft);font-size:.7rem;margin-top:.45rem;letter-spacing:0}
.doc-title{
  border:none;background:transparent;font-weight:700;font-size:.98rem;color:var(--ink);
  padding:.35rem .6rem;border-radius:10px;min-width:120px;max-width:340px;flex:1;
}
.doc-title:hover{background:var(--blue-tint)}
.doc-title:focus{outline:2px solid var(--blue);background:#fff}

/* buttons — original pill shape */
.btn-fm{
  border:none;border-radius:999px;font-weight:700;font-size:.88rem;
  padding:.55rem 1.05rem;display:inline-flex;align-items:center;gap:.45rem;
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease, color .12s ease;
  white-space:nowrap;font-family:inherit;
}
.btn-fm:active{transform:scale(.96)}
.btn-fm-blue{
  background:var(--blue);color:#fff;box-shadow:0 4px 12px rgba(19,119,195,.3);
}
.btn-fm-blue:hover{background:var(--blue);color:#fff;transform:translateY(-1px);box-shadow:0 6px 16px rgba(19,119,195,.42)}
.btn-fm-ghost{background:#fff;border:1.5px solid var(--line);color:var(--ink)}
.btn-fm-ghost:hover{border-color:var(--blue);color:var(--blue)}

/* segmented mode switch — original pill style */
.mode-switch{display:flex;background:#fff;border:1.5px solid var(--line);border-radius:999px;padding:3px;gap:2px}
.mode-switch button{
  border:none;background:transparent;border-radius:999px;font-weight:700;font-size:.82rem;
  padding:.4rem .95rem;color:var(--ink-soft);transition:all .15s ease;font-family:inherit;
}
.mode-switch button.active{background:var(--ink);color:#fff}

/* export dropdown */
.export-wrap{position:relative}
.export-menu{
  position:absolute;right:0;top:115%;z-index:60;min-width:180px;background:#fff;
  border:1px solid var(--line);border-radius:10px;box-shadow:0 10px 28px rgba(35,39,43,.16);
  padding:.35rem;overflow:hidden;
}
.export-menu button{
  display:flex;justify-content:space-between;align-items:center;width:100%;border:none;background:none;
  font-family:inherit;font-weight:700;font-size:.9rem;color:var(--ink);
  padding:.55rem .7rem;border-radius:7px;text-align:left;
}
.export-menu button small{color:var(--ink-soft);font-weight:400;font-family:'JetBrains Mono',monospace}
.export-menu button:hover{background:var(--blue-tint);color:var(--blue-deep)}

/* account chip */
.account-chip{
  display:flex;align-items:center;gap:.5rem;background:var(--blue-tint);
  border-radius:999px;padding:.3rem .4rem .3rem .85rem;font-size:.82rem;font-weight:700;color:var(--blue-deep);
}
.account-chip .avatar{
  width:26px;height:26px;border-radius:50%;display:grid;place-items:center;
  background:var(--blue);color:#fff;font-size:.78rem;font-weight:900;text-transform:uppercase;
}
.account-chip button{border:none;background:none;color:var(--ink-soft);font-size:.78rem;font-weight:700;font-family:inherit}
.account-chip button:hover{color:var(--red)}

/* ---------------- workspace ---------------- */
.workspace{display:flex;min-height:0;position:relative}
.pane{flex:1;min-width:0;display:flex;flex-direction:column;min-height:0;background:#fff}
.pane-editor{border-right:1px solid var(--line);background:var(--blue-tint-2)}
.pane-label{
  font-size:.68rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;
  color:var(--ink-soft);padding:.55rem 1.3rem .35rem;
}
#editor{
  flex:1;border:none;resize:none;outline:none;background:transparent;
  font-family:'JetBrains Mono',monospace;font-size:.92rem;line-height:1.7;
  padding:0 1.3rem 2rem;color:var(--ink);
}
.preview-scroll{flex:1;overflow-y:auto;padding:0 0 4rem}
.mode-edit    .pane-preview{display:none}
.mode-preview .pane-editor{display:none}

/* ---------------- rendered markdown ---------------- */
.md{max-width:760px;margin:0 auto;padding:1.4rem 2rem 3rem;font-size:1.04rem;line-height:1.75}
.md h1,.md h2,.md h3,.md h4{font-family:'Source Serif 4',serif;font-weight:700;line-height:1.25;margin:1.6em 0 .55em;color:var(--ink);letter-spacing:-.01em}
.md h1{font-size:2.1rem;margin-top:.4em}
.md h2{font-size:1.55rem;padding-bottom:.3em;border-bottom:2px solid var(--line)}
.md h3{font-size:1.22rem}
.md p{margin:0 0 1em}
.md a{color:var(--blue);font-weight:700;text-decoration-thickness:2px;text-underline-offset:3px}
.md a:hover{color:var(--blue-dark)}
.md ul,.md ol{padding-left:1.4rem;margin-bottom:1em}
.md li{margin:.3em 0}
.md li::marker{color:var(--blue);font-weight:700}
.md blockquote{
  margin:1.2em 0;padding:.85em 1.25em;border-left:5px solid var(--blue);
  background:var(--blue-tint);border-radius:0 14px 14px 0;color:#3D4852;
}
.md blockquote p:last-child{margin:0}
.md code{
  font-family:'JetBrains Mono',monospace;font-size:.85em;background:var(--blue-tint);
  color:var(--blue-deep);padding:.15em .45em;border-radius:6px;
}
.md pre{
  background:var(--blue-tint-2);border:1.5px solid var(--line);border-radius:14px;
  padding:1.1em 1.3em;overflow-x:auto;margin:1.2em 0;box-shadow:var(--shadow);
}
.md pre code{background:transparent;color:var(--ink);padding:0;font-size:.86rem;line-height:1.6}
.md table{
  width:100%;border-collapse:separate;border-spacing:0;margin:1.3em 0;
  border:1.5px solid var(--line);border-radius:14px;overflow:hidden;font-size:.95rem;background:#fff;
}
.md th{background:var(--blue-tint);color:var(--ink);font-weight:700;text-align:left}
.md th,.md td{padding:.65em .95em;border-bottom:1px solid var(--line)}
.md tr:last-child td{border-bottom:none}
.md tr:nth-child(even) td{background:var(--blue-tint-2)}
.md img{max-width:100%;border-radius:14px;box-shadow:var(--shadow)}
.md hr{border:none;height:2px;background:var(--line);margin:2em auto;width:60%;border-radius:2px}
.md input[type=checkbox]{accent-color:var(--green);width:1.05em;height:1.05em;margin-right:.4em;vertical-align:-.12em}
.md .pb-preview{
  margin:1.6em 0;text-align:center;font-size:.7rem;font-weight:900;letter-spacing:.16em;
  text-transform:uppercase;color:var(--blue);position:relative;
}
.md .pb-preview::before,.md .pb-preview::after{
  content:"";position:absolute;top:50%;width:42%;height:0;border-top:2px dashed var(--blue-light);
}
.md .pb-preview::before{left:0}
.md .pb-preview::after{right:0}

/* ---------------- start screen (hero) ---------------- */
.hero{
  position:absolute;inset:0;z-index:10;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;gap:.9rem;padding:2rem;
  background:
    radial-gradient(circle at 85% 10%, rgba(148,203,245,.35) 0, transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(148,203,245,.3) 0, transparent 35%),
    linear-gradient(180deg,#fff 0%, var(--blue-tint) 100%);
}
.hero h1{font-family:'Source Serif 4',serif;font-weight:700;font-size:clamp(2rem,5vw,3.2rem);letter-spacing:-.02em;color:var(--ink)}
.hero h1 em{font-style:normal;color:var(--blue);position:relative}
.hero p{color:var(--ink-soft);font-size:1.1rem;max-width:430px;margin:0;line-height:1.6}
.dropzone{
  margin-top:.6rem;border:3px dashed var(--blue-light);border-radius:26px;background:#fff;
  padding:2.4rem 3.4rem;cursor:pointer;transition:all .18s ease;
  display:flex;flex-direction:column;align-items:center;gap:.6rem;box-shadow:var(--shadow);
}
.dropzone:hover{transform:translateY(-3px);border-color:var(--blue);box-shadow:0 14px 30px rgba(19,119,195,.2)}
.dropzone .big{font-size:2.6rem}
.dropzone b{font-size:1.05rem}
.dropzone span{color:var(--ink-soft);font-size:.88rem}
.or-try{font-size:.85rem;color:var(--ink-soft);margin-top:.4rem}
.or-try button{border:none;background:none;color:var(--blue);font-weight:700;text-decoration:underline;text-underline-offset:3px;font-family:inherit}

body.dragging::after{
  content:"⬇️  Drop it like it's hot!";
  position:fixed;inset:0;z-index:999;display:grid;place-items:center;
  background:rgba(19,119,195,.93);color:#fff;font-size:1.9rem;font-weight:900;
  border:6px dashed #fff;border-radius:20px;margin:14px;
}

/* ---------------- library drawer ---------------- */
.drawer{
  position:fixed;top:0;right:-360px;width:340px;height:100%;z-index:200;
  background:#fff;border-left:1px solid var(--line);box-shadow:-10px 0 30px rgba(35,39,43,.1);
  transition:right .25s ease;display:flex;flex-direction:column;
}
.drawer.open{right:0}
.drawer header{padding:1rem 1.2rem;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;background:var(--blue-tint-2)}
.drawer header b{font-size:1.05rem}
.drawer .list{flex:1;overflow-y:auto;padding:.6rem}
.doc-card{
  border:1.5px solid var(--line);border-radius:10px;padding:.75rem .9rem;margin-bottom:.55rem;
  cursor:pointer;transition:all .15s ease;display:flex;justify-content:space-between;gap:.5rem;align-items:center;background:#fff;
}
.doc-card:hover{border-color:var(--blue);background:var(--blue-tint-2)}
.doc-card .t{font-weight:700;font-size:.92rem}
.doc-card .d{font-size:.74rem;color:var(--ink-soft)}
.doc-card .del{border:none;background:none;font-size:.95rem;opacity:.4}
.doc-card .del:hover{opacity:1}
.drawer .empty{color:var(--ink-soft);font-size:.88rem;padding:1rem}

/* ---------------- auth modal ---------------- */
.auth-overlay{
  position:fixed;inset:0;z-index:400;display:grid;place-items:center;
  background:rgba(10,75,126,.45);backdrop-filter:blur(3px);padding:1rem;
}
.auth-card{
  position:relative;background:#fff;border-radius:16px;width:100%;max-width:400px;
  padding:2rem 1.8rem 1.6rem;box-shadow:0 24px 60px rgba(10,75,126,.35);
  animation:pop .22s ease;
}
@keyframes pop{from{transform:scale(.94);opacity:0}to{transform:scale(1);opacity:1}}
.auth-close{
  position:absolute;top:.8rem;right:.9rem;border:none;background:var(--blue-tint);
  width:30px;height:30px;border-radius:50%;font-weight:700;color:var(--ink-soft);
}
.auth-card h2{font-weight:900;font-size:1.4rem;margin-bottom:.3rem}
.auth-sub{color:var(--ink-soft);font-size:.9rem;margin-bottom:1.1rem;line-height:1.5}
.auth-card label{font-size:.78rem;font-weight:900;letter-spacing:.05em;text-transform:uppercase;color:var(--blue-deep);margin:.5rem 0 .25rem;display:block}
.auth-card label small{text-transform:none;letter-spacing:0;font-weight:400;color:var(--ink-soft)}
.auth-card input[type=email],.auth-card input[type=password]{
  width:100%;border:1.5px solid var(--line);border-radius:8px;padding:.6rem .8rem;
  font-size:.95rem;font-family:inherit;transition:border .15s ease;
}
.auth-card input:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px rgba(19,119,195,.15)}
.auth-error{color:var(--red);font-size:.84rem;font-weight:700;min-height:1.3rem;margin:.45rem 0 .2rem}
.auth-switch{font-size:.86rem;color:var(--ink-soft);text-align:center;margin:.9rem 0 0}
.auth-switch button{border:none;background:none;color:var(--blue);font-weight:700;text-decoration:underline;text-underline-offset:2px;font-family:inherit}

.code-boxes{display:flex;gap:.45rem;justify-content:center;margin:.4rem 0 .2rem}
.code-boxes input{
  width:46px;height:54px;text-align:center;font-size:1.5rem;font-weight:900;
  border:1.5px solid var(--line);border-radius:10px;font-family:'JetBrains Mono',monospace;
}
.code-boxes input:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px rgba(19,119,195,.15)}

/* ---------------- toast & statusbar ---------------- */
#toast{
  position:fixed;bottom:24px;left:50%;transform:translate(-50%,80px);z-index:500;
  background:var(--ink);color:#fff;font-weight:700;font-size:.9rem;
  padding:.7rem 1.3rem;border-radius:999px;opacity:0;transition:all .25s ease;pointer-events:none;
}
#toast.show{opacity:1;transform:translate(-50%,0)}
.statusbar{
  border-top:1px solid var(--line);background:#fff;
  font-size:.76rem;color:var(--ink-soft);padding:.35rem 1.1rem;display:flex;gap:1.2rem;
}

@media (max-width: 900px){
  .mode-split .pane-editor{display:none}
  .doc-title{max-width:130px}
  .hide-sm{display:none}
  .dropzone{padding:1.8rem 1.6rem}
}

/* ============================================================
   SITE FOOTER (fastdl-style: links, socials, copyright)
   ============================================================ */
.site-footer{
  background:var(--blue-deep);color:#CFE6F8;margin-top:auto;
}
.footer-inner{
  max-width:1100px;margin:0 auto;padding:2.6rem 1.5rem 1.8rem;
  display:flex;flex-wrap:wrap;gap:2rem;align-items:flex-start;justify-content:space-between;
}
.footer-brand{max-width:280px}
.footer-brand .logo{color:#fff;font-size:1.2rem}
.footer-brand .logo .mark{background:#fff;color:var(--blue);box-shadow:none}
.footer-brand p{font-size:.86rem;color:#9CC4E4;margin:.7rem 0 0;line-height:1.5}
.footer-links{display:flex;flex-direction:column;gap:.55rem}
.footer-links a{
  color:#CFE6F8;text-decoration:none;font-size:.92rem;font-weight:700;
  transition:color .15s ease;
}
.footer-links a:hover{color:#fff;text-decoration:underline;text-underline-offset:3px}
.footer-social{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}
.footer-social span{font-size:.86rem;font-weight:700;color:#9CC4E4;margin-right:.2rem}
.footer-social a{
  width:38px;height:38px;border-radius:50%;display:grid;place-items:center;
  background:rgba(255,255,255,.12);transition:all .15s ease;
}
.footer-social a:hover{background:#fff;transform:translateY(-2px)}
.footer-social svg{width:18px;height:18px;fill:#fff;transition:fill .15s ease}
.footer-social a:hover svg{fill:var(--blue)}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.15);
  text-align:center;font-size:.8rem;color:#9CC4E4;padding:1rem 1.5rem;
}

/* ============================================================
   SUB-PAGES (contact, privacy, terms, cookie settings)
   ============================================================ */
body.subpage{background:var(--blue-tint-2)}
.page{flex:1;padding:2.5rem 1rem 3.5rem}
.page-card{
  max-width:760px;margin:0 auto;background:#fff;border:1px solid var(--line);
  border-radius:16px;box-shadow:var(--shadow);padding:2.4rem 2.6rem;
}
.page-card h1{font-weight:900;font-size:1.9rem;letter-spacing:-.02em;margin-bottom:.4rem}
.page-intro{color:var(--ink-soft);font-size:1.02rem;line-height:1.6;margin-bottom:1.6rem}
.page-meta{color:var(--ink-soft);font-size:.84rem}
.page-card label{
  font-size:.78rem;font-weight:900;letter-spacing:.05em;text-transform:uppercase;
  color:var(--blue-deep);margin:.9rem 0 .25rem;display:block;
}
.page-card input[type=text],.page-card input[type=email],.page-card textarea{
  width:100%;border:1.5px solid var(--line);border-radius:8px;padding:.65rem .8rem;
  font-size:.95rem;font-family:inherit;transition:border .15s ease;
}
.page-card input:focus,.page-card textarea:focus{
  outline:none;border-color:var(--blue);box-shadow:0 0 0 3px rgba(19,119,195,.15);
}
.page-card .btn-fm{margin-top:.9rem}
.contact-done{
  background:#EAF8F0;border:1.5px solid #BCE5CD;border-radius:10px;
  padding:1rem 1.2rem;font-size:1rem;
}
.legal h2{font-weight:900;font-size:1.15rem;margin:1.8rem 0 .5rem;color:var(--blue-deep)}
.legal p{line-height:1.7;color:#3D4852}
.legal a{color:var(--blue);font-weight:700}

/* cookie consent toggles */
.cookie-row{
  display:flex;justify-content:space-between;align-items:center;gap:1.2rem;
  border:1.5px solid var(--line);border-radius:12px;padding:1rem 1.2rem;margin-bottom:.8rem;
}
.cookie-row b{font-size:1rem}
.cookie-row p{font-size:.86rem;color:var(--ink-soft);margin:.2rem 0 0;line-height:1.5}
.switch{position:relative;width:52px;height:30px;flex-shrink:0}
.switch input{opacity:0;width:0;height:0}
.slider{
  position:absolute;inset:0;background:#C7D5E0;border-radius:999px;cursor:pointer;transition:background .2s ease;
}
.slider::before{
  content:"";position:absolute;height:24px;width:24px;left:3px;top:3px;background:#fff;
  border-radius:50%;transition:transform .2s ease;box-shadow:0 2px 5px rgba(0,0,0,.2);
}
.switch input:checked + .slider{background:var(--blue)}
.switch input:checked + .slider::before{transform:translateX(22px)}
.switch.locked .slider{background:var(--green);cursor:not-allowed;opacity:.75}
.switch.locked input:checked + .slider::before{transform:translateX(22px)}

/* ============================================================
   LANDING PAGES + FOOTER DIRECTORY + HOMEPAGE DIRECTORY
   ============================================================ */
.lp-wrap{max-width:1040px;margin:0 auto;padding:0 1.2rem}
.lp-nav{color:var(--ink);font-weight:700;font-size:.9rem;text-decoration:none;padding:.4rem .6rem;border-radius:8px}
.lp-nav:hover{color:var(--blue);background:var(--blue-tint)}

.lp-crumb{background:#fff;border-bottom:1px solid var(--line);font-size:.82rem;padding:.6rem 0}
.lp-crumb a{color:var(--ink-soft);text-decoration:none}
.lp-crumb a:hover{color:var(--blue)}
.lp-crumb .cur{color:var(--ink);font-weight:700}
.lp-crumb span{color:#B9C4CF;margin:0 .25rem}

.lp-hero{background:
  radial-gradient(circle at 88% 0%, rgba(148,203,245,.35) 0, transparent 42%),
  linear-gradient(180deg,#fff 0%, var(--blue-tint) 100%);
  border-bottom:1px solid var(--line);padding:2.6rem 0 2.8rem}
.lp-hero-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:2rem;align-items:center}
.lp-eyebrow{display:inline-block;font-size:.74rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;
  color:var(--blue);background:#fff;border:1.5px solid var(--blue-light);padding:.32rem .8rem;border-radius:999px;margin-bottom:.9rem}
.lp-hero h1{font-family:'Source Serif 4',serif;font-weight:700;font-size:clamp(1.9rem,4vw,2.9rem);letter-spacing:-.02em;margin:0 0 .6rem;line-height:1.15}
.lp-sub{font-size:1.12rem;color:var(--ink-soft);line-height:1.6;margin:0 0 1.3rem;max-width:34em}
.lp-cta-row{display:flex;gap:.7rem;flex-wrap:wrap;margin-bottom:.9rem}
.lp-cta{font-size:.98rem;padding:.7rem 1.4rem}
.lp-trust{font-size:.82rem;color:var(--ink-soft);font-weight:600;margin:0}
.lp-hero-art svg{width:100%;height:auto;filter:drop-shadow(0 12px 28px rgba(19,119,195,.16))}

.lp-body{padding:2.6rem 1.2rem 1rem}
.lp-body h2{font-family:'Source Serif 4',serif;font-weight:700;font-size:1.7rem;letter-spacing:-.01em;margin:0 0 1.1rem}
.lp-intro{font-size:1.06rem;line-height:1.75;color:#3D4852;max-width:48em;margin-bottom:2.6rem}
.lp-intro p{margin:0 0 1em}
.lp-intro code,.lp-rich code,.lp-a code{font-family:'JetBrains Mono',monospace;font-size:.85em;background:var(--blue-tint);color:var(--blue-deep);padding:.12em .42em;border-radius:5px}

.lp-steps{margin-bottom:2.8rem}
.lp-step-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.1rem}
.lp-step{background:#fff;border:1px solid var(--line);border-radius:14px;padding:1.3rem;box-shadow:var(--shadow)}
.lp-step-n{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--blue);color:#fff;font-weight:800;transform:rotate(-6deg);margin-bottom:.7rem}
.lp-step h3{font-size:1.04rem;font-weight:800;margin:0 0 .4rem}
.lp-step p{font-size:.92rem;color:var(--ink-soft);line-height:1.6;margin:0}

.lp-features{margin-bottom:2.8rem}
.lp-feature-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1.1rem}
.lp-feature{display:flex;gap:.9rem;background:var(--blue-tint-2);border:1px solid var(--line);border-radius:14px;padding:1.1rem 1.2rem}
.lp-feature-ic{flex-shrink:0}
.lp-feature-ic svg{width:42px;height:42px}
.lp-feature h3{font-size:1rem;font-weight:800;margin:0 0 .3rem}
.lp-feature p{font-size:.9rem;color:var(--ink-soft);line-height:1.55;margin:0}

.lp-rich{max-width:48em;margin-bottom:2.6rem}
.lp-rich h2{margin-top:1.6rem}
.lp-rich p{font-size:1.04rem;line-height:1.75;color:#3D4852;margin:0 0 1em}

.lp-midcta{text-align:center;background:var(--blue-tint);border:1px solid var(--blue-light);border-radius:18px;padding:2rem;margin-bottom:2.8rem}
.lp-midcta h2{margin:0 0 1rem}

.lp-faq{max-width:48em;margin-bottom:2.8rem}
.lp-q{border:1px solid var(--line);border-radius:12px;background:#fff;margin-bottom:.6rem;overflow:hidden}
.lp-q summary{cursor:pointer;font-weight:700;padding:.95rem 1.1rem;list-style:none;font-size:1rem}
.lp-q summary::-webkit-details-marker{display:none}
.lp-q summary::after{content:"+";float:right;color:var(--blue);font-weight:800}
.lp-q[open] summary::after{content:"–"}
.lp-a{padding:0 1.1rem 1.05rem;color:#3D4852;line-height:1.65;font-size:.96rem}
.lp-a code{font-size:.85em}

.lp-related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.lp-related-card{display:flex;flex-direction:column;gap:.2rem;background:#fff;border:1px solid var(--line);border-radius:12px;padding:1rem 1.1rem;text-decoration:none;transition:all .15s ease}
.lp-related-card:hover{border-color:var(--blue);transform:translateY(-2px);box-shadow:var(--shadow)}
.lp-related-card b{color:var(--ink);font-size:.98rem}
.lp-related-card span{color:var(--ink-soft);font-size:.84rem}

/* footer columns */
.footer-col{display:flex;flex-direction:column;gap:.5rem}
.footer-col-h{font-size:.78rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#9CC4E4;margin-bottom:.2rem}
.footer-col a{color:#CFE6F8;text-decoration:none;font-size:.88rem;font-weight:600}
.footer-col a:hover{color:#fff;text-decoration:underline;text-underline-offset:3px}
.footer-social-bar{border-top:1px solid rgba(255,255,255,.12);margin-top:.5rem}
.footer-social-bar .footer-social{max-width:1100px;margin:0 auto;padding:1.1rem 1.5rem}

/* homepage directory */
.home-dir{background:#fff;border-top:1px solid var(--line)}
.home-dir-wrap{max-width:1040px;margin:0 auto;padding:2.6rem 1.2rem 1rem}
.home-dir-wrap h2{font-family:'Source Serif 4',serif;font-weight:700;font-size:1.7rem;margin:0 0 .3rem;text-align:center}
.home-dir-sub{text-align:center;color:var(--ink-soft);margin:0 0 1.8rem}
.home-dir-group{margin-bottom:1.8rem}
.home-dir-group h3{font-size:.8rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--blue);margin:0 0 .8rem}
.home-dir-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.9rem}
.home-dir-card{display:flex;flex-direction:column;gap:.15rem;background:var(--blue-tint-2);border:1px solid var(--line);border-radius:12px;padding:.9rem 1rem;text-decoration:none;transition:all .15s ease}
.home-dir-card:hover{border-color:var(--blue);transform:translateY(-2px);box-shadow:var(--shadow)}
.home-dir-card b{color:var(--ink);font-size:.95rem}
.home-dir-card span{color:var(--ink-soft);font-size:.8rem}

@media (max-width:820px){
  .lp-hero-grid{grid-template-columns:1fr}
  .lp-hero-art{order:-1;max-width:420px}
  .lp-step-grid,.lp-feature-grid,.lp-related-grid,.home-dir-grid{grid-template-columns:1fr}
  .footer-inner{gap:1.5rem}
}

/* blog-style article on guide pages */
.lp-article{max-width:48em;margin:0 auto 2.8rem;background:#fff;border:1px solid var(--line);border-radius:18px;padding:2rem 2.2rem;box-shadow:var(--shadow)}
.lp-article-head{border-bottom:1px solid var(--line);padding-bottom:1rem;margin-bottom:1.3rem}
.lp-article-tag{display:inline-block;font-size:.7rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--blue);background:var(--blue-tint);padding:.25rem .7rem;border-radius:999px;margin-bottom:.7rem}
.lp-article-head h2{font-family:'Source Serif 4',serif;font-weight:700;font-size:1.6rem;letter-spacing:-.01em;margin:0 0 .5rem;line-height:1.2}
.lp-article-byline{color:var(--ink-soft);font-size:.85rem;margin:0;font-weight:600}
.lp-article-body{font-size:1.05rem;line-height:1.78;color:#36414C}
.lp-article-body h3{font-family:'Source Serif 4',serif;font-weight:700;font-size:1.2rem;margin:1.7rem 0 .55rem;color:var(--ink)}
.lp-article-body p{margin:0 0 1.05em}
.lp-article-body ul{padding-left:1.3rem;margin:0 0 1.1em}
.lp-article-body li{margin:.45em 0}
.lp-article-body li::marker{color:var(--blue)}
.lp-article-body code{font-family:'JetBrains Mono',monospace;font-size:.85em;background:var(--blue-tint);color:var(--blue-deep);padding:.12em .42em;border-radius:5px}
