/* PAPIAC marketing landing — black/gold DNA, d.local-inspired structure */
:root {
  --bg: #120e0a;
  --bg-elevated: #1b1610;
  --bg-soft: #221c14;
  --gold: #d0a830;
  --gold-bright: #e8c56a;
  --gold-deep: #a88428;
  --gold-glow: rgba(208, 168, 48, 0.35);
  --cream: #f5f0e6;
  --cream-tile: #f8f5f0;
  --text: #f8f5f0;
  --text-muted: #b8afa0;
  --text-dim: #8a8174;
  --border: rgba(208, 168, 48, 0.28);
  --border-soft: rgba(245, 240, 230, 0.1);
  --radius-pill: 999px;
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Manrope", system-ui, -apple-system, sans-serif;
  --nav-h: 4.25rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-gold: 0 12px 40px -12px rgba(208, 168, 48, 0.45);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(208, 168, 48, 0.16), transparent 55%),
    radial-gradient(900px 500px at 90% 8%, rgba(168, 132, 40, 0.08), transparent 50%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--gold-bright); }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
::selection {
  background: rgba(208, 168, 48, 0.35);
  color: var(--cream);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: #1a1408;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ——— Floating pill nav (d.local motion language) ——— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 1rem 1rem 0;
  pointer-events: none;
  transition: padding 0.35s var(--ease-out);
}
.site-header.is-scrolled { padding-top: 0.65rem; }

.pill-nav {
  pointer-events: auto;
  width: min(1080px, 100%);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.5rem 0.45rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(18, 14, 10, 0.72);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    background 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out),
    transform 0.35s var(--ease-out);
}
.site-header.is-scrolled .pill-nav {
  background: rgba(18, 14, 10, 0.88);
  border-color: rgba(208, 168, 48, 0.4);
  box-shadow: 0 14px 48px rgba(0, 0, 0, 0.45), var(--shadow-gold);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  padding: 0.15rem 0.35rem 0.15rem 0.15rem;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}
.nav-brand:hover { color: var(--text); }
.nav-logo {
  width: 36px; height: 36px;
  border-radius: 0.65rem;
  background: var(--cream-tile);
  object-fit: contain;
  box-shadow: 0 0 0 1px rgba(208, 168, 48, 0.25);
}
.nav-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}
.nav-links {
  display: flex;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 0.9rem;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
  background: rgba(245, 240, 230, 0.06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  place-items: center;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1rem;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: transform 0.25s var(--ease-out), opacity 0.2s;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0 1.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn:hover { color: inherit; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 2.4rem; padding: 0 1.05rem; font-size: 0.875rem; }
.btn-block { width: 100%; }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #1a1408;
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
  background: linear-gradient(180deg, #f0d27a, var(--gold-bright));
  color: #1a1408;
}
.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--cream);
}
.btn-outline:hover {
  border-color: var(--gold);
  background: rgba(208, 168, 48, 0.08);
  color: var(--cream);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover {
  color: var(--text);
  background: rgba(245, 240, 230, 0.06);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: calc(var(--nav-h) + 2.75rem) 1.25rem 1.5rem;
  overflow: clip;
}
.hero-glow {
  position: absolute;
  inset: 8% auto auto -10%;
  width: min(70vw, 640px);
  height: min(70vw, 640px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(208, 168, 48, 0.22), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
  padding: 0.4rem 0.85rem 0.4rem 0.55rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(208, 168, 48, 0.08);
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero-badge-dot {
  width: 0.55rem; height: 0.55rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold-glow);
}
.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.25rem, 8.5vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero-title .line { display: block; }
.hero-title .line-tint {
  color: color-mix(in srgb, var(--gold-bright) 78%, var(--cream));
  font-weight: 600;
  font-style: italic;
}
.hero-lead {
  margin: 0 0 1.5rem;
  max-width: 36ch;
  color: var(--text-muted);
  font-size: 1.05rem;
  text-wrap: pretty;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.hero-note {
  margin: 1rem 0 0;
  color: var(--text-dim);
  font-size: 0.875rem;
}
.hero-trust {
  position: relative;
  width: min(1120px, 100%);
  margin: clamp(1.75rem, 4vh, 2.75rem) auto 0;
  padding: 0.85rem 0 0;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  color: var(--text-dim);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.trust-item img {
  width: 28px; height: 28px;
  border-radius: 0.45rem;
  background: var(--cream-tile);
}
.trust-sep {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold-deep);
  opacity: 0.7;
}

/* ——— Sections ——— */
.section {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(2.25rem, 5vh, 3.5rem) 1.25rem;
}
.section.products {
  padding-top: clamp(1.75rem, 3.5vh, 2.5rem);
}
.section.plans {
  padding-top: clamp(2rem, 4vh, 3rem);
}
.section-head { max-width: 40rem; margin-bottom: clamp(1.35rem, 3vh, 2rem); }
.section-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.section-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 52ch;
  text-wrap: pretty;
}

.product-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: calc(var(--radius-lg) + 0.25rem);
  border: 1px solid var(--border);
  background:
    linear-gradient(145deg, rgba(208, 168, 48, 0.08), transparent 40%),
    var(--bg-elevated);
  margin-bottom: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.product-feature h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
}
.product-feature p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  max-width: 42ch;
}
.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}
.check-list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--cream);
  font-size: 0.95rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55rem;
  width: 0.55rem; height: 0.55rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold-glow);
}
.product-feature-panel {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: #0c0a07;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
}
.panel-chrome {
  display: flex;
  gap: 0.35rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-soft);
}
.panel-chrome span {
  width: 0.55rem; height: 0.55rem;
  border-radius: 50%;
  background: rgba(245, 240, 230, 0.18);
}
.panel-chrome span:first-child { background: #c07050; }
.panel-chat {
  padding: 1.1rem;
  display: grid;
  gap: 0.75rem;
  align-content: start;
}
.bubble {
  max-width: 90%;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  font-size: 0.9rem;
  line-height: 1.45;
}
.bubble.user {
  justify-self: end;
  background: rgba(208, 168, 48, 0.18);
  border: 1px solid var(--border);
  border-bottom-right-radius: 0.3rem;
}
.bubble.agent {
  justify-self: start;
  background: rgba(245, 240, 230, 0.05);
  border: 1px solid var(--border-soft);
  border-bottom-left-radius: 0.3rem;
  color: var(--text-muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.product-card {
  padding: 1.35rem 1.25rem 1.45rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: rgba(27, 22, 16, 0.85);
  transition: border-color 0.25s, transform 0.25s var(--ease-out), background 0.25s;
}
.product-card:hover {
  border-color: var(--border);
  background: var(--bg-soft);
  transform: translateY(-2px);
}
.product-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
}
.product-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.product-card-quiet {
  border-style: dashed;
  opacity: 0.92;
}

/* ——— Plans ——— */
.period-toggle {
  display: inline-flex;
  margin-top: 1.35rem;
  padding: 0.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.03);
}
.period-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  min-height: 2.35rem;
  padding: 0 1.1rem;
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.period-toggle button span {
  margin-left: 0.35rem;
  color: var(--gold-bright);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.period-toggle button.is-active {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #1a1408;
}
.period-toggle button.is-active span { color: #3a2c0c; }

.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: stretch;
}
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.4rem 1.2rem 1.3rem;
  border-radius: 1.25rem;
  border: 1px solid var(--border-soft);
  background: var(--bg-elevated);
}
.plan-card-featured {
  border-color: rgba(208, 168, 48, 0.55);
  background:
    linear-gradient(180deg, rgba(208, 168, 48, 0.12), transparent 42%),
    var(--bg-soft);
  box-shadow: var(--shadow-gold);
  transform: translateY(-0.35rem);
}
.plan-ribbon {
  position: absolute;
  top: -0.7rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #1a1408;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.plan-tag {
  margin: 0;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.plan-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
}
.plan-price {
  margin: 0.15rem 0;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}
.plan-price small {
  margin-left: 0.2rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
}
.plan-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  min-height: 2.8em;
}
.plan-perks {
  margin: 0.35rem 0 1rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
  flex: 1;
}
.plan-perks li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--cream);
  font-size: 0.88rem;
}
.plan-perks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.45rem;
  width: 0.45rem; height: 0.45rem;
  border-radius: 50%;
  background: var(--gold);
}
.plans-footnote {
  margin: 1rem 0 0;
  color: var(--text-dim);
  font-size: 0.88rem;
}
.plans-footnote a { color: var(--gold-bright); }

