/* Sonic marketing site — shared styles */
@import url("colors_and_type.css");

*,*::before,*::after { box-sizing: border-box; }
html { scroll-padding-top: 72px; overflow-x: hidden; }
body { margin: 0; overflow-x: hidden; background: var(--bg-primary); font: var(--font-text-md-regular); color: var(--fg-primary); }
img, svg { display: block; max-width: 100%; }
button { font: inherit; }

/* ──────────────── Layout ──────────────── */
.container { max-width: 1216px; margin: 0 auto; padding: 0 32px; }
.section { padding: 128px 0; }
.section-tight { padding: 80px 0; }
.eyebrow { font: var(--font-text-sm-semibold); color: var(--brand-700); text-transform: none; letter-spacing: 0; margin: 0 0 16px; }
.section-head { max-width: 760px; margin: 0 0 64px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
h2.section-h { font: 600 44px/1.1 var(--font-sans); letter-spacing: -0.03em; margin: 0 0 20px; color: var(--fg-primary); text-wrap: balance; }
.section-head p { font: 400 18px/1.55 var(--font-sans); color: var(--fg-tertiary); max-width: 640px; }
.section-head p + p { margin-top: 12px; }
.section-head p strong { color: var(--fg-secondary); font-weight: 500; }
.section-head.center p { margin-left: auto; margin-right: auto; }

/* ──────────────── Buttons ──────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; font: var(--font-text-sm-semibold); border-radius: 8px; border: 1px solid transparent; cursor: pointer; text-decoration: none; line-height: 1; white-space: nowrap; transition: background 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out; }
.btn-primary { background: var(--brand-500); color: #fff; border-color: var(--brand-500); box-shadow: var(--shadow-xs), inset 0 -2px 0 rgba(10,13,18,0.08); }
.btn-primary:hover { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.btn-secondary { background: #fff; color: var(--fg-primary); border-color: var(--gray-300); box-shadow: var(--shadow-xs); }
.btn-secondary:hover { background: var(--gray-50); color: var(--fg-primary); }
.btn-tertiary { background: transparent; color: var(--fg-secondary); padding: 10px 4px; }
.btn-tertiary:hover { color: var(--fg-primary); }
.btn-lg { padding: 12px 20px; font: var(--font-text-md-semibold); border-radius: 10px; }
.btn-on-dark { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.18); }
.btn-on-dark:hover { background: rgba(255,255,255,0.16); color: #fff; }

/* ──────────────── Nav ──────────────── */
.nav { position: fixed; top: 16px; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; pointer-events: none; }
.nav-inner { pointer-events: auto; padding: 10px 12px 10px 20px; display: flex; align-items: center; gap: 24px; background: rgba(255,255,255,0.88); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--gray-200); border-radius: 16px; box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04); }
.nav-logo { display: flex; align-items: center; gap: 10px; font: 600 19px/1 var(--font-sans); letter-spacing: -0.02em; color: var(--fg-primary); text-decoration: none; }
.nav-logo img { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 28px; flex: 1; justify-content: center; }
.nav-links a { font: var(--font-text-sm-medium); color: var(--fg-secondary); text-decoration: none; padding: 6px 0; }
.nav-links a:hover, .nav-links a.active { color: var(--fg-primary); }
.nav-cta { display: flex; gap: 8px; align-items: center; }

/* ──────────────── Footer ──────────────── */
footer { padding: 80px 0 32px; background: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; }
.foot-brand p { font: var(--font-text-sm-regular); color: var(--fg-tertiary); max-width: 280px; margin: 16px 0 0; }
.foot-tag { display: inline-block; margin-top: 12px; font: var(--font-text-xs-medium); color: var(--fg-quaternary); }
footer h4 { font: var(--font-text-sm-semibold); color: var(--fg-quaternary); margin: 0 0 20px; }
footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
footer ul a { font: var(--font-text-sm-regular); color: var(--fg-secondary); text-decoration: none; }
footer ul a:hover { color: var(--fg-primary); }
.foot-bottom { max-width: 1216px; margin: 56px auto 0; padding: 24px 32px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-bottom small, .foot-bottom a { font: var(--font-text-sm-regular); color: var(--fg-quaternary); }
.foot-bottom .left { display: flex; gap: 24px; align-items: center; }
.foot-bottom .right { display: flex; gap: 16px; align-items: center; }
.foot-bottom .social { display: flex; gap: 8px; }
.foot-bottom .social a { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--fg-quaternary); border: 1px solid var(--gray-200); }
.foot-bottom .social a:hover { color: var(--fg-primary); border-color: var(--gray-300); }
.foot-witty { max-width: 1216px; margin: 0 auto; padding: 0 32px 16px; font: var(--font-text-sm-regular); color: var(--fg-quaternary); font-style: italic; }


