:root{--bg:#f7f8fc;--surface:#ffffff;--surface2:#f1f5ff;--text:#0f172a;--muted:#5f6b7a;--line:#e5e7eb;--blue:#2563eb;--purple:#7c3aed;--pink:#ec4899;--green:#16a34a;--shadow:0 24px 70px rgba(15,23,42,.10);--radius:26px;--radius2:18px}*{box-sizing:border-box}html{scroll-behavior:smooth}body.public-body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:var(--bg);color:var(--text);line-height:1.65}.container{width:min(1180px,calc(100% - 40px));margin:0 auto}.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.82);backdrop-filter:blur(18px);border-bottom:1px solid rgba(226,232,240,.9)}.nav-wrap{height:82px;display:flex;align-items:center;justify-content:space-between;gap:28px}.brand{display:flex;align-items:center;text-decoration:none}.brand img{width:214px;height:auto;display:block}.main-nav{display:flex;gap:6px;align-items:center;background:#f4f6fb;border:1px solid #e7eaf2;padding:6px;border-radius:999px}.main-nav a{color:#334155;text-decoration:none;font-weight:700;font-size:14px;padding:9px 14px;border-radius:999px;white-space:nowrap}.main-nav a.active,.main-nav a:hover{background:#fff;color:#111827;box-shadow:0 8px 20px rgba(15,23,42,.07)}.nav-actions{display:flex;gap:10px;align-items:center}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:13px;padding:12px 18px;font-weight:800;text-decoration:none;border:1px solid transparent;cursor:pointer;font-size:14px}.btn-primary{background:linear-gradient(135deg,var(--blue),var(--purple));color:white;box-shadow:0 14px 30px rgba(37,99,235,.24)}.btn-ghost{background:#fff;color:#0f172a;border-color:#dbe3ef}.btn-light{background:white;color:#1e293b}.btn-outline{background:transparent;color:white;border-color:rgba(255,255,255,.3)}.hero{overflow:hidden;position:relative;background:radial-gradient(circle at 88% 15%,rgba(124,58,237,.28),transparent 26%),radial-gradient(circle at 5% 4%,rgba(37,99,235,.18),transparent 34%),linear-gradient(180deg,#ffffff 0%,#f6f8ff 100%);padding:78px 0 72px}.hero-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(430px,520px);gap:54px;align-items:center}.eyebrow{display:inline-flex;align-items:center;gap:8px;background:#eef2ff;color:#4338ca;border:1px solid #dbe3ff;border-radius:999px;padding:8px 13px;font-size:12px;font-weight:900;letter-spacing:.13em;text-transform:uppercase}.hero h1,.page-hero h1{font-size:clamp(42px,6vw,76px);line-height:.95;margin:22px 0 22px;letter-spacing:-.06em}.hero p{font-size:18px;color:#475569;max-width:650px;margin:0 0 28px}.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin:28px 0 22px}.hero-pills{display:flex;flex-wrap:wrap;gap:12px;margin-top:18px}.pill{background:#fff;border:1px solid #e2e8f0;border-radius:999px;padding:8px 13px;font-size:13px;font-weight:800;color:#334155}.mockup{background:#111827;border-radius:34px;padding:20px;box-shadow:var(--shadow);color:white;position:relative;overflow:hidden}.mockup:before{content:"";position:absolute;inset:-80px -90px auto auto;width:260px;height:260px;background:linear-gradient(135deg,#ec4899,#7c3aed);filter:blur(52px);opacity:.42}.mockup-top{position:relative;display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.dots{display:flex;gap:7px}.dots span{width:10px;height:10px;border-radius:50%;background:#94a3b8}.mockup-badge{font-weight:900;font-size:12px;letter-spacing:.08em;color:#c4b5fd}.mock-card{position:relative;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.12);border-radius:24px;padding:20px}.queue-row{display:flex;justify-content:space-between;padding:13px 15px;border-radius:14px;margin:10px 0;background:rgba(255,255,255,.08)}.queue-row strong{color:white}.pin-preview{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;margin:18px 0}.pin-tile{min-height:138px;border-radius:20px;background:linear-gradient(145deg,#f8fafc,#c4b5fd 42%,#ec4899);box-shadow:inset 0 0 0 1px rgba(255,255,255,.4);position:relative;overflow:hidden}.pin-tile:after{content:"";position:absolute;left:16px;right:16px;bottom:18px;height:46px;border-radius:14px;background:rgba(255,255,255,.72)}.mock-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.mock-stat{background:rgba(0,0,0,.22);border-radius:16px;padding:13px}.mock-stat b{display:block;font-size:24px}.section{padding:82px 0}.section-header{text-align:center;max-width:820px;margin:0 auto 42px}.section-header h2,.page-section h2{font-size:clamp(32px,4vw,54px);line-height:1.05;margin:0 0 16px;letter-spacing:-.045em}.section-header p{color:#64748b;font-size:17px}.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.feature-card{background:#fff;border:1px solid #e8edf5;border-radius:var(--radius);padding:28px;box-shadow:0 14px 40px rgba(15,23,42,.05);min-height:242px}.icon-box{width:54px;height:54px;border-radius:16px;background:linear-gradient(135deg,var(--blue),var(--purple));color:white;display:flex;align-items:center;justify-content:center;font-weight:900;margin-bottom:18px}.feature-card h3{font-size:21px;line-height:1.2;margin:0 0 10px}.feature-card p{color:#64748b;margin:0}.split{display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:center}.panel{background:#fff;border:1px solid #e7eaf2;border-radius:var(--radius);padding:34px;box-shadow:var(--shadow)}.workflow-list{display:grid;gap:14px}.workflow-step{display:grid;grid-template-columns:50px 1fr;gap:16px;align-items:start;background:#f8fafc;border:1px solid #e5e7eb;border-radius:18px;padding:18px}.step-num{width:46px;height:46px;border-radius:14px;background:#111827;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:900}.cta{background:linear-gradient(135deg,#0f172a,#312e81 58%,#7c3aed);color:white;border-radius:34px;padding:54px;display:grid;grid-template-columns:1fr auto;gap:28px;align-items:center;overflow:hidden;position:relative}.cta h2{font-size:42px;line-height:1.05;margin:0 0 12px}.cta p{color:#dbeafe;margin:0;max-width:700px}.page-hero{padding:70px 0 54px;background:linear-gradient(180deg,#fff,#f6f8ff);border-bottom:1px solid #e5e7eb}.page-hero p{font-size:18px;color:#64748b;max-width:850px}.page-section{padding:64px 0}.content-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:22px}.content-card{background:#fff;border:1px solid #e5e7eb;border-radius:22px;padding:26px;box-shadow:0 12px 36px rgba(15,23,42,.05)}.content-card h3{margin:0 0 10px;font-size:22px}.content-card p,.content-card li{color:#64748b}.pricing-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.price-card{background:#fff;border:1px solid #e5e7eb;border-radius:28px;padding:30px;box-shadow:0 18px 50px rgba(15,23,42,.06)}.price-card.featured{border-color:#7c3aed;box-shadow:0 26px 70px rgba(124,58,237,.16)}.price-card h3{font-size:24px}.price{font-size:44px;font-weight:900;letter-spacing:-.04em}.price small{font-size:15px;color:#64748b}.check-list{list-style:none;margin:22px 0 0;padding:0}.check-list li{padding:9px 0 9px 30px;position:relative;color:#475569}.check-list li:before{content:"✓";position:absolute;left:0;top:9px;color:#16a34a;font-weight:900}.faq-list{display:grid;gap:16px;max-width:980px;margin:0 auto}.faq-item{background:#fff;border:1px solid #e5e7eb;border-radius:20px;padding:24px}.faq-item h3{margin:0 0 8px}.faq-item p{margin:0;color:#64748b}.legal{max-width:980px;margin:0 auto;background:#fff;border:1px solid #e5e7eb;border-radius:28px;padding:42px;box-shadow:0 18px 55px rgba(15,23,42,.06)}.legal h2{margin-top:36px}.legal p,.legal li{color:#475569}.contact-box{display:grid;grid-template-columns:1fr 1fr;gap:24px}.contact-method{background:#f8fafc;border:1px solid #e5e7eb;border-radius:20px;padding:24px}.site-footer{margin-top:70px;background:#090d1a;color:#d7dce8;padding:64px 0 24px}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr 1fr;gap:42px;align-items:start}.footer-brand img{width:210px;filter:brightness(0) invert(1)}.footer-brand p{color:#aab3c5;max-width:420px;margin:22px 0 14px}.footer-email{color:#c4b5fd;text-decoration:none;font-weight:800}.footer-col{display:flex;flex-direction:column;gap:12px}.footer-col h4{margin:0 0 6px;color:#fff;font-size:15px;letter-spacing:.04em}.footer-col a{display:block;color:#aab3c5;text-decoration:none;font-size:14px}.footer-col a:hover{color:#fff}.footer-bottom{border-top:1px solid rgba(255,255,255,.12);margin-top:42px;padding-top:20px;display:flex;justify-content:space-between;gap:22px;color:#8f9bb3;font-size:13px}.mini-dashboard{display:grid;gap:14px}.mini-card{display:flex;align-items:center;justify-content:space-between;background:#f8fafc;border:1px solid #e5e7eb;border-radius:18px;padding:18px}.mini-card b{font-size:24px}.glow-card{background:linear-gradient(135deg,#fff,#f6f2ff);border:1px solid #e7d8ff;border-radius:28px;padding:32px;position:relative;overflow:hidden}.glow-card:after{content:"";position:absolute;width:160px;height:160px;border-radius:50%;background:#a78bfa;right:-70px;top:-70px;filter:blur(18px);opacity:.25}@media (max-width:980px){.nav-wrap{height:auto;padding:18px 0;flex-wrap:wrap}.main-nav{order:3;width:100%;justify-content:center;overflow-x:auto}.hero-grid,.split,.contact-box{grid-template-columns:1fr}.feature-grid,.pricing-grid,.content-grid{grid-template-columns:1fr}.mockup{max-width:620px}.footer-grid{grid-template-columns:1fr 1fr}.footer-brand{grid-column:1/-1}.footer-bottom{flex-direction:column}.cta{grid-template-columns:1fr}.brand img{width:190px}}@media (max-width:560px){.container{width:min(100% - 24px,1180px)}.hero{padding:48px 0}.hero h1,.page-hero h1{font-size:40px}.pin-preview{grid-template-columns:1fr}.nav-actions{width:100%}.nav-actions .btn{flex:1}.cta{padding:32px}.cta h2{font-size:32px}.footer-grid{grid-template-columns:1fr}}


/* =========================================================
   PINNERGPT Dashboard App Layout Repair
   This section restores protected dashboard styling for pages
   using render_header(): app-shell, sidebar, topbar, cards.
   It is intentionally scoped away from public-body pages.
   ========================================================= */
body:not(.public-body){
    margin:0;
    min-height:100vh;
    background:#f5f7fb;
    color:#0f172a;
    font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
    line-height:1.5;
}
body:not(.public-body) a{color:#2563eb;text-decoration:none}
body:not(.public-body) a:hover{color:#1d4ed8;text-decoration:none}
.app-shell{display:flex;min-height:100vh;background:#f5f7fb}
.app-shell .sidebar{position:fixed;left:0;top:0;bottom:0;width:268px;background:linear-gradient(180deg,#0f172a 0%,#111827 55%,#1e1b4b 100%);color:#fff;padding:22px 16px;overflow-y:auto;z-index:1040;box-shadow:12px 0 34px rgba(15,23,42,.16)}
.app-shell .sidebar::-webkit-scrollbar{width:7px}.app-shell .sidebar::-webkit-scrollbar-thumb{background:rgba(255,255,255,.18);border-radius:999px}
.app-shell .sidebar .brand{display:block;color:#fff;font-size:22px;font-weight:900;letter-spacing:.02em;line-height:1;margin:0 0 22px;padding:10px 12px;text-decoration:none;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);border-radius:18px}
.app-shell .sidebar .brand span{color:#a78bfa}.app-shell .sidebar .nav{gap:5px}.app-shell .sidebar .nav-link{display:flex;align-items:center;min-height:42px;color:#cbd5e1;border-radius:13px;padding:10px 12px;font-weight:700;font-size:14px;letter-spacing:.01em;border:1px solid transparent;transition:.18s ease}
.app-shell .sidebar .nav-link:hover{background:rgba(255,255,255,.09);color:#fff;border-color:rgba(255,255,255,.08);transform:translateX(2px)}
.app-shell .sidebar .nav-link.active{background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff;box-shadow:0 12px 26px rgba(37,99,235,.28)}
.app-shell .main-content{width:100%;min-width:0;margin-left:268px;padding:28px;min-height:100vh}.app-shell .topbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:26px;padding:22px 24px;background:rgba(255,255,255,.92);border:1px solid #e5e7eb;border-radius:24px;box-shadow:0 14px 38px rgba(15,23,42,.06);backdrop-filter:blur(14px)}
.app-shell .topbar h1{font-size:30px;line-height:1.1;letter-spacing:-.035em;margin:0;font-weight:900;color:#0f172a}.app-shell .topbar .text-muted{font-size:14px;color:#64748b!important}.app-shell .user-box{display:flex;align-items:center;gap:12px;background:#f8fafc;border:1px solid #e5e7eb;border-radius:999px;padding:8px 10px 8px 16px;white-space:nowrap}.app-shell .user-box span{font-weight:800;color:#334155}
.app-shell .card,.app-shell .queue-card,.app-shell .rte-panel{border-color:#e5e7eb!important;box-shadow:0 12px 32px rgba(15,23,42,.055);border-radius:18px}.app-shell .card{border-radius:20px}.app-shell .stat-card{border:0;box-shadow:0 12px 34px rgba(15,23,42,.07);overflow:hidden}.app-shell .stat-card:before{content:"";display:block;height:4px;background:linear-gradient(90deg,#2563eb,#7c3aed,#ec4899)}
.app-shell .btn{border-radius:12px;font-weight:800}.app-shell .btn-primary{background:linear-gradient(135deg,#2563eb,#7c3aed);border-color:transparent;box-shadow:0 10px 22px rgba(37,99,235,.22)}.app-shell .btn-dark{background:#111827;border-color:#111827}.app-shell .btn-outline-primary{border-color:#c7d2fe;color:#3730a3}.app-shell .btn-outline-primary:hover{background:#4f46e5;border-color:#4f46e5;color:#fff}.app-shell .form-control,.app-shell .form-select{border-radius:12px;border-color:#dbe3ef;min-height:42px}.app-shell .form-control:focus,.app-shell .form-select:focus{border-color:#7c3aed;box-shadow:0 0 0 .2rem rgba(124,58,237,.13)}.app-shell .table{--bs-table-bg:#fff}.app-shell .table thead th{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#64748b;border-bottom:1px solid #e5e7eb;background:#f8fafc!important}.app-shell .badge.bg-purple{background:#7c3aed!important}.app-shell .badge.bg-indigo{background:#4f46e5!important}
@media (max-width:991px){.app-shell{display:block}.app-shell .sidebar{position:relative;width:100%;height:auto;max-height:none;border-radius:0;display:block}.app-shell .sidebar .nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.app-shell .main-content{margin-left:0;padding:18px}.app-shell .topbar{align-items:flex-start;flex-direction:column}.app-shell .user-box{width:100%;justify-content:space-between}}
@media (max-width:575px){.app-shell .sidebar .nav{grid-template-columns:1fr}.app-shell .main-content{padding:12px}.app-shell .topbar h1{font-size:24px}}
