:root {
    --ink: #11183f;
    --ink-soft: #53617f;
    --muted: #7c88a4;
    --surface: #ffffff;
    --canvas: #f5f7fb;
    --canvas-blue: #eff5ff;
    --purple: #6547ed;
    --purple-dark: #5235db;
    --purple-soft: #f0edff;
    --green: #078663;
    --green-soft: #e9f8f3;
    --amber: #b96713;
    --amber-soft: #fff3df;
    --red: #c83b4d;
    --border: #dfe5ef;
    --border-strong: #cdd6e5;
    --shadow-sm: 0 4px 14px rgba(20, 28, 65, 0.06);
    --shadow-md: 0 18px 46px rgba(20, 28, 65, 0.12);
    --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--surface);
    color: var(--ink);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
}
body, input, textarea, button { letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid rgba(101, 71, 237, 0.25);
    outline-offset: 2px;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link {
    position: fixed;
    z-index: 1000;
    left: 16px;
    top: -60px;
    padding: 10px 14px;
    color: #fff;
    background: var(--ink);
    border-radius: 4px;
}
.skip-link:focus { top: 12px; }

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
}
.header-inner {
    min-height: 72px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: auto minmax(280px, 430px) auto;
    align-items: center;
    gap: 30px;
}
.brand { display: flex; align-items: center; min-width: 224px; gap: 10px; font-weight: 750; }
.brand img { width: 32px; height: 32px; object-fit: contain; }
.brand-name { font-size: 17px; }
.brand-product { color: var(--muted); padding-left: 10px; border-left: 1px solid var(--border-strong); font-weight: 600; }
.header-search, .hero-search, .library-search, .search-page-form {
    position: relative;
    display: flex;
    align-items: center;
}
.header-search { height: 42px; }
.header-search input, .library-search input {
    width: 100%;
    height: 100%;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--canvas);
    color: var(--ink);
    padding: 0 72px 0 42px;
}
.header-search input::placeholder, .library-search input::placeholder { color: #8995ad; }
.header-search input:focus, .library-search input:focus { background: #fff; border-color: var(--purple); outline: 3px solid rgba(101, 71, 237, .1); }
.search-symbol {
    position: absolute;
    z-index: 1;
    left: 16px;
    width: 14px;
    height: 14px;
    border: 1.8px solid #8793ac;
    border-radius: 50%;
    pointer-events: none;
}
.search-symbol::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 2px;
    right: -5px;
    bottom: -2px;
    background: #8793ac;
    transform: rotate(45deg);
    border-radius: 1px;
}
.header-search kbd {
    position: absolute;
    right: 10px;
    padding: 3px 6px;
    border: 1px solid var(--border-strong);
    border-bottom-width: 2px;
    border-radius: 4px;
    color: var(--muted);
    background: #fff;
    font: 600 10px/1 "Segoe UI", sans-serif;
}
.site-navigation { display: flex; align-items: center; justify-content: flex-end; gap: 24px; font-size: 14px; font-weight: 650; white-space: nowrap; }
.site-navigation > a { color: var(--ink-soft); }
.site-navigation > a:hover, .site-navigation > a[aria-current="page"] { color: var(--purple); }
.site-navigation .nav-crewbyte { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.nav-crewbyte span { color: var(--purple); }
.menu-toggle { display: none; }

.eyebrow {
    margin-bottom: 10px;
    color: var(--purple);
    font-size: 12px;
    line-height: 1.2;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.08em;
}
.eyebrow-light { color: #bdb2ff; }
.button {
    min-height: 44px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 750;
    cursor: pointer;
    transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--purple); box-shadow: 0 9px 20px rgba(101, 71, 237, .18); }
.button-primary:hover { background: var(--purple-dark); }
.button-secondary { color: var(--ink); background: #fff; border-color: var(--border-strong); }
.button-secondary:hover { border-color: var(--purple); color: var(--purple); }
.button-light { color: var(--ink); background: #fff; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--purple); font-weight: 750; }
.text-link span { transition: transform 150ms ease; }
.text-link:hover span { transform: translateX(3px); }
.text-link-light { color: #fff; }

.hero-section { position: relative; overflow: hidden; background: var(--canvas); border-bottom: 1px solid var(--border); }
.hero-inner {
    position: relative;
    max-width: var(--max-width);
    min-height: 610px;
    margin: 0 auto;
    padding: 74px 24px 64px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(390px, .8fr);
    align-items: center;
    gap: 86px;
}
.hero-copy { max-width: 650px; }
.hero-copy h1 {
    max-width: 620px;
    margin-bottom: 22px;
    font-size: 64px;
    font-weight: 800;
    letter-spacing: 0;
}
.hero-lead { max-width: 610px; margin-bottom: 30px; color: var(--ink-soft); font-size: 19px; line-height: 1.65; }
.hero-search { max-width: 620px; height: 58px; margin-bottom: 20px; box-shadow: var(--shadow-md); }
.hero-search input {
    width: 100%;
    height: 100%;
    padding: 0 180px 0 48px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--border-strong);
    border-radius: 7px;
    font-size: 16px;
}
.hero-search input:focus { border-color: var(--purple); outline: 3px solid rgba(101, 71, 237, .12); }
.hero-search button, .search-page-form button {
    position: absolute;
    right: 6px;
    height: calc(100% - 12px);
    padding: 0 18px;
    color: #fff;
    background: var(--purple);
    border: 0;
    border-radius: 5px;
    font-weight: 750;
    cursor: pointer;
}
.hero-search .search-symbol { left: 20px; }
.hero-assurances { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; color: var(--ink-soft); font-size: 13px; font-weight: 650; }
.hero-assurances span { display: flex; align-items: center; gap: 7px; }
.hero-assurances i, .template-trust i { font-style: normal; color: var(--green); font-weight: 900; }

.hero-preview { position: relative; width: 100%; max-width: 420px; justify-self: end; padding-bottom: 36px; }
.preview-window-bar {
    height: 42px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--ink);
    border-radius: 8px 8px 0 0;
    box-shadow: var(--shadow-md);
}
.preview-window-bar > span { width: 7px; height: 7px; border-radius: 50%; background: #74809b; }
.preview-window-bar > span:first-child { background: #fc7183; }
.preview-window-bar > span:nth-child(2) { background: #f5bd4d; }
.preview-window-bar > span:nth-child(3) { background: #52cc9c; }
.preview-window-bar small { margin-left: 10px; color: #c9d0e1; font-size: 10px; }
.preview-page {
    min-height: 430px;
    padding: 36px 38px;
    background: #fff;
    border: 1px solid var(--border);
    border-top: 0;
    box-shadow: var(--shadow-md);
}
.preview-page img { margin-bottom: 34px; }
.preview-private { display: block; margin-bottom: 9px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.preview-page h2 { margin-bottom: 28px; font-family: Georgia, serif; font-size: 29px; font-weight: 600; }
.preview-page p { color: #46516b; font-family: Georgia, serif; font-size: 13px; line-height: 1.65; }
.preview-page h3 { margin: 25px 0 13px; font-family: Georgia, serif; font-size: 15px; }
.preview-line { display: block; width: 76%; height: 5px; margin: 8px 0; background: #e5e8ef; border-radius: 2px; }
.preview-line.wide { width: 100%; }
.preview-line.short { width: 48%; }
.preview-signature { margin-top: 34px; display: flex; flex-direction: column; font-family: Georgia, serif; }
.preview-signature span { color: var(--purple); font-size: 19px; font-style: italic; }
.preview-signature small { color: var(--muted); font-size: 10px; }
.preview-ready {
    position: absolute;
    right: -24px;
    bottom: 0;
    min-width: 250px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    border: 1px solid #bce6d8;
    border-radius: 7px;
    box-shadow: var(--shadow-md);
}
.preview-ready > span { width: 32px; height: 32px; display: grid; place-items: center; color: #fff; background: var(--green); border-radius: 50%; font-weight: 900; }
.preview-ready div { display: flex; flex-direction: column; }
.preview-ready strong { font-size: 13px; }
.preview-ready small { color: var(--muted); font-size: 11px; }

.stats-strip {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--border);
}
.stats-strip > div { min-height: 106px; padding: 28px 34px; display: flex; flex-direction: column; border-left: 1px solid var(--border); }
.stats-strip > div:last-child { border-right: 1px solid var(--border); }
.stats-strip strong { font-size: 24px; line-height: 1.1; }
.stats-strip span { margin-top: 6px; color: var(--muted); font-size: 12px; text-transform: uppercase; font-weight: 700; letter-spacing: .06em; }

.content-section { max-width: var(--max-width); margin: 0 auto; padding: 88px 24px; }
.compact-section { padding-top: 80px; padding-bottom: 92px; }
.section-heading { margin-bottom: 34px; }
.section-heading h2 { margin-bottom: 10px; font-size: 38px; }
.section-heading p:not(.eyebrow) { margin-bottom: 0; color: var(--ink-soft); }
.split-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.tinted-section { max-width: none; padding-left: max(24px, calc((100% - var(--max-width)) / 2 + 24px)); padding-right: max(24px, calc((100% - var(--max-width)) / 2 + 24px)); background: var(--canvas-blue); border-top: 1px solid #dbe6f6; border-bottom: 1px solid #dbe6f6; }

.category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--border); }
.category-item {
    position: relative;
    min-height: 164px;
    padding: 28px 58px 28px 54px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-content: center;
    column-gap: 18px;
    border-bottom: 1px solid var(--border);
    transition: background-color 160ms ease;
}
.category-item:nth-child(odd) { border-right: 1px solid var(--border); }
.category-item:hover { background: var(--canvas); }
.category-index { position: absolute; left: 0; top: 31px; color: var(--purple); font: 750 12px/1 "Segoe UI", sans-serif; }
.category-item h3 { margin-bottom: 8px; font-size: 19px; }
.category-item p { margin: 0; max-width: 420px; color: var(--ink-soft); font-size: 14px; line-height: 1.55; }
.category-count { align-self: end; color: var(--muted); font-size: 11px; font-weight: 700; white-space: nowrap; }
.category-arrow { position: absolute; right: 10px; top: 50%; color: var(--purple); transform: translateY(-50%); font-size: 22px; transition: transform 160ms ease; }
.category-item:hover .category-arrow { transform: translate(4px, -50%); }

.template-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.template-card {
    min-height: 290px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.template-card:hover { transform: translateY(-3px); border-color: #c5baff; box-shadow: 0 16px 30px rgba(20, 28, 65, .1); }
.template-card-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 38px; }
.file-badge { position: relative; width: 38px; height: 42px; border: 1px solid #cfc6ff; background: var(--purple-soft); border-radius: 4px; }
.file-badge::after { content: ""; position: absolute; top: -1px; right: -1px; width: 10px; height: 10px; background: #fff; border-left: 1px solid #cfc6ff; border-bottom: 1px solid #cfc6ff; }
.file-badge span, .file-badge span::before, .file-badge span::after { position: absolute; content: ""; left: 9px; right: 9px; height: 2px; background: #a997ff; }
.file-badge span { top: 19px; }
.file-badge span::before { left: 0; right: 0; top: -6px; }
.file-badge span::after { left: 0; right: 4px; top: 6px; }
.type-label { padding: 5px 8px; color: var(--purple); background: var(--purple-soft); border-radius: 4px; font-size: 11px; font-weight: 750; }
.strong-label { color: var(--ink); background: #fff; border: 1px solid var(--border-strong); }
.template-card h3 { margin-bottom: 12px; font-size: 19px; }
.template-card h3 a::after { content: ""; position: absolute; }
.template-card p { margin-bottom: 28px; color: var(--ink-soft); font-size: 14px; line-height: 1.58; }
.template-card-footer { min-height: 38px; padding-top: 17px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--border); }
.template-card-footer > a:first-child { overflow: hidden; color: var(--muted); font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.round-link { flex: 0 0 32px; width: 32px; height: 32px; display: grid; place-items: center; color: #fff; background: var(--ink); border-radius: 50%; }
.round-link:hover { background: var(--purple); }

.steps-section { max-width: var(--max-width); margin: 0 auto; padding: 100px 24px; display: grid; grid-template-columns: .75fr 1.25fr; gap: 100px; align-items: start; }
.steps-copy h2 { margin-bottom: 18px; font-size: 40px; }
.steps-copy > p:not(.eyebrow) { color: var(--ink-soft); line-height: 1.7; }
.steps-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.steps-list li { padding: 24px 0; display: grid; grid-template-columns: 48px 1fr; gap: 20px; border-bottom: 1px solid var(--border); }
.steps-list li > span { color: var(--purple); font: 800 12px/1.4 "Segoe UI", sans-serif; }
.steps-list strong { display: block; margin-bottom: 5px; font-size: 17px; }
.steps-list p { margin-bottom: 0; color: var(--ink-soft); font-size: 14px; }
.popular-list { border-top: 1px solid var(--border); }
.popular-list a { min-height: 72px; padding: 0 12px; display: grid; grid-template-columns: 50px 1fr 230px 30px; align-items: center; gap: 16px; border-bottom: 1px solid var(--border); }
.popular-list a:hover { background: var(--canvas); }
.popular-list a > span { color: var(--purple); font-size: 11px; font-weight: 800; }
.popular-list a > small { color: var(--muted); }
.popular-list a > i { color: var(--purple); font-style: normal; font-size: 20px; }

.page-intro, .category-hero, .template-hero { background: var(--canvas); border-bottom: 1px solid var(--border); }
.page-intro-inner, .category-hero-inner, .template-hero-inner { max-width: var(--max-width); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.page-intro-inner { padding-top: 74px; padding-bottom: 54px; }
.page-intro h1, .category-hero h1 { margin-bottom: 13px; font-size: 48px; }
.page-intro p:not(.eyebrow), .category-hero p:not(.eyebrow) { margin-bottom: 0; color: var(--ink-soft); font-size: 18px; }
.library-section { max-width: var(--max-width); margin: 0 auto; padding: 48px 24px 90px; }
.library-toolbar { margin-bottom: 24px; display: flex; align-items: center; gap: 18px; }
.library-search { flex: 0 0 320px; height: 44px; }
.filter-scroll { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.filter-scroll::-webkit-scrollbar { display: none; }
.filter-button { padding: 8px 11px; color: var(--ink-soft); background: transparent; border: 0; border-radius: 4px; font-size: 13px; font-weight: 650; white-space: nowrap; cursor: pointer; }
.filter-button:hover { background: var(--canvas); }
.filter-button.is-active { color: #fff; background: var(--ink); }
.library-result-count { margin-bottom: 18px; color: var(--muted); font-size: 12px; font-weight: 700; }
.empty-filter, .search-empty-state { padding: 70px 20px; text-align: center; }
.empty-filter p, .search-empty-state p { color: var(--ink-soft); }

.search-intro .page-intro-inner { max-width: 850px; text-align: center; }
.search-page-form { max-width: 720px; height: 58px; margin: 28px auto 0; }
.search-page-form input { width: 100%; height: 100%; padding: 0 120px 0 46px; border: 1px solid var(--border-strong); border-radius: 7px; background: #fff; box-shadow: var(--shadow-sm); }
.search-results-section { min-height: 420px; }
.results-heading { margin-bottom: 22px; display: flex; justify-content: space-between; color: var(--ink-soft); }
.results-heading a { color: var(--purple); font-weight: 700; }
.quick-category-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; max-width: 900px; margin: 20px auto 0; background: var(--border); border: 1px solid var(--border); }
.quick-category-links a { min-height: 58px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; font-size: 13px; font-weight: 650; }
.quick-category-links a:hover { color: var(--purple); background: var(--canvas); }
.quick-category-links span { color: var(--muted); }

.category-hero-inner { padding-top: 34px; padding-bottom: 58px; }
.breadcrumbs { margin-bottom: 42px; display: flex; align-items: center; gap: 9px; overflow: hidden; color: var(--muted); font-size: 12px; white-space: nowrap; }
.breadcrumbs a:hover { color: var(--purple); }
.breadcrumbs > * { overflow: hidden; text-overflow: ellipsis; }
.category-title-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 50px; }
.category-title-row > div { max-width: 760px; }
.resource-total { min-width: 110px; padding-left: 20px; display: flex; flex-direction: column; border-left: 2px solid var(--purple); color: var(--muted); font-size: 12px; }
.resource-total strong { color: var(--ink); font-size: 28px; }
.category-library { max-width: var(--max-width); margin: 0 auto; padding: 58px 24px 88px; }
.category-layout { display: grid; grid-template-columns: 230px 1fr; gap: 34px; }
.category-sidebar { position: sticky; top: 98px; align-self: start; }
.category-sidebar > strong { display: block; margin-bottom: 14px; font-size: 13px; }
.category-sidebar nav { border-top: 1px solid var(--border); }
.category-sidebar a { min-height: 45px; padding: 0 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--border); color: var(--ink-soft); font-size: 12px; }
.category-sidebar a:hover { color: var(--purple); }
.category-sidebar a[aria-current="page"] { color: var(--purple); font-weight: 750; border-left: 2px solid var(--purple); padding-left: 12px; }
.category-sidebar small { color: var(--muted); }
.category-template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.guidance-band { background: var(--green-soft); border-top: 1px solid #c5eadf; }
.guidance-inner { max-width: var(--max-width); margin: 0 auto; padding: 74px 24px; display: grid; grid-template-columns: 1fr .8fr; gap: 100px; }
.guidance-inner h2 { margin-bottom: 16px; font-size: 36px; }
.guidance-inner p { color: #3e625c; line-height: 1.7; }
.guidance-inner ul { margin: 8px 0 0; padding: 0; list-style: none; }
.guidance-inner li { padding: 15px 0; display: flex; gap: 12px; border-bottom: 1px solid #bfe1d7; }
.guidance-inner li span { color: var(--green); font-weight: 900; }

.template-hero-inner { padding-top: 30px; padding-bottom: 68px; }
.template-title-layout { display: grid; grid-template-columns: 1fr 330px; align-items: center; gap: 100px; }
.template-title-copy { max-width: 720px; }
.template-label-row { margin-bottom: 18px; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; font-weight: 650; }
.template-title-copy h1 { margin-bottom: 18px; font-size: 50px; }
.template-title-copy > p { max-width: 690px; margin-bottom: 26px; color: var(--ink-soft); font-size: 18px; line-height: 1.65; }
.template-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.template-trust { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 18px; color: var(--ink-soft); font-size: 12px; font-weight: 650; }
.template-trust span { display: flex; align-items: center; gap: 6px; }
.mini-document { min-height: 405px; padding: 30px; background: #fff; border: 1px solid var(--border-strong); border-radius: 4px; box-shadow: var(--shadow-md); transform: rotate(1.2deg); }
.mini-doc-header { margin-bottom: 42px; display: flex; align-items: center; gap: 9px; color: var(--purple); font-size: 8px; font-weight: 800; }
.mini-document > small { color: var(--muted); font-size: 8px; font-weight: 750; }
.mini-document h2 { margin: 9px 0 28px; font-family: Georgia, serif; font-size: 24px; }
.mini-doc-section { width: 42%; height: 7px; margin: 30px 0 15px; background: var(--ink); }
.mini-doc-footer { margin-top: 64px; padding-top: 13px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); color: var(--muted); font-size: 9px; }
.mini-doc-footer strong { color: var(--purple); }

.generator-section { max-width: var(--max-width); margin: 0 auto; padding: 84px 24px 96px; }
.generator-heading { margin-bottom: 36px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.generator-heading h2 { margin-bottom: 10px; font-size: 40px; }
.generator-heading p:not(.eyebrow) { margin-bottom: 0; color: var(--ink-soft); }
.privacy-chip { flex: 0 0 auto; padding: 12px 14px; display: flex; align-items: center; gap: 10px; background: var(--green-soft); border: 1px solid #c6e9df; border-radius: 6px; }
.privacy-chip > span { color: var(--green); }
.privacy-chip div { display: flex; flex-direction: column; }
.privacy-chip strong { font-size: 12px; }
.privacy-chip small { color: #47756c; font-size: 10px; }
.form-errors { margin-bottom: 22px; padding: 16px 18px; color: #922b3d; background: #fff0f2; border-left: 3px solid var(--red); }
.form-errors strong { display: block; margin-bottom: 7px; }
.form-errors ul { margin: 0; padding-left: 18px; }
.generator-workspace { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .82fr); gap: 22px; align-items: start; }
.generator-form { padding: 28px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-sm); }
.form-section-heading { margin-bottom: 24px; padding-bottom: 18px; display: flex; align-items: center; gap: 13px; border-bottom: 1px solid var(--border); }
.form-section-heading > span { width: 34px; height: 34px; display: grid; place-items: center; color: var(--purple); background: var(--purple-soft); border-radius: 5px; font-size: 11px; font-weight: 800; }
.form-section-heading div { display: flex; flex-direction: column; }
.form-section-heading strong { font-size: 15px; }
.form-section-heading small { color: var(--muted); font-size: 11px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.field { min-width: 0; display: flex; flex-direction: column; gap: 7px; color: var(--ink); font-size: 12px; font-weight: 700; }
.field-wide { grid-column: 1 / -1; }
.field input, .field textarea { width: 100%; color: var(--ink); background: #fff; border: 1px solid var(--border-strong); border-radius: 6px; font-weight: 400; }
.field input { height: 46px; padding: 0 13px; }
.field textarea { min-height: 104px; padding: 12px 13px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #98a2b8; }
.field input:focus, .field textarea:focus { border-color: var(--purple); outline: 3px solid rgba(101, 71, 237, .1); }
.generator-submit-row { margin-top: 25px; padding-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--border); }
.generator-submit-row > div { min-width: 190px; display: flex; flex-direction: column; gap: 7px; }
.completion-track { width: 100%; height: 5px; overflow: hidden; background: #e9ecf2; border-radius: 3px; }
.completion-track i { display: block; width: 0; height: 100%; background: var(--green); transition: width 200ms ease; }
.generator-submit-row small { color: var(--muted); font-size: 10px; }
.document-preview-panel { position: sticky; top: 92px; padding: 18px; background: #eef1f6; border: 1px solid #d9e0eb; border-radius: 8px; }
.preview-panel-header { margin-bottom: 15px; padding: 0 2px; display: flex; align-items: center; justify-content: space-between; }
.preview-panel-header > div { display: flex; flex-direction: column; }
.preview-panel-header strong { font-size: 13px; }
.preview-panel-header span { color: var(--muted); font-size: 10px; }
.preview-panel-header button { width: 34px; height: 34px; display: grid; place-items: center; color: var(--ink-soft); background: #fff; border: 1px solid var(--border-strong); border-radius: 5px; cursor: pointer; }
.document-paper { height: 620px; overflow: auto; padding: 42px 38px; background: #fff; border: 1px solid #d8dde7; box-shadow: 0 8px 22px rgba(20, 28, 65, .08); font-family: Georgia, serif; color: #26304a; }
.document-paper h1 { margin-bottom: 27px; color: var(--ink); font-size: 25px; font-weight: 600; }
.document-paper h2 { margin: 25px 0 9px; color: var(--ink); font-size: 16px; }
.document-paper h3 { margin: 22px 0 8px; font-size: 14px; }
.document-paper p, .document-paper li { font-size: 12px; line-height: 1.65; }
.document-paper ul, .document-paper ol { padding-left: 20px; }
.document-paper blockquote { margin: 14px 0; padding: 9px 12px; color: #485570; background: var(--canvas); border-left: 3px solid var(--purple); }
.document-paper .preview-value { padding: 1px 2px; color: #2d1da2; background: #ebe7ff; }
.document-paper hr { margin: 20px 0; border: 0; border-top: 1px solid var(--border); }
.preview-disclaimer { margin: 12px 3px 0; color: var(--muted); font-size: 10px; line-height: 1.5; }

.use-section { background: var(--canvas); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.use-layout { max-width: var(--max-width); margin: 0 auto; padding: 88px 24px; display: grid; grid-template-columns: 1fr 380px; gap: 100px; align-items: start; }
.use-layout h2 { margin-bottom: 30px; max-width: 650px; font-size: 38px; }
.use-layout ol { margin: 0; padding: 0; list-style: none; }
.use-layout ol li { padding: 20px 0; display: grid; grid-template-columns: 38px 1fr; gap: 18px; border-top: 1px solid var(--border); }
.use-layout ol li > span { width: 30px; height: 30px; display: grid; place-items: center; color: var(--purple); border: 1px solid #cfc6ff; border-radius: 50%; font-size: 11px; font-weight: 800; }
.use-layout ol strong { display: block; margin-bottom: 5px; }
.use-layout ol p { margin-bottom: 0; color: var(--ink-soft); font-size: 14px; }
.review-panel { padding: 28px; color: #fff; background: var(--ink); border-radius: 8px; }
.review-panel h3 { margin-bottom: 22px; font-size: 24px; }
.review-panel ul { margin: 0; padding: 0; list-style: none; }
.review-panel li { padding: 11px 0; display: flex; gap: 10px; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 13px; }
.review-panel li span { color: #62d7b3; font-weight: 900; }
.review-panel hr { margin: 24px 0; border: 0; border-top: 1px solid rgba(255,255,255,.16); }
.review-panel > p:last-child { margin-bottom: 0; color: #c6cce0; font-size: 11px; line-height: 1.6; }
.related-section { padding-top: 82px; padding-bottom: 94px; }
.related-grid { grid-template-columns: repeat(4, 1fr); }
.related-grid .template-card { min-height: 300px; }

.platform-cta { color: #fff; background: var(--ink); }
.platform-cta-inner { max-width: var(--max-width); min-height: 340px; margin: 0 auto; padding: 68px 24px; display: flex; align-items: center; justify-content: space-between; gap: 80px; }
.platform-cta h2 { margin-bottom: 14px; font-size: 48px; }
.platform-cta p:not(.eyebrow) { max-width: 720px; margin-bottom: 0; color: #bdc4da; font-size: 18px; line-height: 1.6; }
.platform-cta-actions { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.site-footer { background: #0b102b; color: #fff; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 42px 24px; display: grid; grid-template-columns: 1fr auto; gap: 30px 60px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand div { display: flex; flex-direction: column; }
.footer-brand span { margin-top: 2px; color: #949db9; font-size: 11px; }
.site-footer nav { display: flex; gap: 24px; color: #c2c8db; font-size: 12px; }
.site-footer nav a:hover { color: #fff; }
.footer-note { grid-column: 1 / -1; margin: 0; padding-top: 24px; color: #7f89a7; border-top: 1px solid rgba(255,255,255,.1); font-size: 10px; }

.error-page { max-width: 760px; min-height: 570px; margin: 0 auto; padding: 130px 24px; text-align: center; }
.error-page h1 { margin-bottom: 18px; font-size: 48px; }
.error-page > p:not(.eyebrow) { color: var(--ink-soft); font-size: 17px; }
.error-page > div { margin-top: 30px; display: flex; justify-content: center; gap: 10px; }

@media (max-width: 1080px) {
    .header-inner { grid-template-columns: auto minmax(240px, 1fr) auto; gap: 18px; }
    .brand { min-width: auto; }
    .site-navigation { gap: 15px; }
    .site-navigation > a:not(.nav-crewbyte) { display: none; }
    .hero-inner { grid-template-columns: minmax(0, 1fr) 350px; gap: 48px; }
    .hero-copy h1 { font-size: 54px; }
    .template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .template-title-layout { gap: 54px; }
    .generator-workspace { grid-template-columns: minmax(0, 1fr) 370px; }
    .use-layout { gap: 55px; }
}

@media (max-width: 820px) {
    .header-inner { min-height: 64px; grid-template-columns: auto 1fr auto; }
    .brand-product { display: none; }
    .header-search { max-width: 330px; justify-self: end; }
    .site-navigation { display: none; position: absolute; top: 64px; left: 0; right: 0; padding: 12px 20px 20px; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); }
    .site-navigation.is-open { display: flex; }
    .site-navigation > a, .site-navigation > a:not(.nav-crewbyte) { min-height: 48px; display: flex; align-items: center; border-bottom: 1px solid var(--border); }
    .menu-toggle { width: 40px; height: 40px; display: grid; place-items: center; background: transparent; border: 1px solid var(--border); border-radius: 5px; cursor: pointer; }
    .menu-toggle > span:not(.sr-only), .menu-toggle > span:not(.sr-only)::before, .menu-toggle > span:not(.sr-only)::after { content: ""; width: 17px; height: 2px; display: block; background: var(--ink); }
    .menu-toggle > span:not(.sr-only)::before { transform: translateY(-5px); }
    .menu-toggle > span:not(.sr-only)::after { transform: translateY(3px); }
    .hero-inner { min-height: 0; padding-top: 58px; grid-template-columns: 1fr; }
    .hero-copy h1 { font-size: 52px; }
    .hero-preview { max-width: 430px; justify-self: center; }
    .stats-strip { grid-template-columns: repeat(2, 1fr); }
    .stats-strip > div:nth-child(2) { border-right: 1px solid var(--border); }
    .steps-section { grid-template-columns: 1fr; gap: 42px; }
    .popular-list a { grid-template-columns: 44px 1fr 30px; }
    .popular-list a > small { display: none; }
    .category-layout { grid-template-columns: 1fr; }
    .category-sidebar { position: static; }
    .category-sidebar nav { display: flex; overflow-x: auto; border: 0; gap: 7px; }
    .category-sidebar a { min-width: max-content; min-height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: 5px; }
    .category-sidebar a[aria-current="page"] { padding-left: 12px; border: 1px solid var(--purple); }
    .guidance-inner { gap: 50px; }
    .template-title-layout { grid-template-columns: 1fr 260px; gap: 35px; }
    .template-title-copy h1 { font-size: 43px; }
    .mini-document { min-height: 350px; padding: 24px; }
    .generator-workspace { grid-template-columns: 1fr; }
    .document-preview-panel { position: static; }
    .document-paper { height: 500px; }
    .use-layout { grid-template-columns: 1fr; gap: 48px; }
    .review-panel { max-width: 520px; }
    .platform-cta-inner { align-items: flex-start; flex-direction: column; gap: 35px; }
    .platform-cta-actions { align-items: flex-start; }
}

@media (max-width: 620px) {
    .header-inner { padding: 0 16px; gap: 10px; }
    .brand-name { font-size: 15px; }
    .brand img { width: 29px; height: 29px; }
    .header-search { height: 40px; }
    .header-search input { padding-right: 12px; font-size: 13px; }
    .header-search kbd { display: none; }
    .hero-inner { padding: 48px 18px 50px; gap: 42px; }
    .hero-copy h1 { font-size: 42px; }
    .hero-lead { font-size: 16px; }
    .hero-search { height: auto; flex-direction: column; align-items: stretch; box-shadow: none; gap: 8px; }
    .hero-search input { height: 54px; padding-right: 15px; box-shadow: var(--shadow-sm); }
    .hero-search button { position: static; min-height: 48px; }
    .hero-assurances { gap: 12px; }
    .hero-preview { max-width: calc(100% - 10px); }
    .preview-page { min-height: 390px; padding: 30px 27px; }
    .preview-ready { right: -7px; min-width: 220px; }
    .stats-strip { padding: 0 18px; }
    .stats-strip > div { min-height: 92px; padding: 22px 14px; }
    .stats-strip strong { font-size: 21px; }
    .content-section, .steps-section, .library-section, .category-library, .generator-section { padding-left: 18px; padding-right: 18px; }
    .content-section, .steps-section { padding-top: 64px; padding-bottom: 64px; }
    .section-heading h2, .steps-copy h2, .generator-heading h2, .use-layout h2, .guidance-inner h2 { font-size: 32px; }
    .split-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
    .category-grid { grid-template-columns: 1fr; }
    .category-item:nth-child(odd) { border-right: 0; }
    .category-item { min-height: 150px; padding-left: 45px; padding-right: 38px; }
    .category-index { left: 2px; }
    .category-count { grid-column: 1; margin-top: 12px; }
    .template-grid, .category-template-grid, .related-grid { grid-template-columns: 1fr; }
    .template-card { min-height: 260px; }
    .tinted-section { padding-left: 18px; padding-right: 18px; }
    .steps-section { gap: 34px; }
    .popular-list a { grid-template-columns: 36px 1fr 24px; padding-left: 3px; padding-right: 3px; }
    .page-intro-inner, .category-hero-inner, .template-hero-inner { padding-left: 18px; padding-right: 18px; }
    .page-intro-inner { padding-top: 55px; padding-bottom: 40px; }
    .page-intro h1, .category-hero h1 { font-size: 39px; }
    .library-toolbar { align-items: stretch; flex-direction: column; }
    .library-search { flex-basis: 44px; width: 100%; }
    .filter-scroll { margin-left: -18px; margin-right: -18px; padding: 0 18px; }
    .search-page-form { height: auto; flex-direction: column; gap: 8px; }
    .search-page-form input { height: 54px; padding-right: 15px; }
    .search-page-form button { position: static; min-height: 46px; }
    .quick-category-links { grid-template-columns: 1fr; }
    .category-hero-inner { padding-top: 24px; padding-bottom: 45px; }
    .breadcrumbs { margin-bottom: 30px; }
    .category-title-row { align-items: flex-start; flex-direction: column; gap: 25px; }
    .guidance-inner { padding: 60px 18px; grid-template-columns: 1fr; gap: 30px; }
    .template-hero-inner { padding-top: 22px; padding-bottom: 52px; }
    .template-title-layout { grid-template-columns: 1fr; }
    .template-title-copy h1 { font-size: 39px; }
    .template-title-copy > p { font-size: 16px; }
    .template-actions { flex-direction: column; align-items: stretch; }
    .template-actions .button { width: 100%; }
    .mini-document { width: calc(100% - 14px); max-width: 330px; justify-self: center; }
    .generator-section { padding-top: 64px; padding-bottom: 70px; }
    .generator-heading { align-items: flex-start; flex-direction: column; }
    .privacy-chip { width: 100%; }
    .generator-form { padding: 20px 16px; }
    .field-grid { grid-template-columns: 1fr; }
    .field-wide { grid-column: auto; }
    .generator-submit-row { align-items: stretch; flex-direction: column; }
    .document-preview-panel { padding: 12px; }
    .document-paper { height: 460px; padding: 32px 25px; }
    .use-layout { padding: 66px 18px; }
    .platform-cta-inner { min-height: 0; padding: 62px 18px; }
    .platform-cta h2 { font-size: 39px; }
    .platform-cta p:not(.eyebrow) { font-size: 16px; }
    .platform-cta-actions { width: 100%; }
    .platform-cta-actions .button { width: 100%; }
    .footer-inner { padding: 38px 18px; grid-template-columns: 1fr; }
    .site-footer nav { flex-wrap: wrap; gap: 14px 20px; }
    .footer-note { grid-column: 1; }
    .error-page h1 { font-size: 39px; }
    .error-page > div { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
