/* sugarglider.studio. Palette from the FSeatback icon; light or dark follows the device. */

@font-face {
  font-family: 'Sora';
  src: url('fonts/Sora.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --border: #d8e0ea;
  --text: #0a1628;
  --heading: #1d3557;
  --muted: #4a5b70;
  --accent: #f4a259;
  --on-accent: #0a1628;
  --link: #a4531a;
  --shadow: 0 1px 2px rgb(10 22 40 / 6%), 0 8px 24px rgb(10 22 40 / 6%);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1628;
    --surface: #11233d;
    --border: #23426a;
    --text: #e9eef5;
    --heading: #ffffff;
    --muted: #a9b8cc;
    --link: #f4a259;
    --shadow: none;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

h1, h2, h3, .wordmark, .eyebrow {
  font-family: 'Sora', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--heading);
  line-height: 1.2;
  margin: 0;
}

p { margin: 0; }

a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 40rem) { .wrap { padding: 0 2rem; } }

main { flex: 1; }

section + section { margin-top: 4rem; }

h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: 1.25rem; }
h3 { font-size: 1.0625rem; font-weight: 600; }

.chip {
  display: inline-block;
  vertical-align: middle;
  padding: 0.2em 0.7em;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font: 600 0.75rem/1.4 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

/* Header and footer */

.site-header { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.site-header a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: 600 1rem/1 'Sora', system-ui, sans-serif;
  color: var(--heading);
  text-decoration: none;
}
.site-header a:hover { color: var(--link); }

.site-footer {
  margin-top: 5rem;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
}
.site-footer .notice { flex-basis: 100%; max-width: 44rem; }

/* Studio page */

.studio main { display: flex; flex-direction: column; justify-content: center; }

.studio-hero { padding-top: 6rem; }
.wordmark {
  font-size: clamp(2.5rem, 9vw, 4.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.tagline {
  margin-top: 1rem;
  font-size: clamp(1.125rem, 2.6vw, 1.375rem);
  color: var(--muted);
}
.arc { display: block; width: 100%; max-width: 40rem; height: auto; margin-top: 2.5rem; }
.arc path { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1 14; }

.label {
  font: 600 0.8125rem/1 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.product {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem;
  max-width: 40rem;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s;
}
.product:hover { border-color: var(--accent); }
.product img { width: 4rem; height: 4rem; }
.product h3 { font-size: 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.product p { margin-top: 0.25rem; color: var(--muted); }
.product .go { font-size: 1.5rem; color: var(--link); }
@media (max-width: 30rem) {
  .product { grid-template-columns: auto 1fr; gap: 1rem; }
  .product img { width: 3rem; height: 3rem; }
  .product .go { display: none; }
}

/* FSeatback page */

.product-hero {
  display: grid;
  gap: 1.5rem 2.5rem;
  padding-top: 2.5rem;
}
@media (min-width: 48rem) {
  .product-hero { grid-template-columns: auto 1fr; align-items: center; padding-top: 4rem; }
}
.app-icon { width: 6rem; height: 6rem; }
@media (min-width: 48rem) { .app-icon { width: 9rem; height: 9rem; } }
.eyebrow { display: flex; align-items: center; gap: 0.75rem; font-size: 1.125rem; font-weight: 600; color: var(--link); }
.product-hero h1 {
  margin-top: 0.75rem;
  font-size: clamp(1.875rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}
.lede { margin-top: 1rem; max-width: 40rem; font-size: 1.1875rem; color: var(--muted); }

.needs { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.5rem; }
.needs li::marker { color: var(--accent); }

/* Tester page */

.tester-note { font-size: 1.0625rem; }

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
}
.features li { padding: 1.25rem; border-top: 3px solid var(--accent); }
.features p { margin-top: 0.375rem; color: var(--muted); }

.shots {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem 1rem;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
}
.shots figure { margin: 0; }
.shots a {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color 0.15s;
}
.shots a:hover { border-color: var(--accent); }
.shots img { display: block; width: 100%; height: 100%; object-fit: contain; }
.shots figcaption { margin-top: 0.5rem; color: var(--muted); font-size: 0.9375rem; }

.download { margin-top: 3rem; padding: 1.5rem; max-width: 44rem; display: grid; gap: 0.75rem; }
.download h2 { margin-bottom: 0.25rem; }
.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font: 600 1.0625rem/1.2 'Sora', system-ui, sans-serif;
  text-decoration: none;
}
.button:hover { filter: brightness(1.06); }
.file-info { color: var(--muted); font-size: 0.875rem; }

.request { margin-top: 1.5rem; padding: 1.5rem; max-width: 44rem; }
.request h2 { margin-bottom: 1rem; }
.request form { display: grid; gap: 0.5rem; }
.request label { font-weight: 600; }
.request-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.request input {
  flex: 1 1 16rem;
  min-width: 0;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
.request .button { border: 0; cursor: pointer; }
.request .file-info { margin-top: 0.25rem; }
/* Honeypot: off screen for people, still filled in by bots (website/src/index.ts). */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.answer { padding-top: 4rem; }
.answer p { margin-top: 1rem; max-width: 40rem; color: var(--muted); }
.hash { overflow-wrap: anywhere; }

.guide { max-width: 44rem; }
.guide > * + * { margin-top: 1rem; }
.guide ol, .guide ul { padding-left: 1.25rem; display: grid; gap: 0.5rem; }
.guide li::marker { color: var(--accent); }
code { font-size: 0.9em; }

/* 404 */

.not-found { padding-top: 4rem; }
.not-found p { margin-top: 1rem; color: var(--muted); }
