/* CurlyByte design system: tokens, base type, navigation, buttons, shared sections, footer.
   Loaded by every page. Base element styles apply only to `body.cb-ui` pages so that
   legacy Tailwind pages keep their content styling and share the navigation and footer. */
:root {
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --bg: #ffffff; --bg-soft: #f6f8fb; --surface: #ffffff; --surface-2: #f1f5f9;
  --ink: #0f172a; --ink-2: #334155; --muted: #64748b; --line: #e2e8f0; --line-strong: #cbd5e1;
  --accent: #2563eb; --accent-hover: #1d4ed8; --accent-soft: #eef3ff; --accent-line: #c7d7fe;
  --success: #0f9f7a; --navy: #0b1424; --navy-2: #111d33; --navy-line: #24324d;
  --radius-sm: 8px; --radius: 14px; --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgb(15 23 42 / .05);
  --shadow: 0 1px 2px rgb(15 23 42 / .04), 0 12px 32px -14px rgb(15 23 42 / .16);
  --shadow-lg: 0 2px 6px rgb(15 23 42 / .04), 0 28px 60px -24px rgb(30 64 175 / .28);
  --wrap: 1200px; --gutter: 24px; --nav-h: 72px;
  color-scheme: light;
}
[data-web-theme="dark"] {
  --bg: #0a1120; --bg-soft: #0d1628; --surface: #111b2e; --surface-2: #16223a;
  --ink: #f1f5f9; --ink-2: #cbd5e1; --muted: #94a3b8; --line: #1e2b43; --line-strong: #2c3d5c;
  --accent: #7ea3ff; --accent-hover: #a3bdff; --accent-soft: #15254a; --accent-line: #2b4380;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px -14px rgb(0 0 0 / .6);
  --shadow-lg: 0 2px 6px rgb(0 0 0 / .3), 0 28px 60px -24px rgb(0 0 0 / .7);
  color-scheme: dark;
}
html { scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Base for pages built on the design system. */
body.cb-ui { margin: 0; padding-top: var(--nav-h); background: var(--bg); color: var(--ink-2); font: 400 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-optical-sizing: auto; }
.cb-ui *, .cb-ui *::before, .cb-ui *::after { box-sizing: border-box; }
.cb-ui :is(h1, h2, h3, h4, p, ul, ol, figure, dl, dd, blockquote) { margin: 0; }
.cb-ui :is(ul, ol) { padding: 0; list-style: none; }
.cb-ui :is(h1, h2, h3, h4) { color: var(--ink); font-weight: 700; text-wrap: balance; }
.cb-ui strong { color: var(--ink); font-weight: 650; }
.cb-ui a { color: inherit; text-decoration: none; }
.cb-ui img, .cb-ui svg { display: block; max-width: 100%; }
.cb-ui button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.cb-ui :is(a, button, summary, [tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.cb-ui [hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cb-skip { position: fixed; left: 16px; top: -80px; z-index: 1000; padding: 10px 16px; border-radius: var(--radius-sm); background: var(--ink); color: var(--bg) !important; font: 600 14px/1.4 var(--font); }
.cb-skip:focus { top: 12px; }

/* Layout and type */
.site-wrap { width: min(var(--wrap), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.section { padding-block: clamp(72px, 9vw, 112px); }
.section-soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px 64px; margin-bottom: 48px; }
.section-head > p { max-width: 440px; color: var(--muted); font-size: 17px; }
.section-head-center { flex-direction: column; align-items: center; text-align: center; }
.section-head-center > p { max-width: 620px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px !important; color: var(--accent); font: 600 13px/1.4 var(--font); letter-spacing: .08em; text-transform: uppercase; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font: 500 13px/1.4 var(--font); box-shadow: var(--shadow-sm); }
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgb(15 159 122 / .18); }
.h1 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -.038em; }
.h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -.03em; }
.h3 { font-size: 20px; line-height: 1.3; letter-spacing: -.015em; }
.lead { color: var(--muted); font-size: clamp(17px, 1.6vw, 19px); line-height: 1.65; }
.accent-text { color: var(--accent); }
.muted { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: 10px; font: 600 15px/1 var(--font); letter-spacing: -.005em; white-space: nowrap; text-decoration: none !important; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: #2563eb; color: #fff !important; box-shadow: 0 1px 2px rgb(15 23 42 / .12), inset 0 1px 0 rgb(255 255 255 / .14); }
.btn-primary:hover { background: #1d4ed8; color: #fff !important; box-shadow: 0 6px 18px -6px rgb(37 99 235 / .55); }
.btn-secondary { background: var(--surface); border-color: var(--line-strong); color: var(--ink) !important; box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--ink-2); background: var(--surface); color: var(--ink) !important; }
.btn-light { background: #fff; color: #0b1424 !important; }
.btn-light:hover { background: #e8eefc; color: #0b1424 !important; }
.btn-outline-light { border-color: rgb(255 255 255 / .28); color: #fff !important; }
.btn-outline-light:hover { border-color: #fff; background: rgb(255 255 255 / .06); color: #fff !important; }
.btn-sm { height: 40px; padding: 0 16px; border-radius: 9px; font-size: 14px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent) !important; font-weight: 600; text-decoration: none; }
.text-link svg { width: 16px; height: 16px; transition: transform .2s ease; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover svg { transform: translateX(3px); }

/* Navigation (shared by all pages) */
.site-nav { position: fixed; inset: 0 0 auto; z-index: 900; height: var(--nav-h); background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; font-family: var(--font); transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; }
.site-nav, .site-nav * { box-sizing: border-box; }
.site-nav.is-scrolled, .site-nav.is-open { border-bottom-color: var(--line); box-shadow: 0 1px 0 rgb(15 23 42 / .02), 0 8px 24px -16px rgb(15 23 42 / .2); }
.site-nav-inner { display: flex; align-items: center; gap: 24px; height: 100%; width: min(1280px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.site-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.site-logo img { display: block; width: auto; height: 38px; max-width: none; background: none !important; padding: 0 !important; }
[data-web-theme="dark"] .site-logo img { filter: invert(1) hue-rotate(180deg) brightness(1.15); }
.site-menu { flex: 1; display: flex; align-items: center; justify-content: center; }
.site-menu ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.site-menu li { margin: 0; }
.site-menu a:not(.btn) { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 8px; color: var(--ink-2) !important; font: 500 15px/1 var(--font); text-decoration: none !important; transition: color .15s ease, background-color .15s ease; }
.site-menu a:not(.btn):hover { color: var(--ink) !important; background: var(--surface-2); }
.site-menu a.is-active, .site-menu a[aria-current="page"] { color: var(--ink) !important; background: var(--surface-2); }
.site-menu-cta { display: none !important; }
.site-nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.site-nav .btn { height: 40px; padding: 0 16px; font-size: 14px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid transparent; border-radius: 10px; background: none; color: var(--ink-2); cursor: pointer; padding: 0; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.icon-btn svg { width: 20px; height: 20px; display: block; }
.theme-icon-sun { display: none !important; }
[data-web-theme="dark"] .theme-icon-sun { display: block !important; }
[data-web-theme="dark"] .theme-icon-moon { display: none !important; }
.site-nav-toggle { display: none; }
.site-nav-spacer { height: var(--nav-h); }
.site-nav-toggle .icon-close { display: none; }
.site-nav.is-open .site-nav-toggle .icon-close { display: block; }
.site-nav.is-open .site-nav-toggle .icon-menu { display: none; }
@media (max-width: 960px) {
  .site-nav-toggle { display: inline-grid; }
  .site-nav-cta { display: none !important; }
  .site-menu { position: absolute; top: var(--nav-h); left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 12px; padding: 12px var(--gutter) 24px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgb(15 23 42 / .3); }
  .site-nav.is-open .site-menu { display: flex; }
  .site-menu ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-menu a:not(.btn) { width: 100%; height: 48px; font-size: 16px; }
  .site-menu-cta { display: inline-flex !important; height: 48px !important; }
}
@media (max-width: 480px) { .site-logo img { height: 32px; } .site-nav-inner { gap: 12px; } }

/* Cards and shared blocks */
.card { position: relative; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
a.card:hover, .card-link:hover { border-color: var(--accent-line); box-shadow: var(--shadow); transform: translateY(-2px); }
.icon-tile { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.icon-tile svg { width: 22px; height: 22px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-soft); color: var(--muted); font: 500 12.5px/1.4 var(--font); }
.check-list { display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li::before { content: ''; flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%232563eb' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 10.5 2.6 2.5L14 7.5'/%3E%3C/svg%3E") center / 20px no-repeat; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 28px !important; color: var(--muted); font-size: 14px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span[aria-hidden] { color: var(--line-strong); }
.steps { display: grid; gap: 20px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; font: 600 12px/1 var(--mono); }
.steps strong { display: block; font-size: 15px; }
.steps p { font-size: 14.5px; margin-top: 2px !important; }

/* Subpage hero */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(36px, 5vw, 64px) clamp(56px, 7vw, 88px); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-soft), var(--bg)); }
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 20% 0%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse 70% 80% at 20% 0%, #000 10%, transparent 70%); opacity: .5; }
.page-hero .h1 { font-size: clamp(36px, 4.6vw, 56px); margin-bottom: 20px; }
.page-hero .lead { max-width: 640px; }
.page-hero .actions { margin-top: 32px; }

/* Dark call-to-action band */
.cta-band { position: relative; overflow: hidden; background: var(--navy); color: #b6c3d8; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(600px 300px at 85% 0%, rgb(37 99 235 / .32), transparent 70%), radial-gradient(500px 260px at 0% 100%, rgb(14 165 233 / .14), transparent 70%); pointer-events: none; }
.cta-band .site-wrap { position: relative; }
.cta-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.cta-band .eyebrow { color: #93b4ff; }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: #b6c3d8; margin-top: 20px; max-width: 540px; }
.cta-band .actions { margin-top: 32px; }
.cta-email { color: #dbe6ff !important; font-weight: 500; text-decoration: underline; text-decoration-color: rgb(219 230 255 / .4); text-underline-offset: 4px; }
.cta-email:hover { text-decoration-color: #fff; }
.cta-panel { padding: 32px; border: 1px solid var(--navy-line); border-radius: var(--radius-lg); background: rgb(255 255 255 / .03); }
.cta-panel h3 { color: #fff; font-size: 17px; margin-bottom: 24px; }
.cta-panel .steps li::before { background: rgb(147 180 255 / .12); color: #a8c2ff; }
.cta-panel .steps strong { color: #f1f5ff; }
.cta-panel .steps p { color: #9fb0c9; }
@media (max-width: 900px) { .cta-grid { grid-template-columns: 1fr; } }

/* Footer (shared by all pages) */
.site-footer { background: var(--navy); color: #94a3b8; border-top: 1px solid var(--navy-line); font: 400 15px/1.6 var(--font); }
.site-footer *, .site-footer *::before { box-sizing: border-box; }
.site-footer a, .site-footer button { color: #cbd5e1 !important; text-decoration: none; transition: color .15s ease; }
.site-footer a:hover, .site-footer button:hover { color: #fff !important; }
.site-footer :is(h2, p, ul) { margin: 0; padding: 0; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 48px; padding-block: 64px 48px; }
.site-footer .site-logo img { height: 34px; filter: invert(1) hue-rotate(180deg) brightness(1.2); }
.site-footer-brand p { max-width: 300px; margin-top: 16px; color: #94a3b8; }
.site-footer-brand .site-footer-mail { display: inline-block; margin-top: 16px; color: #fff !important; font-weight: 600; }
.site-footer h2 { margin-bottom: 16px; color: #fff; font: 600 13px/1.4 var(--font); letter-spacing: .08em; text-transform: uppercase; }
.site-footer button { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; text-align: left; }
.site-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 24px 32px; border-top: 1px solid var(--navy-line); font-size: 14px; }
.site-social { display: flex; gap: 8px; }
.site-social a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--navy-line); border-radius: 10px; }
.site-social a:hover { border-color: #3b4f75; background: rgb(255 255 255 / .04); }
.site-social svg { width: 16px; height: 16px; fill: currentColor; }
@media (max-width: 900px) { .site-footer-top { grid-template-columns: 1fr 1fr; } .site-footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer-top { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; } .site-footer-bottom { flex-direction: column-reverse; align-items: flex-start; } }

/* Cookie banner in the same visual language */
.cb-cc-card, .cb-cc-modal .cb-cc-dialog { font-family: var(--font) !important; background: var(--navy-2) !important; border-color: var(--navy-line) !important; border-radius: 16px !important; padding: 20px !important; font-size: 14.5px; line-height: 1.6; box-shadow: 0 24px 60px -20px rgb(0 0 0 / .5); }
.cb-cc-card p, .cb-cc-dialog p, .cb-cc-dialog label { color: #cbd5e1; }
.cb-cc-dialog h3 { color: #fff !important; }
.cb-cc-btn { height: 40px; padding: 0 16px !important; border-radius: 9px !important; font: 600 14px/1 var(--font) !important; }
.cb-cc-btn-primary { background: #2563eb !important; }
.cb-cc-btn-primary:hover { background: #1d4ed8 !important; }
.cb-cc-btn-secondary { border-color: #334462 !important; }
.cb-cc-btn-secondary:hover { border-color: #64748b !important; }

@media (max-width: 600px) {
  :root { --gutter: 20px; --nav-h: 64px; }
  .section-head { flex-direction: column; align-items: flex-start; margin-bottom: 36px; }
  .card { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .cb-ui *, .cb-ui *::before, .cb-ui *::after { animation: none !important; transition: none !important; }
  .btn:hover svg, .text-link:hover svg { transform: none; }
}
