/* Saldados landing
 * THESIS: personal ledger for informal loans — brand teal, not purple SaaS.
 * OWN-WORLD: #003441 ink, #F4A261 accent, mist washes, Fraunces + DM Sans.
 * FIRST VIEWPORT: brand display + headline + dual phone stage over teal atmosphere.
 */
:root {
  --ink: #003441;
  --ink-deep: #001a22;
  --ink-mid: #0f4c5c;
  --mist: #e8f1f4;
  --wash: #dcecef;
  --accent: #f4a261;
  --accent-soft: #fff4e6;
  --green: #1b6d24;
  --green-soft: #a0f399;
  --text: #f4f7f8;
  --text-soft: #b7c5cb;
  --text-muted: #7a8794;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --border: rgba(232, 241, 244, 0.14);
  --shadow: 0 24px 60px rgba(0, 20, 28, 0.45);
  --radius: 22px;
  --radius-sm: 14px;
  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --shell: min(1120px, calc(100% - 2.5rem));
  --header-h: 72px;
  color-scheme: dark;
}

html[data-theme="light"] {
  --ink: #003441;
  --ink-deep: #f4f7f8;
  --ink-mid: #0f4c5c;
  --text: #141b2b;
  --text-soft: #4a5560;
  --text-muted: #7a8794;
  --surface: #ffffff;
  --surface-strong: #e8f1f4;
  --border: #d7e0e4;
  --shadow: 0 18px 40px rgba(0, 52, 65, 0.12);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(244, 162, 97, 0.14), transparent 55%),
    radial-gradient(700px 480px at 90% 0%, rgba(154, 206, 225, 0.16), transparent 50%),
    var(--ink-deep);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.shell.narrow {
  width: min(760px, calc(100% - 2.5rem));
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--ink);
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--ink-deep) 78%, transparent);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--text);
}

.brand img {
  border-radius: 10px;
  background: #000;
}

.nav-desktop {
  display: none;
  gap: 1.35rem;
}

.nav-desktop a {
  text-decoration: none;
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-desktop a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}

.lang-link {
  padding: 0.35rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--text-muted);
}

.lang-link.is-active {
  background: var(--ink-mid);
  color: #fff;
}

html[data-theme="light"] .lang-link.is-active {
  background: var(--ink);
}

.theme-toggle,
.menu-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.theme-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: none;
}

.theme-icon-sun {
  box-shadow: 6px 0 0 -4px currentColor, -6px 0 0 -4px currentColor, 0 6px 0 -4px currentColor, 0 -6px 0 -4px currentColor;
}

html[data-theme="dark"] .theme-icon-sun {
  display: block;
}

html[data-theme="light"] .theme-icon-moon {
  display: block;
  background: currentColor;
}

.menu-btn span {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  margin: 3px 0;
  transition: transform 0.25s ease;
}

.header-cta {
  display: none;
  pointer-events: none;
}

.nav-mobile {
  display: grid;
  gap: 0.35rem;
  padding: 0.75rem 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--ink-deep) 92%, transparent);
}

.nav-mobile[hidden] {
  display: none !important;
}

.nav-mobile a {
  text-decoration: none;
  padding: 0.85rem 0.5rem;
  border-radius: 12px;
  color: var(--text);
  font-weight: 560;
}

.nav-mobile a:hover {
  background: var(--surface);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 650;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  color: inherit;
}

.btn-accent {
  background: var(--accent);
  color: #1a1208;
  box-shadow: 0 10px 30px rgba(244, 162, 97, 0.28);
}

.btn-accent:hover {
  background: #ffb780;
  color: #1a1208;
}

.btn-ghost {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

.btn-sm {
  min-height: 40px;
  padding: 0.45rem 0.95rem;
  font-size: 0.88rem;
}

/* Hero */
.hero {
  position: relative;
  padding: 2.5rem 0 4rem;
  min-height: min(92vh, 920px);
  display: grid;
  align-items: center;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transform: scale(1.04);
  animation: drift 28s ease-in-out infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, color-mix(in srgb, var(--ink-deep) 92%, transparent) 28%, transparent 70%),
    linear-gradient(to top, var(--ink-deep), transparent 42%);
}

