/* ─────────────────────────────────────────────────────────────────────────
   Liravira — landing page
   Design read: trust-first landing for foreign owners of Portuguese property.
   Calm, premium, direct. Dials: VARIANCE 6 / MOTION 4 / DENSITY 3.

   Locks (per the taste skill):
   • One accent (blue), used on the whole page. No second accent.
   • Radius: interactive = full pill; panels/cards = 16px; inputs = 10px.
   • Theme: light throughout; the final CTA band is the ONE deliberate dark moment.
   • Type: Geist (display + body), Geist Mono for numeric accents.
   • No em-dashes anywhere visible. Off-black ink, never pure black.
   Four sections: hero (split) · watch (grid) · how (process) · cta (band).
   ───────────────────────────────────────────────────────────────────────── */

:root {
  --bg:        #ffffff;
  --bg-alt:    #fafafa;
  --ink:       #18181b;
  --ink-soft:  #3f3f46;
  --muted:     #5b616e;
  --line:      #e6e7eb;
  --line-soft: #f0f1f3;

  --accent:      #2563eb;
  --accent-ink:  #1d4ed8;
  --accent-wash: #eff4ff;

  --pos:   #16794c;
  --warn:  #9a6a00;
  --cost:  #b42318;

  --ink-panel: #0c1322;

  --r-card:  16px;
  --r-input: 10px;

  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --maxw: 1120px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.08; }
a { color: inherit; }
i[class^="ph"], i[class*=" ph"] { display: inline-block; line-height: 1; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-size: 15px; font-weight: 600;
  border-radius: 999px; padding: 12px 22px; cursor: pointer;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .12s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease);
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(37,99,235,.25); }
.btn-primary:hover { background: var(--accent-ink); }
.btn-primary:active { transform: translateY(1px); }

/* ── Navigation (single line, capped height) ─────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; height: 68px;
  display: flex; align-items: center; padding: 0 24px;
}
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 700; }
.logo-mark {
  display: inline-grid; place-items: center; width: 30px; height: 30px;
  border-radius: 9px; background: var(--accent); color: #fff; font-size: 17px;
}
.logo-word { font-size: 19px; letter-spacing: -0.02em; color: var(--ink); }
.logo-word .wm, .preview-name .wm { color: var(--accent); font-weight: 500; }   /* wordmark: Lira|vira split */
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  font-family: var(--font); font-size: 13px; font-weight: 700; cursor: pointer;
  padding: 6px 11px; border-radius: 999px;
}
.lang-toggle:hover { border-color: var(--accent); color: var(--accent); }
.nav-cta { padding: 9px 18px; font-size: 14px; }

