/*
 * PORKLY — site stylesheet (master)
 * Single source for the landing page (index.html) and the legal pages
 * (legal.html, terms.html, privacy.html). Mirrors the mobile app's
 * design tokens (apps/mobile/src/theme/tokens.ts) so the web pages and
 * the app feel like the same product.
 */

:root {
  /* Backgrounds */
  --bg:        #0A0A0E;
  --canvas:    #050507;
  --surface:   #111116;
  --surface2:  #16161D;
  --surface3:  #1C1C26;

  /* Borders */
  --border:    #222230;
  --border2:   #1C1C28;

  /* Text */
  --text:      #E4E4F0;
  --text2:     #8A8AA8;
  --text3:     #555568;

  /* Accent (matches app's blue accent) */
  --accent:    #4D8FD6;
  --accent2:   #2E6AAD;
  --accent-glow: rgba(77,143,214,0.28);
  --accent-dim:  rgba(77,143,214,0.12);

  /* Brand pink (matches the Porkly mark) */
  --pink:      #D6529A;

  /* Warning / red */
  --red:       #D65A5A;
  --red-dim:   rgba(214,90,90,0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Landing-page-specific layout: flex column with pink hero glow. */
body.landing {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-image: radial-gradient(
    circle at 50% 30%,
    rgba(214, 82, 154, 0.10),
    transparent 60%
  );
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Landing: top nav ─────────────────────────────────── */

.site-nav {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  padding: 24px 28px 0;
  font-size: 13px;
}
.site-nav a { color: var(--text2); }
.site-nav a:hover { color: var(--text); text-decoration: none; }

/* ── Landing: hero ────────────────────────────────────── */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  gap: 16px;
}

.logo {
  width: 128px;
  height: 128px;
  margin-bottom: 8px;
  filter: drop-shadow(0 8px 24px rgba(214, 82, 154, 0.25));
}

.hero-title {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--text);
}

.tagline {
  font-size: 18px;
  font-weight: 500;
  color: var(--pink);
  letter-spacing: 0.2px;
  margin-top: 4px;
}

.description {
  font-size: 14px;
  font-weight: 400;
  color: var(--text2);
  max-width: 420px;
  line-height: 1.55;
  margin-top: 8px;
}

.footer {
  padding: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--text3);
}

/* ── Legal pages: shell + header bar ──────────────────── */

.shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 28px 96px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
}

.brand-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.brand-nav {
  margin-left: auto;
  display: flex;
  gap: 18px;
  font-size: 13px;
}

.brand-nav a { color: var(--text2); }
.brand-nav a:hover { color: var(--text); text-decoration: none; }

/* ── Legal pages: typography ──────────────────────────── */

h1 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.4px;
  margin: 8px 0 14px;
}

h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 44px 0 12px;
  letter-spacing: -0.2px;
}

h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 8px;
  color: var(--text);
}

.shell p { margin: 0 0 14px; color: var(--text); }

.shell ul, .shell ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.shell li { margin: 4px 0; }

strong { color: var(--text); font-weight: 600; }
em     { color: var(--text2); font-style: normal; }

.muted { color: var(--text2); }
.small { font-size: 13px; }

.lede {
  color: var(--text2);
  font-size: 16px;
  margin-bottom: 32px;
}

/* ── Legal pages: callouts & components ───────────────── */

.notice {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 24px 0;
}

.notice strong { display: block; margin-bottom: 6px; }

.warning {
  background: var(--red-dim);
  border: 1px solid rgba(214,90,90,0.35);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 24px 0;
}

.warning strong {
  color: var(--red);
  display: block;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 12px;
}

.legal-emphasis {
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 600;
}

.cards {
  display: grid;
  gap: 14px;
  margin: 28px 0 12px;
}

.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
  text-decoration: none;
  transition: border-color 120ms ease, transform 120ms ease;
}

.card:hover {
  border-color: var(--accent);
  text-decoration: none;
  transform: translateY(-1px);
}

.card-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px;
}

.card-sub {
  font-size: 13px;
  color: var(--text2);
  margin: 0;
}

.foot {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text3);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.foot a { color: var(--text2); }
.foot a:hover { color: var(--text); }

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 0 0 36px;
  font-size: 14px;
}

.toc-title {
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-size: 11px;
  color: var(--text2);
  margin: 0 0 10px;
  font-weight: 600;
}

.toc ol {
  margin: 0;
  padding-left: 20px;
  color: var(--text2);
}

.toc a { color: var(--text); }
.toc a:hover { color: var(--accent); }

/* ── Responsive ───────────────────────────────────────── */

@media (min-width: 720px) {
  .logo { width: 144px; height: 144px; }
  .hero-title { font-size: 56px; }
  .tagline { font-size: 22px; }
  .description { font-size: 15px; max-width: 480px; }
}

@media (max-width: 560px) {
  .shell { padding: 36px 18px 80px; }
  h1 { font-size: 26px; }
  h2 { font-size: 18px; }
  .site-nav { padding: 16px 18px 0; gap: 14px; font-size: 12px; }
  .brand { flex-wrap: wrap; }
  .brand-nav { font-size: 12px; gap: 14px; }
}