/* ──────────────── Forms ──────────────── */
.input, .select, .textarea { width: 100%; padding: 10px 14px; font: var(--font-text-md-regular); color: var(--fg-primary); background: #fff; border: 1px solid var(--gray-300); border-radius: 8px; box-shadow: var(--shadow-xs); transition: border-color 150ms ease-out, box-shadow 150ms ease-out; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand-500); box-shadow: var(--ring-brand); }
.textarea { min-height: 120px; resize: vertical; font: var(--font-text-md-regular); }
.label { font: var(--font-text-sm-medium); color: var(--fg-secondary); margin: 0 0 6px; display: block; }
.field { display: flex; flex-direction: column; gap: 0; }
.help { font: var(--font-text-sm-regular); color: var(--fg-quaternary); margin-top: 12px; }

/* Inline waitlist (email + button) */
.waitlist-form { display: flex; gap: 8px; max-width: 480px; }
.waitlist-form .input { flex: 1; }
.waitlist-form.on-dark .input { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.18); color: #fff; }
.waitlist-form.on-dark .input::placeholder { color: rgba(255,255,255,0.45); }

/* ──────────────── Utility ──────────────── */
.divider { height: 1px; background: var(--gray-200); border: 0; margin: 0; }
.dark-section { background: #0A0D12; color: #fff; }
.section-ruled { background: var(--bg-secondary); }
.label-optional { color: var(--fg-quaternary); font-weight: 400; }
.dark-section h2.section-h, .dark-section h3 { color: #fff; }
.dark-section .section-head p, .dark-section p { color: rgba(255,255,255,0.66); }

/* Hero gradient backdrop */
.hero-bg { position: relative; overflow: hidden; background:
  radial-gradient(70% 50% at 50% 0%, #F4F3FF 0, transparent 70%),
  radial-gradient(40% 30% at 12% 8%, #FAFAFF 0, transparent 80%),
  #fff;
}
.grid-bg::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--gray-200) 1px, transparent 1px), linear-gradient(90deg, var(--gray-200) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(60% 50% at 50% 0%, #000 0, transparent 80%); opacity: 0.5; pointer-events: none; }

/* Generic card */
.card { background: #fff; border: 1px solid var(--gray-200); border-radius: 16px; box-shadow: var(--shadow-xs); }

/* Tag chip */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font: var(--font-text-xs-semibold); background: var(--brand-50); color: var(--brand-700); border: 1px solid #E9D7FE; }
.chip.gray { background: var(--gray-100); color: var(--fg-secondary); border-color: var(--gray-200); }

/* Eyebrow pill (stand-alone label above headline) */
.kicker { display: inline-block; padding: 4px 10px; font: var(--font-text-xs-semibold); color: var(--brand-700); background: var(--brand-50); border: 1px solid #E9D7FE; border-radius: 99px; text-transform: none; letter-spacing: 0; }

/* Code-ish text */
.mono { font-family: var(--font-mono); font-size: 13px; }

/* Token snippet block */
.code-block { background: #0A0D12; color: #E5E7EB; border-radius: 12px; padding: 20px 22px; font-family: var(--font-mono); font-size: 13px; line-height: 1.7; overflow: auto; border: 1px solid #1F242F; }
.code-block .k { color: #9B8AFB; } /* keyword */
.code-block .s { color: #BDB4FE; } /* string */
.code-block .n { color: #FDFDFD; } /* name */
.code-block .c { color: #717680; font-style: italic; } /* comment */
.code-block .p { color: #717680; } /* punctuation */

/* ── Privacy overlay ────────────────────────────────────────────── */
#privacyOverlay { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
#privacyOverlay[hidden] { display: none; }
#privacyOverlay:not([hidden]) .priv-backdrop { animation: priv-fade-in 220ms ease-out forwards; }
#privacyOverlay:not([hidden]) .priv-panel    { animation: priv-slide-up 260ms cubic-bezier(0.16,1,0.3,1) forwards; }
@keyframes priv-fade-in  { from { opacity:0; } to { opacity:1; } }
@keyframes priv-slide-up { from { opacity:0; transform:translateY(16px) scale(0.98); } to { opacity:1; transform:none; } }

.priv-backdrop { position: absolute; inset: 0; background: rgba(10,13,18,0.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.priv-panel { position: relative; background: #fff; border-radius: 20px; box-shadow: 0 32px 80px rgba(0,0,0,0.2); max-width: 600px; width: 100%; max-height: calc(100vh - 48px); overflow-y: auto; padding: 48px; }

.priv-close { position: absolute; top: 20px; right: 20px; width: 36px; height: 36px; border: 1px solid var(--gray-200); border-radius: 8px; background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--fg-secondary); transition: background 150ms, color 150ms; }
.priv-close:hover { background: var(--gray-50); color: var(--fg-primary); }

.priv-content h2 { font: 600 26px/1.15 var(--font-sans); letter-spacing: -0.02em; color: var(--fg-primary); margin: 12px 0 6px; }
.priv-updated { font: var(--font-text-xs-regular); color: var(--fg-quaternary); margin: 0 0 28px; }
.priv-content h3 { font: var(--font-text-sm-semibold); color: var(--fg-primary); margin: 28px 0 6px; }
.priv-content p { font: var(--font-text-sm-regular); color: var(--fg-tertiary); line-height: 1.65; margin: 0; }
.priv-content a { color: var(--brand-600); text-decoration: none; }
.priv-content a:hover { text-decoration: underline; }
