/* ════════════════════════════════════════════════════════════════════════
   PresentTool — Shared subpage chrome (theme.css)
   One source of truth for tokens + nav + footer + page-hero across every
   marketing subpage (download, compare, roadmap, about, …).
   Light default · dark/light/auto theme (pt_theme) · 4 V's color system.
   Pairs with assets/theme.js (toggle + mobile nav + cookie + reveal).
   ════════════════════════════════════════════════════════════════════════ */

:root {
  --pt-primary:   #8B4513;
  --pt-secondary: #C8956C;
  --pt-text:        #1A1A1A;
  --pt-text-muted:  #6B6B6B;
  --pt-text-subtle: #9A9A95;
  --pt-bg-page:    #F8F6F1;
  --pt-surface-0:  #FFFFFF;
  --pt-surface-1:  #FAFAF8;
  --pt-surface-2:  #F4F3F0;
  --pt-surface-3:  #EEEDEA;
  --pt-border:        #E5E5E0;
  --pt-border-strong: #D9D8D2;
  --pt-accent-soft: rgba(139, 69, 19, 0.08);
  --pt-accent-mid:  rgba(139, 69, 19, 0.18);
  --pt-success:     #2D7A4F;

  --v1: #8B6F47; --v2: #8B4513; --v3: #2F6E68; --v4: #A0722A;

  --pt-serif: 'Source Serif 4', Georgia, serif;
  --pt-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --pt-mono:  'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --pt-shadow-card:   0 1px 2px rgba(20,18,14,0.04), 0 8px 24px rgba(20,18,14,0.06);
  --pt-shadow-mockup: 0 4px 16px rgba(20,18,14,0.06), 0 32px 80px rgba(20,18,14,0.10);
  --pt-radius-sm: 6px; --pt-radius-md: 10px; --pt-radius-lg: 16px; --pt-radius-xl: 24px;

  --hero-bg:      #F2EFE8;
  --hero-surface: #FFFFFF;
  --hero-border:  #E5E3DC;
  --hero-text:    #1A1A1A;
  --hero-muted:   #6B6B6B;
  --hero-primary: #8B4513;
  --hero-on-soft: rgba(20,18,14,0.04);
  --hero-on-mid:  rgba(20,18,14,0.10);
  --grid-line:    rgba(139,69,19,0.05);
  --grid-dot:     rgba(139,69,19,0.10);
  --orb-a:        rgba(200,149,108,0.30);
  --orb-b:        rgba(139,69,19,0.18);

  --nav-bg:       rgba(248,246,241,0.82);
  --nav-border:   rgba(20,18,14,0.08);
  --nav-text:     #1A1A1A;
  --nav-muted:    rgba(26,26,26,0.62);
  --nav-hover-bg: rgba(20,18,14,0.05);

  --foot-bg:      #F2EFE8;
  --foot-border:  rgba(20,18,14,0.08);
  --foot-text:    #6B6B6B;
  --foot-strong:  #1A1A1A;
  --foot-muted:   #9A9A95;
  color-scheme: light;
}
[data-theme="dark"] {
  --pt-text:        #F2F0EB;
  --pt-text-muted:  #A09D96;
  --pt-text-subtle: #76726B;
  --pt-bg-page:    #14120E;
  --pt-surface-0:  #1F1D18;
  --pt-surface-1:  #1A1814;
  --pt-surface-2:  #232019;
  --pt-surface-3:  #2C2922;
  --pt-border:        #2A2823;
  --pt-border-strong: #38342C;
  --pt-accent-soft: rgba(200,149,108,0.10);
  --pt-accent-mid:  rgba(200,149,108,0.24);
  --v1: #B79468; --v2: #C8956C; --v3: #5FB3AA; --v4: #D7A14B;
  --pt-shadow-card:   0 1px 2px rgba(0,0,0,0.35), 0 8px 24px rgba(0,0,0,0.45);
  --pt-shadow-mockup: 0 4px 16px rgba(0,0,0,0.45), 0 32px 80px rgba(0,0,0,0.55);
  --hero-bg:      #14120E;
  --hero-surface: #1F1D18;
  --hero-border:  #2A2823;
  --hero-text:    #F2F0EB;
  --hero-muted:   #A09D96;
  --hero-primary: #C8956C;
  --hero-on-soft: rgba(255,255,255,0.05);
  --hero-on-mid:  rgba(255,255,255,0.12);
  --grid-line:    rgba(255,255,255,0.045);
  --grid-dot:     rgba(200,149,108,0.10);
  --orb-a:        rgba(200,149,108,0.22);
  --orb-b:        rgba(139,69,19,0.30);
  --nav-bg:       rgba(20,18,14,0.86);
  --nav-border:   rgba(255,255,255,0.07);
  --nav-text:     #F2F0EB;
  --nav-muted:    rgba(242,240,235,0.74);
  --nav-hover-bg: rgba(255,255,255,0.06);
  --foot-bg:      #100E0B;
  --foot-border:  rgba(255,255,255,0.06);
  --foot-text:    rgba(242,240,235,0.68);
  --foot-strong:  #F2F0EB;
  --foot-muted:   rgba(242,240,235,0.45);
  color-scheme: dark;
}

