/* Shared stylesheet for the marketing pages (/, /privacy, /terms, /app).
   Fonts are self-hosted (subset woff2 files in /fonts) so no request ever
   leaves weconverse.app. */

/* ---------- Fonts ---------- */

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(/fonts/figtree-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-20c0, U+2113, U+2c60-2c7f, U+a720-a7ff;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(/fonts/figtree-latin.woff2) format("woff2");
  unicode-range: U+00??, 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: "Figtree Fallback";
  src: local("Arial");
  ascent-override: 93.6%;
  descent-override: 24.63%;
  line-gap-override: 0%;
  size-adjust: 101.49%;
}

@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/dm-mono-400-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-20c0, U+2113, U+2c60-2c7f, U+a720-a7ff;
}
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/dm-mono-400-latin.woff2) format("woff2");
  unicode-range: U+00??, 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: "DM Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/dm-mono-500-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-20c0, U+2113, U+2c60-2c7f, U+a720-a7ff;
}
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/dm-mono-500-latin.woff2) format("woff2");
  unicode-range: U+00??, 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: "DM Mono Fallback";
  src: local("Arial");
  ascent-override: 72.98%;
  descent-override: 22.81%;
  line-gap-override: 0%;
  size-adjust: 135.93%;
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/fraunces-vietnamese.woff2) format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169,
    U+01a0-01a1, U+01af-01b0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323,
    U+0329, U+1ea0-1ef9, U+20ab;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/fraunces-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-20c0, U+2113, U+2c60-2c7f, U+a720-a7ff;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/fraunces-latin.woff2) format("woff2");
  unicode-range: U+00??, 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: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/fraunces-italic-vietnamese.woff2) format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169,
    U+01a0-01a1, U+01af-01b0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323,
    U+0329, U+1ea0-1ef9, U+20ab;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/fraunces-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-20c0, U+2113, U+2c60-2c7f, U+a720-a7ff;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/fraunces-italic-latin.woff2) format("woff2");
  unicode-range: U+00??, 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: "Fraunces Fallback";
  src: local("Times New Roman");
  ascent-override: 84.29%;
  descent-override: 21.98%;
  line-gap-override: 0%;
  size-adjust: 116.03%;
}

/* ---------- Design tokens (mirrored from the Converse iOS app) ---------- */

:root {
  --font-sans: "Figtree", "Figtree Fallback", ui-sans-serif, system-ui,
    sans-serif;
  --font-mono: "DM Mono", "DM Mono Fallback", ui-monospace, SFMono-Regular,
    monospace;
  --font-display: "Fraunces", "Fraunces Fallback", ui-serif, Georgia, serif;

  --color-accent: #2f62c4;
  --color-accent-tint: #edf3fc;

  --color-ink: #1b2430;
  --color-body: #57606b;
  --color-body-strong: #454e59;
  --color-muted: #8a93a0;
  --color-meta: #9aa3af;
  --color-placeholder: #b4bbc3;

  --color-surface: #ffffff;
  --color-fill-subtle: #f3f5f8;
  --color-fill-field: #f7f8fa;

  --color-hairline: #f1f2f4;
  --color-card-border: #eceef1;
  --color-field-border: #e6eaef;
  --color-separator: #d7dce2;

  --color-amber: #c77a29;
  --color-danger: #c0392b;

  --radius-badge: 7px;
  --radius-field: 10px;
  --radius-input: 13px;
  --radius-card: 16px;
  --radius-sheet: 26px;

  --shadow-soft: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-primary: 0 6px 9px rgba(47, 98, 196, 0.26);
  --shadow-sheet: 0 14px 20px rgba(0, 0, 0, 0.18);
}

/* ---------- Base ---------- */

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

body {
  margin: 0;
  background-color: var(--color-surface);
  color: var(--color-ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

[hidden] {
  display: none !important;
}

.micro-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-meta);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 3s ease-out;
}

/* Slow "recording" breathe for the wordmark's dot. */
@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.6);
    opacity: 0.55;
  }
}

.dot-live {
  animation: breathe 2.4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .dot-live {
    animation: none;
  }
}

/* ---------- Landing (/) ---------- */

.landing {
  position: relative;
  display: flex;
  height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  overflow: hidden;
  background: var(--color-surface);
  padding: 48px 24px;
}

