/* Shared styles for the static site pages (privacy.html, terms.html,
   contact.html). Tokens, top bar, mobile menu and footer mirror start.html,
   which keeps its own inline copy (single-file page); if you change a token
   or the chrome there, change it here too. */

/* Newsreader (self-hosted, OFL) — the onNext serif, as on the App Store
   artwork. Variable: weight 200–800 and optical size 6–72 (auto). */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/newsreader-latin.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;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/newsreader-latin-ext.woff2") format("woff2");
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/newsreader-italic-latin.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;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/newsreader-italic-latin-ext.woff2") format("woff2");
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Plus Jakarta Sans Bold (self-hosted) — the onNext wordmark face. Mirrors
   .onx-wordmark in the app's src/styles.css. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-bold.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-semibold.woff2") format("woff2");
}
.onx-wordmark {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #e9cb78 0%, #cda64a 45%, #a67d32 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

:root {
  --bg-base: #08080c;
  --bg-wine: #1a0810;
  --bg-wine-deep: #240b16;
  --bg-elevated: #131520;
  --fg-primary: #F4F4F7;
  --fg-secondary: #B5B5BF;
  --fg-tertiary: #6B6B78;
  --accent-warm: #E9CB78;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --font-display: "Newsreader", ui-serif, Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --topbar-h: 72px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-base);
  color: var(--fg-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body { overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.05;
  margin: 0;
}
.lead {
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.55;
  color: var(--fg-secondary);
  max-width: 60ch;
}
.eyebrow {
  /* Plus Jakarta Sans, the wordmark face, so the labels echo the logo */
  font-family: "Plus Jakarta Sans", var(--font-body);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent-warm);
  margin: 0 0 24px;
}

/* ===== Top bar ===== */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  background: linear-gradient(180deg, rgba(8, 8, 12, 0.78) 0%, rgba(8, 8, 12, 0.45) 100%);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
          backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
@media (max-width: 760px) {
  :root { --topbar-h: 60px; }
}
.topbar .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.topbar .logo img {
  height: 26px;
  width: auto;
  display: block;
}
.topbar .logo span {
  font-size: 18px;
}
.topbar .signin {
  font-size: 14px;
  color: var(--fg-primary);
  text-decoration: none;
  padding: 9px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  transition: background 200ms ease, border-color 200ms ease;
  white-space: nowrap;
}
.topbar .signin:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.28);
}
.topbar .right { display: flex; align-items: center; gap: 12px; }
/* Clear, always-visible way back to the homepage on the inner pages */
.topbar .home-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: #E9CB78;
  text-decoration: none;
  padding: 9px 16px 9px 11px;
  border: 1px solid rgba(233, 203, 120, 0.38);
  border-radius: 999px;
  background: rgba(233, 203, 120, 0.06);
  transition: background 200ms ease, border-color 200ms ease;
  white-space: nowrap;
}
.topbar .home-link:hover { background: rgba(233, 203, 120, 0.14); border-color: rgba(233, 203, 120, 0.6); }
.topbar .home-link svg { width: 16px; height: 16px; }
@media (max-width: 420px) {
  .topbar { padding: 0 16px; }
  .topbar .logo span { display: none; } /* room for Home + Open onNext */
}

/* ===== Page body ===== */
.page {
  /* Glows inside the page must never widen it (iOS lets you drag sideways) */
  overflow-x: hidden;
  overflow-x: clip;
  padding: calc(var(--topbar-h) + clamp(64px, 10vw, 128px)) 24px clamp(96px, 12vw, 160px);
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(205, 166, 74,0.08), transparent 70%),
    var(--bg-base);
}
.page-inner {
  max-width: 720px;
  margin: 0 auto;
}
.page-inner.wide { max-width: 980px; }
.page-inner.wide .page-head { max-width: 760px; }
.display { text-wrap: balance; }
.page-head .display {
  font-size: clamp(40px, 6vw, 72px);
}
.page-meta {
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--fg-tertiary);
}
.page-meta a {
  color: var(--fg-secondary);
  text-underline-offset: 3px;
}
.page-meta a:hover { color: var(--fg-primary); }
.page-head .lead { margin: 24px 0 0; }

