/* ustar.world: what every page shares. Tokens, type, header and footer, buttons, forms, the legal and help pages. */

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/npm/@fontsource-variable/unbounded@5.3.0/files/unbounded-latin-wght-normal.woff2") format("woff2-variations"),
       url("https://cdn.jsdelivr.net/npm/@fontsource-variable/unbounded@5.3.0/files/unbounded-latin-wght-normal.woff2") format("woff2");
  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;
}

:root {
  color-scheme: dark;
  --night-0: #07040c;
  --night-1: #0d0817;
  --night-2: #150d24;
  --night-3: #1f1433;
  --night-4: #2b1c46;
  --line: rgba(255, 236, 214, 0.1);
  --line-2: rgba(255, 236, 214, 0.2);
  --text: #fff6ec;
  --text-2: #dccfe6;
  --text-3: #ab9cbe;
  --pink: #ff3d9a;
  --pink-2: #ff7bbb;
  --violet: #a066ff;
  --violet-deep: #6c3bd1;
  --cyan: #45d9ff;
  --gold: #ecc35c;
  --gold-deep: #d4af37;
  --tan: #f1dfc4;
  --tan-2: #e5cba4;
  --ink: #1d1123;
  --ink-2: #4a3647;
  --mint: #45e3a0;
  --orange: #ff8a3d;
  --danger: #ff6b7d;
  /* Deep enough for white text (4.8:1 or better along the whole gradient); the glow around it stays bright. */
  --grad-neon: linear-gradient(100deg, #d81b72 0%, #9b3ff0 52%, #6a4cf0 100%);
  --grad-text: linear-gradient(95deg, #ff6fb5 0%, #d07bff 45%, #ffd27a 100%);
  --radius-s: 10px;
  --radius: 18px;
  --radius-l: 28px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --display: "Unbounded", "Arial Black", "Segoe UI Black", system-ui, sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 64px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--night-1);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--night-1);
  color: var(--text);
  font: 400 1rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg, video, canvas, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

::selection { background: rgba(255, 61, 154, 0.45); color: #fff; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--gold); color: var(--ink);
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ------------------------------------------------------------------------------------------------ type */
h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
h1, h2, h3 { color: var(--text); }
p { margin: 0 0 1em; }
.h-xl { font-size: clamp(2.15rem, 9vw, 5.4rem); }
.h-l { font-size: clamp(1.75rem, 6.2vw, 3.5rem); }
.h-m { font-size: clamp(1.3rem, 4vw, 2rem); }
.h-s { font-size: clamp(1.05rem, 2.6vw, 1.25rem); line-height: 1.2; }
.lede { font-size: clamp(1.05rem, 2.7vw, 1.25rem); line-height: 1.55; color: var(--text-2); max-width: 40em; }
.muted { color: var(--text-3); }
.eyebrow {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ------------------------------------------------------------------------------------------------ header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 8, 23, 0.78);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; border-radius: 8px; }
.brand img { width: auto; height: 26px; }
.nav { display: none; align-items: center; gap: clamp(16px, 2.4vw, 30px); }
.nav a { color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 0.94rem; }
.nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 18px; }
@media (min-width: 960px) { .nav { display: flex; } }