/* ——— Final CTA ——— */
.cta-band { padding-top: 0.25rem; padding-bottom: clamp(2rem, 4vh, 3rem); }
.cta-band-inner {
  padding: clamp(1.5rem, 3.5vw, 2.35rem);
  border-radius: calc(var(--radius-lg) + 0.35rem);
  border: 1px solid var(--border);
  background:
    radial-gradient(600px 240px at 20% 0%, rgba(208, 168, 48, 0.18), transparent 60%),
    var(--bg-elevated);
  text-align: center;
}
.cta-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  font-weight: 700;
  text-wrap: balance;
}
.cta-lead {
  margin: 0 auto 1.5rem;
  max-width: 48ch;
  color: var(--text-muted);
}
.cta-band-inner .hero-ctas { justify-content: center; }

/* ——— Footer ——— */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 2rem 1.25rem 2.5rem;
  background: #0c0a07;
}
.footer-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}
.footer-brand {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}
.footer-brand img {
  width: 40px; height: 40px;
  border-radius: 0.6rem;
  background: var(--cream-tile);
}
.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  font-size: 1.1rem;
}
.footer-brand p {
  margin: 0.15rem 0 0;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}
.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-nav a:hover { color: var(--gold-bright); }
.footer-copy {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.82rem;
}

/* ——— Reveal defaults (GSAP enhances) ——— */
[data-reveal],
[data-reveal-hero] .hero-left,
[data-reveal-hero] .hero-right,
[data-reveal-hero] .hero-trust {
  will-change: transform, opacity;
}

/* ——— Responsive ——— */
@media (max-width: 980px) {
  .hero-inner,
  .product-feature { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr 1fr; }
  .plan-card-featured { transform: none; }
  .product-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: grid; }
  .nav-panel {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.85rem;
    border-radius: 1.25rem;
    border: 1px solid var(--border);
    background: rgba(18, 14, 10, 0.96);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  }
  .pill-nav { position: relative; }
  .nav-panel.is-open { display: flex; }
  .nav-links { flex-direction: column; width: 100%; }
  .nav-links a { width: 100%; }
  .nav-actions {
    width: 100%;
    margin: 0.35rem 0 0;
  }
  .nav-actions .btn { flex: 1; }
  .product-grid { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr; }
  .hero { padding-top: calc(var(--nav-h) + 1.75rem); min-height: auto; padding-bottom: 1.25rem; }
  .hero-title { font-size: clamp(2.8rem, 14vw, 4rem); }
  .trust-sep:nth-of-type(2) { display: none; }
}
