/* Umpy — base styles. Mobile-first. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter.woff2') format('woff2-variations'),
       url('/assets/fonts/inter.woff2') format('woff2');
}

:root {
  --purple: #7B61C8;
  --purple-light: #A98AEF;
  --purple-deep: #5D44A6;     /* darker variant: AA contrast on light bg for small text */
  --purple-bg: #F6F1FF;
  --ink: #222222;
  --ink-soft: #4a4a55;
  --line: #e7e2f0;
  --white: #ffffff;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 4px 16px rgba(74, 45, 130, 0.08);
  --shadow-lg: 0 12px 36px rgba(74, 45, 130, 0.12);
  --maxw: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--purple-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
/* In-paragraph / in-list links must be distinguishable without colour alone (WCAG 1.4.1). */
.article p a, .article li a,
section p a, section li a,
.checkbox-row a, .answer p a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

p { margin: 0 0 1em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--white); padding: 12px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center;
  text-decoration: none;
  line-height: 0;
}
.brand-logo {
  height: 32px; width: auto;
  display: block;
}
.nav-links { display: none; gap: 26px; align-items: center; }
.nav-links a { color: var(--ink); font-weight: 500; }
.nav-links a:hover { color: var(--purple); text-decoration: none; }
.nav-cta { display: none; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 1px solid var(--line);
  background: var(--white); border-radius: 10px; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; display: block; width: 18px; height: 2px;
  background: var(--ink); position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

.mobile-menu {
  display: none; padding: 12px 20px 24px;
  border-top: 1px solid var(--line); background: var(--white);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: 12px 0; color: var(--ink);
  font-weight: 500; border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-of-type { border-bottom: 0; }
.mobile-menu .btn { margin-top: 14px; }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 20px; border-radius: 999px;
  font-weight: 600; font-size: 0.97rem; line-height: 1;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary { background: var(--purple); color: var(--white); }
.btn-primary:hover { background: #6a51b3; text-decoration: none; transform: translateY(-1px); }
.btn-secondary { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--purple); color: var(--purple); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--purple); }
.btn-ghost:hover { text-decoration: underline; }

/* App store badges */
.app-badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.app-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--white); padding: 10px 18px;
  border-radius: 12px; font-weight: 500; min-height: 52px;
}
.app-badge:hover { background: #000; text-decoration: none; }
.app-badge .small { font-size: 0.7rem; opacity: 0.85; line-height: 1; display: block; margin-bottom: 3px; }
.app-badge .big { font-size: 1.05rem; font-weight: 700; line-height: 1; }
.app-badge svg { width: 26px; height: 26px; flex: 0 0 26px; }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--purple-bg) 0%, var(--white) 100%);
  padding: 56px 0 48px;
}
.hero-grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
.hero h1 { margin-bottom: 16px; }
.hero .lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 560px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 24px;
  border: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.app-screenshot {
  display: block;
  max-width: 280px;
  margin: 0 auto;
  border-radius: 32px;
  overflow: hidden;
  background: var(--purple-bg);
  box-shadow: 0 20px 50px rgba(74, 45, 130, 0.18);
  border: 1px solid var(--line);
}
.app-screenshot img {
  width: 100%; height: auto;
  display: block;
}

@media (min-width: 860px) {
  .hero { padding: 88px 0 72px; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 56px; }
}

/* Proof strip */
.proof {
  background: var(--ink); color: var(--white); padding: 28px 0;
}
.proof-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(2, 1fr);
}
.proof-item .num {
  font-size: 1.5rem; font-weight: 800; color: var(--purple-light);
  display: block;
}
.proof-item .label { font-size: 0.92rem; opacity: 0.9; }
@media (min-width: 720px) {
  .proof-grid { grid-template-columns: repeat(4, 1fr); }
  .proof-item .num { font-size: 1.8rem; }
}

/* Sections */
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head .eyebrow {
  display: inline-block; font-weight: 600; font-size: 0.85rem;
  color: var(--purple-deep); text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

.bg-soft { background: var(--purple-bg); }
.bg-ink { background: var(--ink); color: var(--white); }
.bg-ink h2, .bg-ink h3 { color: var(--white); }
.bg-ink p { color: rgba(255,255,255,0.8); }

/* Cards grid */
.cards { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards-4 { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--purple-light); }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--purple-bg); color: var(--purple-deep);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px; font-size: 22px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); margin-bottom: 16px; flex: 1; }
.card .read-more { font-weight: 600; }

