/* Onslot site. Unbounded for display, Instrument Sans for reading (both self-hosted), cool paper + indigo ink,
   cobalt for actions, highlighter yellow only for the slot itself. */

@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(/site/fonts/unbounded-latin.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(/site/fonts/unbounded-latin-ext.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url(/site/fonts/instrument-sans-latin.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url(/site/fonts/instrument-sans-latin-ext.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --canvas: #eef0fa;
  --surface: #f8f9ff;
  --sunk: #e2e5f4;
  --ink: #191538;
  --ink-2: #47436c;
  --ink-3: #6a678c;
  --hairline: #c9cde4;
  --accent: #2f3bd6;
  --accent-ink: #f8f9ff;
  --slot: #ffd84a;
  --slot-ink: #191538;
  --ok: #17734a;
  --err: #b42318;
  --font: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Unbounded', 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
  --measure: 66ch;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --canvas: #13112a;
    --surface: #1c1a3a;
    --sunk: #0e0d21;
    --ink: #ecebff;
    --ink-2: #b9b7dc;
    --ink-3: #9593bd;
    --hairline: #36345e;
    --accent: #a3aaff;
    --accent-ink: #13112a;
    --ok: #6fdba5;
    --err: #ff9a8f;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --canvas: #13112a;
  --surface: #1c1a3a;
  --sunk: #0e0d21;
  --ink: #ecebff;
  --ink-2: #b9b7dc;
  --ink-3: #9593bd;
  --hairline: #36345e;
  --accent: #a3aaff;
  --accent-ink: #13112a;
  --ok: #6fdba5;
  --err: #ff9a8f;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand svg { width: 28px; height: 28px; }
.top nav { display: flex; align-items: center; gap: 6px; }
.top nav a, .theme {
  color: var(--ink-2); text-decoration: none; font: inherit; font-size: 0.95rem;
  padding: 6px 10px; border-radius: 8px; background: none; border: 0; cursor: pointer;
}
.top nav a:hover, .theme:hover { color: var(--ink); background: var(--sunk); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(28px, 6vw, 72px) clamp(48px, 8vw, 104px); }
.hero h1 {
  margin: 0 0 24px;
  font-family: var(--display);
  font-size: clamp(2.2rem, 5.2vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 600;
 
  text-wrap: balance;
}
.lede { margin: 0 0 28px; font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 36ch; }
.beta { margin: 16px 0 0; color: var(--ink-3); font-size: 0.95rem; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 0;
  background: var(--accent); color: var(--accent-ink);
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
}
.button:hover { filter: brightness(1.08); }

/* The week strip: the one memorable thing */
.week {
  margin: 0;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 64px 16px 18px;
}
.week-head { display: grid; grid-template-columns: 44px repeat(4, minmax(0, 1fr)) minmax(0, 2.6fr); gap: 6px; font-size: 0.8rem; color: var(--ink-3); margin-bottom: 8px; }
.week-head span:first-child { visibility: hidden; }
.week-head .today { color: var(--ink); font-weight: 700; }
.week-grid { display: grid; grid-template-columns: 44px repeat(4, minmax(0, 1fr)) minmax(0, 2.6fr); grid-auto-rows: minmax(36px, auto); gap: 6px; }
.hour { font-size: 0.75rem; color: var(--ink-3); align-self: start; line-height: 1; padding-top: 2px; }
.cell { border-radius: 8px; background: color-mix(in oklab, var(--ink) 6%, var(--surface)); }
.cell.busy { background: color-mix(in oklab, var(--accent) 26%, var(--surface)); }
.slot {
  grid-column: 6; grid-row: 3 / span 3;
  background: var(--slot); color: var(--slot-ink);
  border-radius: 10px; padding: 8px 9px;
  display: flex; flex-direction: column; gap: 4px;
  font-size: 0.78rem; line-height: 1.2;
  box-shadow: 0 0 0 2px var(--canvas), 0 10px 30px -12px color-mix(in oklab, var(--slot) 70%, transparent);
  z-index: 1;
}
.slot strong { font-family: var(--display); font-weight: 600; font-size: 0.8rem; }
.slot ul { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 3px; }
.slot li { display: flex; align-items: center; gap: 6px; }
.slot li { flex-wrap: wrap; column-gap: 6px; row-gap: 0; }
.slot li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; flex: none; transition: background 200ms; }
.slot li em { font-style: normal; opacity: 0.7; flex-basis: 100%; padding-left: 12px; }
.slot li.done::before { background: currentColor; }
.slot li.done em { opacity: 1; font-weight: 650; }
.slot li.done em { animation: pop 320ms cubic-bezier(0.2, 0.9, 0.3, 1.4); }
@keyframes pop { from { transform: translateY(3px); opacity: 0; } to { transform: none; opacity: 1; } }
.upload {
  position: absolute; left: 16px; top: 14px;
  display: flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--canvas);
  padding: 8px 14px 8px 8px; border-radius: 12px;
  font-size: 0.85rem; font-weight: 600;
  box-shadow: 0 12px 28px -14px rgba(10, 8, 40, 0.6);
  z-index: 2;
}
.upload i { display: block; width: 26px; height: 34px; border-radius: 5px; background: linear-gradient(160deg, var(--slot), var(--accent)); }
.caption { margin: 14px 2px 0; color: var(--ink-3); font-size: 0.85rem; }

@media (prefers-reduced-motion: no-preference) {
  .slot { animation: land 900ms 350ms cubic-bezier(0.2, 0.9, 0.25, 1.15) both; }
  .slot li { animation: tick 300ms both; }
  .slot li:nth-child(1) { animation-delay: 1150ms; }
  .slot li:nth-child(2) { animation-delay: 1300ms; }
  .slot li:nth-child(3) { animation-delay: 1450ms; }
}
@keyframes land { from { transform: translate(-120%, -60%) scale(0.6); opacity: 0; } 60% { opacity: 1; } to { transform: none; } }
@keyframes tick { from { opacity: 0; transform: translateX(-4px); } to { opacity: 1; transform: none; } }

/* Sections */
.section { padding-block: clamp(48px, 7vw, 96px); border-top: 1px solid var(--hairline); }
.section h2 {
  margin: 0 0 24px;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 600;
 
  max-width: 18ch;
  text-wrap: balance;
}
.section > .wrap > p.intro { color: var(--ink-2); max-width: 54ch; margin: 0 0 36px; font-size: 1.15rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); }
.split h3, .steps h3, .features dt { margin: 0 0 6px; font-size: 1.25rem; letter-spacing: -0.01em; font-weight: 700; }
.split p, .steps p, .features dd { margin: 0; color: var(--ink-2); max-width: 46ch; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: block; margin-bottom: 14px;
  font-family: var(--display); font-size: 3.5rem; line-height: 0.9; font-weight: 300;
  color: var(--accent);
}

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px clamp(24px, 4vw, 56px); margin: 0; }
.features div { padding-top: 16px; border-top: 2px solid var(--ink); }

.limits { margin: 0; display: grid; gap: 0; max-width: 880px; }
.limits div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--hairline); }
.limits dt { font-weight: 700; font-size: 1.15rem; }
.limits dd { margin: 0; color: var(--ink-2); }

