/* Loaded after typography and motion to keep spacing consistent at every width. */
:root { --bg: #f7f8fc; --ink: #252b42; --muted: #606a80; --line: #e3e6ef; --brand-gradient: linear-gradient(135deg, #6c63ff, #5046d6); }
html { scroll-padding-top: 84px; }
body { background: var(--bg); line-height: 1.6; }
.container { width: min(1180px, calc(100% - 48px)); }
.site-header { background: var(--brand-gradient); box-shadow: 0 3px 14px #5046d624; }
.nav-shell { width: min(1228px, 100%); min-height: 70px; margin: auto; padding: 10px 24px; gap: 24px; background: transparent; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; }
.nav-shell:focus-within { box-shadow: none; }
.site-header .brand { flex-shrink: 0; font-size: 16px; gap: 10px; }
.site-header .brand-name { line-height: 1.22; letter-spacing: -.02em; font-weight: 600; }
.brand-second-line { display: block; color: #eeebff; font-size: 13px; font-weight: 500; letter-spacing: .025em; }
.site-header .brand-logo { width: 38px; height: 38px; border-radius: 10px; box-shadow: none; }
.site-header .nav-links { margin-left: auto; gap: 5px; }
.site-header .nav-links a { min-height: 40px; padding: 9px 12px; border-radius: 8px; color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap; transform: none; }
.site-header .nav-links a:hover, .site-header .nav-links a:focus-visible { color: #fff; background: #ffffff0c; }
.site-header .nav-links a.active-link, .site-header .nav-links a[aria-current] { color: #fff; background: #ffffff12; }
.site-header .nav-links a.active-link::after { display: none; }
.site-header .nav-links a.nav-cta { padding-inline: 15px; margin-left: 10px; gap: 8px; background: #fff; box-shadow: 0 2px 8px #36299e20; color: #5145c8 !important; font-weight: 600; }
.site-header .nav-links a.nav-cta:hover { background: #eeebff; color: #4535b4 !important; }
.nav-cta .icon { width: 16px; height: 16px; }
.menu-button { margin-left: auto; width: 40px; height: 40px; border-radius: 9px; background: #ffffff15; border-color: #ffffff40; }
.hero-band { background: linear-gradient(110deg, #f1effd, #f5f4ff 58%, #eef8f8); border-bottom: 1px solid #e2e1f0; }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: center; gap: 56px; padding-block: 24px; }
.hero.hero-compact { padding: 0; text-align: left; }
.hero::before { display: none; }
.hero .eyebrow { padding: 0; margin: 0 0 10px; background: none; border: 0; font-size: 11px; font-weight: 650; color: #5b51bf; gap: 7px; box-shadow: none; }
.hero .eyebrow .icon { width: 15px; height: 15px; }
.hero.hero-compact h1 { font-size: clamp(32px, 3vw, 42px); margin: 0 0 10px; line-height: 1.1; letter-spacing: -.045em; font-weight: 650; max-width: 540px; }
.hero.hero-compact h1 span { color: #6957dc; }
.hero-subtitle { text-align: left; margin: 0; max-width: 490px; font-size: 14px; line-height: 1.6; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 15px; flex-wrap: wrap; }
.hero-actions .btn { min-height: 43px; padding: 10px 16px; border-radius: 9px; font-size: 13px; text-decoration: none; gap: 9px; box-shadow: 0 3px 8px #6255d31a; }
.hero-guide { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-size: 13px; font-weight: 550; color: #5147ad; }
.hero-guide:hover { color: #332681; }
.hero-guide .icon { width: 16px; height: 16px; }
.hero-assurances { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 13px; font-size: 11px; color: #5a6378; }
.hero-assurances > span { display: inline-flex; align-items: center; gap: 5px; }
.hero-assurances > span > span { color: #168b7f; font-weight: 700; }
.hero-workflow { border: 1px solid #fff; background: #ffffffbf; border-radius: 15px; padding: 16px 18px; box-shadow: 0 8px 30px #3b37790a; transform: rotate(-1deg); }
.workflow-top { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #6b6f84; padding-bottom: 11px; border-bottom: 1px solid #ebebf3; }
.workflow-dot { width: 6px; height: 6px; border-radius: 50%; background: #2da999; }
.workflow-item { display: flex; align-items: center; gap: 12px; padding-block: 10px; }
.workflow-number { display: grid; place-items: center; flex: 0 0 33px; height: 33px; border-radius: 9px; background: #eeebfd; color: #7865d7; font-size: 11px; font-weight: 650; }
.workflow-item:nth-child(3) .workflow-number { background: #e6f5f0; color: #248a7a; }
.workflow-item:nth-child(4) .workflow-number { background: #fff2de; color: #ac7b30; }
.workflow-item strong { display: block; font-size: 13px; line-height: 1.5; font-weight: 600; color: #32374d; }
.workflow-item div > span { display: block; font-size: 11px; line-height: 1.5; color: #72798c; margin-top: 2px; }
.workflow-check, .workflow-item > .icon { margin-left: auto; color: #259788; font-size: 13px; width: 15px; }
.workflow-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid #ebebf3; padding-top: 11px; font-size: 10px; color: #7a8091; }
.workflow-footer .pill { padding: 2px 8px; color: #238477; font-size: 10px; border-color: #d3ece4; background: #edf8f3; }
.workspace-shell { padding-top: 22px; }
.workspace-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.section-eyebrow, .workspace-heading .section-eyebrow { margin: 0 0 5px; font-size: 10px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: #7161d0; }
.workspace-heading h2 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -.025em; line-height: 1.3; }
.workspace-preview { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid #e1e3ef; border-radius: 8px; color: #656c83; background: #fff; text-decoration: none; font-size: 12px; white-space: nowrap; }
.workspace-preview:hover { color: #5e4dc5; border-color: #c9c2eb; }
.workspace-preview .icon { width: 14px; height: 14px; }
.tool-grid { gap: 18px; align-items: start; }
.tool-grid > .card { min-width: 0; height: auto; }
.card { padding: 22px; border-radius: 14px; border: 1px solid #e2e5ef; background: #fff; box-shadow: 0 3px 15px #29325b04; }
.card-title { margin-bottom: 0; }
.card .step { font-size: 10px; letter-spacing: .1em; margin: 0 0 6px; }
.card h2 { font-size: 21px; line-height: 1.3; margin: 0 0 9px; font-weight: 600; letter-spacing: -.025em; }
.card .description { font-size: 13px; line-height: 1.6; margin: 0 0 17px; }
.live-badge { font-size: 10px; padding: 3px 8px; }
.style-row { margin-bottom: 13px; }
.source-tabs { gap: 6px; margin-bottom: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.source-tabs button { padding: 9px 7px; border-radius: 9px; font-size: 11px; gap: 5px; }
.source-tabs button .icon { width: 15px; height: 15px; flex-shrink: 0; }
.mode-tabs { margin-bottom: 14px; }
.mode-tabs button { padding: 7px 12px; font-size: 12px; }
.field-grid { gap: 12px; }
.field { gap: 5px; }
.field label { font-size: 12px; line-height: 1.4; font-weight: 550; }
.field input, .field textarea, .field select { padding: 9px 11px; font-size: 13px; border-radius: 8px; background: #fcfcfe; }
.field input { min-height: 40px; height: 40px; }
.field textarea#paper-essay { min-height: 140px; height: 140px; }
.field input:focus, .field textarea:focus { background: #fff; }
.lookup-row .btn { font-size: 12px; padding-inline: 13px; }
.field-help { font-size: 11px; line-height: 1.6; margin-top: 6px; }
.card .note { font-size: 11px; line-height: 1.65; margin-top: 12px; padding: 10px 12px; background: #f7f7fd; border-radius: 8px; }
.citation-library { margin-top: 18px; padding-top: 15px; }
.library-heading h3 { font-size: 14px; }
.empty-citations { padding: 18px 16px; margin: 12px 0 0; border: 1px dashed #dcddec; border-radius: 9px; font-size: 12px; text-align: center; color: #80869a; background: #fcfcff; }
.preview-meta { font-size: 11px; margin-top: 12px; }
.paper-card { margin-top: 18px; }
.paper-stage { margin: 16px 0; background: #f0f1f7; border: 1px solid #e5e7f0; border-radius: 10px; padding: 18px; }
.preview-bottom p { font-size: 12px; }
.content-overview { margin-top: 30px; padding: 30px 0; background: #fff; border-top: 1px solid #e4e6ef; border-bottom: 1px solid #e4e6ef; }
.overview-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.overview-copy h2 { margin: 8px 0 12px; font-size: clamp(25px, 2.6vw, 32px); line-height: 1.2; letter-spacing: -.035em; font-weight: 600; }
.overview-copy .intro { font-size: 14px; line-height: 1.7; color: var(--muted); margin: 0 0 16px; max-width: 460px; }
.content-overview .product-visual { width: auto; margin: 0; border-radius: 12px; box-shadow: none; }
.product-visual figcaption { padding: 9px 12px; font-size: 10px; }
.features-section, .how-it-works-section, .source-types-section, .why-trust-section { padding: 32px 0; }
.features-section .section-title, .how-it-works-section .section-title, .source-types-section .section-title { font-size: clamp(24px, 2.7vw, 32px); max-width: 720px; margin-bottom: 12px; }
.features-section .section-subtitle { margin-bottom: 22px; font-size: 14px; }
.how-it-works-section .section-title, .source-types-section .section-title { margin-bottom: 24px; }
.features-grid { gap: 16px; }
.feature-card { padding: 22px; border-radius: 13px; border-color: #e4e6f0; backdrop-filter: none; }
.feature-icon { width: 38px; height: 38px; border-radius: 10px; margin-bottom: 13px; }
.feature-icon .icon { width: 20px; height: 20px; }
.feature-card h3 { font-size: 16px; margin-bottom: 8px; }
.feature-card p, .step-card p, .source-type-info p { font-size: 13px; line-height: 1.7; }
.steps-grid { gap: 20px; }
.step-number { width: 48px; height: 48px; font-size: 18px; margin-bottom: 16px; }
.steps-grid::before { top: 24px; }
.step-card h3 { font-size: 17px; }
.source-types-grid { gap: 12px; }
.source-type-card { padding: 16px; border-radius: 11px; }
.source-type-info h3 { font-size: 14px; }
.guide-section { padding: 34px 0; margin: 0; background: #f4f5fa; }
.guide-intro { padding: 0; background: none; border: none; border-radius: 0; box-shadow: none; max-width: 800px; margin-bottom: 18px; }
.guide-intro h2 { font-size: 28px; margin-bottom: 10px; }
.guide-intro p { font-size: 14px; line-height: 1.75; }
.guide-jumps { display: flex; gap: 8px; flex-wrap: wrap; max-width: 800px; margin: 0 auto 26px; }
.guide-jumps a { padding: 7px 11px; font-size: 11px; border-radius: 7px; border: 1px solid #dedfea; background: #fff; color: #6b5eae; text-decoration: none; }
.guide-jumps a:hover { border-color: #b7abeb; color: #49359e; }
.guide-layout.centered-guide { display: block; max-width: 800px; margin-inline: auto; }
.guide-content h2 { font-size: 24px; margin: 30px 0 13px; padding: 0; background: none; border: none; border-radius: 0; box-shadow: none; }
.guide-content h3 { font-size: 18px; margin: 21px 0 9px; }
.guide-content p, .guide-content li { font-size: 14px; line-height: 1.8; }
.guide-content p { margin-bottom: 12px; }
.why-trust-card { padding: 30px; border-radius: 16px; box-shadow: none; }
.why-trust-header { margin-bottom: 24px; }
.why-trust-header h2 { font-size: 29px; }
.why-trust-item p { color: #c2c7dc; font-size: 13px; }
.faq-section { padding: 32px 0; }
.faq-header { margin-bottom: 20px; }
.faq-header h2 { font-size: 28px; }
.faq-list { gap: 8px; }
.faq-item { border-radius: 11px; }
.faq-item summary { padding: 15px 18px; font-size: 14px; }
.faq-item p { font-size: 13px; padding-inline: 18px; }
.cta-section { padding: 0 0 32px; }
.cta-card { padding: 32px 24px; border-radius: 15px; }
.cta-card h2 { font-size: 29px; margin-bottom: 10px; }
.cta-card p { font-size: 14px; margin-bottom: 18px; }
.cta-btn { min-height: 44px; padding: 10px 19px; font-size: 13px; border-radius: 9px; }
.site-footer { background: var(--brand-gradient); }
.site-footer::before { display: none; }
.footer-shell { padding: 34px 24px 22px; max-width: 1228px; }
.footer-grid { grid-template-columns: minmax(270px, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 28px; }
.site-footer .brand { font-size: 17px; }
.site-footer .brand-logo { width: 36px; height: 36px; border-radius: 9px; }
.footer-brand p { margin: 12px 0; color: #f0edff; font-size: 12px; line-height: 1.75; }
.footer-contact { display: grid; gap: 8px; margin: 0 0 16px; }
.footer-email { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.footer-email:hover { color: #fff; }
.footer-email .icon { width: 14px; height: 14px; flex-shrink: 0; }
.footer-heading { margin: 5px 0 12px; color: #eeeaff; font-size: 10px; }
.footer-links { gap: 3px; }
.footer-links a { font-size: 12px; min-height: 0; padding: 4px 0; color: #fff; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-tag { font-size: 10px; padding: 5px 9px; color: #fff; border-color: #ffffff40; background: #ffffff14; }
.footer-bottom { margin-top: 24px; padding-top: 16px; font-size: 11px; color: #f0edff; border-top-color: #ffffff30; }
.footer-bottom p { color: #f0edff; font-size: 11px; }
.article-shell { padding-block: 32px; }
.article-header { margin-bottom: 22px; }
.article-header h1 { margin: 12px 0 14px; }
.article-body p { font-size: 14px; }
.contact-card { padding: 22px; border-radius: 13px; }
.contact-card a { color: #6251c4; overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid #a497ef; outline-offset: 3px; }
@media (max-width: 1000px) {
  .nav-shell { gap: 15px; }
  .site-header .nav-links a { padding-inline: 9px; font-size: 12px; }
  .hero-layout { gap: 28px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav-shell { flex-wrap: wrap; min-height: 64px; padding: 10px 20px; gap: 0; }
  .menu-button { display: grid; place-items: center; }
  .site-header .nav-links { display: none; width: 100%; margin: 10px 0 2px; padding: 12px 0 0; border-top: 1px solid #ffffff17; gap: 7px; }
  .site-header .nav-links.open { display: grid; grid-template-columns: 1fr 1fr; }
  .site-header .nav-links a { font-size: 13px; padding: 10px 12px; min-height: 44px; }
  .site-header .nav-links a.nav-cta { margin: 0; justify-content: center; }
  .hero-layout { grid-template-columns: 1.3fr 1fr; }
  .hero-workflow { padding: 13px; }
  .workflow-top { font-size: 10px; }
  .workflow-footer > span:last-child { display: none; }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 32px); }
  .hero-layout { grid-template-columns: 1fr; padding-block: 24px; }
  .hero-workflow { display: none; }
  .hero.hero-compact h1 { font-size: clamp(30px, 7.6vw, 41px); max-width: 520px; margin-bottom: 10px; }
  .hero-subtitle { font-size: 13px; max-width: 440px; }
  .hero-actions { gap: 15px; margin-top: 16px; }
  .hero-actions .btn, .hero-guide { font-size: 12px; }
  .hero-assurances { margin-top: 14px; gap: 14px; }
  .workspace-shell { padding-top: 19px; }
  .workspace-heading { margin-bottom: 14px; align-items: flex-end; }
  .workspace-heading h2 { font-size: 18px; }
  .workspace-preview { font-size: 11px; padding: 6px 9px; }
  .workspace-preview .icon { display: none; }
  .card { padding: 19px; border-radius: 12px; }
  .card h2 { font-size: 20px; }
  .field input, .field textarea, .field select { font-size: 16px; }
  .field input { min-height: 44px; height: 44px; }
  .source-tabs button { font-size: 11px; padding-inline: 6px; }
  .features-grid { grid-template-columns: 1fr; gap: 12px; }
  .steps-grid { grid-template-columns: 1fr; gap: 20px; }
  .steps-grid::before { display: none; }
  .source-types-grid { grid-template-columns: 1fr 1fr; }
  .source-type-card { align-items: flex-start; gap: 10px; }
  .source-type-icon { width: 32px; height: 32px; border-radius: 9px; }
  .source-type-icon .icon { width: 17px; height: 17px; }
  .content-overview { padding: 26px 0; margin-top: 24px; }
  .overview-layout { grid-template-columns: 1fr; gap: 20px; }
  .features-section, .how-it-works-section, .source-types-section, .why-trust-section, .guide-section, .faq-section { padding-block: 28px; }
  .guide-content h2 { font-size: 22px; }
  .why-trust-card { padding: 24px 20px; }
  .why-trust-grid { gap: 20px; }
  .footer-grid { gap: 22px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-shell { padding: 30px 20px 20px; }
  .footer-links a { min-height: 36px; }
  .footer-bottom { align-items: flex-start; }
}
@media (max-width: 480px) {
  .nav-shell { padding-inline: 16px; }
  .site-header .brand { font-size: 15px; }
  .workspace-heading { display: block; }
  .workspace-preview { margin-top: 9px; }
  .source-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .source-tabs button { font-size: 12px; min-height: 39px; }
  .lookup-row { flex-wrap: wrap; }
  .lookup-row input { flex: 1; min-width: 0; }
  .lookup-row .btn { flex-shrink: 0; }
  .source-types-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
  .footer-grid > div:last-child .footer-links { flex-direction: row; flex-wrap: wrap; gap: 0 16px; }
  .hero-assurances { font-size: 10px; gap: 12px; }
  .hero-actions { gap: 12px; }
  .hero .eyebrow { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-workflow { transform: none; }
}
@media print {
  .hero-band, .workspace-heading, .content-overview, .guide-jumps { display: none !important; }
  .paper-card { border: 0; margin: 0; padding: 0; }
  .paper-stage { border: 0; background: none; padding: 0; margin: 0; }
}

/* Keep the supporting panels in the same palette as the primary actions. */
.why-trust-card, .cta-card { background: var(--brand-gradient); border: 1px solid #6c63ff; box-shadow: 0 10px 26px rgba(80,70,214,.12); }
.why-trust-card::before, .cta-card::before { display: none; }
.why-trust-header .section-eyebrow, .why-trust-header h2, .why-trust-item h3, .why-trust-item p, .cta-card h2, .cta-card p { color: #fff; }
.why-trust-card .why-trust-item h3 .wt-icon { background: rgba(255,255,255,.17); color: #fff; }
.cta-card .btn.primary { background: #fff; color: #5046d6; border-color: #fff; box-shadow: 0 4px 14px rgba(33,24,117,.14); }
.cta-card .btn.primary:hover { background: #f3f1ff; color: #4035bd; }
.source-tabs { display: flex; flex-wrap: wrap; align-items: stretch; }
.source-tabs > button { flex: 1 1 82px; }
.more-sources { position: relative; flex: 1 1 100%; min-width: 0; }
.more-sources summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 13px; border: 1px solid #dddaf5; border-radius: 9px; background: #f7f6ff; color: #5046d6; font: 600 12px/1.4 Inter, sans-serif; cursor: pointer; list-style: none; }
.more-sources summary::-webkit-details-marker { display: none; }
.more-sources.selected summary, .more-sources[open] summary { border-color: #6c63ff; background: #eeecff; }
.more-sources summary:focus-visible, .more-source-options button:focus-visible { outline: 3px solid #a29cff; outline-offset: 2px; }
.more-source-options { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 8px; border: 1px solid #dedaf5; border-radius: 12px; background: #fff; box-shadow: 0 12px 30px rgba(39,30,91,.15); }
.source-tabs .more-source-options button { justify-content: flex-start; text-align: left; font-size: 12px; padding: 9px 10px; min-height: 38px; border: 0; background: transparent; }
.source-tabs .more-source-options button:hover, .source-tabs .more-source-options button[aria-pressed="true"] { background: #eeecff; color: #5046d6; }
.mode-tabs button:disabled { opacity: .45; cursor: not-allowed; }
.intext-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 5px; }
.intext-row .intext { margin-right: auto; color: #5046d6; overflow-wrap: anywhere; }
.intext-row input { width: 140px; max-width: 100%; padding: 7px 9px; font-size: 11px; }
.intext-row .text-btn { font-size: 11px; padding: 6px 0; }
.citation-item { overflow-wrap: anywhere; }
.checkbox-label[hidden], .field[hidden], .intext-row input[hidden] { display: none !important; }
@media (max-width: 480px) {
 .source-tabs > button { flex-basis: calc(50% - 6px); }
 .more-source-options { gap: 3px; padding: 6px; }
 .source-tabs .more-source-options button { font-size: 11px; padding: 9px 7px; }
 .intext-row .intext { flex-basis: 100%; }
}