/* ─── BASE ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; padding: 0; font-family: var(--pt-sans); font-size: 14px; background: var(--pt-bg-page); color: var(--pt-text); -webkit-font-smoothing: antialiased; line-height: 1.6; overflow-x: clip; transition: background-color .4s ease, color .4s ease; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img, video { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--pt-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pt-primary); font-weight: 500; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pt-primary); }
em { font-style: italic; font-family: var(--pt-serif); color: var(--pt-primary); }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.1; }

/* ─── BUTTONS ──────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 14px; cursor: pointer; border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease; }
.btn-primary { background: var(--pt-primary); color: #fff; box-shadow: 0 6px 18px rgba(139,69,19,0.24); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(139,69,19,0.32); }
.btn-ghost { background: transparent; border-color: var(--hero-on-mid); color: var(--hero-text); }
.btn-ghost:hover { background: var(--hero-on-soft); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ─── NAV (fixed) ──────────────────────────────────────────────────────── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: 60px; display: flex; align-items: center; padding: 0 40px;
  background: var(--nav-bg); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--nav-border); color: var(--nav-text);
  transition: background-color .4s ease, border-color .4s ease, color .4s ease;
}
.site-nav .brand { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: var(--nav-text); flex: 1; }
.site-nav .brand sup { font-size: 9px; font-weight: 500; color: var(--nav-muted); margin-left: -2px; margin-top: -10px; }
.site-nav .links { display: inline-flex; align-items: center; gap: 4px; margin-right: 14px; }
.site-nav .links a { font-size: 13.5px; font-weight: 500; color: var(--nav-muted); padding: 7px 12px; border-radius: var(--pt-radius-sm); transition: background 0.15s, color 0.15s; }
.site-nav .links a:hover { color: var(--nav-text); background: var(--nav-hover-bg); }
.site-nav .nav-right { display: inline-flex; align-items: center; gap: 12px; }
.site-nav .lang-pill { font-family: var(--pt-mono); font-size: 11px; color: var(--nav-muted); background: var(--nav-hover-bg); border: 1px solid var(--nav-border); border-radius: 999px; padding: 3px 10px; }
.site-nav .lang-pill .sep { color: var(--nav-muted); opacity: .5; margin: 0 6px; }
.site-nav .lang-pill .on { color: var(--nav-text); }
.site-nav .lang-pill a { color: var(--nav-muted); }
.site-nav .lang-pill a:hover { color: var(--nav-text); }
.site-nav .cta { display: inline-flex; align-items: center; gap: 6px; background: var(--pt-primary); color: #fff; font-size: 13px; font-weight: 600; padding: 9px 16px; border-radius: var(--pt-radius-sm); transition: transform .15s, box-shadow .2s; box-shadow: 0 6px 18px rgba(139,69,19,0.22); }
.site-nav .cta:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(139,69,19,0.30); }
.site-nav .cta .arrow { font-family: var(--pt-mono); font-size: 12px; opacity: 0.85; }

/* theme toggle */
.theme-toggle { display: inline-flex; align-items: center; background: var(--nav-hover-bg); border: 1px solid var(--nav-border); border-radius: 999px; padding: 3px; }
.theme-toggle button { width: 30px; height: 28px; background: transparent; border-radius: 999px; display: grid; place-items: center; color: var(--nav-muted); transition: background .2s, color .2s; }
.theme-toggle button svg { width: 15px; height: 15px; }
.theme-toggle button[aria-pressed="true"] { background: var(--hero-surface); color: var(--pt-primary); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

.nav-mobile-btn { display: none; width: 36px; height: 36px; border-radius: var(--pt-radius-sm); background: var(--nav-hover-bg); border: 1px solid var(--nav-border); color: var(--nav-text); flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; }
.nav-mobile-btn span { width: 14px; height: 1.5px; background: currentColor; border-radius: 2px; display: block; }
.nav-mobile-menu { position: fixed; top: 60px; left: 0; right: 0; z-index: 49; background: var(--nav-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--nav-border); padding: 16px 24px 20px; display: flex; flex-direction: column; gap: 4px; }
.nav-mobile-menu[hidden] { display: none; }
.nav-mobile-menu a { font-size: 15px; font-weight: 500; color: var(--nav-muted); padding: 10px 12px; border-radius: var(--pt-radius-sm); }
.nav-mobile-menu a:hover { color: var(--nav-text); background: var(--nav-hover-bg); }
.nav-mobile-menu a.cta-mobile { margin-top: 8px; background: var(--pt-primary); color: #fff; text-align: center; padding: 12px 16px; }

/* ─── PAGE HERO (light default · grid + orbs) ──────────────────────────── */
.page-hero { position: relative; background: var(--hero-bg); color: var(--hero-text); padding: 132px 32px 84px; text-align: center; overflow: hidden; transition: background-color .4s ease, color .4s ease; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 35%, #000 30%, transparent 80%); mask-image: radial-gradient(ellipse 80% 75% at 50% 35%, #000 30%, transparent 80%); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background-image: radial-gradient(var(--grid-dot) 1.4px, transparent 1.4px); background-size: 64px 64px; background-position: -1px -1px; -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 65% at 50% 30%, #000 20%, transparent 75%); opacity: .8; }
.page-hero .orb { position: absolute; border-radius: 50%; z-index: 0; pointer-events: none; filter: blur(60px); }
.page-hero .orb-a { width: 380px; height: 380px; top: -120px; left: 6%; background: var(--orb-a); animation: pt-breath 11s ease-in-out infinite; }
.page-hero .orb-b { width: 420px; height: 420px; bottom: -180px; right: 4%; background: var(--orb-b); animation: pt-breath 14s ease-in-out infinite reverse; }
@keyframes pt-breath { 0%,100% { transform: translate(0,0) scale(1); opacity: .85; } 50% { transform: translate(0,-22px) scale(1.07); opacity: 1; } }
.page-hero-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(34px, 5.2vw, 58px); font-weight: 700; color: var(--hero-text); letter-spacing: -0.03em; margin: 18px 0 0; }
.page-hero .lede { margin: 20px auto 0; max-width: 560px; font-size: clamp(16px, 2vw, 19px); color: var(--hero-muted); line-height: 1.55; }

/* ─── FOOTER ───────────────────────────────────────────────────────────── */
.site-foot { background: var(--foot-bg); color: var(--foot-text); padding: 64px 40px 28px; border-top: 1px solid var(--foot-border); transition: background-color .4s ease, color .4s ease; }
.site-foot-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 48px; align-items: flex-start; }
.foot-brand { display: flex; flex-direction: column; gap: 14px; }
.foot-brand .brandline { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: var(--foot-strong); }
.foot-brand .brandline sup { font-size: 9px; color: var(--foot-muted); margin-left: -2px; margin-top: -10px; }
.foot-brand .blurb { font-size: 13px; color: var(--foot-text); line-height: 1.55; margin: 0; opacity: .85; }
.foot-col h4 { font-family: var(--pt-mono); font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--foot-muted); margin: 0 0 14px; }
.foot-col ul { display: flex; flex-direction: column; gap: 8px; }
.foot-col li a { font-size: 13px; color: var(--foot-text); transition: color 0.15s; }
.foot-col li a:hover { color: var(--foot-strong); }
.foot-bar { max-width: 1180px; margin: 48px auto 0; padding-top: 24px; border-top: 1px solid var(--foot-border); display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--pt-mono); font-size: 10.5px; color: var(--foot-muted); text-transform: uppercase; letter-spacing: 0.06em; flex-wrap: wrap; }
.foot-bar .status { display: inline-flex; align-items: center; gap: 6px; color: var(--foot-text); }
.foot-bar .status .pip { width: 7px; height: 7px; border-radius: 50%; background: var(--pt-success); box-shadow: 0 0 0 3px rgba(45,122,79,0.20); }
.foot-bar .lang { display: inline-flex; align-items: center; gap: 6px; }
.foot-bar .lang .sep { opacity: 0.4; }
.foot-bar .lang a { color: var(--foot-text); }

