/* ═══════════════════════════════════════════════════════════════
   Complevia Landing Page — style.css
   Design tokens: Material 3 Purple + neutral surface palette
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset & tokens ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:        #6750A4;
  --primary-hover:  #7965AF;
  --on-primary:     #FFFFFF;
  --surface:        #FFFBFE;
  --surface-alt:    #F4EFFF;
  --surface-card:   #FFFFFF;
  --outline:        #CAC4D0;
  --text-high:      #1C1B1F;
  --text-mid:       #49454F;
  --text-low:       #79747E;
  --gradient-a:     #6750A4;
  --gradient-b:     #B984E8;

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;

  --shadow-card: 0 2px 12px rgba(103,80,164,.10), 0 1px 3px rgba(0,0,0,.07);
  --shadow-cta:  0 6px 28px rgba(103,80,164,.35);

  --max-w: 1120px;
  --gap:   clamp(16px, 4vw, 40px);

  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-high);
  background: var(--surface);
  scroll-behavior: smooth;
}

/* ── Utility ─────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(16px, 5vw, 48px);
}

.section { padding-block: clamp(56px, 8vw, 96px); }
.section-alt { background: var(--surface-alt); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(32px, 5vw, 64px);
}
.section-header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -.02em;
}
.section-header p {
  font-size: 1.0625rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
  transition: background .18s, transform .12s, box-shadow .18s;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}
.btn-primary {
  background: #4A3880;
  color: #FFFFFF;
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover {
  background: #3B2A6E;
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(74,56,128,.5);
}
.btn-primary:active { transform: translateY(0); }

/* Nav "Get the app" button — white bg, dark purple text: maximum contrast on white header */
.site-nav .btn-primary {
  background: #FFFFFF;
  color: #3B2A6E;
  border: 2px solid #4A3880;
  box-shadow: none;
}
.site-nav .btn-primary:hover {
  background: #F0EAFF;
  color: #3B2A6E;
  transform: none;
  box-shadow: none;
}

.btn-sm  { padding: 10px 20px; font-size: .875rem; }
.btn-lg  { padding: 16px 32px; font-size: 1.0625rem; }

/* ── Header ──────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,251,254,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--outline);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-high);
}
.logo-icon { width: 32px; height: 32px; flex-shrink: 0; }
.logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 28px);
}
.site-nav a {
  text-decoration: none;
  color: var(--text-mid);
  font-size: .9375rem;
  font-weight: 500;
  transition: color .15s;
}
.site-nav a:hover { color: var(--primary); }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
  padding-block: clamp(56px, 9vw, 104px);
  background: linear-gradient(160deg, #F9F4FF 0%, #FDFBFF 60%, #EFF0FF 100%);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(103,80,164,.12);
  color: var(--primary);
  font-size: .8125rem;
  font-weight: 600;
  border-radius: 50px;
  padding: 5px 14px;
  margin-bottom: 20px;
  letter-spacing: .03em;
  text-transform: uppercase;
}
h1 {
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--gradient-a), var(--gradient-b));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.175rem);
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.hero-meta { font-size: .8125rem; color: var(--text-low); }

/* ── Phone mockup ────────────────────────────────────────────────── */
.hero-visual {
  display: flex;
  justify-content: center;
}
.phone-mockup {
  width: clamp(220px, 28vw, 320px);
  background: #1C1B1F;
  border-radius: 44px;
  padding: 14px;
  box-shadow:
    0 40px 80px rgba(0,0,0,.25),
    0 0 0 1px rgba(255,255,255,.08) inset;
}
.phone-screen {
  background: #141218;
  border-radius: 32px;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 400px;
}
.mock-bar {
  font-size: .75rem;
  font-weight: 600;
  color: #CAC4D0;
  margin-bottom: 4px;
}
.mock-card {
  background: #211F26;
  border-radius: 16px;
  padding: 14px;
}
.mock-card.due { border-left: 3px solid #B984E8; }
.mock-card.upcoming { border-left: 3px solid #49454F; }
.mock-label {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #B984E8;
  margin-bottom: 4px;
}
.mock-label.up { color: #79747E; }
.mock-title { font-size: .875rem; font-weight: 600; color: #E6E1E5; margin-bottom: 8px; }
.mock-time { font-size: .75rem; color: #79747E; }
.mock-actions { display: flex; gap: 6px; }
.mock-btn {
  font-size: .7rem;
  font-weight: 600;
  background: #6750A4;
  color: #fff;
  border-radius: 50px;
  padding: 5px 12px;
  cursor: default;
}
.mock-btn.ghost {
  background: transparent;
  border: 1px solid #49454F;
  color: #CAC4D0;
}
.mock-streak {
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  font-size: .75rem;
  color: #79747E;
}
.mock-rate { color: #B984E8; font-weight: 600; }

/* ── Proof strip ─────────────────────────────────────────────────── */
.proof-strip {
  background: var(--primary);
  color: var(--on-primary);
  padding-block: clamp(20px, 3vw, 32px);
}
.proof-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 0;
}
.proof-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding-inline: clamp(16px, 4vw, 40px);
}
.proof-emoji {
  font-size: 1.25rem;
  flex-shrink: 0;
}
.proof-item span {
  font-size: .9375rem;
  font-weight: 600;
  opacity: .95;
}
.proof-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,.25);
}

/* ── Features grid ───────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--surface-card);
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  padding: clamp(20px, 3vw, 28px);
  box-shadow: var(--shadow-card);
  transition: transform .15s, box-shadow .15s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(103,80,164,.15);
}
.feature-icon { font-size: 2rem; margin-bottom: 14px; }
.feature-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: .9375rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ── Steps ───────────────────────────────────────────────────────── */
.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 720px;
  margin-inline: auto;
  position: relative;
}
.steps-list::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 30px;
  bottom: 30px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), rgba(103,80,164,.1));
}
.step {
  display: flex;
  gap: 24px;
  padding: 0 0 36px;
  position: relative;
}
.step:last-child { padding-bottom: 0; }
.step-num {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(103,80,164,.35);
  z-index: 1;
}
.step-body { padding-top: 12px; }
.step-body h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.step-body p { font-size: .9375rem; color: var(--text-mid); line-height: 1.65; }

