/* ConjuGo landing page — brand colors pulled from the iOS app's DesignSystem.swift */
:root {
  --primary: #7B68EE;
  --primary-dark: #6A5ACD;
  --primary-light: #9F8FEF;
  --accent: #8B7CE8;
  --fr-blue: #0055A4;
  --fr-red: #EF4135;
  --fr-white: #FFFFFF;
  --bg: #FFFFFF;
  --bg-soft: #F8F9FA;
  --surface: #FFFFFF;
  --text: #1C1C1E;
  --text-soft: #5A5A60;
  --text-dim: #8E8E93;
  --success: #34C759;
  --warning: #FF9500;
  --border: #ECECF1;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-elevated: 0 4px 24px rgba(123, 104, 238, 0.18);
  --shadow-floating: 0 8px 40px rgba(123, 104, 238, 0.25);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4 {
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--text);
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 5vw + 1rem, 3.75rem); font-weight: 800; line-height: 1.1; }
h2 { font-size: clamp(1.75rem, 2.5vw + 1rem, 2.5rem); font-weight: 700; line-height: 1.15; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--text-soft); }

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 44px; height: 44px; }
.brand-name {
  font-family: ui-rounded, "SF Pro Rounded", sans-serif;
  font-weight: 800;
  font-size: 1.45rem;
}
.brand-name .u-chip {
  background: var(--fr-blue);
  color: #fff;
  border-radius: 4px;
  padding: 0 4px;
}
.brand-name .go { color: var(--fr-red); }
.brand-name .conj { color: var(--fr-blue); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.nav-cta:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-elevated); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 64px;
  background:
    radial-gradient(80% 60% at 90% 0%, rgba(139, 124, 232, 0.22), transparent 60%),
    radial-gradient(70% 60% at 5% 10%, rgba(123, 104, 238, 0.18), transparent 60%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 56px 0 40px; }
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: rgba(123, 104, 238, 0.12);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.hero h1 span.accent {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-soft);
  max-width: 560px;
  margin-bottom: 28px;
}

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-elevated);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-floating); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  font-weight: 600;
  padding: 14px 22px;
  border-radius: 12px;
}
.btn-secondary:hover { background: var(--bg-soft); color: var(--text); }

.trust-row {
  display: flex; gap: 20px; flex-wrap: wrap;
  margin-top: 28px;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }

/* ---------- Phone mockup (pure CSS, no simulator needed) ---------- */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 560px;
}
.phone {
  position: relative;
  width: 300px;
  height: 600px;
  background: #0e0e14;
  border-radius: 44px;
  padding: 12px;
  box-shadow: 0 30px 80px rgba(58, 37, 140, 0.35), 0 10px 30px rgba(0, 0, 0, 0.2);
}
.phone::before {
  content: "";
  position: absolute;
  top: 18px; left: 50%;
  width: 110px; height: 26px;
  transform: translateX(-50%);
  background: #0e0e14;
  border-radius: 0 0 16px 16px;
  z-index: 3;
}
.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(180deg, #F8F9FA 0%, #EEF0FF 100%);
}
.phone.secondary { position: absolute; transform: rotate(-8deg) translate(-80px, 20px); scale: 0.9; opacity: 0.9; display: none; }
@media (min-width: 1100px) { .phone.secondary { display: block; } }

/* Real-screenshot phone frame (for Simulator PNGs) */
.phone-shot {
  position: relative;
  width: 300px;
  border-radius: 44px;
  padding: 10px;
  background: #0e0e14;
  box-shadow: 0 30px 80px rgba(58, 37, 140, 0.35), 0 10px 30px rgba(0, 0, 0, 0.2);
}
.phone-shot img {
  width: 100%;
  display: block;
  border-radius: 34px;
}