html[data-theme="light"] .hero-bg img {
  opacity: 0.28;
  filter: saturate(0.85);
}

html[data-theme="light"] .hero-veil {
  background:
    linear-gradient(105deg, rgba(244, 247, 248, 0.94) 30%, transparent 72%),
    linear-gradient(to top, #f4f7f8, transparent 45%);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.brand-display {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 0.55rem;
  color: var(--text);
}

.hero-line {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-style: normal;
  font-weight: 600;
}

.hero-accent {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.85rem, 5vw, 3rem);
  line-height: 1.08;
  color: var(--accent);
  letter-spacing: -0.03em;
}

h1 {
  margin: 0 0 1rem;
}

.lead {
  margin: 0;
  max-width: 38rem;
  color: var(--text-soft);
  font-size: 1.08rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.trust-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0;
  margin: 1.4rem 0 0;
}

.trust-pills li {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.82rem;
  color: var(--text-soft);
}

.hero-visual {
  margin: 0;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #071015;
}

.hero-visual img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

/* Sections */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-head {
  margin-bottom: 2.2rem;
  max-width: 40rem;
}

.section-head h2,
.solution h2,
.cta h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.card-row,
.trust-row {
  display: grid;
  gap: 1rem;
}

.card,
.feature,
.trust-card {
  padding: 1.35rem 1.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.card h3,
.feature h3,
.trust-card h3,
.step h3 {
  margin: 0 0 0.45rem;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.card p,
.feature p,
.trust-card p,
.step p,
.faq-item p,
.site-footer p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.98rem;
}

.solution-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.check-list {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.check-list li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--text-soft);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background:
    linear-gradient(135deg, transparent 42%, var(--green-soft) 42% 58%, transparent 58%),
    var(--green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 25%, transparent);
}

.solution-visual {
  margin: 0;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #071015;
}

.solution-visual img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.feature-grid {
  display: grid;
  gap: 1rem;
}

.feature {
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  counter-reset: none;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.2rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--surface-strong), var(--surface));
}

.step-n {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent);
  line-height: 1;
}

.plate-grid {
  display: grid;
  gap: 1.35rem;
}

.plate {
  margin: 0;
}

.plate img {
  width: 100%;
  display: block;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #071015;
}

.plate figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 0.35rem 1rem 0.75rem;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  padding: 0.85rem 0;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item[open] summary {
  color: var(--accent);
}

.cta {
  padding: 5.5rem 0;
  isolation: isolate;
}

.cta-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.cta-veil {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--ink-deep) 72%, transparent);
}

html[data-theme="light"] .cta-veil {
  background: rgba(244, 247, 248, 0.78);
}

.cta-inner {
  text-align: center;
  max-width: 720px;
}

.cta-inner .lead {
  margin-inline: auto;
}

.cta-inner .hero-ctas {
  justify-content: center;
}

.cta-note {
  margin-top: 1.1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  background: color-mix(in srgb, var(--ink) 35%, var(--ink-deep));
}

html[data-theme="light"] .site-footer {
  background: #e8f1f4;
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
}

.footer-grid h3 {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-grid a {
  display: block;
  text-decoration: none;
  color: var(--text-soft);
  margin: 0.35rem 0;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.88rem;
}

.koudt {
  font-weight: 650;
}

/* Hero copy visible immediately — phones still reveal */
.hero-copy .reveal {
  opacity: 1;
  transform: none;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@keyframes drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, 1%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-bg img,
  .btn {
    animation: none;
    transition: none;
  }
}

/* Breakpoints */
@media (min-width: 720px) {
  .card-row,
  .trust-row {
    grid-template-columns: repeat(3, 1fr);
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .step {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
  .plate-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1.35rem;
  }
}

@media (min-width: 960px) {
  .nav-desktop {
    display: flex;
  }
  .menu-btn {
    display: none;
  }
  .header-cta {
    display: inline-flex;
    pointer-events: auto;
  }
  .hero-grid,
  .solution-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 719px) {
  .hero-visual {
    margin-top: 0.35rem;
  }
}
