/* Macroni landing + privacy — sand theme, mirrored from the app's theme.config.ts.
   Light + dark follow the OS via prefers-color-scheme, exactly like the app. */

:root {
  --bg: #f0ebe2;
  --card: #faf7f2;
  --subtle: #e5dfd4;
  --text: #1a1712;
  --secondary: #9a8e7e;
  --tertiary: #a59685;
  --border: #ddd5c5;
  --accent: #3a6b3a;
  --accent-subtle: #d4e6d4;

  /* work-in-progress banner (warning amber, from the app's sand warning hue) */
  --warning-bg: #f6e7c4;
  --warning-border: #e3c98a;
  --warning-text: #6b4a08;

  --radius: 20px;
  --radius-lg: 28px;
  --maxw: 660px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131510;
    --card: #1e2218;
    --subtle: #242818;
    --text: #e8e6e0;
    --secondary: #9aa090;
    --tertiary: #6a7060;
    --border: #3a4230;
    --accent: #6aaa6a;
    --accent-subtle: #1e3020;

    --warning-bg: #2e2410;
    --warning-border: #5c4a1a;
    --warning-text: #fbbf24;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.wip-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  background: var(--warning-bg);
  color: var(--warning-text);
  border-bottom: 1px solid var(--warning-border);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.wip-banner::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: wip-pulse 2s ease-in-out infinite;
}

@keyframes wip-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wip-banner::before {
    animation: none;
  }
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 24px 72px;
}

/* ---- Landing hero ---- */

.hero {
  text-align: center;
}

.logo {
  width: 150px;
  max-width: 56vw;
  height: auto;
  margin: 0 auto 22px;
  display: block;
}

.app-name {
  margin: 0;
  font-size: clamp(34px, 7vw, 48px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.05;
}

.tagline {
  margin: 14px 0 0;
  font-size: clamp(18px, 3.4vw, 22px);
  font-weight: 600;
  color: var(--accent);
}

.blurb {
  margin: 20px auto 0;
  max-width: 30em;
  font-size: 17px;
  color: var(--secondary);
}

/* ---- CTAs ---- */

.cta {
  margin: 32px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 360px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 24px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.btn:active {
  transform: scale(0.985);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
}

.cta-note {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--tertiary);
  text-align: center;
}

/* ---- Feature cards ---- */

.features {
  margin: 56px 0 0;
  display: grid;
  gap: 12px;
}

.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.feature h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
}

.feature p {
  margin: 0;
  font-size: 15px;
  color: var(--secondary);
}

/* ---- Footer ---- */

.footer {
  margin: 56px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 14px;
  color: var(--tertiary);
}

.footer a {
  color: var(--secondary);
}

/* ---- Privacy / long-form content ---- */

.doc-header {
  margin: 0 0 32px;
}

.doc-back {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.doc {
  font-size: 16px;
}

.doc h1 {
  font-size: clamp(28px, 5vw, 34px);
  font-weight: 800;
  letter-spacing: -0.4px;
  margin: 24px 0 8px;
}

.doc h2 {
  font-size: 21px;
  font-weight: 700;
  margin: 40px 0 8px;
}

.doc h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 24px 0 4px;
}

.doc p,
.doc li {
  color: var(--text);
}

.doc a {
  color: var(--accent);
}

.doc hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}

.doc strong {
  font-weight: 600;
}

.doc code {
  background: var(--subtle);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.9em;
}