/* ─── COOKIE BANNER ────────────────────────────────────────────────────── */
.cookie-banner { position: fixed; bottom: 24px; left: 24px; right: 24px; z-index: 60; background: var(--pt-surface-0); border: 1px solid var(--pt-border-strong); border-radius: 14px; box-shadow: var(--pt-shadow-mockup); padding: 20px 24px; display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; }
.cookie-banner .icon-wrap { width: 44px; height: 44px; border-radius: 10px; background: var(--pt-accent-soft); color: var(--pt-primary); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; }
.cookie-banner .icon-wrap svg { width: 20px; height: 20px; }
.cookie-banner .text .ttl { font-family: var(--pt-serif); font-style: italic; font-weight: 500; font-size: 17px; color: var(--pt-text); margin: 0 0 5px; }
.cookie-banner .text p { font-size: 13px; color: var(--pt-text-muted); line-height: 1.5; margin: 0; }
.cookie-banner .text p a { color: var(--pt-primary); text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-actions button { padding: 9px 16px; border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer; border: 1px solid transparent; transition: opacity 0.15s; }
.cookie-actions .btn-accept { background: var(--pt-primary); color: #fff; }
.cookie-actions .btn-reject, .cookie-actions .btn-save { background: var(--pt-surface-2); color: var(--pt-text); border-color: var(--pt-border); }
.cookie-actions button:hover { opacity: 0.85; }
@media (max-width: 600px) {
  .cookie-banner { grid-template-columns: 1fr; gap: 14px; bottom: 12px; left: 12px; right: 12px; }
  .cookie-banner .icon-wrap { display: none; }
  .cookie-actions { flex-wrap: wrap; }
}

/* ─── REVEAL ON SCROLL ─────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ─── RESPONSIVE ───────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .site-nav { padding: 0 20px; }
  .site-nav .links { display: none; }
  .site-nav .lang-pill { display: none; }
  .site-nav .theme-toggle { display: none; }
  .site-nav .cta { display: none; }
  .nav-mobile-btn { display: inline-flex; }
  .site-foot-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-bar { flex-direction: column; gap: 8px; text-align: center; justify-content: center; }
}
@media (max-width: 560px) {
  .site-foot-inner { grid-template-columns: 1fr; }
  .page-hero { padding: 116px 22px 64px; }
}

/* ─── REDUCED MOTION ───────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .page-hero .orb { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