/* The landing page's header lies over the hero until the page scrolls (site.js). */
.site-header[data-overlay] {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.site-header[data-overlay].is-solid {
  background: rgba(13, 8, 23, 0.82);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
}

/* ------------------------------------------------------------------------------------------------ buttons */
.btn {
  --btn-pad: 15px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: var(--btn-pad);
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background-color 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  color: #fff;
  background: var(--grad-neon);
  box-shadow: 0 8px 28px -10px rgba(255, 61, 154, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 38px -8px rgba(255, 61, 154, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, 0.04); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 236, 214, 0.35); }
.btn-small { --btn-pad: 10px 18px; min-height: 42px; font-size: 0.82rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* "Coming soon on iPhone": a store-shaped pill until the App Store link exists (then site.js puts Apple's badge in). */
.store-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 8px 20px 8px 16px;
  border-radius: 14px;
  color: var(--text);
  background: rgba(7, 4, 12, 0.72);
  border: 1px solid var(--line-2);
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.store-pill:hover { border-color: rgba(255, 236, 214, 0.4); background: rgba(7, 4, 12, 0.9); }
.store-pill svg { width: 22px; height: 22px; flex: none; }
.store-pill span { display: grid; line-height: 1.15; text-align: left; }
.store-pill small { font-size: 0.7rem; color: var(--text-3); letter-spacing: 0.02em; }
.store-pill strong { font-family: var(--display); font-size: 1rem; font-weight: 700; }
.store-badge { display: inline-flex; border-radius: 10px; }
.store-badge img { height: 50px; width: auto; }
.store-badge-text {
  align-items: center; min-height: 50px; padding: 0 20px; border: 1px solid var(--line-2);
  font-weight: 700; text-decoration: none; background: #000;
}

/* Before launch / after launch copy (site.js adds .app-live to <html> once the App Store link is set). */
.live-only { display: none !important; }
.app-live .live-only { display: revert !important; }
.app-live .prelaunch-only { display: none !important; }

/* ------------------------------------------------------------------------------------------------ forms */
.waitlist { display: grid; gap: 12px; }
.field-row { display: flex; flex-wrap: wrap; gap: 10px; }
.field {
  flex: 1 1 220px;
  min-width: 0;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(7, 4, 12, 0.55);
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field::placeholder { color: #8f80a3; }
.field:hover { border-color: rgba(255, 236, 214, 0.32); }
.field:focus { outline: none; border-color: var(--pink-2); box-shadow: 0 0 0 4px rgba(255, 61, 154, 0.25); }
.field-row .btn { flex: 0 0 auto; }
@media (max-width: 420px) { .field-row .btn { flex: 1 1 100%; } }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--text-2); cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--pink); cursor: pointer; }
.consent a { color: var(--text); }
.form-status { min-height: 1.5em; margin: 0; font-weight: 600; font-size: 0.95rem; }
.form-status[data-tone="ok"] { color: var(--mint); }
.form-status[data-tone="bad"] { color: var(--danger); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------------------------------------------ footer */
.site-footer { position: relative; border-top: 1px solid var(--line); background: var(--night-0); padding: 48px 0 28px; }
.footer-grid { display: grid; gap: 28px; }
.footer-brand img { width: 132px; height: auto; margin-bottom: 12px; }
.footer-brand p { margin: 0; color: var(--text-3); font-size: 0.92rem; }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; }
.footer-nav a {
  display: inline-flex; align-items: center; min-height: 40px;
  color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.footer-nav a:hover { color: var(--text); text-decoration: underline; }
.footer-legal { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.footer-legal p { margin: 0; color: var(--text-3); font-size: 0.8rem; line-height: 1.5; }
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.2fr 2fr; align-items: start; }
  .footer-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------------------------------------------ documents */
/* The legal and help pages: a heading band, then readable prose. */
.doc-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 8vw, 84px) 0 clamp(28px, 5vw, 48px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(60% 120% at 12% 0%, rgba(255, 61, 154, 0.22), transparent 60%),
    radial-gradient(50% 120% at 95% 10%, rgba(160, 102, 255, 0.24), transparent 60%),
    var(--night-1);
}
.doc-hero h1 { font-size: clamp(1.9rem, 6.4vw, 3.4rem); }
.doc-hero p { margin: 14px 0 0; color: var(--text-2); max-width: 46em; }
.doc-meta { font-size: 0.9rem; color: var(--text-3) !important; }

.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; padding: clamp(28px, 5vw, 56px) var(--gutter) clamp(56px, 8vw, 96px); }
.doc-layout > * { min-width: 0; }
@media (min-width: 1000px) {
  .doc-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 56px; align-items: start; }
  .toc { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; }
}
@media (min-width: 1000px) { .doc-layout-single { grid-template-columns: minmax(0, 1fr); } }
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 18px; background: var(--night-2); }
.toc summary {
  display: flex; align-items: center; justify-content: space-between; min-height: 48px; cursor: pointer; list-style: none;
  font-family: var(--display); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; font-family: var(--body); font-size: 1.2rem; color: var(--text-2); }
.toc[open] summary::after { content: "–"; }
.toc ol { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 0; color: var(--text-2); text-decoration: none; font-size: 0.9rem; line-height: 1.35; }
.toc a:hover { color: var(--text); text-decoration: underline; }

