/* Scrollify.app — main stylesheet */
:root{
  --plum:#3a1d55;
  --plum-2:#4f2a72;
  --deep:#1b1028;
  --lav:#d3b8d8;
  --lav-soft:#f3edf7;
  --lav-mid:#e6d8ec;
  --gold:#e9b949;
  --gold-2:#f3cd6e;
  --ink:#1f1830;
  --muted:#5d5470;
  --line:#e4dbea;
  --white:#ffffff;
  --radius:16px;
  --wrap:1180px;
  --shadow:0 18px 40px -22px rgba(40,16,60,.45);
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{font-family:"Poppins",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:var(--ink);background:#fbf9fc;line-height:1.75;font-size:16px;overflow-x:hidden}
img{max-width:100%;height:auto;display:block}
a{color:var(--plum-2);text-decoration:none;transition:color .2s}
a:hover{color:var(--plum)}
h1,h2,h3,h4{line-height:1.25;color:var(--ink);font-weight:700}
h1{font-size:clamp(2rem,4.4vw,3.2rem)}
h2{font-size:clamp(1.6rem,3vw,2.25rem);margin-bottom:.9rem}
h3{font-size:1.15rem;margin-bottom:.45rem}
p{margin-bottom:1rem}
p:last-child{margin-bottom:0}
code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.9em;background:var(--lav-soft);color:var(--plum);padding:.12em .42em;border-radius:6px}
pre{background:var(--deep);color:#ece4f4;padding:1.1rem 1.25rem;border-radius:12px;overflow-x:auto;margin:0 0 1.2rem;font-size:.9rem;line-height:1.65}
pre code{background:none;color:inherit;padding:0;font-size:inherit}
.container{width:100%;max-width:var(--wrap);margin:0 auto;padding:0 24px}
.section{padding:88px 0}
.section.alt{background:var(--lav-soft)}
.eyebrow{display:inline-block;font-size:.8rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--plum-2);margin-bottom:.6rem}
.lead{font-size:1.06rem;color:var(--muted);max-width:760px}
.section-head{margin-bottom:2.6rem}
.center{text-align:center}
.center .lead{margin-left:auto;margin-right:auto}

/* Buttons */
.btn{display:inline-flex;align-items:center;gap:.55rem;font-weight:600;font-size:.98rem;padding:.85rem 1.5rem;border-radius:999px;border:2px solid transparent;cursor:pointer;transition:transform .2s,box-shadow .2s,background .2s,color .2s;font-family:inherit;line-height:1.2}
.btn svg{width:18px;height:18px;flex:none}
.btn-gold{background:var(--gold);color:var(--deep);box-shadow:0 10px 24px -10px rgba(233,185,73,.8)}
.btn-gold:hover{background:var(--gold-2);color:var(--deep);transform:translateY(-2px)}
.btn-ghost{border-color:rgba(255,255,255,.55);color:#fff}
.btn-ghost:hover{background:rgba(255,255,255,.12);color:#fff}
.btn-plum{background:var(--plum);color:#fff}
.btn-plum:hover{background:var(--plum-2);color:#fff;transform:translateY(-2px)}

/* Header */
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.94);backdrop-filter:saturate(160%) blur(10px);-webkit-backdrop-filter:saturate(160%) blur(10px);border-bottom:1px solid var(--line)}
.nav-wrap{display:flex;align-items:center;justify-content:space-between;height:74px;gap:1.2rem}
.brand{display:flex;align-items:center;gap:.6rem;font-weight:700;font-size:1.4rem;color:var(--plum)}
.brand img{width:42px;height:42px}
.brand:hover{color:var(--plum-2)}
.main-nav ul{display:flex;list-style:none;gap:1.6rem}
.main-nav a{color:var(--ink);font-weight:500;font-size:.95rem;position:relative;padding:.3rem 0}
.main-nav a::after{content:"";position:absolute;left:0;bottom:-2px;width:0;height:2px;background:var(--gold);transition:width .25s}
.main-nav a:hover::after,.main-nav a.active::after{width:100%}
.header-cta{padding:.68rem 1.25rem;font-size:.92rem;background:var(--plum);color:#fff;box-shadow:0 0 0 4px rgba(233,185,73,.35)}
.header-cta:hover{background:var(--plum-2);color:#fff;box-shadow:0 0 0 6px rgba(233,185,73,.45)}
.nav-toggle{display:none;background:none;border:0;width:44px;height:44px;cursor:pointer;color:var(--plum)}
.nav-toggle svg{width:28px;height:28px}
.mobile-cta{display:none}

/* Hero */
.hero{position:relative;min-height:640px;display:flex;align-items:center;color:#fff;background:#1b1028 url("../img/scrollify-hero.webp") center right/cover no-repeat}
.hero::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(20,10,32,.94) 0%,rgba(28,13,44,.82) 42%,rgba(28,13,44,.25) 75%,rgba(28,13,44,.1) 100%)}
.hero .container{position:relative;z-index:1}
.hero-content{max-width:560px;padding:96px 0}
.hero h1{color:#fff;margin-bottom:1.1rem}
.hero h1 span{color:var(--gold)}
.hero p{color:#e8def0;font-size:1.08rem;margin-bottom:1.8rem}
.hero-actions{display:flex;flex-wrap:wrap;gap:.9rem}
.hero-meta{display:flex;flex-wrap:wrap;gap:1.4rem;margin-top:2rem;font-size:.88rem;color:#cfc2dc}
.hero-meta span{display:flex;align-items:center;gap:.4rem}
.hero-meta svg{width:16px;height:16px;color:var(--gold)}

/* Split */
.split{display:grid;grid-template-columns:1.05fr .95fr;gap:56px;align-items:center}
.split>*,.download-box>*{min-width:0}
.split .media img{border-radius:var(--radius);box-shadow:var(--shadow)}
.split.reverse .media{order:-1}

/* Features (boxed) */
.feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.feature{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:1.6rem 1.4rem;transition:transform .25s,box-shadow .25s}
.feature:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.icon{width:50px;height:50px;border-radius:14px;display:grid;place-items:center;background:var(--plum);color:var(--gold);margin-bottom:1rem}
.icon svg{width:24px;height:24px}
.feature p{font-size:.93rem;color:var(--muted)}

/* Steps (not boxed) */
.steps{list-style:none;display:grid;grid-template-columns:repeat(2,1fr);gap:34px 56px;counter-reset:s}
.step{display:flex;gap:1.1rem;align-items:flex-start}
.step>div,.steps>li{min-width:0}
.step .icon{flex:none;margin:0;background:var(--lav-mid);color:var(--plum)}
.step h3 small{display:block;font-size:.75rem;color:var(--plum-2);letter-spacing:.1em;text-transform:uppercase;font-weight:600;margin-bottom:.15rem}
.step p{color:var(--muted);font-size:.95rem}
.step pre{margin-top:.6rem;margin-bottom:0;font-size:.85rem}

/* Table */
.table-wrap{overflow-x:auto;border-radius:12px;border:1px solid var(--line)}
table{width:100%;min-width:620px;border-collapse:collapse;background:#fff;font-size:.94rem}
th,td{padding:.9rem 1.1rem;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}
th{background:var(--plum);color:#fff;font-weight:600}
tr:last-child td{border-bottom:0}
td code{white-space:nowrap}

/* Check list */
.ticks{list-style:none;margin:0 0 1rem}
.ticks li{position:relative;padding-left:1.9rem;margin-bottom:.6rem}
.ticks li::before{content:"";position:absolute;left:0;top:.42rem;width:18px;height:18px;border-radius:50%;background:var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b1028' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/11px no-repeat}

/* Download (boxed) */
.download-box{display:grid;grid-template-columns:1.2fr .8fr;gap:40px;align-items:center;background:linear-gradient(135deg,var(--deep),var(--plum-2));color:#fff;border-radius:24px;padding:56px;box-shadow:var(--shadow)}
.download-box h2{color:#fff}
.download-box p{color:#e2d6ec}
.download-box .eyebrow{color:var(--gold)}
.file-meta{list-style:none;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.14);border-radius:16px;padding:1.4rem 1.5rem}
.file-meta li{display:flex;justify-content:space-between;gap:1rem;padding:.55rem 0;border-bottom:1px solid rgba(255,255,255,.1);font-size:.93rem}
.file-meta li:last-child{border-bottom:0}
.file-meta span{color:#c9bcd8}
.file-meta strong{color:#fff;font-weight:600;text-align:right}
.download-actions{margin-top:1.6rem;display:flex;flex-wrap:wrap;gap:.9rem;align-items:center}
.download-note{font-size:.85rem;color:#cbbfd9}

/* Guide cards (boxed) */
.card-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;transition:transform .25s,box-shadow .25s}
.card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.card img{aspect-ratio:14/9;object-fit:cover;width:100%}
.card-body{padding:1.4rem 1.4rem 1.6rem;display:flex;flex-direction:column;flex:1}
.card-body .tag{font-size:.75rem;font-weight:600;color:var(--plum-2);text-transform:uppercase;letter-spacing:.1em;margin-bottom:.4rem}
.card-body h3 a{color:var(--ink)}
.card-body h3 a:hover{color:var(--plum-2)}
.card-body p{font-size:.92rem;color:var(--muted);flex:1}
.read-more{margin-top:1rem;font-weight:600;font-size:.92rem;display:inline-flex;align-items:center;gap:.35rem}
.read-more svg{width:16px;height:16px;transition:transform .2s}
.read-more:hover svg{transform:translateX(4px)}
.section-foot{margin-top:2.4rem;text-align:center}

/* FAQ */
.faq-list{max-width:900px;margin:0 auto}
.faq-item{border-bottom:1px solid var(--line)}
.faq-q{width:100%;display:flex;justify-content:space-between;align-items:center;gap:1rem;background:none;border:0;text-align:left;font-family:inherit;font-size:1.04rem;font-weight:600;color:var(--ink);padding:1.25rem 0;cursor:pointer}
.faq-q:hover{color:var(--plum-2)}
.faq-q .plus{flex:none;width:32px;height:32px;border-radius:50%;background:var(--lav-mid);color:var(--plum);display:grid;place-items:center;transition:transform .3s,background .3s}
.faq-q .plus svg{width:16px;height:16px}
.faq-item.open .plus{transform:rotate(45deg);background:var(--gold);color:var(--deep)}
.faq-a{max-height:0;overflow:hidden;transition:max-height .35s ease}
.faq-a p{padding:0 3rem 1.3rem 0;color:var(--muted)}

/* Conclusion */
.conclusion{text-align:center}
.conclusion p{color:var(--muted)}
.conclusion .btn{margin-top:1rem}

/* Page hero (inner) */
.page-hero{background:linear-gradient(135deg,var(--deep),var(--plum-2));color:#fff;padding:72px 0 64px}
.page-hero h1{color:#fff;margin-bottom:.7rem}
.page-hero p{color:#e2d6ec;max-width:760px}
.breadcrumb{font-size:.86rem;color:#cbbfd9;margin-bottom:1rem}
.breadcrumb a{color:var(--gold)}
.breadcrumb a:hover{color:var(--gold-2)}

/* Article */
.article-wrap{max-width:860px;margin:0 auto}
.article-meta{display:flex;flex-wrap:wrap;gap:1.2rem;font-size:.88rem;color:#cbbfd9;margin-top:1rem}
.article-cover{border-radius:var(--radius);box-shadow:var(--shadow);margin:-40px auto 2.6rem;position:relative}
.prose h2{font-size:1.55rem;margin:2.4rem 0 .8rem}
.prose h3{font-size:1.15rem;margin:1.6rem 0 .5rem}
.prose ul,.prose ol{margin:0 0 1.1rem 1.3rem}
.prose li{margin-bottom:.4rem}
.prose .table-wrap{margin-bottom:1.3rem}
.note{border-left:4px solid var(--gold);background:var(--lav-soft);padding:1rem 1.2rem;border-radius:0 12px 12px 0;margin:0 0 1.2rem;font-size:.95rem}
.related{margin-top:3.2rem;padding-top:2.4rem;border-top:1px solid var(--line)}
.related h2{font-size:1.4rem;margin-bottom:1.2rem}
.related ul{list-style:none;margin:0}
.related li{padding:.55rem 0;border-bottom:1px dashed var(--line)}

/* Legal */
.legal{max-width:860px;margin:0 auto}
.legal h2{font-size:1.35rem;margin:2rem 0 .6rem}
.legal ul{margin:0 0 1rem 1.3rem}
.contact-mail{display:inline-block;font-size:1.25rem;font-weight:600;color:var(--plum);background:var(--lav-soft);padding:.8rem 1.4rem;border-radius:12px;margin:.6rem 0 1rem;user-select:all}

/* Footer */
.site-footer{background:#f4eff7;border-top:1px solid var(--line);padding:72px 0 0;color:var(--muted)}
.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1.3fr 1.1fr;gap:40px}
.footer-brand .brand{margin-bottom:1rem;font-size:1.5rem}
.footer-brand p{font-size:.95rem;max-width:360px}
.footer-col h3{font-size:1.1rem;margin-bottom:1.1rem;color:var(--ink)}
.footer-col ul{list-style:none}
.footer-col li{margin-bottom:.7rem}
.footer-col a{color:var(--muted);font-size:.95rem}
.footer-col a:hover{color:var(--plum)}
.footer-bottom{margin-top:56px;border-top:1px solid var(--line);padding:22px 0;display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;font-size:.92rem}
.footer-bottom a{color:var(--ink);font-weight:700}
.footer-bottom a:hover{color:var(--plum)}
.footer-bottom .disc{padding-right:70px}

/* Scroll to top */
.to-top{position:fixed;right:24px;bottom:24px;width:54px;height:54px;border-radius:50%;background:var(--plum);color:#fff;border:0;display:grid;place-items:center;cursor:pointer;box-shadow:0 12px 26px -10px rgba(40,16,60,.7);opacity:0;visibility:hidden;transform:translateY(12px);transition:all .3s;z-index:60}
.to-top.show{opacity:1;visibility:visible;transform:none}
.to-top:hover{background:var(--plum-2)}
.to-top svg{width:24px;height:24px}

/* Responsive */
@media (max-width:1100px){
  .main-nav ul{gap:1.1rem}
  .feature-grid{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:960px){
  .nav-toggle{display:block}
  .header-cta{display:none}
  .main-nav{position:absolute;top:74px;left:0;right:0;background:#fff;border-bottom:1px solid var(--line);box-shadow:0 18px 30px -20px rgba(40,16,60,.35);display:none}
  .main-nav.open{display:block}
  .main-nav ul{flex-direction:column;gap:0;padding:.6rem 24px 1.2rem}
  .main-nav li a{display:block;padding:.75rem 0;border-bottom:1px solid var(--line)}
  .main-nav a::after{display:none}
  .mobile-cta{display:block;padding-top:1rem}
  .mobile-cta .btn{width:100%;justify-content:center}
  .split,.download-box{grid-template-columns:1fr;gap:34px}
  .split .media,.split.reverse .media{order:2}
  .card-grid{grid-template-columns:repeat(2,1fr)}
  .steps{grid-template-columns:minmax(0,1fr)}
  .download-box{padding:40px 28px}
  .hero{background-position:70% center}
  .hero::before{background:linear-gradient(180deg,rgba(20,10,32,.9),rgba(28,13,44,.82))}
}
@media (max-width:640px){
  body{font-size:15.5px}
  .section{padding:64px 0}
  .container{padding:0 18px}
  .feature-grid,.card-grid,.footer-grid{grid-template-columns:1fr}
  .hero{min-height:560px}
  .hero-content{padding:72px 0}
  .hero-actions .btn{width:100%;justify-content:center}
  .faq-a p{padding-right:0}
  .footer-bottom{flex-direction:column;text-align:left}
  .footer-bottom .disc{padding-right:0}
  .footer-bottom{padding-bottom:84px}
  .to-top{right:16px;bottom:16px;width:48px;height:48px}
  .article-cover{margin-top:-24px}
}
p code,li code{overflow-wrap:anywhere}

/* Long-form guides: reading column with accessible in-page navigation. */
.article-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;column-gap:48px;align-items:start}
.article-layout .article-cover{grid-column:1/-1;grid-row:1}
.article-layout .prose{min-width:0;grid-column:1;grid-row:2}
.article-layout .prose h2{scroll-margin-top:100px}
.article-sidebar{min-width:0;align-self:stretch;grid-column:2;grid-row:2}
.sidebar-inner{position:sticky;top:98px;max-height:calc(100vh - 120px);overflow-y:auto;padding:22px;background:var(--cream,#faf7fc);border:1px solid var(--line);border-radius:16px}
.article-sidebar h2{font-size:1rem;margin:0 0 12px;color:var(--plum)}
.article-sidebar nav+nav{border-top:1px solid var(--line);margin-top:24px;padding-top:20px}
.article-sidebar ol,.article-sidebar ul{list-style:none;margin:0;padding:0}
.article-sidebar li+li{margin-top:10px}
.article-sidebar a{display:block;font-size:.82rem;line-height:1.6;text-decoration:none;overflow-wrap:anywhere}
.article-sidebar a:hover{text-decoration:underline}
.article-sidebar a:focus-visible,.article-faq summary:focus-visible{outline:3px solid var(--plum);outline-offset:4px}
.article-faq{border:1px solid var(--line);border-radius:12px;margin:12px 0;background:#fff}
.article-faq summary{padding:18px;cursor:pointer;font-weight:600}
.article-faq p{padding:0 18px 18px;margin:0}
@media(max-width:960px){
 .article-layout{grid-template-columns:minmax(0,1fr);gap:26px}
 .article-layout .article-cover{grid-column:1;grid-row:1}
 .article-sidebar{grid-column:1;grid-row:2}
 .article-layout .prose{grid-column:1;grid-row:3}
 .sidebar-inner{position:static;max-height:none;overflow:visible;padding:20px}
 .article-sidebar ol{columns:2;column-gap:24px}
 .article-sidebar li{break-inside:avoid}
 .article-sidebar nav+nav{display:none}
}
@media(max-width:640px){.article-sidebar ol{columns:1}.article-layout{gap:20px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.to-top{transition:none}}
