/* ========== LuchiTimer - shared styles ========== */

/* Self-hosted fonts (variable woff2, served directly - no Google Fonts) */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/geist-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/geist-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/geist-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/geist-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #FAFAF7;
  --bg-2: #F3F3EE;
  --ink: #161616;
  --ink-2: #2a2a2a;
  --muted: #6e6e68;
  --muted-2: #8f8f87;
  --line: #e9e9e3;
  --line-2: #d9d9d1;
  --card: #ffffff;
  --accent: oklch(62% 0.14 255);
  --pastel-mult: 1;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(22,22,22,.04), 0 2px 6px rgba(22,22,22,.03);
  --shadow-md: 0 4px 14px rgba(22,22,22,.06), 0 12px 40px rgba(22,22,22,.06);
  --shadow-lg: 0 10px 30px rgba(22,22,22,.08), 0 30px 80px rgba(22,22,22,.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
/* Typography system - two roles only:
   1) TITLES + BODY:   Geist (sans)   - titles just get color for accents
   2) MONO DETAILS (timer digits, tech labels): Geist Mono
*/
.mono { font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }

/* ---------- Top nav ---------- */
.lt-nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  background: rgba(250, 250, 247, 0.75);
  border-bottom: 1px solid var(--line);
}
.lt-nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; gap: 28px;
}
.lt-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; letter-spacing: -0.01em; font-size: 16px;
}
.lt-logo-mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  font-family: "Geist Mono", monospace; font-size: 11px; font-weight: 500;
  position: relative;
}
.lt-logo-mark::before {
  content: ""; position: absolute; inset: 4px;
  border: 1.5px solid currentColor; border-radius: 50%;
  border-top-color: transparent; border-right-color: transparent;
}
.lt-nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; color: var(--muted); }
.lt-nav-links a:hover { color: var(--ink); }
.lt-nav-cta {
  padding: 8px 14px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 500;
  white-space: nowrap;
}
.lt-lang {
  display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px;
  padding: 2px; font-size: 12px; font-family: "Geist Mono", monospace;
}
.lt-lang button {
  padding: 4px 10px; border-radius: 999px; color: var(--muted); letter-spacing: 0.04em;
}
.lt-lang button.active { background: var(--ink); color: #fff; }

/* ---------- Widget primitives ---------- */
.lt-widget {
  border: 1px solid; border-radius: var(--radius-md);
  padding: 16px; width: 236px;
  font-size: 13px;
  box-shadow: var(--shadow-md);
}
.lt-widget-top {
  display: flex; align-items: center; gap: 6px;
  font-family: "Geist Mono", monospace; font-size: 10px; letter-spacing: 0.1em;
  color: var(--ink-2);
}
.lt-dot { width: 6px; height: 6px; border-radius: 50%; }
.lt-status { flex: 1; }
.lt-widget-actions { color: rgba(0,0,0,.4); letter-spacing: 0.15em; }
.lt-client-name { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin: 8px 0 10px; }
.lt-timer-frame { border: 1px solid; border-radius: var(--radius-sm); padding: 10px 12px; }
.lt-timer-label { font-family: "Geist Mono", monospace; font-size: 9px; letter-spacing: 0.14em; color: rgba(0,0,0,.5); }
.lt-timer-digits { font-family: "Geist Mono", monospace; font-size: 26px; font-weight: 500; letter-spacing: -0.02em; margin-top: 2px; }
.lt-timer-meta {
  display: flex; gap: 6px; margin: 10px 0 10px;
  font-family: "Geist Mono", monospace; font-size: 11px; color: rgba(0,0,0,.55);
}
.lt-timer-buttons { display: flex; gap: 6px; }
.lt-btn-dark { flex: 1; padding: 8px 10px; border-radius: 999px; background: #161616; color: #fff; font-size: 12px; }
.lt-btn-light { flex: 1; padding: 8px 10px; border-radius: 999px; background: #fff; color: #161616; font-size: 12px; border: 1px solid rgba(0,0,0,.12); }

.lt-stat {
  border: 1px solid; border-radius: var(--radius-md);
  padding: 14px; width: 210px; box-shadow: var(--shadow-sm);
}
.lt-stat-top { display: flex; align-items: center; gap: 8px; }
.lt-stat-icon { width: 26px; height: 26px; border-radius: 8px; border: 1px solid; display: grid; place-items: center; font-size: 13px; }
.lt-stat-label { font-family: "Geist Mono", monospace; font-size: 10px; letter-spacing: 0.12em; color: rgba(0,0,0,.6); }
.lt-stat-value { font-family: "Geist Mono", monospace; font-size: 22px; font-weight: 500; margin-top: 8px; letter-spacing: -0.02em; }
.lt-stat-sub { font-size: 11px; color: rgba(0,0,0,.5); margin-top: 2px; }

.lt-prompt {
  border: 1px solid; border-radius: var(--radius-md);
  padding: 14px; width: 280px; box-shadow: var(--shadow-md);
}
.lt-prompt-head { display: flex; gap: 10px; align-items: flex-start; }
.lt-prompt-icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: 14px; flex-shrink: 0; }
.lt-prompt-title { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.lt-prompt-sub { font-family: "Geist Mono", monospace; font-size: 10px; color: rgba(0,0,0,.55); margin-top: 2px; }
.lt-prompt-actions { display: flex; gap: 6px; margin-top: 12px; }
.lt-chip {
  padding: 6px 10px; border-radius: 999px;
  background: rgba(255,255,255,.75); border: 1px solid rgba(0,0,0,.08);
  font-size: 11px; color: #161616;
}
.lt-chip-dark { background: #161616; color: #fff; border-color: #161616; }

.lt-chart {
  border: 1px solid; border-radius: var(--radius-md);
  padding: 14px; width: 250px; box-shadow: var(--shadow-sm);
}
.lt-chart-head { display: flex; justify-content: space-between; align-items: baseline; }
.lt-chart-label { font-family: "Geist Mono", monospace; font-size: 10px; letter-spacing: 0.12em; color: rgba(0,0,0,.55); }
.lt-chart-val { font-family: "Geist Mono", monospace; font-size: 16px; font-weight: 500; }
.lt-chart-bars { display: flex; gap: 6px; align-items: flex-end; height: 64px; margin-top: 10px; }
.lt-chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.lt-chart-bar { width: 100%; border-radius: 3px; min-height: 2px; }
.lt-chart-day { font-family: "Geist Mono", monospace; font-size: 9px; color: rgba(0,0,0,.5); }

.lt-invoice {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 16px; width: 280px;
  box-shadow: var(--shadow-md);
}
.lt-invoice-head { display: flex; justify-content: space-between; align-items: flex-start; }
.lt-invoice-small { font-family: "Geist Mono", monospace; font-size: 10px; letter-spacing: 0.12em; color: var(--muted); }
.lt-invoice-to { font-size: 15px; font-weight: 600; margin-top: 4px; letter-spacing: -0.01em; }
.lt-invoice-amt { font-family: "Geist Mono", monospace; font-size: 20px; font-weight: 500; }
.lt-invoice-rows { margin: 14px 0 12px; border-top: 1px dashed var(--line-2); }
.lt-invoice-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 10px;
  padding: 8px 0; border-bottom: 1px dashed var(--line);
  font-size: 12px; font-family: "Geist Mono", monospace;
}
.lt-invoice-row span:first-child { font-family: "Geist", sans-serif; color: var(--ink-2); }
.lt-invoice-row span:nth-child(2) { color: var(--muted); }
.lt-invoice-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.lt-invoice-status { font-family: "Geist Mono", monospace; font-size: 11px; color: oklch(55% 0.12 160); }

.lt-cal {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 14px; width: 240px;
  box-shadow: var(--shadow-md);
}
.lt-cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.lt-cal-month { font-family: "Geist Mono", monospace; font-size: 11px; letter-spacing: 0.12em; }
.lt-cal-nav { font-family: "Geist Mono", monospace; color: var(--muted); font-size: 14px; letter-spacing: 0.3em; }
.lt-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.lt-cal-dow { margin-bottom: 4px; }
.lt-cal-dow-cell { font-family: "Geist Mono", monospace; font-size: 9px; color: var(--muted-2); text-align: center; padding: 2px 0; }
.lt-cal-cell {
  aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: "Geist Mono", monospace; font-size: 10px; color: var(--ink-2);
  border-radius: 5px; position: relative;
}
.lt-cal-cell.lt-cal-today { background: var(--ink); color: #fff; }
.lt-cal-ev { width: 12px; height: 2px; border-radius: 2px; margin-top: 2px; }
.lt-cal-num { line-height: 1; }

.lt-nudge {
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px 8px 8px; display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-md); width: fit-content;
}
.lt-nudge-bell {
  width: 36px; height: 36px; border-radius: 50%;
  background: oklch(95% 0.07 95); display: grid; place-items: center;
  color: oklch(42% 0.12 80); font-size: 16px;
}
.lt-nudge-title { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.lt-nudge-sub { font-size: 11px; color: var(--muted); font-family: "Geist Mono", monospace; }
.lt-nudge-actions { display: flex; gap: 4px; margin-left: 8px; }

/* ---------- Variation switcher ---------- */
.lt-variant-switch {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: #161616; color: #fff; border-radius: 999px;
  padding: 4px; display: flex; gap: 2px; z-index: 60;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  font-family: "Geist Mono", monospace; font-size: 11px; letter-spacing: 0.08em;
}
.lt-variant-switch button { padding: 8px 16px; border-radius: 999px; color: rgba(255,255,255,.65); }
.lt-variant-switch button.active { background: #fff; color: #161616; }

/* ---------- Responsive Utils ---------- */
.show-on-mobile { display: none; }
@media (max-width: 600px) {
  .hide-on-mobile { display: none !important; }
  .show-on-mobile { display: inline !important; }
  
  .lt-nav-inner { padding: 12px 16px; gap: 12px; }
  .lt-nav-links { display: none; } /* Hide on very small screens to avoid overflow */
  .lt-lang button { padding: 4px 8px; }
  
  /* Scale widgets to prevent overflow on 320px screens */
  .lt-prompt, .lt-invoice, .lt-chart, .lt-widget, .lt-cal, .lt-stat {
    max-width: 100%;
  }
}
@media (min-width: 601px) and (max-width: 768px) {
  .lt-nav-inner { padding: 12px 20px; gap: 16px; }
  .lt-nav-links { gap: 16px; font-size: 13px; }
}

/* ---------- Tweaks panel ---------- */
.lt-tweaks {
  position: fixed; right: 20px; bottom: 20px; z-index: 70;
  width: 280px; background: #fff; border: 1px solid var(--line-2);
  border-radius: 16px; padding: 14px; box-shadow: var(--shadow-lg);
  font-size: 12px;
}
.lt-tweaks-title {
  font-family: "Geist Mono", monospace; font-size: 10px; letter-spacing: 0.16em;
  color: var(--muted); margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center;
}
.lt-tweaks-close { color: var(--muted); font-size: 14px; padding: 0 4px; }
.lt-tweaks-row { margin-bottom: 12px; }
.lt-tweaks-row label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 6px; font-family: "Geist Mono", monospace; letter-spacing: 0.06em; }
.lt-tweaks-colors { display: flex; gap: 6px; flex-wrap: wrap; }
.lt-swatch { width: 26px; height: 26px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; }
.lt-swatch.active { border-color: var(--ink); }
.lt-slider { width: 100%; }

/* ---------- Legal pages: language visibility ---------- */
html[lang="en"] [data-lang="es"] { display: none; }
html[lang="es"] [data-lang="en"] { display: none; }

/* ---------- Legal pages (privacy, terms, cookies) ---------- */
.legal {
  min-height: 60vh;
  padding: 80px 28px 120px;
  background:
    radial-gradient(900px 380px at 50% -120px, oklch(96% 0.04 95) 0%, transparent 60%),
    var(--bg);
}
@media (max-width: 768px) {
  .legal { padding: 60px 16px 80px; }
}
.legal-inner {
  max-width: 720px;
  margin: 0 auto;
}
.legal-eyebrow {
  font-family: "Geist Mono", monospace;
  font-size: 11px; letter-spacing: 0.14em;
  color: var(--muted); text-transform: uppercase;
  margin-bottom: 14px;
}
.legal h1 {
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 16px;
}
.legal-meta {
  font-family: "Geist Mono", monospace;
  font-size: 11px; letter-spacing: 0.06em;
  color: var(--muted-2);
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.legal-meta span + span { margin-left: 18px; }
.legal h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 44px 0 14px;
  color: var(--ink);
}
.legal h2:first-child { margin-top: 0; }
.legal h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 24px 0 8px;
  color: var(--ink);
}
.legal p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0 0 14px;
}
.legal ul, .legal ol {
  margin: 0 0 14px;
  padding-left: 22px;
}
.legal li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.legal strong { color: var(--ink); font-weight: 600; }
.legal a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s;
}
.legal a:hover { text-decoration-color: var(--ink); }
.legal-summary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 0 0 48px;
  box-shadow: var(--shadow-sm);
}
.legal-summary-label {
  font-family: "Geist Mono", monospace;
  font-size: 10px; letter-spacing: 0.14em;
  color: var(--muted); text-transform: uppercase;
  margin-bottom: 10px;
}
.legal-summary p { margin: 0; font-size: 14px; color: var(--ink-2); }
.legal-contact {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-top: 32px;
  font-family: "Geist Mono", monospace;
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-2);
}
.legal-contact strong { font-family: "Geist", sans-serif; }
.legal-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: "Geist Mono", monospace;
  font-size: 11px; letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 28px;
  text-transform: uppercase;
}
.legal-back:hover { color: var(--ink); }

