/* slide-station.sams.land — the app's own skin (frontend/src/theme.css): near-black cool tones,
   warm off-white text, amber accents. Headlines in Fraunces, as in the launch video. */
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --bg: #0e0e10;
  --sunken: #0a0a0b;
  --rail: #111114;
  --bar: #131316;
  --panel: #16161a;
  --panel-2: #1d1d22;
  --line: #2a2a31;
  --line-soft: #202026;
  --text: #ebe8e2;
  --muted: #9b978e;
  --dim: #6f6c66;
  --accent: #f2b34b;
  --accent-hover: #f5c26a;
  --ink: #1a1305;
  --ok: #6cc28a;
  --bad: #e2675c;
  --focus: #f5c26a;
  --radius: 14px;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); }
a:hover { color: var(--accent-hover); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--accent) 45%, transparent); }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 560; letter-spacing: -0.015em; font-optical-sizing: auto; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0 0 1rem; }
h3 { font-size: 1.05rem; margin: 0 0 0.35rem; }
p { text-wrap: pretty; }
code { font: 0.86em var(--mono); background: var(--panel-2); border: 1px solid var(--line-soft); padding: 0.1em 0.35em; border-radius: 5px; }
kbd {
  display: inline-flex; align-items: center; justify-content: center; min-width: 1.8em; height: 1.7em;
  padding: 0 0.45em; border-radius: 5px; border: 1px solid var(--line); border-bottom-width: 2px;
  background: var(--panel-2); color: var(--text); font: 600 0.78em/1 var(--sans);
}

