/* Kariva landing — "Champagne & Ink" palette, mirrored from
   apps/native/src/theme/palette.ts (single source of truth for brand color). */

:root {
  --cream: #fbf7f1;
  --cream-2: #f3ece0;
  --cream-3: #f1eadd;
  --card: #ffffff;
  --ink: #2a2723;
  --muted: #6b6358;
  --gold: #9a7741;
  --gold-2: #c2a06b;
  --rose: #b5837e;
  --border: #e7decf;

  --grad-gold: linear-gradient(135deg, #9a7741, #c2a06b);
  --shadow: 0 22px 48px -24px rgba(42, 39, 35, 0.3);
  --shadow-sm: 0 8px 24px -14px rgba(42, 39, 35, 0.32);

  --radius: 20px;
  --radius-sm: 14px;
  --maxw: 1120px;

  --font-body: "Rubik", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-word: "Playfair Display", "Rubik", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: var(--gold);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    filter 0.15s ease;
  white-space: nowrap;
}
.btn:hover {
  text-decoration: none;
}
.btn:focus-visible {
  outline: 3px solid var(--gold-2);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--grad-gold);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: var(--shadow);
}
.btn-on-gold {
  background: #fff;
  color: var(--gold);
}
.btn-on-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.4);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--cream-2);
}
.btn-sm {
  padding: 9px 16px;
  font-size: 15px;
}
.btn-lg {
  padding: 16px 32px;
  font-size: 18px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 247, 241, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.brand:hover {
  text-decoration: none;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}
.brand-name {
  font-family: var(--font-word);
  font-size: 26px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.01em;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: 72px 0 64px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset-inline-start: 50%;
  top: -120px;
  width: 620px;
  height: 620px;
  transform: translateX(50%);
  background: radial-gradient(
    circle,
    rgba(194, 160, 107, 0.28),
    rgba(194, 160, 107, 0) 62%
  );
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-mark {
  width: 104px;
  height: 104px;
  border-radius: 26px;
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 6px;
}
.wordmark {
  font-family: var(--font-word);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  color: var(--gold);
  margin-top: 18px;
  letter-spacing: 0.01em;
}
.hero-title {
  font-size: clamp(2.1rem, 5.2vw, 3.3rem);
  margin-top: 10px;
  max-width: 15ch;
}
.hero-sub {
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  margin-top: 20px;
  max-width: 46ch;
}
.hero-cta {
  margin-top: 30px;
}
.hero-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------- Sections ---------- */
.section {
  padding: 64px 0;
}
.section-head {
  text-align: center;
  max-width: 44ch;
  margin-inline: auto;
  margin-bottom: 44px;
}
.section-title {
  font-size: clamp(1.7rem, 3.6vw, 2.35rem);
}
.section-sub {
  color: var(--muted);
  margin-top: 12px;
  font-size: 1.1rem;
}

/* ---------- Cards / features ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature {
  padding: 30px 26px;
  text-align: start;
}
.feature-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--cream-2);
  color: var(--gold);
  margin-bottom: 18px;
}
.feature-icon svg {
  width: 28px;
  height: 28px;
}
.feature h3 {
  font-size: 1.28rem;
  margin-bottom: 10px;
}
.feature p {
  color: var(--muted);
  font-size: 1.02rem;
}

/* ---------- Privacy strip ---------- */
.privacy-strip {
  padding: 8px 0 48px;
}
.privacy-strip-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--cream-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
}
.privacy-strip svg {
  width: 40px;
  height: 40px;
  color: var(--gold);
  flex: none;
}
.privacy-strip p {
  color: var(--ink);
  font-size: 1.05rem;
}

/* ---------- Steps ---------- */
.steps {
  background: linear-gradient(180deg, var(--cream), var(--cream-3));
}
.steps-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.step {
  padding: 30px 26px;
  text-align: start;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--grad-gold);
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 16px;
}
.step h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.step p {
  color: var(--muted);
}

/* ---------- CTA band ---------- */
.cta-band {
  padding: 24px 0 72px;
}
.cta-band-inner {
  background: var(--grad-gold);
  border-radius: 28px;
  padding: 56px 32px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow);
}
.cta-band h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  margin-bottom: 26px;
  color: #fff;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--cream);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-word);
  font-size: 20px;
  color: var(--gold);
}
.footer-brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.footer-links a {
  color: var(--muted);
  font-size: 0.98rem;
}
.footer-links a:hover {
  color: var(--gold);
}
.footer-legal {
  width: 100%;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

/* ---------- Legal pages ---------- */
.legal {
  padding: 56px 0 72px;
}
.legal-inner {
  max-width: 760px;
  margin-inline: auto;
}
.legal h1 {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
}
.legal .updated {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 10px;
  margin-bottom: 8px;
}
.legal h2 {
  font-size: 1.4rem;
  margin-top: 38px;
  margin-bottom: 12px;
}
.legal p,
.legal li {
  color: var(--ink);
  font-size: 1.05rem;
}
.legal p {
  margin-top: 14px;
}
.legal ul {
  margin-top: 14px;
  padding-inline-start: 22px;
}
.legal li {
  margin-top: 8px;
}
.legal .callout {
  background: var(--cream-2);
  border: 1px solid var(--border);
  border-inline-start: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  margin-top: 22px;
  color: var(--ink);
}
.back-link {
  display: inline-block;
  margin-top: 40px;
  font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .feature-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  body {
    font-size: 16px;
  }
  .container {
    padding-inline: 18px;
  }
  .hero {
    padding: 52px 0 48px;
  }
  .section {
    padding: 48px 0;
  }
  .privacy-strip-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .cta-band-inner {
    padding: 44px 22px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}
