/* ============================================
   Privavis — Landing page styles
   "Caldo italiano" — bordeaux + cream + gold
   ============================================ */

/* Design tokens */
:root {
  --c-bordeaux: #5B2C3D;
  --c-bordeaux-deep: #3F1E2A;
  --c-cream: #FAF6F0;
  --c-cream-warm: #F2E8DC;
  --c-gold: #C8A564;
  --c-gold-deep: #A6864F;
  --c-text: #2A1A22;
  --c-muted: #756168;
  --c-line: #E8DDD0;

  --f-display: 'Cormorant Garamond', 'Georgia', serif;
  --f-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --r-sm: 6px;
  --r-md: 12px;

  --max-w: 1180px;
  --max-w-text: 760px;

  --shadow-card: 0 1px 3px rgba(63, 30, 42, 0.08), 0 8px 24px rgba(63, 30, 42, 0.06);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-cream);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; height: auto; display: block; }

a {
  color: var(--c-bordeaux);
  text-decoration: underline;
  text-decoration-color: rgba(91, 44, 61, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
a:hover { text-decoration-color: var(--c-bordeaux); }

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--c-bordeaux);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.4rem; font-weight: 600; }

p { margin: 0 0 1em; }

/* Container */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Language switcher */
.lang-switcher {
  position: fixed;
  top: 18px;
  right: 18px;
  display: flex;
  gap: 4px;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--c-line);
  border-radius: 999px;
  padding: 4px;
  z-index: 100;
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.lang-switcher button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--c-muted);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  transition: all 0.2s;
}
.lang-switcher button:hover { color: var(--c-bordeaux); }
.lang-switcher button.active {
  background: var(--c-bordeaux);
  color: var(--c-cream);
}

/* HERO */
.hero {
  padding: 110px 0 80px;
  background: linear-gradient(180deg, var(--c-cream) 0%, var(--c-cream-warm) 100%);
  border-bottom: 1px solid var(--c-line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}

.brand-mark {
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--c-gold-deep);
  margin: 0 0 24px;
  text-transform: uppercase;
}

.hero h1 {
  font-style: italic;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
  font-weight: 500;
}

.hero .lead {
  font-size: 1.15rem;
  color: var(--c-text);
  max-width: 540px;
  margin-bottom: 20px;
  line-height: 1.55;
}

.status {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-gold-deep);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual svg { max-width: 360px; }

