/* Allocatyn marketing site.
   Direction "Glass": a bright lavender-white page, soft colour light behind the
   hero, real product screens as the imagery. One family (Geist) at moderate
   sizes; Geist Mono only where text is an address or code. */
:root {
  --paper: #f6f5ff;
  --surface: #ffffff;
  --ink: #14152b;
  --muted: #5a5c78;
  --line: #e3e1f4;
  --violet: #6a5cff;
  --violet-deep: #4d3fe0;
  --teal: #12b5a6;
  --amber: #e9962b;
  --night: #121331;
  --font: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  /* Type scale (1.25 minor third, capped): */
  --t-hero: clamp(38px, 4.6vw, 64px);
  --t-h2: clamp(28px, 3.1vw, 44px);
  --t-h3: 21px;
  --t-lede: clamp(17px, 1.35vw, 19px);
  --t-body: 16px;
  --t-small: 14px;
  --radius: 14px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--t-body)/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.section { padding-block: clamp(72px, 9vw, 120px); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 24px 48px; align-items: end; margin-bottom: 40px; }
.section-head h2 { font-size: var(--t-h2); line-height: 1.08; letter-spacing: -0.028em; }
.section-head p { color: var(--muted); font-size: var(--t-lede); max-width: 34em; }
/* Sections that follow another keep only the previous one's bottom padding. */
.section.follow { padding-top: 0; }
.section-title { font-size: var(--t-h2); line-height: 1.08; letter-spacing: -0.028em; }
.section-lede { color: var(--muted); font-size: var(--t-lede); margin-top: 16px; }
.closing-wrap { padding-bottom: 32px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1 var(--font); padding: 13px 20px; border-radius: 999px; text-decoration: none; border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--violet); color: #fff; box-shadow: 0 12px 28px -12px var(--violet); }
.btn-primary:hover { background: var(--violet-deep); }
.btn-quiet { background: #ffffffcc; border-color: #fff; color: var(--ink); box-shadow: 0 6px 18px -10px #2b226655; }
.btn-dark { background: var(--ink); color: #fff; }

/* Product screens: framed, with the app's sidebar cropped off where noted. */
.screen { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 40px 80px -48px #2b226699, 0 2px 6px -2px #2b22661a; }
.screen.crop img { width: 118.4%; max-width: none; margin-left: -18.4%; }
.screen img { transition: opacity .25s ease; }

/* ── Header ───────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 40; padding-block: 14px; transition: background .2s ease, box-shadow .2s ease; }
.site-header.scrolled { background: #f6f5ffe6; backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 20px; letter-spacing: -0.02em; text-decoration: none; }
.brand img { display: block; height: 40px; width: auto; }
.site-footer .brand img { height: 32px; }
.site-header nav { margin-inline: auto; }
.nav-pill { display: flex; gap: 2px; margin: 0; padding: 5px; list-style: none; background: #ffffffb8; border: 1px solid #fff; border-radius: 999px; box-shadow: 0 8px 26px -14px #6a5cff55; backdrop-filter: blur(12px); }
.nav-pill a { display: block; padding: 7px 14px; border-radius: 999px; text-decoration: none; font-size: 15px; color: var(--muted); }
.nav-pill a:hover { color: var(--ink); background: #f0eeff; }
.site-header .btn { padding: 10px 16px; }

/* ── Hero ─────────────────────────────────────────────── */
/* The hero runs up behind the (transparent) header so its light has no seam. */
.hero { position: relative; overflow: hidden; margin-top: -78px; padding-top: calc(78px + clamp(36px, 6vw, 72px)); }
.hero-light { position: absolute; inset: -260px -10% auto; height: 1000px; pointer-events: none; filter: blur(8px);
  background:
    radial-gradient(38% 46% at 22% 32%, #cdc6ff 0%, transparent 70%),
    radial-gradient(32% 42% at 82% 18%, #b6efe7 0%, transparent 70%),
    radial-gradient(28% 36% at 58% 62%, #ffdcef 0%, transparent 70%); }
.hero .wrap { position: relative; }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 28px 56px; align-items: end; }
.hero h1 { font-size: var(--t-hero); line-height: 1.02; letter-spacing: -0.035em; max-width: 14ch; }
.hero-side { display: grid; gap: 22px; }
.hero-side p { color: var(--muted); font-size: var(--t-lede); }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.fan { position: relative; margin-top: clamp(40px, 6vw, 72px); aspect-ratio: 100 / 47; perspective: 1800px; }
.fan .screen { position: absolute; width: 60%; border: 5px solid #fff; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.fan .f1 { left: 0; top: 11%; transform: rotateY(20deg) rotateZ(-2.5deg) scale(.86); }
.fan .f2 { left: 20%; top: 0; z-index: 2; transform: rotateX(6deg); }
.fan .f3 { right: 0; top: 13%; transform: rotateY(-20deg) rotateZ(2.5deg) scale(.86); }
.fan:hover .f1 { transform: rotateY(12deg) rotateZ(-1.5deg) translateX(-28px) scale(.88); }
.fan:hover .f3 { transform: rotateY(-12deg) rotateZ(1.5deg) translateX(28px) scale(.88); }
.fan figcaption { position: absolute; z-index: 3; bottom: -6px; left: 50%; transform: translateX(-50%); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: var(--t-small); color: var(--muted); white-space: nowrap; box-shadow: 0 10px 24px -14px #2b226666; }

/* What's in the box */
.included { padding-block: 56px 0; }
.included ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.included li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.included li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--violet); }
.included li:nth-child(3n+2)::before { background: var(--teal); }
.included li:nth-child(3n)::before { background: var(--amber); }

/* ── Containers ───────────────────────────────────────── */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 18px; }
.tabs button { font: 500 15px/1 var(--font); border: 0; background: none; color: var(--muted); padding: 9px 16px; border-radius: 999px; cursor: pointer; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.containers-grid { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1.58fr); gap: 32px; align-items: start; }
.tab-notes { position: sticky; top: 96px; }
.tab-notes h3 { font-size: var(--t-h3); letter-spacing: -0.015em; margin-bottom: 10px; }
.tab-notes p { color: var(--muted); }
.tab-notes .facts { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 15px; }
.tab-notes .facts li { display: flex; gap: 10px; }
.tab-notes .facts li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--violet); }
.theme-switch { display: flex; align-items: center; gap: 10px; margin-top: 26px; font-size: var(--t-small); color: var(--muted); }
.theme-switch button { font: 500 13px/1 var(--font); border: 1px solid var(--line); background: var(--surface); color: var(--muted); padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.theme-switch button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ── Audiences ────────────────────────────────────────── */
.audience { background: var(--night); color: #eceaff; color-scheme: dark; border-radius: 28px; padding: clamp(28px, 4vw, 56px); position: relative; overflow: hidden; }
.audience::before { content: ""; position: absolute; inset: auto -20% -60% 30%; height: 600px; background: radial-gradient(closest-side, #6a5cff55, transparent); pointer-events: none; }
.audience .section-head p { color: #b9b7e0; }
.audience .tabs { background: #ffffff10; border-color: #ffffff1f; }
.audience .tabs button { color: #b9b7e0; }
.audience .tabs button:hover { color: #fff; }
.audience .tabs button[aria-selected="true"] { background: #fff; color: var(--night); }
.aud-panel { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); gap: 32px; position: relative; }
.aud-panel[hidden] { display: none; }
.aud-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; align-content: start; }
.aud-list button { width: 100%; text-align: left; font: inherit; color: inherit; background: none; border: 1px solid transparent; border-radius: 12px; padding: 14px 16px; cursor: pointer; display: grid; gap: 2px; }
.aud-list button strong { font-weight: 600; font-size: 16px; }
.aud-list button span { color: #b9b7e0; font-size: 15px; }
.aud-list button:hover { background: #ffffff0d; }
.aud-list button[aria-pressed="true"] { background: #ffffff14; border-color: #ffffff2e; }
.audience .screen { border-color: #ffffff26; background: #0d0e26; box-shadow: 0 40px 90px -40px #000; }

/* ── Feature groups ───────────────────────────────────── */
.groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.group { padding: 28px 24px 8px 0; }
.group + .group { padding-left: 24px; border-left: 1px solid var(--line); }
.group h3 { font-size: var(--t-h3); letter-spacing: -0.015em; display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.group h3 i { width: 10px; height: 10px; border-radius: 3px; background: var(--violet); }
.group:nth-child(2) h3 i { background: var(--teal); }
.group:nth-child(3) h3 i { background: var(--amber); }
.group:nth-child(4) h3 i { background: var(--ink); }
.group > p { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.group li strong { display: block; font-weight: 600; font-size: 15px; }
.group li span { color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* ── Automation ───────────────────────────────────────── */
.auto-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 40px; align-items: center; }
.auto-grid ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.auto-grid li { display: grid; gap: 2px; }
.auto-grid li strong { font-weight: 600; }
.auto-grid li span { color: var(--muted); font-size: 15px; }
.code { background: var(--night); color: #e6e4ff; border-radius: 20px; overflow: hidden; box-shadow: 0 40px 80px -40px #2b2266aa; }
.code .tabs { margin: 14px 14px 0; background: #ffffff10; border-color: #ffffff1f; }
.code .tabs button { color: #b9b7e0; }
.code .tabs button[aria-selected="true"] { background: #fff; color: var(--night); }
.code pre { margin: 0; padding: 22px 24px 26px; overflow-x: auto; font: 400 14px/1.7 var(--mono); }
.code pre[hidden] { display: none; }
.tok-k { color: #a99bff; } .tok-s { color: #7fe3d3; } .tok-c { color: #8583b3; } .tok-n { color: #ffc978; }

/* ── Security ─────────────────────────────────────────── */
.sec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sec-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.sec-item.wide { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; align-items: center; }
.sec-item h3 { font-size: 17px; letter-spacing: -0.01em; margin-bottom: 6px; }
.sec-item p { color: var(--muted); font-size: 15px; }

/* ── Deploy ───────────────────────────────────────────── */
.deploy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.deploy article { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 3vw, 36px); display: grid; gap: 14px; align-content: start; }
.deploy h3 { font-size: 24px; letter-spacing: -0.02em; }
.deploy p { color: var(--muted); }
.deploy ul { margin: 0; padding-left: 18px; color: var(--muted); display: grid; gap: 6px; font-size: 15px; }
.deploy .screen { margin-top: 8px; }

/* ── Closing ──────────────────────────────────────────── */
.closing { position: relative; overflow: hidden; text-align: left; border-radius: 28px; padding: clamp(36px, 6vw, 72px); background: linear-gradient(120deg, #6a5cff 0%, #4d3fe0 45%, #12b5a6 130%); color: #fff; display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 24px; align-items: end; }
.closing h2 { font-size: var(--t-h2); line-height: 1.08; letter-spacing: -0.028em; }
.closing p { color: #e9e6ff; margin-top: 10px; font-size: var(--t-lede); max-width: 32em; }
.closing .btn-primary { background: #fff; color: var(--violet-deep); box-shadow: none; }
.closing .btn-quiet { background: #ffffff1f; border-color: #ffffff59; color: #fff; box-shadow: none; }
.site-footer { padding-block: 48px 64px; color: var(--muted); font-size: var(--t-small); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-brand .legal { margin: 0; }
.footer-brand .legal a { text-decoration: underline; text-underline-offset: 2px; }

/* ── Lightbox ─────────────────────────────────────────── */
.screen img { cursor: zoom-in; }
.screen img:focus-visible { outline: 3px solid var(--violet); outline-offset: -3px; }
.lightbox { width: min(1600px, 100vw - 32px); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 16px; background: transparent; overflow: visible; }
.lightbox::backdrop { background: #0d0e26e6; backdrop-filter: blur(6px); }
.lightbox figure { margin: 0; display: grid; gap: 12px; }
.lightbox img { width: auto; max-width: 100%; height: auto; max-height: calc(100vh - 110px); justify-self: center; border-radius: 12px; box-shadow: 0 40px 120px -30px #000; cursor: zoom-out; }
.lightbox figcaption { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; color: #e6e4ff; font-size: 15px; }
.lb-nav { display: inline-flex; align-items: center; gap: 10px; }
.lb-count { color: #b9b7e0; font-variant-numeric: tabular-nums; font-size: 14px; }
.lightbox button { font: 500 18px/1 var(--font); width: 40px; height: 40px; border-radius: 999px; border: 1px solid #ffffff33; background: #ffffff14; color: #fff; cursor: pointer; }
.lightbox button:hover { background: #ffffff2e; }
.lb-close { position: absolute; top: -14px; right: -14px; background: var(--surface) !important; color: var(--ink) !important; border-color: var(--line) !important; box-shadow: 0 8px 20px -8px #000; }
.lightbox[open] { animation: lb-in .18s ease-out; }
@keyframes lb-in { from { opacity: 0; transform: scale(.98); } }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 960px) {
  .nav-pill { display: none; }
  .site-header .btn { margin-left: auto; }
  .hero-copy, .section-head, .containers-grid, .aud-panel, .auto-grid, .deploy, .closing { grid-template-columns: 1fr; }
  .tab-notes { position: static; }
  .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .group:nth-child(3) { padding-left: 0; border-left: 0; }
  .sec-grid { grid-template-columns: 1fr 1fr; }
  .sec-item.wide { grid-column: 1 / -1; grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .fan { aspect-ratio: auto; height: auto; perspective: none; }
  .fan .screen { position: static; width: 100%; transform: none !important; }
  .fan .f1, .fan .f3 { display: none; }
  .fan figcaption { position: static; transform: none; display: block; margin-top: 12px; white-space: normal; border-radius: 12px; }
  .groups { grid-template-columns: 1fr; }
  .group, .group + .group { padding-left: 0; border-left: 0; }
  .sec-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lightbox[open] { animation: none; }
  .fan .screen, .btn, .screen img { transition: none; }
}