/* ── Hero (asymmetric split) ─────────────────────────────────────────────── */
.hero { max-width: var(--maxw); margin: 0 auto; padding: 76px 24px 68px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-copy h1 { font-size: clamp(2.3rem, 4.6vw, 3.4rem); font-weight: 700; max-width: 20ch; }
.hero-h1 > span { display: block; }   /* lead / rotating word / tail each on its own line */
/* rotating headline word: the breadth of what Liravira watches, shown not told */
.rotator {
  display: block; color: var(--accent);
  transition: opacity .28s var(--ease), transform .28s var(--ease);
  will-change: opacity, transform;
}
.rotator.out { opacity: 0; transform: translateY(-12px); }
.hero-sub { margin-top: 20px; font-size: 1.18rem; color: var(--ink-soft); max-width: 34ch; line-height: 1.5; }

.waitlist { margin-top: 30px; max-width: 440px; }
.wl-label {
  display: block; font-size: 12px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.wl-row { display: flex; gap: 8px; }
.wl-row input {
  flex: 1; min-width: 0; font-family: var(--font); font-size: 15px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-input);
  color: var(--ink); background: #fff; outline: none;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.wl-row input::placeholder { color: #9aa0ab; }
.wl-row input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.wl-row .btn { flex-shrink: 0; }
.wl-note { margin-top: 9px; font-size: 13px; color: var(--muted); }
.wl-done {
  display: flex; align-items: center; gap: 9px; margin-top: 4px;
  font-size: 15px; font-weight: 500; color: var(--pos);
}
.wl-done i { font-size: 20px; flex-shrink: 0; }

.hero-secondary {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 22px;
  font-size: 15px; font-weight: 600; color: var(--accent); text-decoration: none;
}
.hero-secondary i { transition: transform .15s var(--ease); }
.hero-secondary:hover i { transform: translateX(3px); }

/* Hero product preview (a real mini-UI, not a fake screenshot) */
.hero-preview { position: relative; }
.hero-preview::before {
  content: ""; position: absolute; inset: -10% -6% -14% -6%; z-index: -1;
  background: radial-gradient(60% 60% at 70% 30%, rgba(37,99,235,.10), transparent 70%);
}
.preview-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: 0 24px 60px -24px rgba(16,24,40,.22), 0 2px 6px rgba(16,24,40,.05);
  overflow: hidden;
}
.preview-head { display: flex; align-items: center; gap: 9px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.preview-dot {
  display: inline-grid; place-items: center; width: 26px; height: 26px;
  border-radius: 8px; background: var(--accent); color: #fff; font-size: 15px;
}
.preview-name { font-weight: 700; font-size: 15px; }
.preview-tag {
  margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px;
}
.preview-body { padding: 16px; }
.preview-msg { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 14px; }

.preview-ledger { display: flex; flex-direction: column; gap: 6px; }
.pl-row {
  display: grid; grid-template-columns: 22px 1fr auto auto; align-items: center;
  gap: 10px; padding: 11px 12px; border: 1px solid var(--line-soft);
  border-radius: 11px; background: var(--bg-alt);
}
.pl-ico { color: var(--muted); font-size: 16px; }
.pl-tax .pl-ico { color: var(--cost); }
.pl-save .pl-ico { color: var(--pos); }
.pl-grant .pl-ico { color: var(--pos); }
.pl-title { font-size: 13.5px; font-weight: 600; min-width: 0; }
.pl-amt { font-family: var(--mono); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.pl-amt.cost { color: var(--cost); }
.pl-amt.save { color: var(--pos); }
.pl-when { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.pl-when.urgent { color: var(--cost); font-weight: 500; }

.preview-foot { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.preview-foot i { color: #25d366; font-size: 16px; flex-shrink: 0; }

/* ── Shared section title ────────────────────────────────────────────────── */
.section-title { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 700; }

/* ── What Liravira watches (compact 4-up grid) ──────────────────────────────── */
.watch { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 80px 24px; }
.watch .section-title { max-width: var(--maxw); margin: 0 auto 40px; }
.watch-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.wcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px 22px;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), border-color .15s var(--ease);
}
.wcard:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(16,24,40,.25); border-color: #d7dae0; }
.wcard-ico {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 12px; font-size: 22px; margin-bottom: 14px;
  background: var(--accent-wash); color: var(--accent);
}
.wcard-ico.tax    { background: #fdecea; color: var(--cost); }
.wcard-ico.save   { background: #e8f4ee; color: var(--pos); }
.wcard-ico.grant  { background: #e8f4ee; color: var(--pos); }
.wcard-ico.comply { background: #fbf2dd; color: var(--warn); }
.wcard h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: 7px; }
.wcard p { font-size: 14.5px; color: var(--muted); }

/* ── How it works (process) ──────────────────────────────────────────────── */
.how { max-width: var(--maxw); margin: 0 auto; padding: 84px 24px; }
.how .section-title { margin-bottom: 44px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { position: relative; padding-top: 8px; }
.step-ico {
  display: inline-grid; place-items: center; width: 48px; height: 48px;
  border-radius: 13px; background: var(--accent-wash); color: var(--accent);
  font-size: 24px; margin-bottom: 18px;
}
.step h3 { font-size: 1.18rem; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--muted); max-width: 32ch; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 32px; left: 64px; right: -28px; height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

/* ── Final CTA (the single deliberate dark band) ─────────────────────────── */
.cta { background: var(--ink-panel); color: #fff; }
.cta-inner { max-width: 760px; margin: 0 auto; padding: 84px 24px; text-align: center; }
.cta h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); font-weight: 700; }
.cta p { margin-top: 16px; font-size: 1.1rem; color: #b9c0cf; max-width: 48ch; margin-inline: auto; }
.waitlist-dark { margin: 30px auto 0; }
.waitlist-dark .wl-label { color: #8b93a4; }
.waitlist-dark .wl-row input {
  background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #fff;
}
.waitlist-dark .wl-row input::placeholder { color: #8b93a4; }
.waitlist-dark .wl-row input:focus { border-color: #6ea0ff; box-shadow: 0 0 0 3px rgba(110,160,255,.18); }
.waitlist-dark .wl-note { color: #8b93a4; }
.waitlist-dark .wl-done { color: #6ee7a8; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); background: var(--bg); }
.foot-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 30px 24px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.foot-tag { color: var(--muted); font-size: 14px; }
.foot-links { display: flex; gap: 22px; margin-left: auto; }
.foot-links a { text-decoration: none; color: var(--muted); font-size: 14px; }
.foot-links a:hover { color: var(--ink); }

/* ── Scroll reveal (MOTION 4, reduced-motion safe) ───────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
  .btn, .wcard, .hero-secondary i, .rotator { transition: none; }
  .rotator.out { opacity: 1; transform: none; }   /* no flicker under reduced motion */
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-preview { order: -1; max-width: 460px; }
  .watch-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .step:not(:last-child)::after { display: none; }
}

@media (max-width: 600px) {
  .hero { padding: 44px 20px; }
  .hero-copy h1 { max-width: none; }
  .wl-row { flex-direction: column; }
  .wl-row .btn { width: 100%; }
  .watch { padding: 64px 20px; }
  .watch-grid { grid-template-columns: 1fr; }
  .foot-links { margin-left: 0; width: 100%; }
}
