:root {
  --ink: #1e293b;
  --muted: #64748b;
  --paper: #fff;
  --line: #e2e8f0;
  --primary: #007fb2;
  --primary-dark: #005a7d;
  --accent: #00a8e8;
  --dark: #002838;
  --surface: #f8fafc;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 16px; line-height: 1.6; }
a { color: inherit; text-underline-offset: 4px; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button, input, select, textarea { border-radius: 8px; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #4272c5; outline-offset: 4px; }
[hidden] { display: none !important; }
.container { width: min(1180px, calc(100% - 80px)); margin-inline: auto; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; }
h1 { font-size: clamp(2.7rem, 4.8vw, 4.2rem); letter-spacing: -.035em; font-weight: 800; margin-bottom: 26px; }
h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); letter-spacing: -.025em; font-weight: 700; margin-bottom: 0; }
h3 { font-size: 1.25rem; letter-spacing: -.015em; font-weight: 700; margin-bottom: 14px; }
p { margin-bottom: 18px; }
code { font-family: Consolas, "Liberation Mono", monospace; font-size: .9em; }
pre { margin: 0; line-height: 1.7; tab-size: 2; overflow-x: auto; }
pre code { font-size: .84rem; }
.eyebrow { text-transform: uppercase; font-size: .72rem; font-weight: 700; letter-spacing: .15em; color: var(--primary-dark); margin-bottom: 18px; }
.section { padding-block: 96px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 40px; }
.section-heading > div { max-width: 650px; }
.section-heading > p { max-width: 330px; color: var(--muted); margin: 0; font-size: .95rem; }
.header { background: rgba(255, 255, 255, .95); box-shadow: 0 4px 6px -1px #0000001a; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 90px; gap: 28px; }
.brand { text-decoration: none; display: flex; flex-direction: column; align-items: start; gap: 4px; line-height: 1.2; flex-shrink: 0; }
.brand-logo { display: block; width: 200px; height: 50px; object-fit: contain; }
.brand-sub { display: block; font-size: .65rem; letter-spacing: .03em; font-weight: 500; color: var(--muted); }
nav { display: flex; align-items: center; gap: 28px; font-size: .82rem; font-weight: 600; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }
.nav-cta { padding: 10px 16px; border: 1px solid var(--primary-dark); border-radius: 8px; color: var(--primary-dark); }
.nav-cta span { padding-left: 10px; }
.hero { color: white; background: linear-gradient(135deg, var(--dark), #003d52); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 12% 20%, #00a8e81a 0 24px, transparent 25px), radial-gradient(circle at 65% 60%, #00a8e80d 0 42px, transparent 43px); background-size: 160px 160px, 240px 240px; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.14fr 1fr; gap: 66px; padding-block: 94px 90px; align-items: center; }
.theme-decoration { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.theme-decoration i { position: absolute; width: 60px; height: 60px; left: 10%; top: 20%; background: url("themes/base/icon.svg") center / contain no-repeat; opacity: .12; animation: drift 20s ease-in-out infinite alternate; }
.theme-decoration i:nth-child(2) { left: 35%; top: 65%; animation-delay: -6s; }
.theme-decoration i:nth-child(3) { left: 70%; top: 15%; animation-delay: -12s; }
.theme-decoration i:nth-child(4) { left: 85%; top: 75%; animation-delay: -3s; }
.theme-decoration i:nth-child(5) { left: 5%; top: 80%; animation-delay: -10s; }
.theme-decoration i:nth-child(6) { left: 50%; top: 40%; animation-delay: -16s; }
@keyframes drift { from { transform: translateY(-20px) rotate(-12deg); } to { transform: translateY(40px) rotate(15deg); } }
body.sinterklaas-theme { --primary: #dc143c; --primary-dark: #8b0000; --accent: #ffd700; --surface: #fff5ee; --dark: #360a13; }
body.thanksgiving-theme { --primary: #d2691e; --primary-dark: #8b4513; --accent: #ffa500; --surface: #fff8dc; --dark: #35200f; }
body.christmas-theme { --primary: #dc143c; --primary-dark: #8b0000; --accent: #228b22; --surface: #f0fff0; --dark: #122a1c; }
body.sinterklaas-theme .theme-decoration i { background-image: url("themes/sinterklaas/icon.svg"); }
body.thanksgiving-theme .theme-decoration i { background-image: url("themes/thanksgiving/icon.svg"); }
body.christmas-theme .theme-decoration i { background-image: url("themes/christmas/icon.svg"); }
body:is(.sinterklaas-theme, .thanksgiving-theme, .christmas-theme) .hero { background: var(--dark); }
body:is(.sinterklaas-theme, .thanksgiving-theme, .christmas-theme) .hero::before { opacity: .2; }
body:is(.sinterklaas-theme, .thanksgiving-theme, .christmas-theme) .hero-demo,
body:is(.sinterklaas-theme, .thanksgiving-theme, .christmas-theme) .window-bar { background: var(--dark); border-color: #ffffff50; }
body:is(.sinterklaas-theme, .thanksgiving-theme, .christmas-theme) .demo-result { background: #ffffff12; border-color: #ffffff50; }
body:is(.sinterklaas-theme, .thanksgiving-theme, .christmas-theme) .library-card.featured,
body:is(.sinterklaas-theme, .thanksgiving-theme, .christmas-theme) .library-icon { background: var(--surface); }
body:is(.sinterklaas-theme, .thanksgiving-theme, .christmas-theme) .hero .eyebrow,
body:is(.sinterklaas-theme, .thanksgiving-theme, .christmas-theme) .button-secondary,
body:is(.sinterklaas-theme, .thanksgiving-theme, .christmas-theme) .request-section .eyebrow,
body:is(.sinterklaas-theme, .thanksgiving-theme, .christmas-theme) .email-link { color: #fff4c0; }
.site-preferences { display: flex; align-items: center; gap: 12px; }
.site-preferences select { min-height: 40px; max-width: 120px; background: white; color: var(--ink); border: 1px solid var(--line); padding: 6px; font-size: .8rem; }
.theme-toggle { display: flex; align-items: center; gap: 6px; padding: 5px 8px; min-height: 40px; border: 1px solid var(--primary-dark); background: var(--surface); color: var(--primary-dark); font-size: .72rem; }
.theme-toggle[aria-pressed="true"] { outline: 2px solid var(--primary-dark); outline-offset: 2px; }
.theme-toggle img { object-fit: contain; }
.menu-toggle { display: none; border: 1px solid var(--line); background: white; padding: 6px 12px; font-size: 1.4rem; color: var(--ink); }
.preference-status { font-size: .8rem; margin: 0; padding: 8px 24px; color: #8b0000; background: #fff5ee; }
.hero .eyebrow { color: #8edaff; display: flex; align-items: center; gap: 9px; }
.status-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.hero h1 span { color: white; }
.hero-description { font-size: 1.04rem; color: #d5e9f2; max-width: 500px; margin-bottom: 32px; }
.actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; border-radius: 8px; padding: 13px 19px; font-size: .83rem; font-weight: 700; text-decoration: none; transition: background .15s, transform .15s; }
.button:hover { transform: translateY(-2px); }
.button-light { background: var(--primary-dark); color: white; border: 2px solid white; }
.button-light:hover { background: var(--primary); }
.button-secondary { background: var(--primary-dark); color: #8edaff; border: 2px solid var(--accent); }
.button-secondary:hover { background: var(--primary); }
.button-dark { background: var(--primary-dark); color: white; }
.button-dark:hover { background: var(--primary); }
.text-link { font-size: .83rem; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link span { margin-left: 6px; }
.hero-notes { display: flex; gap: 20px; font-size: .7rem; color: #d5e9f2; margin-top: 40px; flex-wrap: wrap; }
.hero-notes span::before { content: "+"; color: #8edaff; margin-right: 7px; }
.hero-demo { background: #07384d; border: 1px solid #396879; border-radius: var(--radius); box-shadow: 0 10px 15px -3px #0000001a; overflow: hidden; }
.window-bar { display: flex; justify-content: space-between; align-items: center; padding: 15px 22px; font: .68rem Consolas, monospace; border-bottom: 1px solid #396879; color: #d5e9f2; background: #0b4056; gap: 12px; }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 6px; height: 6px; border-radius: 50%; background: #8abccc; }
.file-type { border: 1px solid #588a9e; padding: 0 5px; font-size: .6rem; border-radius: 3px; }
.code-label { display: block; font: .6rem Consolas, monospace; letter-spacing: .12em; color: #b7d7e5; }
.hero-demo > .code-label { padding: 24px 26px 12px; }
.hero-demo pre { padding: 0 26px 24px; }
.syntax-tag { color: #bdd1ff; }
.syntax-string { color: #8edaff; }
.syntax-value, .syntax-function { color: #eaccb8; }
.syntax-muted { color: #b7d7e5; }
.demo-result { margin: 0 20px; padding: 18px 14px; background: #00506e; border: 1px solid #397f99; border-radius: 8px; display: flex; gap: 12px; align-items: center; }
.demo-result code { font-size: .74rem; }
.demo-result .code-label { margin-bottom: 8px; }
.result-symbol { color: #8edaff; font-size: 1.25rem; }
.demo-caption { padding: 16px 26px; margin: 0; font-size: .68rem; color: #d5e9f2; }
.proof-strip { background: var(--surface); border-bottom: 1px solid var(--line); }
.proof-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 21px; font-size: .75rem; color: var(--muted); }
.proof-inner > span:first-child { font-weight: 600; color: var(--ink); }
.proof-inner b { font-weight: 400; padding-inline: 10px; color: var(--muted); }
.library-tools { display: flex; align-items: end; gap: 24px; justify-content: space-between; margin-bottom: 28px; }
.search-field { width: 310px; }
.search-field label { font-size: .75rem; font-weight: 600; display: block; margin-bottom: 6px; }
.search-field input { padding: 11px 14px; border: 1px solid #94a3b8; background: white; width: 100%; color: var(--ink); font-size: .84rem; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filter { font-size: .73rem; font-weight: 600; padding: 10px 12px; border: 1px solid var(--line); color: var(--muted); background: transparent; }
.filter:hover { border-color: var(--primary); }
.filter.active { color: white; background: var(--primary-dark); border-color: var(--primary-dark); }
.library-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.library-card { background: white; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 4px 6px -1px #0000001a; display: flex; flex-direction: column; min-height: 510px; scroll-margin-top: 110px; }
.library-card.featured { border-color: var(--primary); background: #f0f9ff; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 28px; }
.library-icon { font-family: Consolas, monospace; color: var(--primary-dark); background: #eaf6fc; border: 1px solid #c5e6f5; border-radius: 9px; min-width: 52px; padding: 7px 9px; text-align: center; font-size: .9rem; flex-shrink: 0; }
.badge { font-size: .6rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 650; color: var(--muted); }
.library-card h3 { color: var(--primary-dark); font-size: 1.2rem; letter-spacing: -.015em; margin-bottom: 12px; }
.library-card p { color: var(--muted); font-size: .82rem; margin-bottom: 16px; }
.library-card .card-lead { color: var(--ink); font-weight: 650; font-size: .88rem; }
.feature-list { list-style: none; margin: 0 0 20px; padding: 0; color: var(--muted); font-size: .75rem; }
.feature-list li { margin-bottom: 7px; padding-left: 16px; position: relative; }
.feature-list li::before { content: "+"; color: var(--primary-dark); position: absolute; left: 0; font-weight: 700; }
details summary { cursor: pointer; font-size: .82rem; font-weight: 650; padding: 12px 0; }
.library-card details { border-top: 1px solid var(--line); margin-top: auto; }
.detail-body { padding: 8px 0; }
.library-card .compatibility { color: var(--primary-dark); font-size: .75rem; font-weight: 600; }
.card-request { display: flex; justify-content: space-between; gap: 20px; align-items: center; font-size: .8rem; font-weight: 650; padding-top: 15px; color: var(--primary-dark); text-decoration: none; }
.card-request:hover { text-decoration: underline; }
.empty-state { background: var(--surface); padding: 24px; border-radius: 10px; }
.examples-section { background: var(--surface); border-block: 1px solid var(--line); padding-block: 86px; }
.example-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.example-card { background: var(--dark); color: white; border-radius: 12px; overflow: hidden; border: 1px solid #396879; }
.example-heading { padding: 20px; border-bottom: 1px solid #396879; }
.example-heading h3 { font-size: .94rem; margin-bottom: 8px; }
.example-heading span { font: .68rem Consolas, monospace; color: #8edaff; }
.example-card pre { padding: 22px 20px; }
.example-card pre code { font-size: .72rem; color: #d5e9f2; }
.example-card p { padding: 20px; border-top: 1px solid #396879; color: #d5e9f2; font-size: .75rem; margin: 0; }
.example-card strong { color: #8edaff; }
.example-note { color: var(--muted); font-size: .75rem; margin: 22px 0 0; max-width: 850px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 45px; list-style: none; padding: 0; margin: 50px 0; }
.step-number { font: .9rem Consolas, monospace; color: var(--primary-dark); display: block; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 22px; }
.steps h3 { font-size: 1.1rem; }
.steps p { font-size: .85rem; color: var(--muted); margin-bottom: 0; }
.loading-note { border: 1px solid var(--line); background: var(--surface); padding: 26px 30px; border-radius: 12px; display: flex; align-items: start; gap: 22px; }
.loading-note h3 { font-size: 1rem; margin-bottom: 8px; }
.loading-note p { font-size: .82rem; color: var(--muted); margin: 0; }
.request-section { background: var(--dark); color: white; padding-block: 85px; }
.request-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.request-section .eyebrow { color: #8edaff; }
.request-section h2 { font-size: clamp(2.3rem, 4vw, 3.4rem); margin-bottom: 25px; }
.request-grid > div:first-child > p:not(.eyebrow) { color: #d5e9f2; }
.email-link { display: inline-block; margin: 12px 0 26px; color: #8edaff; font-size: 1.35rem; text-decoration: none; letter-spacing: -.025em; }
.email-link:hover { text-decoration: underline; }
.email-link span { padding-left: 18px; }
.request-panel { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 34px; }
.request-panel h3 { font-size: 1.2rem; margin-bottom: 24px; }
.request-panel label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: 7px; }
.optional { font-weight: 400; color: var(--muted); }
.request-panel select, .request-panel textarea { background: white; border: 1px solid #94a3b8; padding: 11px 13px; color: var(--ink); font-size: .82rem; width: 100%; margin-bottom: 19px; }
.request-panel textarea { resize: vertical; min-height: 110px; }
.request-panel .button { width: 100%; }
.request-small { font-size: .72rem; line-height: 1.65; }
.request-panel .request-small { color: var(--muted); margin: 14px 0 0; }
#request-status:empty { display: none; }
.faq-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { padding: 20px 0; font-size: .88rem; }
.faq-list p { font-size: .82rem; color: var(--muted); padding-bottom: 8px; }
footer { border-top: 1px solid var(--line); padding-block: 30px; }
.footer-inner { display: flex; justify-content: space-between; gap: 25px; align-items: center; }
.footer-inner > div { display: flex; align-items: end; flex-direction: column; gap: 5px; font-size: .72rem; }
.footer-inner > div > span { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; background: white; padding: 10px 16px; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
@media (min-width: 1000px) {
  .library-card:nth-last-child(-n+2) { min-height: 460px; }
}
@media (max-width: 1050px) {
  .container { width: calc(100% - 48px); }
  nav { gap: 18px; }
  .hero-grid { gap: 35px; padding-block: 72px; }
  .hero-demo { transform: none; }
  .hero-demo pre { padding-inline: 20px; }
  .demo-result { margin-inline: 12px; }
  .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .library-card { min-height: 480px; }
  .library-tools { align-items: start; flex-direction: column; }
  .request-grid { gap: 50px; }
  .faq-section { gap: 45px; }
  .header-inner { flex-wrap: wrap; padding-block: 14px; }
  .menu-toggle:not([hidden]) { display: block; margin-left: auto; }
  #main-navigation { width: 100%; flex-direction: column; align-items: stretch; gap: 12px; }
  body:has(#menu-toggle:not([hidden])) #main-navigation:not(.menu-open) { display: none; }
  #main-navigation a { padding: 8px 12px; font-size: .9rem; }
  .site-preferences { justify-content: space-between; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 145px; }
  .header-inner { flex-direction: row; align-items: center; gap: 15px; padding-block: 14px; }
  .brand-logo { width: 180px; height: 45px; }
  nav { width: 100%; justify-content: space-between; gap: 10px; font-size: .72rem; }
  .nav-cta { padding: 6px 9px; }
  .nav-cta span { padding-left: 3px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; padding-block: 52px; }
  .hero-description { max-width: 540px; }
  .hero-demo { max-width: 560px; width: 100%; }
  .hero-notes { margin-top: 26px; }
  .proof-inner { flex-direction: column; align-items: start; gap: 4px; font-size: .68rem; }
  .proof-inner b { padding-inline: 6px; }
  .section, .examples-section { padding-block: 60px; }
  .section-heading { flex-direction: column; align-items: start; gap: 20px; }
  .section-heading > p { max-width: 550px; }
  .example-grid { grid-template-columns: 1fr; }
  .example-card pre code { font-size: .8rem; }
  .steps { grid-template-columns: 1fr; gap: 30px; margin-block: 35px; }
  .step-number { margin-bottom: 16px; }
  .loading-note { padding: 22px; gap: 16px; }
  .request-grid { grid-template-columns: 1fr; gap: 35px; }
  .request-section { padding-block: 60px; }
  .request-panel { padding: 26px; }
  .faq-section { grid-template-columns: 1fr; gap: 35px; }
  .footer-inner { flex-direction: column; align-items: start; }
  .footer-inner > div { align-items: start; }
}
@media (max-width: 520px) {
  .container { width: calc(100% - 32px); }
  nav { font-size: .63rem; gap: 6px; }
  .nav-cta { padding: 6px; }
  .hero h1 { font-size: 2.85rem; }
  .hero .actions { gap: 17px; }
  .hero-notes { gap: 12px; font-size: .64rem; }
  .library-grid { grid-template-columns: 1fr; }
  .library-card { min-height: auto; }
  .search-field { width: 100%; }
  .filter { font-size: .68rem; padding: 8px 10px; }
  .library-card { padding: 24px; }
  .card-top { margin-bottom: 22px; }
  .demo-result code { font-size: .66rem; }
  .hero-demo pre code { font-size: .76rem; }
  .loading-note { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
  .button:hover { transform: none; }
  .theme-decoration i { animation: none; }
}