.prose { max-width: 74ch; color: var(--text-2); font-size: 1.02rem; line-height: 1.7; }
.prose > :first-child { margin-top: 0; }
.prose h2 {
  margin: 2.4em 0 0.7em;
  font-size: clamp(1.2rem, 3.4vw, 1.5rem);
  line-height: 1.2;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.prose h3 { margin: 1.8em 0 0.5em; font-size: 1.02rem; line-height: 1.3; letter-spacing: 0; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose p, .prose ul, .prose ol { margin: 0 0 1.05em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 0.35em 0; }
.prose li::marker { color: var(--pink-2); }
.prose strong { color: var(--text); font-weight: 650; }
.prose a { color: var(--text); text-decoration-color: rgba(255, 123, 187, 0.7); }
.prose a:hover { text-decoration-color: var(--pink-2); }
.prose code { font-size: 0.92em; padding: 0.1em 0.35em; border-radius: 6px; background: var(--night-3); color: var(--text); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

.callout {
  margin: 0 0 1.6em;
  padding: 18px 20px;
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--gold);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(236, 195, 92, 0.07), rgba(236, 195, 92, 0.02));
}
.callout > :last-child { margin-bottom: 0; }
.callout h2, .callout h3 { margin-top: 0; }

.table-wrap { margin: 0 0 1.4em; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.93rem; line-height: 1.5; min-width: 560px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--text); background: var(--night-2); font-weight: 650; }
.prose tr:last-child td { border-bottom: 0; }

.faq { display: grid; gap: 10px; margin: 0 0 1.4em; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--night-2); }
.faq details[open] { border-color: var(--line-2); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 18px; min-height: 56px; cursor: pointer; list-style: none;
  color: var(--text); font-weight: 650;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid var(--pink-2); border-bottom: 2px solid var(--pink-2);
  transform: rotate(45deg) translateY(-3px); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq .answer { padding: 0 18px 4px; }

.contact-card {
  display: grid; gap: 6px; padding: 20px 22px; margin: 0 0 1.4em;
  border-radius: var(--radius); border: 1px solid var(--line-2);
  background: radial-gradient(120% 140% at 0% 0%, rgba(255, 61, 154, 0.14), transparent 60%), var(--night-2);
}
.contact-card p { margin: 0; }
.contact-card a { font-weight: 700; color: var(--text); }

.steps { counter-reset: step; list-style: none; padding: 0 !important; display: grid; gap: 12px; }
.steps li {
  position: relative; margin: 0; padding: 14px 16px 14px 58px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--night-2);
}
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 14px; top: 13px; display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--grad-neon); color: #fff; font-family: var(--display); font-weight: 700; font-size: 0.85rem;
}

/* ------------------------------------------------------------------------------------------------ press kit */
.press-cta { margin-top: 10px; }
.press-body { display: grid; gap: clamp(44px, 7vw, 76px); padding: clamp(36px, 6vw, 64px) var(--gutter) clamp(64px, 9vw, 110px); }
.press-section > h2 { margin-bottom: 18px; }
.press-section > .muted { margin: -6px 0 20px; max-width: 60em; }
.facts { display: grid; gap: 1px; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); }
.facts > div { display: grid; gap: 4px; padding: 14px 18px; background: var(--night-2); }
.facts dt { font-family: var(--display); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.facts dd { margin: 0; color: var(--text); }
@media (min-width: 760px) { .facts > div { grid-template-columns: 220px 1fr; align-items: baseline; gap: 18px; } }
.press-short { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--night-2); color: var(--text) !important; }
.asset-grid, .shot-grid { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.asset { display: grid; gap: 8px; padding: 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--night-2); }
.asset-preview { display: flex; align-items: center; justify-content: center; height: 160px; padding: 24px; border-radius: 12px; background: #0b0712; overflow: hidden; }
.asset-light .asset-preview { background: var(--tan); }
.asset-preview img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; }
.asset-icon { border-radius: 22%; }
.asset-name { margin: 4px 0 0; font-weight: 700; color: var(--text); }
.asset-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.asset-links a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--text); text-decoration: none; font-size: 0.85rem; font-weight: 650;
}
.asset-links a:hover { border-color: var(--pink-2); background: rgba(255, 61, 154, 0.12); }
.shot-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.shot-grid li { margin: 0; }
.shot-grid a { display: block; overflow: hidden; border-radius: 14px; border: 1px solid var(--line-2); background: var(--night-2); }
.shot-grid img { width: 100%; aspect-ratio: 1600 / 738; object-fit: cover; transition: transform 0.4s ease; }
.shot-grid a:hover img { transform: scale(1.03); }
.shot-grid p { margin: 8px 2px 0; font-size: 0.9rem; color: var(--text-2); }
.shot-grid .shot-portrait img { aspect-ratio: 694 / 1600; max-height: 520px; object-fit: contain; background: #07040c; }

/* ------------------------------------------------------------------------------------------------ motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
