/* Parul landing page — tokens mirror app/design_handoff_claude_code/parul.css
   (dark theme) so this page matches the real app's palette 1:1. */

:root {
  --primary: #A88FE8;
  --primary-dark: #8B6FD4;
  --primary-light: #BBA3F0;
  --on-primary: #FFFFFF;
  --accent: #F09488;

  --bg: #14101C;
  --surface: #221C32;
  --surface-2: #2A243C;
  --border: #3A3250;
  --border-strong: #4E4468;

  --text: #F0EBF8;
  --text-secondary: #A89CB8;
  --text-tertiary: #7A708C;

  --font: "Source Sans 3", system-ui, -apple-system, sans-serif;

  --bg-grad: radial-gradient(1200px 600px at 15% -10%, #2A2244 0%, transparent 60%),
             radial-gradient(1000px 500px at 110% 10%, #251d3d 0%, transparent 55%),
             linear-gradient(160deg, #0E0A14, #161222 40%, #1A1428 100%);
  --primary-grad: linear-gradient(135deg, var(--primary-light), var(--primary), var(--primary-dark));
}

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

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-grad);
  background-attachment: fixed;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, figure { margin: 0; }

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

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 16, 28, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.2px;
}

.brand-mark { width: 32px; height: auto; }

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  margin-right: 24px;
}

.nav-links a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

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

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-grad);
  color: var(--on-primary);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

/* ---- hero ---- */
.hero { padding: 72px 0 40px; }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: 46px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}

.hero-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 28px;
}

.hero-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ---- store badges ---- */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-badges-center { justify-content: center; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
}

.badge-disabled {
  opacity: 0.75;
  cursor: default;
}

.badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.badge-text small {
  font-weight: 500;
  font-size: 11px;
  color: var(--text-tertiary);
}

/* ---- hero phone art ---- */
.hero-art {
  position: relative;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone {
  width: 208px;
  border-radius: 30px;
  background: #000;
  padding: 3px;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.4),
    0 22px 60px rgba(10, 6, 20, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  position: relative;
  z-index: 3;
}

.phone-shot {
  width: 100%;
  border-radius: 27px;
  display: block;
}

.phone-notch {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 16px;
  background: #000;
  border-radius: 10px;
  z-index: 5;
}

.phone-behind {
  position: absolute;
  width: 176px;
  opacity: 0.55;
  filter: saturate(0.85);
  z-index: 1;
}

.phone-left {
  left: 4%;
  top: 6%;
  transform: rotate(-9deg);
}

.phone-right {
  right: 4%;
  bottom: 4%;
  transform: rotate(9deg);
}

/* ---- section shared ---- */
.section-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.3px;
  text-align: center;
  margin-bottom: 40px;
}

/* ---- features ---- */
.features { padding: 64px 0; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px 22px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* ---- showcase ---- */
.showcase { padding: 40px 0 80px; }

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.showcase-grid figure {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 20px 20px 22px;
  text-align: center;
}

.showcase-grid img {
  width: 100%;
  max-width: 220px;
  margin: 0 auto 16px;
  border-radius: 18px;
  border: 1px solid var(--border-strong);
}

.showcase-grid figcaption {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ---- cta ---- */
.cta {
  padding: 72px 0 88px;
  text-align: center;
}

.cta-mark {
  width: 56px;
  margin: 0 auto 20px;
}

.cta h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
}

.cta p {
  font-size: 15.5px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

/* ---- footer ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.footer-mark { width: 22px; }

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a {
  font-size: 13.5px;
  color: var(--text-secondary);
}

.footer-links a:hover { color: var(--text); }

.footer-copy {
  font-size: 13px;
  color: var(--text-tertiary);
  width: 100%;
  text-align: center;
  margin-top: 8px;
}

/* ---- responsive ---- */
@media (max-width: 900px) {
  .nav-links { display: none; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-sub { margin-left: auto; margin-right: auto; }
  .store-badges { justify-content: center; }

  .hero h1 { font-size: 36px; }

  .hero-art { height: 380px; margin-top: 16px; }
  .phone { width: 180px; }
  .phone-behind { width: 150px; }

  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }

  .footer-inner { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .feature-grid { grid-template-columns: 1fr; }
  .badge { width: 100%; justify-content: center; }
  .store-badges { flex-direction: column; }
}

/* ---- legal documents (privacy / terms / guidelines) ----
   Generated pages; see web/landing/build_legal.py. These are read, not
   skimmed, so the measure is narrow and the type larger than the marketing
   page's. */
.legal-body { background-attachment: fixed; }

.legal-top {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.legal-top-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}

.legal-home {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.legal-mark { width: 24px; height: auto; }

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.legal-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.94rem;
}

.legal-nav a:hover { color: var(--text); }
.legal-nav a.is-current { color: var(--primary-light); font-weight: 600; }

.legal {
  max-width: 760px;
  padding-top: 44px;
  padding-bottom: 72px;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.legal h1 {
  color: var(--text);
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin: 0 0 8px;
}

.legal h2 {
  color: var(--text);
  font-size: 1.28rem;
  line-height: 1.35;
  margin: 40px 0 12px;
  padding-top: 4px;
  scroll-margin-top: 24px;
}

.legal h3 {
  color: var(--text);
  font-size: 1.05rem;
  margin: 26px 0 8px;
}

.legal p { margin: 0 0 14px; }
.legal strong { color: var(--text); font-weight: 600; }

.legal a {
  color: var(--primary-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal li { margin-bottom: 7px; }

.legal hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}

.legal-updated {
  color: var(--text-tertiary);
  font-size: 0.92rem;
  margin: 0 0 30px;
}

.legal-updated strong { color: var(--text-tertiary); font-weight: 600; }