.bar { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.bar.wide { max-width: 1240px; }
.fine { color: var(--dim); font-size: 0.85rem; margin: 0.6rem 0 0; }
.fine a { color: var(--muted); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 38em; }

/* header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bar) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.top .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 650; }
.brand:hover { color: var(--text); }
.brand .mount { width: 28px; height: 28px; }
.top nav { display: flex; align-items: center; gap: 2px; }
.top nav a:not(.button) { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: 0.95rem; }
.top nav a:not(.button):hover, .top nav a[aria-current] { color: var(--text); background: var(--panel-2); }
@media (max-width: 720px) {
  .top .bar { height: 56px; }
  .top nav a[href="/#download"], .top nav a[href^="https://github"], .top nav .button { display: none; }
  .top nav a:not(.button) { padding: 8px 10px; }
}
@media (max-width: 340px) { .brand span { display: none; } }

/* buttons: primary is the app's Develop button */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--text);
  font: 600 0.98rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, filter 0.15s, transform 0.15s;
}
.button:hover { border-color: var(--dim); color: var(--text); }
.button:active { transform: translateY(1px); }
.button.primary {
  border: 0; color: var(--ink);
  background: linear-gradient(180deg, #f8cb77 0%, var(--accent) 48%, #e39a2c 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 45%), inset 0 -1px 0 rgb(0 0 0 / 18%), 0 0 0 1px #0006,
    0 8px 22px -8px color-mix(in srgb, var(--accent) 60%, transparent);
}
.button.primary:hover { filter: brightness(1.06); color: var(--ink); }
.button.ghost { background: transparent; border-color: transparent; color: var(--accent); }
.button.small { min-height: 34px; padding: 0 14px; font-size: 0.9rem; margin-left: 6px; border-radius: 8px; }
.button svg { width: 18px; height: 18px; flex: none; }

/* hero */
.hero { padding: 72px 0 0; text-align: center; position: relative; overflow-x: clip; }
.hero::before {
  content: ""; position: absolute; inset: -200px 0 auto; height: 900px; pointer-events: none; z-index: -1;
  background: radial-gradient(ellipse 60% 50% at 50% 55%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 5px 12px 5px 6px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
  color: var(--muted); font-size: 0.88rem; text-decoration: none;
}
.eyebrow b { background: var(--accent); color: var(--ink); border-radius: 999px; padding: 1px 8px; font-size: 0.78rem; }
.eyebrow:hover { color: var(--text); border-color: var(--dim); }
.hero h1 { font-size: clamp(2.4rem, 6.4vw, 4.4rem); margin: 0 auto 20px; max-width: 14ch; }
.hero .lede { margin: 0 auto; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.hero .fine { margin-top: 14px; }

/* app screenshots, framed like the app's window */
.shot {
  margin: 0; border-radius: 12px; overflow: hidden; background: var(--sunken);
  border: 1px solid var(--line);
  box-shadow: 0 0 0 1px #000, 0 40px 90px -30px #000, 0 24px 60px -40px color-mix(in srgb, var(--accent) 50%, transparent);
}
.hero-shot { margin: 48px auto 0; max-width: 1200px; }
.hero-shot-wrap { padding: 0 20px; perspective: 1600px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-shot { animation: rise 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both; transform-origin: 50% 0; }
  @keyframes rise { from { opacity: 0; transform: rotateX(12deg) translateY(40px); } }
}

/* sections */
main > section { padding: 88px 0; }
.section-head { max-width: 40em; margin-bottom: 36px; }
.section-head p { color: var(--muted); margin: 0; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* before / after */
.compare .frame { max-width: 940px; margin: 0 auto; position: relative; border-radius: 12px; overflow: hidden; background: var(--sunken); border: 1px solid var(--line); box-shadow: 0 30px 70px -30px #000; user-select: none; touch-action: pan-y; --pos: 50%; }
.compare .frame img { width: 100%; }
.compare .before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare .before img { height: 100%; object-fit: cover; }
.compare .divider { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--text); box-shadow: 0 0 12px #0008; pointer-events: none; }
.compare .divider::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%;
  background: var(--text) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1305' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 7-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") center / 20px no-repeat;
  box-shadow: 0 4px 14px #0009;
}
.compare .tag { position: absolute; top: 14px; padding: 4px 10px; border-radius: 6px; background: #000a; backdrop-filter: blur(6px); font-size: 0.8rem; font-weight: 600; pointer-events: none; }
.compare .tag.left { left: 14px; color: var(--muted); }
.compare .tag.right { right: 14px; color: var(--accent); }
.compare input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare .picker { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.compare .picker button {
  padding: 0; width: 72px; aspect-ratio: 3 / 2; border-radius: 8px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; background: var(--panel); opacity: 0.6; transition: opacity 0.15s, border-color 0.15s;
}
.compare .picker button:hover { opacity: 1; }
.compare .picker button[aria-pressed="true"] { border-color: var(--accent); opacity: 1; }
.compare .picker img { width: 100%; height: 100%; object-fit: cover; }
.compare .fine { text-align: center; }

/* features */
.grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 14px; }
.grid li { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 12px; padding: 20px; }
.grid p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.grid h3 { display: flex; align-items: center; gap: 8px; }
.grid h3::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); flex: none; }

/* screenshot with text beside it */
.showcase .bar { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 48px; align-items: center; }
.showcase p { color: var(--muted); }
.keys { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.keys li { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.keys kbd { min-width: 4.2em; }
@media (max-width: 900px) { .showcase .bar { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 14px; }
.card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.card h3 { font-family: var(--display); font-weight: 560; font-size: 1.4rem; }
.card > p:not(.fine) { color: var(--muted); font-size: 0.95rem; flex: 1; }
.card-foot { margin-top: 8px; }
.card.featured { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, var(--panel)), var(--panel)); }

.split .bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.split p:not(.fine):not(.error) { color: var(--muted); }
@media (max-width: 820px) { .split .bar { grid-template-columns: minmax(0, 1fr); gap: 20px; } }

/* waitlist form */
.waitlist { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 12px; }
.waitlist > label { font-weight: 600; font-size: 0.9rem; }
.waitlist input[type="email"] {
  font: inherit; min-height: 48px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--line); background: #0c0c0e; color: var(--text); width: 100%;
}
.waitlist input[type="email"]::placeholder { color: var(--dim); }
.waitlist input[type="email"]:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.waitlist fieldset { border: 0; padding: 0; margin: 4px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.waitlist legend { font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; padding: 0; }
.waitlist fieldset label {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel-2); font-size: 0.95rem;
}
.waitlist fieldset label:has(input:checked) { border-color: var(--accent); color: var(--accent); }
.waitlist input[type="radio"] { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
.waitlist .error { color: var(--bad); margin: 0; font-size: 0.9rem; }
.waitlist .error:empty, .waitlist .joined:empty { display: none; }
.waitlist .joined { background: color-mix(in srgb, var(--ok) 14%, transparent); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); border-radius: 10px; padding: 12px 14px; }
.waitlist[data-state="joined"] > :not(.joined) { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.tip .bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.tip h2 { margin-bottom: 0.4rem; }
.tip p { margin: 0; color: var(--muted); }

.links ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 4px 32px; }
.links li { display: flex; flex-direction: column; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.links li a { font-weight: 600; text-decoration: none; }
.links li span { color: var(--muted); font-size: 0.9rem; }

main > section + section { border-top: 1px solid var(--line-soft); }
main > section.compare { border-top: 0; }

footer { border-top: 1px solid var(--line-soft); padding: 28px 0 40px; color: var(--dim); font-size: 0.86rem; background: var(--rail); }
footer .bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
footer a { color: var(--muted); }

@media (max-width: 560px) {
  .hero { padding-top: 48px; }
  .lede { font-size: 1.05rem; }
  .actions { flex-direction: column; align-items: stretch; }
  .hero-shot { margin-top: 36px; }
  main > section { padding: 56px 0; }
  .card { padding: 20px; }
  .card .button, .waitlist .button, .tip .button { width: 100%; }
  .waitlist { padding: 18px; }
  .compare .picker button { width: 60px; }
}

/* docs */
.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding-top: 32px; padding-bottom: 64px; }
.docs aside nav { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; font-size: 0.92rem; }
.docs aside ul { list-style: none; margin: 0; padding: 0; }
.docs aside > nav > ul > li { margin-bottom: 2px; }
.docs aside a { display: block; padding: 5px 10px; border-radius: 7px; color: var(--muted); text-decoration: none; }
.docs aside a:hover { background: var(--panel-2); color: var(--text); }
.docs aside a[aria-current] { color: var(--text); background: var(--panel-2); font-weight: 600; }
.docs aside ul ul { margin: 4px 0 10px 12px; border-left: 1px solid var(--line); padding-left: 4px; font-size: 0.88rem; }
.docs aside ul ul a[aria-current], .docs aside ul ul a { font-weight: 400; }
.docs-menu { display: none; }
@media (max-width: 860px) {
  .docs { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 12px; }
  .docs aside { display: none; }
  .docs-menu { display: block; position: sticky; top: 56px; z-index: 5; margin: 0 -20px 8px; padding: 8px 20px; background: var(--bg); border-bottom: 1px solid var(--line-soft); }
  .docs-menu summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px;
    min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px;
    background: var(--panel); font-weight: 600;
  }
  .docs-menu summary::-webkit-details-marker { display: none; }
  .docs-menu summary span { color: var(--dim); font-weight: 400; }
  .docs-menu summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-3px); }
  .docs-menu[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
  .docs-menu ul { list-style: none; margin: 6px 0 4px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
  .docs-menu a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--text); text-decoration: none; }
  .docs-menu a[aria-current] { background: var(--panel-2); color: var(--accent); font-weight: 600; }
  html { scroll-padding-top: 130px; }
}