/* Composer preview (tabs answer a click; the caption swaps with a short crossfade) */
.composer-row { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.composer { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 20px; padding: 16px; position: sticky; top: 24px; }
.composer-media { aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: var(--sunk); }
.composer-media i { display: block; height: 100%; background: linear-gradient(170deg, var(--slot) 0%, #f3a6c8 45%, var(--accent) 100%); }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px; border-radius: 10px; background: var(--sunk); margin-bottom: 14px; }
.tabs button { flex: 1 1 auto; font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--ink-2); background: none; border: 0; border-radius: 8px; padding: 6px 8px; cursor: pointer; transition: background 160ms, color 160ms; }
.tabs button[aria-selected='true'] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(10, 8, 40, 0.12); }
.caption-pane p { margin: 0 0 10px; font-size: 0.95rem; color: var(--ink); }
.caption-pane .first { color: var(--ink-3); font-size: 0.88rem; padding-left: 10px; border-left: 2px solid var(--hairline); }
@media (prefers-reduced-motion: no-preference) {
  .caption-pane:not([hidden]) { animation: swap 260ms ease-out; }
}
@keyframes swap { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Steps light up in order the first time they scroll into view */
@media (prefers-reduced-motion: no-preference) {
  .js .steps li::before { color: var(--hairline); transition: color 400ms; }
  .js .steps.lit li::before { color: var(--accent); }
  .js .steps.lit li:nth-child(2)::before { transition-delay: 350ms; }
  .js .steps.lit li:nth-child(3)::before { transition-delay: 700ms; }
}

/* Waitlist */
.join { background: var(--accent); color: var(--accent-ink); border-radius: 28px; padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); }
.join h2 { color: inherit; }
.join p { margin: 0; opacity: 0.86; max-width: 40ch; }
.join form { display: grid; gap: 14px; }
.join label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
.join label small { font-size: inherit; font-weight: 400; opacity: 0.8; }
.join input, .join select {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border-radius: 12px; border: 1px solid transparent;
  background: var(--accent-ink); color: var(--ink);
  font: inherit; font-size: 1rem;
}
.join input:focus-visible, .join select:focus-visible { outline: 3px solid var(--slot); outline-offset: 2px; }
.join .button { background: var(--slot); color: var(--slot-ink); justify-self: start; }
.join .fine { font-size: 0.85rem; opacity: 0.8; }
.join .fine a { color: inherit; }
.status { min-height: 1.4em; font-weight: 600; }
.join form.sent .button { pointer-events: none; }
.join .status.ok { display: flex; align-items: center; gap: 10px; }
.join .status.ok::before { content: ''; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--slot) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23191538' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
@media (prefers-reduced-motion: no-preference) {
  .join .status.ok::before { animation: pop 380ms cubic-bezier(0.2, 0.9, 0.3, 1.5); }
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.foot { padding-block: 40px 56px; color: var(--ink-3); font-size: 0.92rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: var(--ink-2); }

/* Legal pages */
.legal { padding-block: clamp(24px, 5vw, 56px) 72px; }
.legal .wrap { max-width: calc(var(--measure) + 2 * var(--gutter)); }
.legal h1 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.05; letter-spacing: -0.04em;
  font-weight: 600;
}
.legal .updated { color: var(--ink-3); margin: 0 0 32px; }
.legal .summary { background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px; padding: 18px 22px; margin: 0 0 36px; }
.legal .summary p { margin: 0 0 8px; }
.legal .summary ul { margin: 0; padding-left: 1.2em; }
.legal .toc { margin: 0 0 40px; padding-left: 1.4em; columns: 2 240px; column-gap: 32px; color: var(--ink-2); }
.legal .toc li { margin-bottom: 4px; break-inside: avoid; }
.legal h2 { margin: 44px 0 12px; font-family: var(--display); font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.03em; font-weight: 600; scroll-margin-top: 16px; }
.legal h3 { margin: 24px 0 8px; font-size: 1.15rem; font-weight: 700; }
.legal p, .legal li { color: var(--ink-2); }
.legal strong { color: var(--ink); }
.legal code { font-size: 0.88em; background: var(--sunk); padding: 1px 6px; border-radius: 5px; overflow-wrap: anywhere; }
.legal a { overflow-wrap: anywhere; }
.legal ul, .legal ol { padding-left: 1.3em; }
.legal li { margin-bottom: 6px; }
.table { overflow-x: auto; margin: 16px 0 24px; border: 1px solid var(--hairline); border-radius: 12px; }
.table table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 0.95rem; }
.table th, .table td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--hairline); }
.table tr:last-child td { border-bottom: 0; }
.table th { background: var(--surface); color: var(--ink); font-weight: 700; }
.table td { color: var(--ink-2); }

/* Phone */
@media (max-width: 860px) {
  .hero, .join, .split { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .features { grid-template-columns: minmax(0, 1fr); }
  .composer-row { grid-template-columns: minmax(0, 1fr); }
  .composer { position: static; }
  .limits div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .week { margin-top: 18px; }
}
@media (max-width: 640px) {
  .top nav a.hide-sm { display: none; }
}
@media (max-width: 420px) {
  .week-grid, .week-head { grid-template-columns: 30px repeat(4, minmax(0, 1fr)) minmax(0, 2.6fr); gap: 4px; }
  .week { padding: 60px 10px 14px; }
  .upload { left: 10px; }
  .slot { padding: 6px; font-size: 0.7rem; }
  .composer { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 12px; }
}

::view-transition-old(root), ::view-transition-new(root) { animation-duration: 280ms; }
