/* Design tokens — light mode defaults */
:root {
  color-scheme: light dark;

  --bg: #f9f7f1;              /* cream page background (color/neutral/primary) */
  --surface: #f7f7f7;
  --border: #e0e0e0;

  --text-strong: #171717;     /* headlines, bold labels */
  --text: #171717;            /* default body */
  --text-body: #595959;       /* privacy body copy */
  --text-muted: #737373;      /* tagline, about */
  --text-subtle: #8c8c8c;     /* last-updated, section numbers */
  --text-footer: #b8b8b8;     /* footer copyright */

  --button-bg: #171717;
  --button-fg: #ffffff;

  --feature-bg: #4a5f2f;      /* darker green, used in both modes */
  --feature-border: #664e31;

  --accent: #6d9838;          /* green highlights in hero copy */
  --accent-link: #008cff;     /* blue highlights in about copy */

  --logo-filter: none;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --surface: #1a1a1a;
    --border: #262626;

    --text-strong: #f5f5f5;
    --text: #e5e5e5;
    --text-body: #a3a3a3;
    --text-muted: #8a8a8a;
    --text-subtle: #737373;
    --text-footer: #6b6b6b;

    --button-bg: #f5f5f5;
    --button-fg: #0a0a0a;

    --logo-filter: invert(1);
  }
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

p {
  margin: 0;
}

/* Page layout */
.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 50px;
}

.container {
  width: 100%;
  max-width: 1064px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 64px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
}

.logo-mark {
  width: 45px;
  height: 43px;
  filter: var(--logo-filter);
}

.logo-wordmark {
  font-family: 'Unbounded', sans-serif;
  font-weight: 500;
  font-size: 30px;
  color: var(--text-strong);
  letter-spacing: -1.3389px;
  white-space: nowrap;
}

/* Headline */
.headline {
  margin: 0;
  font-family: 'Source Serif Pro', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 58px;
  line-height: 66px;
  color: var(--text-strong);
  width: 100%;
}

/* Tagline */
.tagline {
  display: flex;
  flex-direction: column;
  color: var(--text-muted);
  line-height: 28px;
}

.tagline-primary {
  font-size: 18px;
  font-weight: 400;
}

.tagline-secondary {
  font-size: 12px;
  font-weight: 400;
}

/* Hero */
.hero {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-copy {
  margin: 0;
  font-family: 'Source Serif Pro', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 58px;
  line-height: 66px;
  color: var(--text-strong);
}

.hero-accent {
  color: var(--accent);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.hero-pricing {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 28px;
  color: var(--text-muted);
}

/* CTA button */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--button-bg);
  color: var(--button-fg);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 10px;
  white-space: nowrap;
}

/* Features */
.features {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 114px;
}

.feature {
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-header {
  display: flex;
  flex-direction: column;
  gap: 1px;
  color: var(--text-strong);
}

.feature-title {
  margin: 0;
  font-family: 'Source Serif Pro', Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 38px;
  line-height: 1.15;
}

.feature-subtitle {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 28px;
}

.feature-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  background-color: var(--feature-bg);  /* fallback while image loads */
}

/* Also list */
.also-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text-muted);
}

.also-list-heading {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 2px;
}

.also-list ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.also-list li {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
}

.also-list li::before {
  content: "·";
  display: inline-block;
  width: 1.5ch;
}

/* About */
.about {
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 31px;
}

.about p {
  margin: 0;
}

.about-accent {
  font-weight: 500;
  color: var(--accent-link);
  text-decoration: none;
}

.about-accent:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* Footer */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

/* Inline footer used on the homepage redesign — text-only horizontal row */
.site-footer--inline {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 0;
}

.site-footer--inline .footer-mark {
  display: none;
}

.footer-mark {
  width: 36px;
  height: 35px;
  filter: var(--logo-filter);
}

.footer-name {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-strong);
}

.footer-copy {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: var(--text-footer);
}

/* ---------- Privacy page ---------- */
.page--privacy .page {
  gap: 80px;
}

.logo-link {
  display: flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.logo--reversed .logo-wordmark {
  order: 0;
}

.logo-mark--flipped {
  transform: scaleX(-1);
}

.privacy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 1064px;
}

.privacy-updated {
  font-family: 'Source Serif Pro', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-subtle);
}

.privacy-intro {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 30px;
  color: var(--text-strong);
}

.privacy-summary {
  background-color: var(--surface);
  border-radius: 10px;
  padding: 20px 24px;
}

.privacy-summary p {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  color: var(--text-strong);
}

.privacy-summary strong {
  font-weight: 600;
}

.privacy-divider {
  width: 100%;
  height: 1px;
  background-color: var(--border);
  border: none;
  margin: 0;
}

.privacy-sections {
  list-style: none;
  counter-reset: privacy-counter;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0;
  margin: 0;
}

.privacy-section {
  counter-increment: privacy-counter;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.privacy-section h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 22px;
  line-height: normal;
  letter-spacing: -0.3px;
  color: var(--text-strong);
}

.privacy-section h2::before {
  content: counter(privacy-counter) ".";
  font-family: 'Source Serif Pro', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 24px;
  color: var(--text-subtle);
  flex-shrink: 0;
  min-width: 20px;
}

.privacy-section p {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 28px;
  color: var(--text-body);
}

.privacy-list {
  padding-left: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.privacy-list li {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  color: var(--text-body);
}

.privacy-list li::before {
  content: "·";
  display: inline-block;
  width: 1.5ch;
}

.privacy-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.privacy-contact p,
.privacy-contact address {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 28px;
  color: var(--text-body);
  margin: 0;
}

.privacy-contact strong {
  font-weight: 600;
  color: var(--text-strong);
}

.privacy-contact a {
  color: inherit;
  text-decoration: none;
}

.privacy-contact a:hover {
  text-decoration: underline;
}

/* ---------- Help page ---------- */
.help {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 1064px;
}

.help-intro {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 30px;
  color: var(--text-body);
}

.help-email {
  font-family: 'Source Serif Pro', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(22px, 5vw, 32px);
  line-height: 1.3;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.help-email a {
  color: var(--text-strong);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: border-color 120ms ease;
}

.help-email a:hover {
  border-bottom-color: var(--text-strong);
}

/* Footer link styles — used on both pages */
.footer-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.footer-copy a {
  color: inherit;
  text-decoration: none;
}

.footer-copy a:hover {
  text-decoration: underline;
}

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .page {
    padding: 20px;
  }

  .container {
    gap: 48px;
  }

  .page--privacy .page {
    gap: 48px;
  }

  .headline {
    font-size: 38px;
    line-height: 56px;
  }

  .hero-copy {
    font-size: 38px;
    line-height: 48px;
  }

  .feature-title {
    font-size: 28px;
  }

  .feature-subtitle {
    font-size: 16px;
    line-height: 24px;
  }

  .features {
    gap: 64px;
  }
}