/* Steps */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 20px; grid-template-columns: 1fr;
}
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  row-gap: 10px;
  align-items: center;
}
.step .num {
  grid-column: 1; grid-row: 1;
  display: inline-flex; width: 36px; height: 36px; border-radius: 50%;
  background: var(--purple); color: var(--white);
  align-items: center; justify-content: center;
  font-weight: 700; margin: 0;
}
.step h3, .step h4 {
  grid-column: 2; grid-row: 1;
  margin: 0;
  align-self: center;
}
.step p {
  grid-column: 1 / -1; grid-row: 2;
  margin: 0;
}

/* Two-column section */
.split { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; } }
.split h3 { color: var(--purple-deep); }

/* Feature list */
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li {
  padding: 14px 0; border-bottom: 1px solid var(--line);
  display: flex; gap: 12px; align-items: flex-start;
}
.feature-list li:last-child { border-bottom: 0; }
.feature-list .check {
  flex: 0 0 22px; width: 22px; height: 22px; margin-top: 2px;
  background: var(--purple-bg); color: var(--purple); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  color: var(--white); padding: 64px 0; text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.92); max-width: 600px; margin: 0 auto 24px; font-size: 1.05rem; }
.cta-band .app-badges { justify-content: center; }
.cta-band .app-badge { background: var(--ink); }

/* FAQ accordion */
.faq-group { margin-bottom: 36px; }
.faq-group h3 { color: var(--purple-deep); margin-bottom: 16px; }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 10px; background: var(--white);
}
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 22px;
  font-weight: 600; display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; color: var(--purple); font-size: 1.4rem; font-weight: 400;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item .answer { padding: 0 22px 22px; color: var(--ink-soft); }

/* Blog */
.blog-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.blog-card .thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--purple-light), var(--purple));
}
.blog-card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.blog-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.blog-card .meta { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 12px; }
.blog-card p { color: var(--ink-soft); flex: 1; }
.blog-card a.read-more { font-weight: 600; margin-top: 8px; }

/* Article */
.article {
  max-width: 760px; margin: 0 auto; padding: 0 20px;
}
.article .meta {
  color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 16px;
}
.article .lede {
  font-size: 1.15rem; color: var(--ink-soft); margin-bottom: 28px;
}
.article h2 { margin-top: 36px; }
.article p, .article ul, .article ol { font-size: 1.02rem; line-height: 1.75; }

/* Forms */
.form { display: grid; gap: 18px; max-width: 640px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field input, .field select, .field textarea {
  font: inherit; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--white); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--purple-light); outline-offset: 1px;
  border-color: var(--purple);
}
.field textarea { min-height: 140px; resize: vertical; }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: 0.93rem; color: var(--ink-soft); }
.checkbox-row input { margin-top: 4px; }

.form-banner { padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 0.95rem; line-height: 1.5; }
.form-banner--success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.form-banner--error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

/* QR download block */
.qr-block {
  display: inline-flex; align-items: center; gap: 16px;
  padding: 16px; border: 1px solid var(--purple-light); border-radius: var(--radius);
  background: var(--purple-bg); color: var(--ink);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.qr-block:hover { transform: translateY(-1px); box-shadow: var(--shadow); text-decoration: none; }
.qr-block strong { color: var(--ink); }
.qr-block .qr {
  width: 96px; height: 96px;
  background: var(--white);
  border-radius: 8px;
  padding: 6px;
  flex: 0 0 96px;
}

/* Footer */
.site-footer {
  background: #1a1424; color: rgba(255,255,255,0.78);
  padding: 56px 0 24px; margin-top: 32px;
}
.footer-grid {
  display: grid; gap: 36px; grid-template-columns: 1fr;
  margin-bottom: 36px;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer h3 { color: var(--white); font-size: 0.95rem; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(255,255,255,0.78); }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer .brand { color: var(--white); margin-bottom: 12px; }
.site-footer .tagline { color: rgba(255,255,255,0.6); font-size: 0.95rem; max-width: 280px; }
.site-footer .legal {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  font-size: 0.85rem; color: rgba(255,255,255,0.55);
}
.site-footer .legal a { color: rgba(255,255,255,0.55); }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.lead { font-size: 1.1rem; color: var(--ink-soft); }

/* 404 */
.page-404 {
  text-align: center; padding: 96px 20px;
}
.page-404 .big {
  font-size: clamp(5rem, 18vw, 10rem); color: var(--purple);
  font-weight: 800; line-height: 1; margin-bottom: 16px;
}
