/* ============================================================
   LaLlave10 — Sistema visual compartido
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400..900;1,9..40,400..900&family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400..700&display=swap');

:root {
  /* Brand palette */
  --cream:     #ECE4D1;
  --cream-2:   #E5DCC4;
  --paper:     #F6F0DD;
  --paper-2:   #F2EBD5;
  --paper-3:   #FAF5E6;

  --green:     #23291F;
  --green-2:   #2D3328;
  --green-3:   #3A4234;
  --green-soft:#5E6D54;

  --orange:    #C4451E;
  --orange-2:  #A93A17;
  --orange-soft:#E27249;

  --gold:      #C99A3A;
  --gold-soft: #E7C97A;

  --success:   #5A7A5A;
  --success-2: #4C6A4D;

  --ink:       #1F2A1F;
  --ink-2:     #2D3328;
  --muted:     #7A6F5A;
  --muted-2:   #94886F;

  --rule:      rgba(31, 42, 31, 0.10);
  --rule-2:    rgba(31, 42, 31, 0.18);
  --shadow-sm: 0 1px 2px rgba(31,42,31,0.06), 0 2px 6px rgba(31,42,31,0.04);
  --shadow-md: 0 4px 14px rgba(31,42,31,0.10), 0 1px 2px rgba(31,42,31,0.06);
  --shadow-lg: 0 14px 40px rgba(31,42,31,0.16), 0 2px 6px rgba(31,42,31,0.06);

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 18px;
  --radius-xl: 28px;

  --container: 1240px;
  --gutter: 28px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: 'ss01';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font: inherit; color: inherit; }

/* ============================================================
   Typography
   ============================================================ */
.serif { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.mono  { font-family: 'JetBrains Mono', ui-monospace, monospace; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(40px, 5.6vw, 78px); line-height: 0.98; letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 3.6vw, 50px); line-height: 1.02; letter-spacing: -0.028em; }
h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; }
h4 { font-size: 18px; line-height: 1.25; }

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 500;
}

.lede {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 56ch;
}

p { margin: 0 0 1em; color: var(--ink-2); }
p:last-child { margin-bottom: 0; }

/* ============================================================
   Brand wordmark (used in nav, footer, badges)
   ============================================================ */
.wordmark {
  font-family: 'DM Sans', sans-serif;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.04em;
  font-size: 22px;
  display: inline-flex;
  align-items: baseline;
  color: var(--ink);
  line-height: 1;
}
.wordmark .w-mid { color: var(--orange); }
.wordmark .w-num { color: var(--ink); }

.brand-lockup { display: inline-flex; align-items: center; gap: 10px; }
.brand-lockup .brand-icon { height: 56px; width: auto; display: block; }

/* Decorative orange motion marks (used as section dividers) */
.motion-marks {
  display: inline-flex; align-items: center; gap: 4px;
}
.motion-marks::before,
.motion-marks::after {
  content: ''; width: 14px; height: 3px; background: var(--orange); border-radius: 2px;
}

