/* ============================================================
   TROVA — SHARED STYLESHEET
   ------------------------------------------------------------
   Centralised design tokens, base reset, and the components
   reused on every page (logo, nav, footer, buttons, utilities).
   Page-specific sections (hero, platform, signup, store links,
   modal, …) live in each page's own <style> block, scoped under
   its body page-class (.page-home / .page-curators / .page-download).
   Edit a token here once to retheme the whole site.
   ============================================================ */

/* ── DESIGN TOKENS ──────────────────────────────────────────── */
:root {
  /* Brand colours */
  --color-terracotta: #c44a35;
  --color-terracotta-dark: #8a3223;
  --color-paper: #f9f4f0;
  --color-sand: #f2eae0;
  --color-ink: #1c1917;
  --color-ink-soft: #4a443e;
  --color-warm-gray: #7b7169;
  --color-light-rule: #d8cfc4;
  --color-hairline: #e0d7cb;
  --color-off-white: #fcfaf7;
  --color-shadow: #dcd2c6;
  --color-placeholder: #c8beb2;
  --color-sand-text: #f5e6dc;

  /* Type families */
  --font-serif: "Lora", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing */
  --pad-page: 96px;
  --pad-card: 48px;
  --gap-section: 100px;

  /* Radii */
  --radius-card: 14px;
  --radius-mark: 8px;
  --radius-button: 999px;
  --radius-field: 12px;

  /* Type scale */
  --fs-eyebrow: 12px;
  --fs-body-sm: 13px;
  --fs-body: 15px;
  --fs-body-md: 17px;
  --fs-body-lg: 18px;
  --fs-card-head: 22px;
  --fs-cities: 24px;
  --fs-numeral: 26px;
  --fs-onboarding-head: 36px;
  --fs-cta-head: 40px;
  --fs-platform-head: 42px;
  --fs-why-head: 44px;
  --fs-step-num: 48px;
  --fs-hero-head: 56px;

  /* Layout */
  --max-w: 1440px;
}

/* ── RESET / BASE ───────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--color-terracotta);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── SHARED UTILITIES ───────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-page);
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  margin: 0;
}

.serif {
  font-family: var(--font-serif);
  font-weight: 400;
}

.hairline {
  height: 1px;
  background: var(--color-hairline);
  border: 0;
  margin: 0;
}

/* ── BUTTONS ────────────────────────────────────────────────── */
/* Terracotta pill */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: var(--color-terracotta);
  color: var(--color-paper);
  font-family: var(--font-sans);
  font-size: var(--fs-body-md, 16px);
  font-weight: 500;
  border: none;
  border-radius: var(--radius-button);
  transition: background 150ms ease;
}
.btn-primary:hover {
  background: var(--color-terracotta-dark);
}

/* Inverse pill — paper on terracotta backgrounds */
.btn-inverse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--color-paper);
  color: var(--color-terracotta);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: var(--radius-button);
  transition: background 150ms ease;
}
.btn-inverse:hover {
  background: var(--color-off-white);
}

/* ── LOGO (images/logo.svg, reused in nav + footer) ─────────── */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.logo__mark {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-mark);
}
.logo__wordmark {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--color-ink);
  line-height: 1;
}

/* ── NAV ────────────────────────────────────────────────────── */
.nav {
  background: var(--color-paper);
  border-bottom: 1px solid var(--color-hairline);
}
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-page);
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__login {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  color: var(--color-warm-gray);
}
.nav__login:hover {
  color: var(--color-ink);
}
.nav__cta {
  padding: 10px 22px;
  font-size: 15px;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  padding: 80px 0 32px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr 200px 200px;
  gap: 80px;
  align-items: start;
}
.footer__brand .logo {
  margin-bottom: 16px;
}
.footer__tagline {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-warm-gray);
}
.footer__col-title {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-ink);
  margin-bottom: 16px;
}
.footer__col-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer__col-list a {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--color-ink-soft);
}
.footer__col-list a:hover {
  color: var(--color-ink);
}
.footer__rule {
  margin: 60px 0 24px;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--color-warm-gray);
}

/* ── LEGAL PAGES (terms.html, privacy.html) ─────────────────────
   Shared long-form document layout: a narrow, readable measure
   with a serif title and sans body. Scoped under .page-legal so
   both legal pages render identically from one source of truth. */
.legal {
  padding: 72px 0 96px;
}
.legal__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--pad-page);
}
.legal__header {
  margin-bottom: 8px;
}
.legal__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 46px;
  color: var(--color-ink);
  line-height: 1.15;
  margin-top: 16px;
}
.legal__meta {
  font-family: var(--font-sans);
  font-size: var(--fs-body-sm);
  color: var(--color-warm-gray);
  margin-top: 20px;
}
.legal__intro {
  font-family: var(--font-sans);
  font-size: var(--fs-body-md);
  color: var(--color-ink-soft);
  line-height: 1.7;
  margin-top: 28px;
}
.legal__section {
  margin-top: 44px;
}
.legal__section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  color: var(--color-ink);
  line-height: 1.3;
}
.legal__section p {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  color: var(--color-ink-soft);
  line-height: 1.7;
  margin-top: 16px;
}
.legal__list {
  margin: 16px 0 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal__list li {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  color: var(--color-ink-soft);
  line-height: 1.65;
}
.legal__section a {
  color: var(--color-terracotta);
}
.legal__section a:hover {
  color: var(--color-terracotta-dark);
}

@media (max-width: 640px) {
  .legal {
    padding: 48px 0 64px;
  }
  .legal__title {
    font-size: 34px;
  }
}

/* ── SHARED RESPONSIVE TOKENS / STRUCTURE ───────────────────────
   Font-size token tuning that differs per page lives in each
   page's own block. Here we only adjust the universally shared
   spacing tokens and the shared nav/footer structure.
   ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --pad-page: 48px;
    --pad-card: 32px;
  }
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  :root {
    --pad-page: 24px;
    --pad-card: 24px;
  }
  .nav__inner {
    height: 72px;
  }
  .nav__actions {
    gap: 16px;
  }
  .nav__login {
    font-size: 13px;
  }
  .footer__bottom {
    flex-direction: column;
    gap: 8px;
  }
}
