/* Kartuli Minda — landing styles
   Palette mirrors the app's DesignSystem/Palette.swift:
   wine #7A2E3B, rose #F3E1E4, teal #2E6E7A. */

:root {
  --brand: #7A2E3B;
  --brand-strong: #5f2330;
  --brand-soft: #F3E1E4;
  --rose: #C9697A;
  --teal: #2E6E7A;
  --ink: #2a2026;
  --ink-soft: #6a5f64;
  --bg: #faf6f7;
  --surface: #ffffff;
  --border: #efe2e5;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-card: 0 18px 40px -20px rgba(74, 24, 33, 0.35);
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "SF Pro Display",
    "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: inherit; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(250, 246, 247, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__icon { border-radius: 10px; box-shadow: 0 4px 10px -4px rgba(74,24,33,.4); }
.brand__name { font-weight: 700; font-size: 1.05rem; letter-spacing: .2px; }

.site-nav { display: flex; gap: clamp(12px, 3vw, 28px); }
.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: .95rem;
  transition: color .18s ease;
}
.site-nav a:hover { color: var(--brand); }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) clamp(16px, 4vw, 40px) clamp(32px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .4px;
  text-transform: uppercase;
}

.hero__title {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.hero__subtitle {
  margin: 0 0 28px;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 32ch;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hero__meta {
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: .9rem;
  font-weight: 600;
}

/* App Store badge (placeholder until live) */
.appstore-badge {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 22px;
  min-height: 56px;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: transform .18s ease, background .18s ease;
}
.appstore-badge:hover { transform: translateY(-2px); background: var(--brand-strong); }
.appstore-badge__pre { font-size: .72rem; opacity: .85; letter-spacing: .3px; }
.appstore-badge__store { font-size: 1.25rem; font-weight: 700; line-height: 1.1; }

.ghost-btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 22px;
  border-radius: 14px;
  border: 1.5px solid var(--brand);
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
  background: transparent;
  transition: background .18s ease, color .18s ease;
}
.ghost-btn:hover { background: var(--brand); color: #fff; }

/* Hero art — two angled phones */
.hero__art {
  position: relative;
  min-height: 460px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone {
  border-radius: 38px;
  overflow: hidden;
  background: #fff;
  border: 6px solid #1c1418;
  box-shadow: 0 40px 80px -30px rgba(74, 24, 33, 0.55);
}
.phone img { width: 220px; height: auto; }
.phone--lead {
  transform: rotate(-5deg);
  z-index: 2;
}
.phone--trail {
  position: absolute;
  right: 6%;
  top: 12%;
  transform: rotate(6deg) translateY(28px);
  opacity: .96;
  z-index: 1;
}

/* ---------- Sections ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) clamp(16px, 4vw, 40px);
}
.section--tint {
  max-width: none;
  background: linear-gradient(160deg, var(--brand-soft), #fff 80%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section--tint .screens-strip { max-width: var(--maxw); margin: 0 auto; }

.section__title {
  margin: 0 0 clamp(24px, 4vw, 44px);
  text-align: center;
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.3px;
}
.section__title--left { text-align: left; margin-bottom: 16px; }

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.2vw, 24px);
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-card);
}
.feature-card__glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 56px;
  padding: 0 14px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1.6rem;
  font-weight: 700;
}
.feature-card h3 { margin: 0 0 8px; font-size: 1.18rem; font-weight: 700; }
.feature-card p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* Screens strip */
.screens-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 24px);
  padding: 0 clamp(16px, 4vw, 40px);
}
.screens-strip__item { margin: 0; text-align: center; }
.screens-strip__item img {
  width: 100%;
  border-radius: 24px;
  border: 5px solid #1c1418;
  box-shadow: 0 30px 60px -28px rgba(74, 24, 33, 0.5);
}
.screens-strip__item figcaption {
  margin-top: 14px;
  font-weight: 700;
  color: var(--ink-soft);
  font-size: .95rem;
}

/* Privacy */
.privacy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 48px);
  box-shadow: var(--shadow-card);
  max-width: 720px;
}
.privacy-card p { color: var(--ink-soft); font-size: 1.05rem; margin: 0 0 22px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px clamp(16px, 4vw, 40px);
  text-align: center;
  color: var(--ink-soft);
}
.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}
.site-footer__brand img { border-radius: 8px; }
.site-footer__links { display: flex; gap: 22px; justify-content: center; margin-bottom: 18px; }
.site-footer__links a { color: var(--brand); font-weight: 600; text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline; }
.site-footer__note { max-width: 60ch; margin: 0 auto 12px; font-size: .85rem; }
.site-footer__copy { font-size: .85rem; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero__subtitle { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__art { min-height: 420px; margin-top: 12px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .screens-strip { grid-template-columns: repeat(2, 1fr); }
  .section__title--left { text-align: center; }
  .privacy-card { margin: 0 auto; text-align: center; }
}

@media (max-width: 540px) {
  .site-nav { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .screens-strip { grid-template-columns: repeat(2, 1fr); }
  .phone img { width: 180px; }
}

/* ---------- Dark mode ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #C9697A;
    --brand-strong: #d77f8e;
    --brand-soft: #3A2228;
    --ink: #f3e9eb;
    --ink-soft: #c2b2b6;
    --bg: #181014;
    --surface: #211820;
    --border: #33252b;
    --shadow-card: 0 18px 40px -20px rgba(0, 0, 0, 0.6);
  }
  .site-header { background: rgba(24, 16, 20, 0.82); }
  .section--tint { background: linear-gradient(160deg, #241820, #181014 80%); }
  .appstore-badge { color: #1a1014; }
  .appstore-badge__store, .appstore-badge__pre { color: #1a1014; }
  .ghost-btn:hover { color: #1a1014; }
}