/* ── Completion types ────────────────────────────────────────────── */
.ct-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.ct-card {
  background: var(--surface-card);
  border-radius: var(--radius-md);
  padding: clamp(20px, 3vw, 28px);
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--outline);
}
.ct-icon { font-size: 2.25rem; margin-bottom: 12px; }
.ct-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.ct-card p { font-size: .9rem; color: var(--text-mid); line-height: 1.6; }

/* ── CTA section ─────────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, #3B2A6E 0%, #5E3BAD 50%, #7B5AC2 100%);
  color: var(--on-primary);
}
.cta-inner {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}
.cta-inner h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -.02em;
}
.cta-inner p {
  font-size: 1.0625rem;
  opacity: .88;
  line-height: 1.65;
  margin-bottom: 32px;
}
.cta-inner .btn-primary {
  background: #FFFFFF;
  color: #3B2A6E;
  border: none;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
}
.cta-inner .btn-primary:hover {
  background: #F0EAFF;
  color: #3B2A6E;
  transform: translateY(-2px);
}
.cta-meta { margin-top: 14px; font-size: .8125rem; opacity: .7; }

/* ── FAQ ─────────────────────────────────────────────────────────── */
.faq-inner { max-width: 760px; margin-inline: auto; }
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--outline);
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  font-family: inherit;
  font-size: 1.0rem;
  font-weight: 600;
  color: var(--text-high);
  text-align: left;
}
.faq-q:hover { color: var(--primary); }
.faq-q:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.faq-arrow {
  flex-shrink: 0;
  font-size: .9rem;
  color: var(--primary);
  transition: transform .2s;
}
.faq-a {
  padding: 0 0 20px;
  font-size: .9375rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ── Footer ──────────────────────────────────────────────────────── */
.site-footer {
  background: var(--text-high);
  color: #CAC4D0;
  padding-block: clamp(24px, 4vw, 40px);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}
.footer-copy { font-size: .85rem; }
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: .85rem;
  color: #CAC4D0;
  text-decoration: none;
  transition: color .15s;
}
.footer-links a:hover { color: #fff; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-visual { order: -1; }
  .phone-mockup { width: min(280px, 75vw); }
  .hero-cta { align-items: center; }
  .hero-sub { text-align: center; max-width: 100%; }
  h1 { text-align: center; }
  .badge { display: block; text-align: center; }
  .proof-divider { display: none; }
  .proof-inner { gap: 8px 32px; }
}

@media (max-width: 640px) {
  .site-nav a:not(.btn) { display: none; }
  .steps-list::before { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

/* ── Reduced motion ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  :root { scroll-behavior: auto; }
}

/* ── Install guide ──────────────────────────────────────────────────── */
/* The steps reuse .steps-list/.step from "How it works"; only the extras
   below are new, so the two sections stay visually identical. */

.cta-note {
  margin-top: 14px;
  font-size: .92rem;
  opacity: .82;
}
.cta-note a { color: inherit; text-decoration: underline; }

.install-steps { margin-top: 8px; }

.verify-box {
  max-width: 760px;
  margin: 40px auto 0;
  padding: 28px;
  background: var(--surface-card);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.verify-box h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  font-weight: 700;
}
.verify-box p { margin: 0 0 12px; color: var(--text-mid); font-size: .95rem; }

.verify-hash {
  margin: 0 0 12px;
  padding: 12px 14px;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  overflow-x: auto;
}
.verify-hash code { font-size: .88rem; color: var(--text-high); }

/* The digest is long and must never be silently clipped — a truncated hash
   that still looks like a hash is worse than no hash at all. */
.verify-value {
  margin: 0 0 10px;
  padding: 12px 14px;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  word-break: break-all;
}
.verify-value code { font-size: .82rem; line-height: 1.6; color: var(--text-high); }

.verify-meta { margin: 0 !important; font-size: .84rem; color: var(--text-low); }
.verify-meta code { font-size: .8rem; word-break: break-all; }

/* ── Studio ─────────────────────────────────────────────────────────── */

.studio-inner {
  display: flex;
  gap: clamp(24px, 5vw, 56px);
  align-items: flex-start;
  max-width: 900px;
}

.studio-mark {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--gradient-a), var(--gradient-b));
  color: var(--on-primary);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: .06em;
  box-shadow: var(--shadow-cta);
}

.studio-body h2 { margin: 0 0 4px; }

.studio-tagline {
  margin: 0 0 18px !important;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
}

.studio-body p { margin: 0 0 14px; color: var(--text-mid); line-height: 1.7; }
.studio-contact a { color: var(--primary); font-weight: 600; }

@media (max-width: 640px) {
  .studio-inner { flex-direction: column; align-items: center; text-align: center; }
  .studio-mark { width: 76px; height: 76px; font-size: 1.25rem; }
}
