@font-face {
  font-family: Outfit;
  src: url("assets/outfit-variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Marketing palette from the supplied references; app tokens are unchanged. */
:root {
  color-scheme: dark;
  --background: #110f0e;
  --foreground: #f3e8cf;
  --muted: #a49e93;
  --surface: #24211f;
  --border: #39342f;
  --cream: #ede2a7;
  --amber: #ffb511;
  --orange: #ff5a2a;
  --teal: #37b7a3;
  --primary: var(--cream);
  --primary-hover: #fff0b9;
  --primary-foreground: #17140e;
  --ring: var(--amber);
  --success: #a0d9b7;
  --error: #ffad96;
  --title-fill: linear-gradient(115deg, #ffcb51 3%, #ffb511 20%, #ff6535 43%, #ed7957 51%, #40baa2 72%, #d9e6b1 98%);
  --radius: 10px;
  --text-small: 16px;
  --text-body: 18px;
  --text-intro: clamp(20px, 1.8vw, 26px);
}

:root[data-theme="light"] {
  color-scheme: light;
  --background: #ffe8c3;
  --foreground: #072f45;
  --muted: #5b605b;
  --surface: #fff0d7;
  --border: #c8b89b;
  --primary: #073047;
  --primary-hover: #12465b;
  --primary-foreground: #fff0d7;
  --ring: #08695e;
  --success: #11654a;
  --error: #a12b19;
  --title-fill: linear-gradient(115deg, #aa4c10 3%, #b94520 30%, #b43c26 47%, #087566 70%, #073047 98%);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: Outfit, Arial, sans-serif; font-size: var(--text-small); line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { color: inherit; }
button, summary { cursor: pointer; }
button { border: 0; }
button:disabled { cursor: wait; opacity: .75; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--ring); outline-offset: 5px; }
::selection { color: #110f0e; background: #ffb511; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 5; padding: 12px 20px; background: var(--primary); color: var(--primary-foreground); transform: translateY(-180%); border-radius: 6px; }
.skip-link:focus { transform: translateY(0); }
.page { width: min(100%, 1600px); height: 100vh; height: 100dvh; min-height: 560px; padding: clamp(16px, 3vh, 36px) 56px clamp(12px, 2vh, 22px); margin-inline: auto; display: flex; flex-direction: column; }
.header { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 48px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 34px; line-height: 1; font-weight: 700; letter-spacing: -1.5px; text-decoration: none; }
.brand-mark { width: 32px; height: 32px; color: var(--orange); }
.brand-period { color: var(--orange); }
.header-caption { font-size: var(--text-small); color: var(--muted); margin: 0 0 0 72px; }
.header-actions { display: flex; align-items: center; gap: 26px; }
.building { display: inline-flex; align-items: center; gap: 9px; font-size: var(--text-small); color: var(--muted); white-space: nowrap; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.theme-toggle { height: 44px; width: 44px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: transparent; color: var(--foreground); transition: background 120ms; }
.theme-toggle:hover { background: var(--surface); }
.moon, [data-theme="light"] .sun { display: none; }
[data-theme="light"] .moon { display: block; }
main { flex: 1; display: grid; place-items: center; padding: clamp(16px, 4vh, 48px) 0; }
.hero { width: 100%; text-align: center; }
.eyebrow { display: flex; justify-content: center; align-items: center; gap: 9px; margin: 0 0 29px; font-size: var(--text-small); font-weight: 500; letter-spacing: 1.5px; color: var(--muted); }
.eyebrow > span { font-size: var(--text-small); letter-spacing: 0; color: var(--teal); }
h1 { width: fit-content; max-width: 100%; margin: 0 auto; padding: 0 8px 10px 0; color: var(--amber); font-size: clamp(64px, 9.5vw, 146px); font-weight: 800; letter-spacing: -.055em; word-spacing: .08em; line-height: 1.06; text-wrap: balance; }
@supports (background-clip: text) {
  h1 { background: var(--title-fill); background-clip: text; -webkit-background-clip: text; color: transparent; }
}
.intro { margin: 31px 0 0; font-size: var(--text-intro); font-weight: 400; line-height: 1.55; color: var(--muted); }
.tink { color: var(--foreground); }
.signup { width: min(100%, 520px); margin: 45px auto 0; scroll-margin-top: 24px; }
.form-row { display: flex; padding: 6px; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.form-row:focus-within { border-color: var(--ring); }
#email { width: 100%; min-width: 0; min-height: 50px; padding: 10px 16px; border: 0; border-radius: 5px; background: transparent; color: var(--foreground); font-size: var(--text-body); }
#email::placeholder { color: var(--muted); opacity: 1; }
#email:focus-visible { outline-offset: -2px; }
.submit-button { min-height: 50px; padding: 0 21px; display: flex; align-items: center; justify-content: center; gap: 16px; flex-shrink: 0; border-radius: 6px; background: var(--primary); color: var(--primary-foreground); font-size: var(--text-body); font-weight: 600; transition: background 120ms; }
.submit-button:hover { background: var(--primary-hover); }
.signup-note { margin: 16px 0 0; font-size: var(--text-small); color: var(--muted); }
.form-status { margin: 0; font-size: var(--text-small); line-height: 1.5; overflow-wrap: anywhere; }
.form-status:not(:empty) { margin-top: 16px; }
.form-status[data-state="error"] { color: var(--error); }
.form-status[data-state="success"] { color: var(--success); }
.noscript-note { font-size: var(--text-small); color: var(--muted); }
.beta-note { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 44px; font-size: var(--text-small); color: var(--muted); }
.tiny-spark { color: var(--orange); font-size: 19px; line-height: 1; }
.footer { flex-shrink: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; min-height: 48px; font-size: var(--text-small); color: var(--muted); }
.footer-note { margin: 0; }
.footer-note span { color: var(--foreground); }
.technology-note { font-size: var(--text-small); letter-spacing: 1px; }
.technology-note span { color: var(--orange); margin-inline: 9px; }
.privacy { position: relative; }
.privacy summary { min-height: 44px; display: flex; align-items: center; gap: 12px; list-style: none; }
.privacy summary::-webkit-details-marker { display: none; }
.privacy summary:hover { color: var(--foreground); }
.privacy-content { position: absolute; z-index: 2; bottom: calc(100% + 10px); left: 0; width: min(360px, calc(100vw - 48px)); padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: 0 12px 36px #0002; color: var(--foreground); line-height: 1.6; font-size: var(--text-small); }
.privacy-content h2 { font-size: 20px; line-height: 1.3; margin: 0; }
.privacy-content p:last-child { margin-bottom: 0; }
/* A viewport frame: decoration never covers controls or intercepts input. */
.palette-frame {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  --frame-colors: var(--orange) 0% 25%, var(--amber) 25% 50%, #2b7c69 50% 75%, var(--cream) 75% 100%;
  background:
    linear-gradient(to right, var(--frame-colors)) top / 100% 4px no-repeat,
    linear-gradient(to right, var(--frame-colors)) bottom / 100% 4px no-repeat,
    linear-gradient(to bottom, var(--frame-colors)) left / 4px 100% no-repeat,
    linear-gradient(to bottom, var(--frame-colors)) right / 4px 100% no-repeat;
}
@media (max-width: 900px) {
  .page { padding: 24px 32px 16px; }
  .header-caption { display: none; }
  .footer-note { display: none; }
}
@media (max-width: 600px) {
  .page { padding: 24px 24px 14px; }
  .brand { font-size: 29px; gap: 9px; }
  .brand-mark { width: 27px; height: 27px; }
  .header { gap: 10px; }
  .header-actions { gap: 14px; }
  .building { font-size: var(--text-small); gap: 6px; }
  .theme-toggle { width: 44px; height: 44px; }
  .eyebrow { letter-spacing: 1px; margin-bottom: 26px; }
  h1 { max-width: 360px; font-size: clamp(70px, 16.8vw, 96px); line-height: .98; }
  .intro { font-size: 20px; line-height: 1.55; margin-top: 28px; }
  .signup { margin-top: 32px; }
  #email { padding-inline: 10px; font-size: var(--text-small); }
  .submit-button { padding-inline: 15px; gap: 8px; font-size: var(--text-small); }
  .submit-button svg { display: none; }
  .beta-note { margin-top: 32px; font-size: var(--text-small); }
  .footer { gap: 12px; font-size: var(--text-small); }
  .technology-note { font-size: var(--text-small); letter-spacing: .3px; }
  .technology-note span { margin-inline: 5px; }
}
@media (max-width: 350px) {
  .page { padding-inline: 18px; }
  .building { display: none; }
  .form-row { flex-direction: column; }
  .footer { align-items: flex-start; flex-direction: column; gap: 4px; }
}
/* Short windows trade whitespace for room, keeping every text size >=16px. */
@media (max-height: 760px) {
  .page { padding-block: 16px 12px; }
  main { padding-block: 16px; }
  .eyebrow { margin-bottom: 16px; }
  h1 { font-size: clamp(56px, 9vw, 112px); }
  .intro { margin-top: 16px; }
  .signup { margin-top: 24px; }
  .signup-note { margin-top: 12px; }
  .beta-note { margin-top: 20px; }
}
@media (max-width: 600px) and (max-height: 700px) {
  h1 { max-width: none; font-size: clamp(44px, 12vw, 70px); }
  .intro { font-size: 18px; }
  .eyebrow { letter-spacing: .5px; }
}
@media (max-width: 350px) and (max-height: 700px) {
  .page { padding-top: 12px; }
  main { padding-block: 8px; }
  .eyebrow { margin-bottom: 8px; }
  .intro { margin-top: 12px; }
  .signup { margin-top: 16px; }
  .signup-note { margin-top: 8px; }
  .beta-note { margin-top: 12px; }
  .footer { gap: 0; }
}
@media (min-width: 700px) and (max-height: 500px) {
  main { padding-block: 12px; }
  .hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 12px 24px; }
  .eyebrow { grid-column: 1 / -1; margin: 0; }
  h1 { grid-column: 1; font-size: clamp(44px, 7vw, 80px); padding-bottom: 0; }
  .intro { grid-column: 1; margin: 0; font-size: 18px; }
  .signup { grid-column: 2; grid-row: 2 / span 2; margin: 0 auto; }
  .beta-note { grid-column: 2; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (forced-colors: active) {
  h1 { background: none; color: CanvasText; }
  .form-row, .submit-button, .theme-toggle { border: 1px solid ButtonText; }
}