/* ============================================================
   Layout
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
section { padding: clamp(60px, 8vw, 110px) 0; }
.section-narrow { padding: clamp(40px, 5vw, 64px) 0; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 20px;
  border-radius: 10px;
  font-weight: 600; font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--orange); color: #FFF7EB; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--orange-2); }
.btn-dark { background: var(--green); color: var(--paper-3); }
.btn-dark:hover { background: var(--green-2); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--rule-2); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(31,42,31,0.03); }
.btn-light { background: var(--paper-3); color: var(--ink); border: 1px solid var(--rule); }
.btn-lg { height: 56px; padding: 0 26px; font-size: 16px; border-radius: 12px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 8px; }

/* ============================================================
   Chips / Pills / Badges
   ============================================================ */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  font-size: 13px; font-weight: 500;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--rule);
  color: var(--ink);
}
.chip-orange { background: rgba(196,69,30,0.10); border-color: rgba(196,69,30,0.20); color: var(--orange); }
.chip-green  { background: rgba(90,122,90,0.14); border-color: rgba(90,122,90,0.25); color: var(--success-2); }
.chip-gold   { background: rgba(201,154,58,0.16); border-color: rgba(201,154,58,0.34); color: #8B6A1E; }
.chip-dark   { background: var(--green); color: var(--paper); border-color: var(--green); }

.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.card-paper-2 { background: var(--paper-2); }
.card-dark { background: var(--green); color: var(--paper-3); border-color: var(--green-2); }
.card-dark p { color: rgba(246,240,221,0.78); }

/* ============================================================
   Top announcement bar
   ============================================================ */
.announcement {
  background: var(--green);
  color: var(--paper-3);
  font-size: 13px;
  text-align: center;
  padding: 10px var(--gutter);
  letter-spacing: -0.005em;
}
.announcement a { color: var(--orange-soft); font-weight: 600; }
.announcement .dot { background: var(--orange); margin: 0 10px 2px; vertical-align: middle; }

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(236,228,209,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
  font-size: 15px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--ink-2);
  font-weight: 500;
}
.nav-links a:hover { background: rgba(31,42,31,0.05); color: var(--ink); }
.nav-links a.active { color: var(--ink); background: rgba(31,42,31,0.06); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* Mobile hamburger */
.nav-burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  align-items: center; justify-content: center;
  border: 1px solid var(--rule-2);
  background: transparent;
  flex-shrink: 0;
}
.nav-burger span {
  position: relative;
  display: block;
  width: 18px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: background .15s ease;
}
.nav-burger span::before, .nav-burger span::after {
  content: ''; position: absolute; left: 0;
  width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .2s ease;
}
.nav-burger span::before { top: -6px; }
.nav-burger span::after  { top:  6px; }
.nav-burger.open span { background: transparent; }
.nav-burger.open span::before { transform: translateY(6px) rotate(45deg); }
.nav-burger.open span::after  { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu overlay */
.nav-mobile {
  display: none;
  position: fixed; left: 0; right: 0; top: 0; bottom: 0;
  background: var(--cream);
  z-index: 49;
  padding: 108px 0 32px;
  overflow-y: auto;
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  padding: 16px 0;
  font-size: 18px;
  font-weight: 600;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-2);
}
.nav-mobile a:last-of-type { border-bottom: none; }
.nav-mobile a.active { color: var(--orange); }
.nav-mobile-cta {
  display: flex; flex-direction: column; gap: 12px; margin-top: 24px;
}
.nav-mobile-cta .btn { width: 100%; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--green);
  color: var(--paper-3);
  padding: 80px 0 32px;
  margin-top: 60px;
}
.footer h5 {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  margin: 0 0 18px;
}
.footer a { display: block; padding: 6px 0; color: rgba(246,240,221,0.75); font-size: 14px; }
.footer a:hover { color: var(--paper-3); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.footer-brand .wordmark { color: var(--paper-3); font-size: 28px; }
.footer-brand .wordmark .w-mid { color: var(--orange-soft); }
.footer-brand .wordmark .w-num { color: var(--paper-3); }
.footer-badge {
  width: 180px; height: auto;
  margin-bottom: 6px;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.20));
}
.footer-tag {
  margin-top: 12px;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: var(--gold-soft);
  font-size: 18px;
}
.footer-meta {
  margin-top: 60px;
  padding-top: 28px;
  border-top: 1px solid rgba(246,240,221,0.14);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: rgba(246,240,221,0.55);
}

/* ============================================================
   Hero shared
   ============================================================ */
.hero {
  padding: clamp(48px, 7vw, 96px) 0 clamp(60px, 8vw, 110px);
  position: relative;
  overflow: hidden;
}
.hero h1 .serif { color: var(--orange); font-weight: 400; }
.hero-trust {
  margin-top: 32px;
  display: flex; gap: 28px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
  align-items: center;
}
.hero-trust .dot { background: var(--orange); margin-right: 6px; vertical-align: middle; }