/* ---------- Footer (shared across home + legal pages) ---------- */
.vo-footer {
  padding: 56px 28px;
  background: var(--bg);
  color: var(--muted);
  border-top: 1px solid var(--line);
}
@media (max-width: 768px) {
  .vo-footer { padding: 40px 16px; }
}
.vo-footer-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 40px;
  align-items: center; text-align: center;
}
.vo-footer-brand {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.vo-footer-brand p {
  font-family: "Geist Mono", monospace; font-size: 11px; letter-spacing: 0.06em; margin: 0;
}
.vo-footer-links {
  display: flex; flex-direction: column; gap: 10px;
  align-items: center;
  font-size: 13px; font-weight: 500; color: var(--ink-2);
}
.vo-footer-links a:hover { color: var(--ink); text-decoration: underline; }
.vo-footer-social {
  display: flex; gap: 16px; align-items: center;
}
.vo-footer-social a {
  display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 50%; border: 1px solid var(--line-2);
  color: var(--muted-2); transition: all 0.2s;
}
.vo-footer-social a:hover {
  color: var(--ink); border-color: var(--ink); background: #fff;
}
@media (min-width: 768px) {
  .vo-footer-inner {
    flex-direction: row; justify-content: space-between; text-align: left;
    align-items: flex-start;
  }
  .vo-footer-brand { align-items: flex-start; }
  .vo-footer-links { align-items: flex-start; }
}

/* ---------- Consent note (under email form) ---------- */
.lt-consent {
  font-family: "Geist Mono", monospace;
  font-size: 10px; letter-spacing: 0.04em;
  color: var(--muted-2);
  text-align: center;
  margin-top: 10px;
  line-height: 1.5;
}
.lt-consent a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 2px;
}
.lt-consent a:hover { color: var(--ink); }
