/* ============================================================================
   Glyphtick — glyphtick.app
   Plain HTML/CSS marketing site. Fonts are self-hosted (no third-party CDN).
   Design tokens mirror the Figma file:
     neutral1 #e8f1f2 (primary text)   neutral2 #727c7e (muted text/links)
     neutral5 #0b0d0d (background)      teal     #233233 (top glow)
   ============================================================================ */

/* ---- Self-hosted fonts (Google Fonts via Fontsource, latin subset) -------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---- Tokens --------------------------------------------------------------- */
:root {
  --neutral1: #e8f1f2;
  --neutral2: #727c7e;
  --neutral5: #0b0d0d;
  --teal:     #233233;
  --maxw:     1136px;
  --pad:      clamp(20px, 5vw, 32px);
  --serif:    "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans:     "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--neutral1);
  background-color: var(--neutral5);
  /* Subtle teal glow anchored to the top of the document, fading to near-black.
     Stays at the top on long pages (privacy) rather than following the scroll. */
  background-image: radial-gradient(130% 780px at 50% 0%,
                    #233233 0%, #171f20 30%, #0b0d0d 58%);
  background-repeat: no-repeat;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }

a { color: var(--neutral2); }

/* ---- Layout shell --------------------------------------------------------- */
.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- Header (shared) ------------------------------------------------------ */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
}

/* App-icon tile: gradient rounded square (recreated in CSS) with the glyph on top. */
.app-icon {
  flex: none;
  width: 59px;
  height: 59px;
  border-radius: 14.75px;
  background: radial-gradient(120% 120% at 50% 0%, #233233, #0b0d0d 60%);
  box-shadow: 0 8px 16px rgba(11, 13, 13, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-icon img { width: 30px; height: auto; }

.nav-link {
  font-size: 16px;
  color: var(--neutral2);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.nav-link:hover { color: var(--neutral1); }

/* ---- Landing hero --------------------------------------------------------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(32px, 5vw, 56px);
  text-align: center;
  margin-top: clamp(40px, 8vh, 72px);
  padding-bottom: clamp(40px, 8vh, 72px);
}
.logotype { width: 124px; height: auto; }

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: var(--maxw);
}
h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 6vw, 48px);
  line-height: 1.116;
  color: var(--neutral1);
}
.subtitle {
  font-size: clamp(17px, 2.4vw, 20px);
  color: var(--neutral2);
}
.play-badge img { height: 51px; width: auto; }

/* Promo image + divider, stacked at the bottom of the hero group. */
.promo {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.promo img { width: 100%; max-width: 566px; height: auto; }
.divider {
  align-self: stretch;
  /* Break out of the wrap's horizontal padding so the rule runs wider than the
     content column — full-bleed on mobile, ~content width on desktop. */
  margin: 0 calc(-1 * var(--pad));
  border: 0;
  border-top: 1px solid rgba(231, 241, 242, 0.12);
}

/* ---- Privacy page --------------------------------------------------------- */
.page-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 6vw, 48px);
  line-height: 1.116;
  color: var(--neutral1);
  margin-top: 48px;
}
.policy {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 48px;
  padding-bottom: 48px;
}
.policy section { display: flex; flex-direction: column; gap: 20px; }
.policy h2 { font-size: 20px; font-weight: 400; color: var(--neutral1); }
.policy p  { font-size: 16px; color: var(--neutral2); }
.policy .lead { font-size: 20px; color: var(--neutral1); }
.policy a { color: var(--neutral2); text-underline-offset: 2px; }
.policy a:hover { color: var(--neutral1); }
.rule { border: 0; border-top: 1px solid rgba(231, 241, 242, 0.12); }

/* ---- 404 ------------------------------------------------------------------ */
.center-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  padding-bottom: 48px;
}
.center-screen h1 { font-family: var(--serif); }