/* In-phone mock UI */
.app-home {
  padding: 48px 18px 18px;
  display: flex; flex-direction: column; gap: 14px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.app-hi {
  display: flex; justify-content: space-between; align-items: center;
}
.app-hi .greet { font-family: ui-rounded, sans-serif; font-weight: 700; font-size: 1.25rem; color: var(--text); }
.app-hi .ava {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}
.app-streak {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 14px 16px;
  border-radius: 16px;
  display: flex; justify-content: space-between; align-items: center;
}
.app-streak .days {
  font-family: ui-rounded, sans-serif;
  font-size: 1.8rem; font-weight: 800; line-height: 1;
}
.app-streak small { opacity: 0.85; font-size: 0.75rem; }
.week-dots { display: flex; gap: 6px; }
.week-dots i {
  width: 14px; height: 14px; border-radius: 50%;
  background: rgba(255,255,255,0.3); display: inline-block;
}
.week-dots i.on { background: #fff; }

.app-card {
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.app-card .row { display: flex; justify-content: space-between; align-items: center; }
.app-card h4 { margin: 0; font-size: 0.95rem; font-family: ui-rounded, sans-serif; }
.app-card p { margin: 4px 0 0; font-size: 0.78rem; color: var(--text-dim); }
.pill {
  background: rgba(123,104,238,0.14); color: var(--primary-dark);
  font-size: 0.7rem; font-weight: 600; padding: 3px 8px; border-radius: 999px;
}
.verb-row {
  display: grid; grid-template-columns: 1fr auto; gap: 8px; font-size: 0.82rem;
  padding: 8px 0; border-top: 1px solid #F0F0F4;
}
.verb-row:first-of-type { border-top: 0; }
.verb-row .fr { font-weight: 600; }
.verb-row .en { color: var(--text-dim); }
.verb-row .check { color: var(--success); font-weight: 700; }
.verb-row .xmark { color: var(--warning); font-weight: 700; }

.app-cta {
  margin-top: 2px;
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 12px;
  border-radius: 12px;
  font-weight: 600;
  font-family: ui-rounded, sans-serif;
  font-size: 0.95rem;
}

/* ---------- Sections ---------- */
section { padding: 80px 0; }
@media (max-width: 700px) { section { padding: 56px 0; } }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head p { font-size: 1.05rem; }

.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 880px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-elevated);
  border-color: transparent;
}
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(123,104,238,0.12);
  color: var(--primary-dark);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 16px;
}
.feature h3 { margin-bottom: 8px; }
.feature p { margin: 0; font-size: 0.96rem; }

/* ---------- How it works ---------- */
.how {
  background: var(--bg-soft);
}
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  box-shadow: var(--shadow-card);
}
.step-num {
  display: inline-block;
  font-family: ui-rounded, sans-serif;
  font-size: 2rem; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  line-height: 1;
}

/* ---------- Showcase ---------- */
.showcase {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
@media (max-width: 880px) { .showcase { grid-template-columns: 1fr; gap: 32px; } .showcase.reverse > :first-child { order: 2; } }

.showcase .visual {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(123,104,238,0.12), rgba(106,90,205,0.18));
  display: flex; align-items: center; justify-content: center;
  padding: 36px;
}
.showcase .visual .card-preview {
  background: #fff;
  width: 100%; max-width: 340px;
  border-radius: 20px;
  box-shadow: var(--shadow-floating);
  padding: 20px;
}

.bubble-q {
  background: var(--primary);
  color: #fff;
  padding: 10px 14px;
  border-radius: 14px 14px 14px 4px;
  display: inline-block;
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.conj-table { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: 0.88rem; }
.conj-table .pronoun { color: var(--text-dim); }
.conj-table .form { font-weight: 600; color: var(--text); }
.conj-table .form.highlight { color: var(--primary-dark); background: rgba(123,104,238,0.14); border-radius: 4px; padding: 0 6px; }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  text-align: center;
}
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat .num {
  font-family: ui-rounded, sans-serif;
  font-size: 2.5rem; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.stat .label { color: var(--text-soft); font-size: 0.92rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 12px;
  transition: box-shadow 0.15s ease;
}
.faq details[open] { box-shadow: var(--shadow-card); border-color: transparent; }
.faq summary {
  cursor: pointer; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--primary); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 12px 0 0; }

/* ---------- Final CTA ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  text-align: center;
  border-radius: var(--radius-xl);
  padding: 64px 32px;
  margin: 40px auto;
  max-width: 1080px;
  box-shadow: var(--shadow-floating);
}
.cta-section h2 { color: #fff; }
.cta-section p { color: rgba(255,255,255,0.88); max-width: 580px; margin: 0 auto 28px; font-size: 1.1rem; }
.cta-section .btn-primary {
  background: #fff; color: var(--primary-dark);
}
.cta-section .btn-primary:hover { background: #f4f2ff; color: var(--primary-dark); }

.app-store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff;
  padding: 12px 20px; border-radius: 12px;
  font-weight: 600;
}
.app-store-badge:hover { color: #fff; opacity: 0.9; }
.app-store-badge svg { width: 22px; height: 22px; fill: currentColor; }
.app-store-badge .label { display: flex; flex-direction: column; line-height: 1.1; }
.app-store-badge .label small { font-size: 0.65rem; font-weight: 400; opacity: 0.8; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.9rem;
}
.site-footer .container {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
}
.site-footer nav a {
  color: var(--text-soft);
  margin-left: 20px;
}
.site-footer nav a:hover { color: var(--primary); }
