/* ==========================================================================
   Jounreal — landing & legal pages
   Warm-brown palette mirrored from the app (src/theme/palette.ts).
   ========================================================================== */

:root {
  --bg: #faf6f1;
  --bg-alt: #f7f3ee;
  --surface: #fffaf4;
  --text: #2a1e14;
  --text-soft: #6b5743;
  --text-mute: #9a8268;
  --primary: #7a4a2a;
  --primary-strong: #5a3a1a;
  --primary-soft: #f0e6da;
  --border: #ece1d4;
  --shadow: 0 1px 2px rgba(42, 30, 20, 0.04), 0 12px 32px rgba(42, 30, 20, 0.06);
  --shadow-sm: 0 1px 2px rgba(42, 30, 20, 0.05), 0 4px 14px rgba(42, 30, 20, 0.05);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;
  --serif: Georgia, 'Times New Roman', 'Iowan Old Style', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17120c;
    --bg-alt: #1e1610;
    --surface: #221a12;
    --text: #ece0cf;
    --text-soft: #c4ab90;
    --text-mute: #978068;
    --primary: #c79161;
    --primary-strong: #d9a877;
    --primary-soft: #2c2114;
    --border: #2e2418;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 14px rgba(0, 0, 0, 0.3);
  }
}

/* ---- reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-strong);
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 21px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.brand .logo {
  width: 26px;
  height: 26px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-right: 8px;
}

.nav-links a {
  color: var(--text-soft);
  font-size: 15px;
}

.nav-links a:hover {
  color: var(--primary);
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--surface);
}

.lang-toggle a {
  display: inline-block;
  text-decoration: none;
  color: var(--text-mute);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 6px 12px;
  transition: color 0.15s, background 0.15s;
}

.lang-toggle a[aria-current='page'] {
  background: var(--primary);
  color: #fff8f2;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--primary);
  color: #fff8f2;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-strong);
  color: #fff8f2;
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text-mute);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 72px;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 760px;
  height: 760px;
  max-width: 120vw;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--primary) 18%, transparent) 0%,
    transparent 62%
  );
  pointer-events: none;
  z-index: 0;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: 76px;
  height: 76px;
  margin: 0 auto 26px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(38px, 7vw, 62px);
  line-height: 1.05;
  margin-bottom: 22px;
}

.hero .lede {
  max-width: 620px;
  margin: 0 auto 34px;
  font-size: clamp(17px, 2.3vw, 20px);
  color: var(--text-soft);
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 22px;
  font-size: 14px;
  color: var(--text-mute);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-note svg {
  width: 15px;
  height: 15px;
  flex: none;
}

/* ==========================================================================
   Section scaffolding
   ========================================================================== */
section {
  padding: 76px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}

.section-head h2 {
  font-size: clamp(28px, 4.5vw, 40px);
  margin-bottom: 16px;
}

.section-head p {
  color: var(--text-soft);
  font-size: 18px;
}

.alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ---- pillars: Journey / Journal / Real ---- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 820px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}

.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
}

.pillar .ico {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.pillar .ico svg {
  width: 24px;
  height: 24px;
}

.pillar h3 {
  font-size: 23px;
  margin-bottom: 9px;
}

.pillar p {
  color: var(--text-soft);
  font-size: 16px;
}

/* ---- feature grid ---- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 820px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .features {
    grid-template-columns: 1fr;
  }
}

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

.feature .ico {
  width: 38px;
  height: 38px;
  color: var(--primary);
  margin-bottom: 14px;
}

.feature .ico svg {
  width: 28px;
  height: 28px;
}

.feature h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 6px;
}

.feature p {
  color: var(--text-soft);
  font-size: 15px;
}

/* ---- privacy band ---- */
.privacy-band {
  text-align: center;
}

.privacy-band .lock {
  width: 60px;
  height: 60px;
  margin: 0 auto 24px;
  color: var(--primary);
}

.privacy-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
  text-align: left;
}

@media (max-width: 820px) {
  .privacy-points {
    grid-template-columns: 1fr;
  }
}

.privacy-points li {
  list-style: none;
  display: flex;
  gap: 13px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.privacy-points .check {
  flex: none;
  width: 24px;
  height: 24px;
  color: var(--primary);
  margin-top: 1px;
}

.privacy-points strong {
  display: block;
  margin-bottom: 3px;
  font-size: 16px;
}

.privacy-points span.txt {
  color: var(--text-soft);
  font-size: 15px;
}

/* ---- pricing ---- */
.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: 760px;
  margin: 0 auto;
}

@media (max-width: 680px) {
  .pricing {
    grid-template-columns: 1fr;
  }
}

.plan {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  background: var(--surface);
}

.plan.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow);
  position: relative;
}

.plan .tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}

.plan h3 {
  font-family: var(--serif);
  font-size: 26px;
  margin: 6px 0 4px;
}

.plan .price {
  font-size: 15px;
  color: var(--text-mute);
  margin-bottom: 22px;
}

.plan ul {
  list-style: none;
  display: grid;
  gap: 12px;
}

.plan li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--text-soft);
}

.plan li svg {
  flex: none;
  width: 19px;
  height: 19px;
  color: var(--primary);
  margin-top: 2px;
}

/* ---- FAQ ---- */
.faq {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 4px 22px;
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 600;
  font-size: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  font-size: 22px;
  color: var(--primary);
  font-weight: 400;
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  color: var(--text-soft);
  font-size: 16px;
  padding: 0 0 20px;
}

/* ---- final CTA ---- */
.cta-final {
  text-align: center;
}

.cta-final h2 {
  font-size: clamp(30px, 5vw, 46px);
  margin-bottom: 18px;
}

.cta-final p {
  color: var(--text-soft);
  font-size: 19px;
  max-width: 540px;
  margin: 0 auto 30px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 48px 0 56px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .brand {
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--text-mute);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-family: var(--sans);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-mute);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  color: var(--text-soft);
  font-size: 15px;
  margin-bottom: 10px;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-mute);
  font-size: 14px;
}

/* ==========================================================================
   Legal pages (privacy)
   ========================================================================== */
.legal {
  padding: 64px 0 88px;
}

.legal .wrap {
  max-width: 760px;
}

.legal h1 {
  font-size: clamp(32px, 5vw, 44px);
  margin-bottom: 10px;
}

.legal .updated {
  color: var(--text-mute);
  font-size: 15px;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 24px;
  margin: 40px 0 14px;
}

.legal h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 18px;
  margin: 26px 0 10px;
}

.legal p,
.legal li {
  color: var(--text-soft);
  font-size: 16.5px;
  margin-bottom: 14px;
}

.legal ul {
  padding-left: 22px;
  margin-bottom: 14px;
}

.legal li {
  margin-bottom: 8px;
}

.legal strong {
  color: var(--text);
}

.legal a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal .back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  margin-bottom: 32px;
  color: var(--text-soft);
}

.legal .callout {
  background: var(--primary-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 28px 0;
}

.legal .callout p:last-child {
  margin-bottom: 0;
}