.landing-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.landing h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 40px;
  font-weight: 600;
  color: var(--color-ink);
}

.landing h1 em {
  padding-right: 2px;
  font-weight: 500;
}

/* The live "recording" dot that punctuates the wordmark, sat on the baseline. */
.wordmark-dot {
  margin-left: 6px;
  display: inline-block;
  height: 10px;
  width: 10px;
  border-radius: 9999px;
  border: 1px solid var(--color-accent);
  padding: 2px;
}

.wordmark-dot .dot-live {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 9999px;
  background: var(--color-accent);
}

.tagline {
  margin: 0;
  max-width: 512px;
  text-align: center;
  font-size: 16px;
  line-height: 1.625;
  color: var(--color-body);
}

.tagline strong {
  font-weight: 500;
  color: var(--color-ink);
}

.coming-soon {
  position: absolute;
  bottom: 32px;
  color: var(--color-muted);
}

.landing nav {
  position: absolute;
  bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.025em;
  color: var(--color-meta);
}

.landing nav a:hover {
  color: var(--color-accent);
}

.landing nav .sep {
  margin: 0 6px;
  color: var(--color-separator);
}

@media (min-width: 640px) {
  .landing h1 {
    font-size: 60px;
    line-height: 60px;
  }
  .wordmark-dot {
    margin-left: 8px;
    height: 12px;
    width: 12px;
  }
  .tagline {
    font-size: 18px;
  }
}

/* ---------- Legal pages (/privacy, /terms) ---------- */

.legal {
  min-height: 100vh;
  background: var(--color-surface);
  padding: 64px 24px;
  color: var(--color-ink);
}

.legal article {
  margin: 0 auto;
  max-width: 672px;
}

.back-link {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-muted);
}

.back-link:hover {
  color: var(--color-accent);
}

.legal h1 {
  margin: 32px 0 0;
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 40px;
  font-weight: 600;
}

.last-updated {
  margin: 8px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  color: var(--color-meta);
}

.legal .intro {
  margin: 32px 0 0;
}

.legal .intro,
.legal .section-body {
  font-size: 15px;
  line-height: 1.625;
  color: var(--color-body);
}

.legal section {
  margin-top: 40px;
}

.legal h2 {
  margin: 0;
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  color: var(--color-ink);
}

.legal .section-body {
  margin-top: 12px;
}

.legal .section-body > * + * {
  margin-top: 12px;
}

.legal .section-body p {
  margin: 0;
}

.legal ul {
  margin: 0;
  padding-left: 20px;
  list-style: disc;
}

.legal li + li {
  margin-top: 8px;
}

.legal li::marker {
  color: var(--color-separator);
}

.legal strong {
  font-weight: 600;
  color: var(--color-ink);
}

.legal .intro a,
.legal .section-body a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal .intro a:hover,
.legal .section-body a:hover {
  color: var(--color-ink);
}

@media (min-width: 640px) {
  .legal {
    padding-top: 80px;
    padding-bottom: 80px;
  }
  .legal h1 {
    font-size: 40px;
  }
}

/* ---------- App redirect (/app) ---------- */

.app-redirect {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-fill-subtle);
  padding: 48px 24px;
}

.app-card {
  display: flex;
  width: 100%;
  max-width: 384px;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-card-border);
  background: var(--color-surface);
  padding: 48px 32px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.app-card h1 {
  margin: 0;
  display: flex;
  align-items: flex-end;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 36px;
  font-weight: 600;
  color: var(--color-ink);
}

.app-card .wordmark-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 8px;
  width: 8px;
  padding: 1px;
}

.app-card .message {
  margin: 0;
  font-size: 15px;
  line-height: 1.625;
  color: var(--color-body);
}

.app-card .checking {
  margin: 0;
  letter-spacing: 0.14em;
}

.app-not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.app-not-found p {
  margin: 0;
  font-size: 14px;
  line-height: 1.625;
  color: var(--color-body);
}

.app-not-found a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.app-not-found a:hover {
  color: var(--color-ink);
}

.try-again {
  display: inline-flex;
  height: 52px;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 9999px;
  background: var(--color-accent);
  padding: 0 28px;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 600;
  color: #ffffff;
  box-shadow: var(--shadow-primary);
  cursor: pointer;
  transition: opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.try-again:hover {
  opacity: 0.9;
}