.prose { max-width: 46em; min-width: 0; overflow-wrap: break-word; }
.prose h1 { font-size: clamp(2rem, 7vw, 2.8rem); margin: 0.6rem 0 1rem; }
.prose h2 { font-size: clamp(1.45rem, 4vw, 1.75rem); margin: 2.6rem 0 0.8rem; padding-top: 1.4rem; border-top: 1px solid var(--line-soft); }
.prose h3 { font-size: 1.15rem; margin: 2rem 0 0.6rem; }
.prose h1, .prose h2, .prose h3 { position: relative; }
.prose .anchor { position: absolute; left: -1.1em; color: var(--dim); opacity: 0; text-decoration: none; font-weight: 400; }
.prose :is(h1, h2, h3):hover .anchor { opacity: 1; }
@media (hover: none) { .prose .anchor { display: none; } }
.prose p, .prose li { color: #d9d5ce; }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.35em; }
.prose pre { background: var(--sunken); border: 1px solid var(--line-soft); border-radius: 10px; padding: 14px 16px; overflow-x: auto; font-size: 0.85rem; line-height: 1.55; }
.prose pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.92rem; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--panel); color: var(--text); }
.prose td code { white-space: nowrap; }
.prose blockquote { margin: 1em 0; padding: 0.2em 1em; border-left: 3px solid var(--accent); color: var(--muted); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 3rem 0 1rem; }
.pager a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); text-decoration: none; font-weight: 600; }
.pager a:hover { border-color: var(--dim); }
.pager .next { text-align: right; grid-column: 2; }
.pager span { color: var(--dim); font-size: 0.8rem; font-weight: 400; }
@media (max-width: 480px) { .pager { grid-template-columns: minmax(0, 1fr); } .pager .next { grid-column: 1; } }

/* changelog */
.changelog { padding-top: 40px; padding-bottom: 64px; }
.changelog h1 { font-size: clamp(2rem, 7vw, 2.8rem); margin: 0 0 0.4rem; }
.changelog ol { list-style: none; padding: 0; margin: 36px 0 0; }
.changelog ol > li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; padding: 20px 0; border-top: 1px solid var(--line-soft); }
.changelog .meta { display: flex; flex-direction: column; gap: 2px; }
.changelog .version { font: 600 1rem var(--mono); text-decoration: none; }
.changelog time { color: var(--dim); font-size: 0.85rem; }
.changelog h3 { font-size: 1.05rem; font-weight: 600; }
.changelog .pr { color: var(--dim); font-weight: 400; text-decoration: none; }
.changelog .entry { overflow-wrap: anywhere; }
.changelog .entry ul { margin: 6px 0 0; padding-left: 1.2em; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 600px) { .changelog ol > li { grid-template-columns: minmax(0, 1fr); gap: 6px; } .changelog .meta { flex-direction: row; gap: 12px; align-items: baseline; } }

.notfound { padding: 96px 20px; }

/* on a phone the whole window is too small to read: show the middle of it, where the slide is */
@media (max-width: 560px) {
  .hero-shot { aspect-ratio: 1; }
  .hero-shot img { width: 161%; max-width: none; margin-left: -27%; }
}