/* Long-form legal copy */
.legal {
  margin-top: clamp(48px, 7vw, 72px);
  border-top: 1px solid var(--border-subtle);
}
.legal section {
  padding: 36px 0 4px;
}
.legal h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 26px);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0 0 14px;
  color: var(--fg-primary);
}
.legal p,
.legal li {
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg-secondary);
}
.legal p { margin: 0 0 16px; }
.legal ul { margin: 0 0 18px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal li::marker { color: var(--accent-warm); }
.legal strong { color: var(--fg-primary); font-weight: 600; }
.legal a {
  color: var(--accent-warm);
  text-decoration: none;
  border-bottom: 1px solid rgba(205, 166, 74, 0.35);
}
.legal a:hover { border-color: var(--accent-warm); }

/* About: three app screens in a row */
.about-shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2vw, 20px);
  margin-top: clamp(48px, 7vw, 72px);
  position: relative;
  isolation: isolate;
}
.about-shots::before {
  content: "";
  position: absolute;
  inset: -12% 0; /* no sideways bleed: it widened the page on phones */
  z-index: -1;
  background:
    radial-gradient(ellipse 45% 55% at 25% 50%, rgba(205, 166, 74, 0.22), transparent 70%),
    radial-gradient(ellipse 45% 55% at 75% 50%, rgba(201, 95, 138, 0.20), transparent 70%),
    radial-gradient(ellipse 40% 45% at 50% 60%, rgba(233, 203, 120, 0.14), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.about-shots img {
  width: 100%;
  aspect-ratio: 1080 / 2340;
  object-fit: cover;
  object-position: top;
  border-radius: 22px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.7);
}
@media (max-width: 560px) {
  /* Phones: all three side by side, no sideways scroll strip */
  .about-shots { gap: 8px; margin-top: 36px; }
  .about-shots img { border-radius: 12px; }
}

/* About: gradient headline word (same as the homepage hero) */
.page-head .display em {
  font-style: italic;
  background: linear-gradient(180deg, #E9CB78 0%, #CDA64A 45%, #A67D32 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding: 0 0.12em 0.18em 0;
  margin: 0 -0.1em -0.18em 0;
  line-height: 1.15;
}
/* About: feature cards, each tinted with its own --tint (r, g, b) */
.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: clamp(56px, 8vw, 88px);
}
.af-card {
  position: relative;
  padding: 28px 26px 26px;
  border-radius: 20px;
  border: 1px solid rgba(var(--tint), 0.24);
  background:
    radial-gradient(circle at 0% 0%, rgba(var(--tint), 0.20) 0%, transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(var(--tint), 0.07) 0%, transparent 55%),
    var(--bg-elevated);
  overflow: hidden;
}
.af-icon {
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 12px;
  color: rgb(var(--tint));
  background: rgba(var(--tint), 0.14);
  box-shadow: 0 0 24px rgba(var(--tint), 0.25);
  margin-bottom: 18px;
  display: block;
}
.af-card h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--fg-primary);
}
.af-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-secondary);
}
.about-who {
  margin-top: 16px;
  padding: 28px 26px;
  border-radius: 20px;
  border: 1px solid rgba(233, 203, 120, 0.28);
  background:
    radial-gradient(ellipse 80% 120% at 50% 0%, rgba(233, 203, 120, 0.14), transparent 70%),
    linear-gradient(180deg, var(--bg-wine) 0%, var(--bg-wine-deep) 100%);
  text-align: center;
}
.about-who h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  margin: 0 0 8px;
}
.about-who p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--fg-secondary); }
.about-who strong { color: #E9CB78; font-weight: 600; }
.about-who a {
  color: #E9CB78;
  text-decoration: none;
  border-bottom: 1px solid rgba(233, 203, 120, 0.4);
}
.about-who a:hover { border-color: #E9CB78; }
.about-features.three { grid-template-columns: repeat(3, 1fr); }
.about-features.three .af-card h2 { font-size: 21px; }

/* About: simple vs. power user, side by side */
.about-split {
  margin-top: clamp(72px, 10vw, 120px);
  text-align: center;
}
.about-split > .display {
  font-size: clamp(32px, 4.6vw, 52px);
}
.af-card sup, .af-note sup { color: inherit; font-size: 0.75em; line-height: 0; vertical-align: super; }
.af-card p.af-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--fg-tertiary);
}
.about-who { margin-top: clamp(56px, 8vw, 88px); padding: 40px 28px; }
.about-who h2 { font-size: clamp(28px, 3.4vw, 36px); margin-bottom: 12px; }
.about-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.about-badges a { border-bottom: 0; } /* the panel's link underline isn't for the badges */
.about-badges img { height: 48px; width: auto; }
@media (max-width: 860px) {
  .about-features.three { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .about-features { grid-template-columns: 1fr; }
}

/* ===== Contact form ===== */
/* display:grid would otherwise override the [hidden] attribute set on success */
.contact-form[hidden] { display: none; }
.contact-form {
  margin-top: clamp(48px, 7vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.field { display: flex; flex-direction: column; gap: 10px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-secondary);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px; /* 16px keeps iOS Safari from zooming on focus */
  color: var(--fg-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B5B5BF' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 42px;
}
.field textarea { min-height: 180px; resize: vertical; line-height: 1.55; }
.field input::placeholder,
.field textarea::placeholder { color: var(--fg-tertiary); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(205, 166, 74, 0.6);
  box-shadow: 0 0 0 4px rgba(205, 166, 74, 0.12);
}
/* Honeypot: off-screen for people, still in the DOM for bots */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 6px;
}
/* The app's gold button (InvitePage / InviteSheet): same gradient, ink and glow */
.btn-primary {
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #2b2008;
  background: linear-gradient(180deg, #E9CB78 0%, #CDA64A 45%, #A67D32 100%);
  border: 0;
  border-radius: 999px;
  padding: 15px 30px;
  cursor: pointer;
  transition: transform 160ms ease, opacity 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 6px 20px rgba(165, 126, 60, 0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(165, 126, 60, 0.5); }
.btn-primary:disabled { opacity: 0.55; cursor: default; transform: none; }
.form-status {
  font-size: 14px;
  color: var(--fg-secondary);
  margin: 0;
}
.form-status.error { color: #FF8A73; }
.form-done {
  margin-top: clamp(48px, 7vw, 64px);
  padding: 40px 32px;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  background:
    radial-gradient(ellipse 80% 80% at 50% 0%, rgba(205, 166, 74,0.10), transparent 70%),
    var(--bg-elevated);
  text-align: center;
}
.form-done h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 36px);
  margin: 0 0 12px;
}
.form-done p { margin: 0; color: var(--fg-secondary); font-size: 17px; line-height: 1.6; }
@media (max-width: 640px) {
  .contact-form { grid-template-columns: 1fr; }
}

/* ===== Footer ===== */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 56px 24px 64px;
  font-size: 13px;
  color: var(--fg-tertiary);
  background: var(--bg-base);
}
footer .row {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
}
footer .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--fg-secondary);
  text-decoration: none;
}
footer .brand img {
  height: 22px;
  width: auto;
  display: block;
}
footer .footer-platforms {
  margin-top: 14px;
  font-size: 12px;
  color: var(--fg-tertiary);
  max-width: 460px;
}
footer nav { display: flex; gap: 24px; flex-wrap: wrap; justify-content: flex-end; }
footer nav a { color: var(--fg-secondary); text-decoration: none; }
footer nav a:hover,
footer nav a[aria-current="page"] { color: var(--fg-primary); }
footer .meta {
  max-width: 1200px;
  margin: 32px auto 0;
  font-size: 12px;
  color: var(--fg-tertiary);
}
@media (max-width: 700px) {
  footer .row { grid-template-columns: 1fr; }
  footer nav { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary { transition: none; }
}
