:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #65717d;
  --line: #e8ecef;
  --paper: #fbfcfc;
  --white: #ffffff;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.home-shell,
.app-shell,
.policy-shell {
  width: min(100% - 40px, 920px);
  margin: 0 auto;
}

.home-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 12vh 0 32px;
}

.intro { max-width: 680px; }

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1, h2, p { margin-top: 0; }

.intro h1 {
  margin-bottom: 24px;
  font-size: clamp(3rem, 8vw, 5.75rem);
  font-weight: 680;
  letter-spacing: -.065em;
  line-height: .96;
}

.intro-copy {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 70px 0;
}

.app-card {
  position: relative;
  min-height: 260px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgb(26 39 49 / 10%);
}

.app-card:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

.linknexus-card { background: #202428; color: #f5f5f5; }
.lendpal-card { background: #e8f2fb; color: #2d3748; }

.card-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: grid;
  place-items: center;
}

.linknexus-icon { overflow: hidden; background: #202428; }
.linknexus-icon img { width: 100%; height: 100%; object-fit: cover; }
.lendpal-icon { overflow: hidden; background: #fff; }
.lendpal-icon img { width: 100%; height: 100%; object-fit: cover; }

.card-content { display: block; padding-top: 44px; }
.card-label { display: block; font-size: 1.65rem; font-weight: 700; letter-spacing: -.035em; }
.card-description { display: block; max-width: 280px; margin-top: 4px; opacity: .72; }
.card-arrow { position: absolute; top: 28px; right: 28px; font-size: 1.5rem; }

.site-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: .9rem;
}

.site-footer a { text-underline-offset: 4px; }

.app-page {
  --accent: #3d8e5b;
  --soft: #ffffff;
  --page-background: #f2f2f2;
  --page-ink: #111111;
  --page-muted: #6b6b6b;
  background: var(--page-background);
  color: var(--page-ink);
}

.app-page.lendpal {
  --accent: #3182ce;
  --soft: #e8f2fb;
  --page-background: #f7f8fa;
  --page-ink: #2d3748;
  --page-muted: #718096;
}

.app-shell { padding: 32px 0 56px; }

.top-nav { display: flex; justify-content: space-between; align-items: center; }
.back-link, .privacy-link { color: var(--page-muted); font-size: .9rem; text-decoration: none; }
.back-link:hover, .privacy-link:hover { color: var(--accent); }

.app-hero {
  min-height: calc(100vh - 145px);
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: 64px;
}

.app-badge {
  width: 96px;
  height: 96px;
  margin-bottom: 32px;
  border-radius: 27px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--accent);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--page-ink) 18%, transparent);
}

.app-badge img { width: 100%; height: 100%; object-fit: cover; }
.app-badge svg { width: 56px; fill: none; stroke: #fff; stroke-width: 3.5; stroke-linecap: round; }
.app-page.lendpal .app-badge { background: transparent; }

.app-copy h1 {
  margin-bottom: 20px;
  font-size: clamp(3.5rem, 9vw, 7rem);
  letter-spacing: -.075em;
  line-height: .9;
}

.app-description { max-width: 590px; color: var(--page-muted); font-size: 1.2rem; }

.store-button {
  width: fit-content;
  min-height: 52px;
  margin-top: 28px;
  padding: 0 20px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  background: var(--page-ink);
  color: var(--page-background);
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

a.store-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--page-ink) 20%, transparent);
}

a.store-button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.store-button.is-coming-soon {
  border: 1px solid color-mix(in srgb, var(--page-ink) 12%, transparent);
  background: var(--soft);
  color: var(--page-ink);
}

.store-detail { color: var(--page-muted); font-size: .8rem; font-weight: 600; }

.feature-note {
  padding: 32px;
  border-radius: 28px;
  background: var(--soft);
  color: var(--page-ink);
  box-shadow: 0 18px 55px color-mix(in srgb, var(--page-ink) 7%, transparent);
}

.feature-note p { margin: 0; font-size: 1.15rem; font-weight: 600; }
.feature-note p::first-line { color: var(--accent); }

.policy-shell { max-width: 720px; padding: 32px 0 80px; }
.policy-header { padding: 96px 0 44px; border-bottom: 1px solid var(--line); }
.policy-header h1 { margin-bottom: 12px; font-size: clamp(2.7rem, 7vw, 4.5rem); letter-spacing: -.055em; line-height: 1; }
.updated { color: var(--muted); font-size: .9rem; }
.policy-content { padding-top: 44px; }
.policy-content h2 { margin: 44px 0 12px; font-size: 1.2rem; letter-spacing: -.015em; }
.policy-content p, .policy-content li { color: #46515c; }
.policy-content a { color: var(--accent); text-underline-offset: 3px; }
.policy-content li + li { margin-top: 10px; }

@media (max-width: 700px) {
  .home-shell { padding-top: 9vh; }
  .app-grid { grid-template-columns: 1fr; margin: 52px 0; }
  .app-card { min-height: 230px; }
  .app-hero { grid-template-columns: 1fr; gap: 16px; padding: 88px 0 40px; }
  .feature-note { margin-top: 20px; }
  .policy-header { padding-top: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .app-card, .store-button { transition: none; }
}