/* ============================================================
   Phone mockup
   ============================================================ */
.phone {
  --phone-w: 280px;
  width: var(--phone-w);
  aspect-ratio: 9 / 19.5;
  background: var(--ink);
  border-radius: calc(var(--phone-w) * 0.13);
  padding: 7px;
  box-shadow: var(--shadow-lg);
  position: relative;
  flex-shrink: 0;
}
.phone-screen {
  width: 100%; height: 100%;
  background: var(--paper-3);
  border-radius: calc(var(--phone-w) * 0.10);
  overflow: hidden;
  position: relative;
  display: flex; flex-direction: column;
}
.phone-notch {
  position: absolute;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: 30%; height: 22px;
  background: var(--ink);
  border-radius: 999px;
  z-index: 5;
}
.phone-status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px 6px;
  font-size: 11px; font-weight: 600;
}
.phone-status-icons { display: inline-flex; gap: 4px; opacity: 0.7; font-size: 9px; }
.phone-body { padding: 8px 16px 16px; flex: 1; overflow: hidden; }
.phone-tabbar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 8px 0 14px;
  border-top: 1px solid var(--rule);
  background: var(--paper-3);
  font-size: 9px;
}
.phone-tabbar-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--muted);
}
.phone-tabbar-item.active { color: var(--orange); }
.phone-tabbar-item .icon {
  width: 16px; height: 16px;
  background: currentColor;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
}

/* ============================================================
   Image placeholders (striped)
   ============================================================ */
.img-placeholder {
  background:
    repeating-linear-gradient(135deg,
      rgba(31,42,31,0.06) 0 10px,
      rgba(31,42,31,0.10) 10px 20px);
  background-color: var(--paper);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px;
  text-align: center;
}
.img-placeholder.dark {
  background-color: var(--green-2);
  color: var(--gold-soft);
  background-image:
    repeating-linear-gradient(135deg,
      rgba(246,240,221,0.06) 0 10px,
      rgba(246,240,221,0.10) 10px 20px);
}
.img-placeholder.orange {
  background-color: var(--orange);
  color: #FFE6D6;
  background-image:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.10) 0 10px,
      rgba(0,0,0,0.06) 10px 20px);
}

/* ============================================================
   Misc utilities
   ============================================================ */
.stack-sm > * + * { margin-top: 8px; }
.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 28px; }

.row { display: flex; gap: 20px; align-items: center; }
.row-wrap { flex-wrap: wrap; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.divider {
  height: 1px; background: var(--rule); margin: 24px 0;
  border: none;
}
.divider-marks {
  display: flex; align-items: center; gap: 12px;
  color: var(--orange);
}
.divider-marks::before,
.divider-marks::after {
  content: ''; flex: 1; height: 1.5px; background: var(--orange); border-radius: 1px;
}
.divider-marks span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
}

.text-orange { color: var(--orange); }
.text-green  { color: var(--green); }
.text-muted  { color: var(--muted); }

.section-dark {
  background: var(--green);
  color: var(--paper-3);
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--paper-3); }
.section-dark p { color: rgba(246,240,221,0.78); }
.section-dark .eyebrow { color: var(--gold-soft); }

.section-orange {
  background: var(--orange);
  color: #FFF7EB;
}
.section-orange h1, .section-orange h2 { color: #FFF7EB; }
.section-orange p { color: rgba(255,247,235,0.88); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-login { display: none; }
  .nav-inner { gap: 12px; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  :root { --gutter: 18px; }
  .nav-inner { height: 60px; }
  .nav-cta .btn { padding: 0 14px; font-size: 13px; }
  .announcement { font-size: 12px; padding: 8px var(--gutter); }
}
@media (max-width: 420px) {
  .nav-cta { display: none; }
}

/* ============================================================
   Print: hide nav and footer interactions
   ============================================================ */
@media print {
  .nav, .announcement, .footer-meta button { display: none; }
}