/* Form */
.signup {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin-bottom: 12px;
}
.signup input[type="email"] {
  flex: 1;
  font-family: var(--f-body);
  font-size: 15px;
  padding: 14px 18px;
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-md);
  background: #fff;
  color: var(--c-text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.signup input[type="email"]:focus {
  border-color: var(--c-bordeaux);
  box-shadow: 0 0 0 3px rgba(91, 44, 61, 0.12);
}
.signup button {
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 22px;
  background: var(--c-bordeaux);
  color: var(--c-cream);
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background 0.2s, transform 0.05s;
  white-space: nowrap;
}
.signup button:hover { background: var(--c-bordeaux-deep); }
.signup button:active { transform: scale(0.98); }

.form-note {
  font-size: 13px;
  color: var(--c-muted);
  margin-bottom: 0;
}

/* PROBLEM section */
.problem {
  padding: 100px 0;
  background: var(--c-cream);
}
.problem h2,
.solution h2,
.trust h2,
.faq h2,
.final-cta h2 {
  text-align: center;
  margin-bottom: 18px;
  font-style: italic;
  font-weight: 500;
  max-width: var(--max-w-text);
  margin-left: auto;
  margin-right: auto;
}
.section-lead {
  text-align: center;
  font-size: 1.1rem;
  color: var(--c-text);
  max-width: var(--max-w-text);
  margin: 0 auto 56px;
  line-height: 1.6;
}

.surfaces-grid {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.surfaces-grid li {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.2s, transform 0.2s;
}
.surfaces-grid li:hover {
  border-color: var(--c-gold);
  transform: translateY(-1px);
}
.surfaces-grid strong {
  font-family: var(--f-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--c-bordeaux);
}
.surfaces-grid span {
  font-size: 14px;
  color: var(--c-muted);
}

.surfaces-note {
  text-align: center;
  font-style: italic;
  color: var(--c-muted);
  font-size: 14px;
}

/* SOLUTION section */
.solution {
  padding: 100px 0;
  background: var(--c-bordeaux);
  color: var(--c-cream);
}
.solution h2 { color: var(--c-cream); }

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-top: 56px;
}
.pillar {
  border-top: 1px solid rgba(250, 246, 240, 0.2);
  padding-top: 24px;
}
.pillar-num {
  font-family: var(--f-display);
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: var(--c-gold);
  margin-bottom: 12px;
}
.pillar h3 {
  color: var(--c-cream);
  margin-bottom: 10px;
}
.pillar p {
  color: rgba(250, 246, 240, 0.85);
  font-size: 15px;
  line-height: 1.6;
}

/* TRUST section */
.trust {
  padding: 100px 0;
  background: var(--c-cream);
}
.promises {
  list-style: none;
  padding: 0;
  margin: 56px 0 0;
  counter-reset: promise;
  display: grid;
  gap: 36px;
  max-width: var(--max-w-text);
  margin-left: auto;
  margin-right: auto;
}
.promises li {
  counter-increment: promise;
  position: relative;
  padding-left: 70px;
  border-left: 2px solid var(--c-gold);
  padding-top: 4px;
  padding-bottom: 4px;
}
.promises li::before {
  content: counter(promise, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 0;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--c-gold-deep);
  font-weight: 500;
}
.promises h3 {
  margin-bottom: 6px;
}
.promises p {
  color: var(--c-text);
  margin: 0;
}

/* FOUNDER section */
.founder {
  padding: 100px 0;
  background: var(--c-cream-warm);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.founder-grid {
  max-width: 760px;
}
.eyebrow {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--c-gold-deep);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.founder h2 {
  font-style: italic;
  text-align: left;
  margin-bottom: 32px;
  font-weight: 500;
}
.founder p {
  font-size: 1.05rem;
  line-height: 1.7;
}
.founder a { font-weight: 600; }

/* FAQ */
.faq {
  padding: 100px 0;
  background: var(--c-cream);
}
.faq h2 { margin-bottom: 56px; }
.faq details {
  border-bottom: 1px solid var(--c-line);
  padding: 22px 0;
  max-width: var(--max-w-text);
  margin: 0 auto;
}
.faq details:first-of-type { border-top: 1px solid var(--c-line); }
.faq summary {
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--c-bordeaux);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--f-display);
  font-size: 1.6rem;
  color: var(--c-gold-deep);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq details[open] summary::after {
  content: "−";
}
.faq details p {
  margin-top: 14px;
  margin-bottom: 0;
  color: var(--c-text);
  line-height: 1.65;
}

/* FINAL CTA */
.final-cta {
  padding: 100px 0;
  background: var(--c-bordeaux-deep);
  color: var(--c-cream);
  text-align: center;
}
.final-cta h2 {
  color: var(--c-cream);
  font-style: italic;
  font-weight: 500;
}
.final-cta p {
  color: rgba(250, 246, 240, 0.85);
  max-width: 560px;
  margin: 0 auto 36px;
  font-size: 1.1rem;
}
.final-cta .signup {
  margin-left: auto;
  margin-right: auto;
}
.final-cta .signup input[type="email"] {
  border-color: rgba(250, 246, 240, 0.2);
  background: rgba(250, 246, 240, 0.08);
  color: var(--c-cream);
}
.final-cta .signup input[type="email"]::placeholder { color: rgba(250, 246, 240, 0.5); }
.final-cta .signup input[type="email"]:focus {
  background: rgba(250, 246, 240, 0.14);
  border-color: var(--c-gold);
  box-shadow: 0 0 0 3px rgba(200, 165, 100, 0.18);
}
.final-cta .signup button {
  background: var(--c-gold);
  color: var(--c-bordeaux-deep);
}
.final-cta .signup button:hover { background: var(--c-gold-deep); color: var(--c-cream); }
.final-cta .form-note { color: rgba(250, 246, 240, 0.6); }

/* FOOTER */
footer {
  background: var(--c-bordeaux-deep);
  color: rgba(250, 246, 240, 0.7);
  padding: 60px 0 40px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(250, 246, 240, 0.12);
}
.footer-brand {
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--c-gold);
  margin: 0 0 8px;
}
.footer-tag {
  color: rgba(250, 246, 240, 0.55);
  font-size: 13px;
}
.footer-heading {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-cream);
  margin: 0 0 14px;
}
footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
footer ul li { margin-bottom: 6px; }
footer a {
  color: rgba(250, 246, 240, 0.7);
  text-decoration: none;
}
footer a:hover { color: var(--c-gold); }
.footer-credits {
  padding-top: 20px;
  font-size: 12px;
  color: rgba(250, 246, 240, 0.45);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 860px) {
  .hero { padding: 90px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .hero-visual svg { max-width: 220px; }

  .problem, .solution, .trust, .founder, .faq, .final-cta { padding: 70px 0; }

  .signup { flex-direction: column; }
  .signup button { width: 100%; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }

  .lang-switcher { top: 10px; right: 10px; padding: 3px; }
  .lang-switcher button { padding: 5px 9px; font-size: 11px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .promises li { padding-left: 56px; }
  .promises li::before { left: 14px; font-size: 1.2rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
