/* ============================================================
   KAREYO MARKETING SITE — styles.css
   Mobile-first. System fonts. No external dependencies.
   ============================================================ */

/* ── Design tokens ─────────────────────────────────────────── */
:root {
  /* Light-only design — opts out of browsers' forced dark-mode heuristics,
     which otherwise inconsistently invert colors and can make some text
     illegible since this site has no actual dark theme. */
  color-scheme: light;

  --blue:        #2563eb;
  --blue-dark:   #1d4ed8;
  --blue-light:  #eff6ff;
  --green:       #059669;
  --green-light: #ecfdf5;
  --violet:      #7c3aed;
  --violet-light:#f5f3ff;
  --orange:      #d97706;
  --orange-light:#fffbeb;
  --teal:        #0891b2;
  --teal-light:  #ecfeff;
  --red:         #dc2626;
  --red-light:   #fef2f2;

  --text-dark:   #111827;
  --text-mid:    #374151;
  --text-muted:  #6b7280;
  --text-faint:  #9ca3af;
  --border:      #e5e7eb;
  --bg-soft:     #f9fafb;
  --bg-white:    #ffffff;

  --radius-sm:   6px;
  --radius:      12px;
  --radius-lg:   20px;

  --shadow-sm:   0 1px 3px rgba(0,0,0,.08);
  --shadow:      0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:   0 12px 40px rgba(0,0,0,.12);

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --nav-h: 64px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-mid);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Container ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* ── Scroll reveal ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  padding: .6rem 1.25rem;
  border-radius: var(--radius-sm);
  transition: background .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 4px 14px rgba(37,99,235,.35); }

.btn-outline {
  display: inline-block;
  color: var(--text-dark);
  border: 1.5px solid var(--border);
  font-size: .9rem;
  font-weight: 600;
  padding: .6rem 1.25rem;
  border-radius: var(--radius-sm);
  transition: border-color .15s, background .15s;
  white-space: nowrap;
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }

.btn-ghost {
  display: inline-block;
  color: var(--text-mid);
  font-size: .9rem;
  font-weight: 500;
  padding: .6rem .75rem;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.btn-ghost:hover { color: var(--blue); background: var(--blue-light); }

.btn-lg { font-size: 1rem; padding: .8rem 1.75rem; border-radius: var(--radius-sm); }

/* ── NAV ───────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.site-nav.nav-solid {
  background: rgba(255,255,255,.97);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--nav-h);
  padding-inline: 20px;
  max-width: 1100px;
  margin-inline: auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  flex-shrink: 0;
}
.nav-logo-icon { width: 28px; height: 28px; }
.nav-links {
  display: none;
  gap: 1.5rem;
  margin-left: auto;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: color .15s;
}
.nav-links a:hover { color: var(--blue); }
.nav-actions { display: none; align-items: center; gap: .5rem; margin-left: auto; }
.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: .2s;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 16px 20px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-white);
}
.mobile-menu a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
  padding: .5rem 0;
}
.mobile-login { color: var(--text-mid) !important; }
.mobile-cta { text-align: center; margin-top: .5rem; padding: .75rem !important; }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-actions { display: flex; margin-left: 0; }
  .nav-hamburger { display: none; }
}

/* ── HERO ──────────────────────────────────────────────────── */
.hero {
  padding: 48px 0 40px;
  background: linear-gradient(160deg, var(--blue-light) 0%, var(--bg-white) 60%);
  overflow: hidden;
}
.hero .container {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
  max-width: 1280px;
}
.hero-content { max-width: 600px; text-align: center; flex-shrink: 0; }
.hero-badge {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  border: 1px solid #bfdbfe;
  padding: .3rem .85rem;
  border-radius: 99px;
  margin-bottom: 1.25rem;
}
.hero-heading {
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-dark);
  letter-spacing: -.02em;
  margin-bottom: 1.25rem;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-sub strong { color: var(--text-dark); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  margin-bottom: 1rem;
}
.hero-fine { font-size: .8rem; color: var(--text-faint); }

.hero-visual { width: 100%; max-width: 560px; flex: 1; }

@media (min-width: 992px) {
  .hero-visual { max-width: 680px; }
}

/* ── TRUST BAR ─────────────────────────────────────────────── */
.trust-bar {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.25rem;
  justify-content: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 500;
  color: var(--text-mid);
  white-space: nowrap;
}
.trust-item svg { width: 15px; height: 15px; color: var(--blue); flex-shrink: 0; }

@media (min-width: 1100px) {
  .trust-bar-inner { flex-wrap: nowrap; gap: 1.75rem; }
}

/* ── PROBLEM ───────────────────────────────────────────────── */
.problem { padding: 52px 0; }
.problem-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: flex-start;
}
.problem-text h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 1.25rem;
}
.problem-text p { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.7; }
.problem-highlight {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue) !important;
  margin-top: .5rem;
}
.problem-vs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
}
.vs-col {
  padding: 24px;
  border-radius: var(--radius);
}
.vs-bad { background: #fef2f2; border: 1px solid #fecaca; }
.vs-good { background: var(--green-light); border: 1px solid #a7f3d0; }
.vs-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 1rem;
}
.vs-bad .vs-label { color: var(--red); }
.vs-good .vs-label { color: var(--green); }
.vs-col li {
  font-size: .875rem;
  padding: .35rem 0;
  color: var(--text-mid);
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.vs-col li:last-child { border-bottom: none; }

/* ── SECTION HEADER ────────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2rem;
}
.section-header h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: .75rem;
}
.section-header p { color: var(--text-muted); font-size: 1.05rem; }

/* ── FEATURES ──────────────────────────────────────────────── */
.features { padding: 52px 0; background: var(--bg-soft); }
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.feature-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow .2s, transform .2s;
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-icon--blue   { background: var(--blue-light);   color: var(--blue); }
.feature-icon--green  { background: var(--green-light);  color: var(--green); }
.feature-icon--violet { background: var(--violet-light); color: var(--violet); }
.feature-icon--orange { background: var(--orange-light); color: var(--orange); }
.feature-icon--teal   { background: var(--teal-light);   color: var(--teal); }
.feature-icon--red    { background: var(--red-light);    color: var(--red); }
.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: .4rem;
}
.feature-card p { font-size: .9rem; color: var(--text-muted); line-height: 1.6; }

@media (min-width: 600px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .features-grid { grid-template-columns: 1fr 1fr 1fr 1fr; } }

/* ── SPOTLIGHT ─────────────────────────────────────────────── */
.spotlight { padding: 52px 0; }
.spotlight--ai { background: var(--bg-white); }
.spotlight--pwa { background: var(--bg-soft); }
.spotlight-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
}
.spotlight-inner--reverse { flex-direction: column; }
.spotlight-badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--violet);
  background: var(--violet-light);
  border: 1px solid #ddd6fe;
  padding: .25rem .75rem;
  border-radius: 99px;
  margin-bottom: 1rem;
}
.spotlight-badge--green { color: var(--green); background: var(--green-light); border-color: #a7f3d0; }
.spotlight-text { max-width: 520px; }
.spotlight-text h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 1rem;
}
.spotlight-text p { color: var(--text-muted); line-height: 1.7; margin-bottom: 1.5rem; }
.spotlight-list { margin-bottom: 2rem; }
.spotlight-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .4rem 0;
  font-size: .95rem;
  color: var(--text-mid);
}
.spotlight-list li svg { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; margin-top: 2px; }
.spotlight-visual { width: 100%; max-width: 480px; }
.spotlight-visual--pair { max-width: 560px; }

.screenshot-pair { display: flex; gap: 16px; }
.screenshot-pair .screenshot-frame { flex: 1; min-width: 0; }

/* ── HOW IT WORKS ──────────────────────────────────────────── */
.how-it-works { padding: 52px 0; }
.steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
.step-arrow { font-size: 1.5rem; color: var(--text-faint); transform: rotate(90deg); }
.step {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  max-width: 300px;
  width: 100%;
}
.step-number {
  width: 44px;
  height: 44px;
  background: var(--blue);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.step h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-dark); margin-bottom: .4rem; }
.step p { font-size: .9rem; color: var(--text-muted); line-height: 1.6; }

/* ── SCREENSHOTS ───────────────────────────────────────────── */
.screenshots-section { padding: 52px 0; background: var(--bg-soft); }
.screenshots-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.screenshot-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  margin-top: .75rem;
}

/* ── SCREENSHOT FRAMES / PLACEHOLDERS ─────────────────────── */
.screenshot-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg-white);
  border: 1px solid var(--border);
}
.screenshot-frame img {
  width: 100%;
  display: block;
  aspect-ratio: 16/10;
  object-fit: cover;
  object-position: top left;
}
.screenshot-placeholder {
  aspect-ratio: 16/10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  color: var(--text-muted);
}
.screenshot-hero .screenshot-placeholder,
.screenshot-hero img { aspect-ratio: 4/3; }
.screenshot-tall .screenshot-placeholder,
.screenshot-tall img { aspect-ratio: 3/4; }
.screenshot-phone {
  width: auto;
  max-width: 270px;
  margin-inline: auto;
}
.screenshot-phone .screenshot-placeholder,
.screenshot-phone img { aspect-ratio: 9/16; max-height: 480px; width: 100%; }
.screenshot-placeholder span { font-size: .95rem; font-weight: 600; }
.screenshot-placeholder small { font-size: .75rem; color: var(--text-faint); font-family: monospace; }

/* ── VIDEO ─────────────────────────────────────────────────── */
.video-section { padding: 52px 0; }
.video-wrapper {
  max-width: 760px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.video-wrapper iframe { width: 100%; aspect-ratio: 16/9; border: none; display: block; }
.video-placeholder {
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: rgba(255,255,255,.7);
}
.video-placeholder svg { width: 56px; height: 56px; color: rgba(255,255,255,.4); }
.video-placeholder span { font-size: 1rem; font-weight: 600; }
.video-placeholder small { font-size: .8rem; font-family: monospace; }

/* ── PRICING ───────────────────────────────────────────────── */
.pricing { padding: 52px 0; background: var(--bg-soft); }
.pricing-card {
  max-width: 440px;
  margin: 0 auto;
  background: var(--bg-white);
  border: 2px solid var(--blue);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.pricing-top {
  padding: 40px 40px 32px;
  text-align: center;
  background: linear-gradient(160deg, var(--blue-light) 0%, var(--bg-white) 100%);
}
.pricing-name { font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: .75rem; }
.pricing-amount { display: flex; align-items: baseline; justify-content: center; gap: 2px; margin-bottom: .5rem; }
.pricing-dollar { font-size: 1.5rem; font-weight: 700; color: var(--text-dark); align-self: flex-start; margin-top: 8px; }
.pricing-number { font-size: 4rem; font-weight: 800; line-height: 1; color: var(--text-dark); letter-spacing: -.03em; }
.pricing-period { font-size: .9rem; color: var(--text-muted); margin-left: 4px; }
.pricing-tagline { color: var(--text-muted); font-size: .9rem; margin-bottom: 1.5rem; }
.pricing-cta { width: 100%; text-align: center; padding: .875rem; font-size: 1rem; }
.pricing-fine { font-size: .8rem; color: var(--text-faint); margin-top: .75rem; }
.pricing-divider { height: 1px; background: var(--border); }
.pricing-features {
  padding: 28px 40px 36px;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .9rem;
  color: var(--text-mid);
}
.pricing-features li svg { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; }

/* ── FAQ ───────────────────────────────────────────────────── */
.faq { padding: 52px 0; }
.faq-inner { max-width: 700px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  text-align: left;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-dark);
  background: var(--bg-white);
  transition: background .15s;
}
.faq-btn:hover { background: var(--bg-soft); }
.faq-chevron { width: 18px; height: 18px; flex-shrink: 0; color: var(--text-muted); transition: transform .25s; }
.faq-btn[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding: 0 1.25rem 1.1rem;
  background: var(--bg-white);
}
.faq-answer.open { display: block; }
.faq-answer p { font-size: .9rem; color: var(--text-muted); line-height: 1.7; }

/* ── FINAL CTA ─────────────────────────────────────────────── */
.final-cta {
  padding: 52px 0;
  background: linear-gradient(160deg, #1e3a8a 0%, var(--blue) 100%);
  text-align: center;
}
.final-cta-inner h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}
.final-cta-inner p { color: rgba(255,255,255,.75); margin-bottom: 2rem; font-size: 1.05rem; }
.final-cta .btn-primary {
  background: #fff;
  color: var(--blue);
  font-size: 1rem;
}
.final-cta .btn-primary:hover { background: #eff6ff; box-shadow: 0 4px 20px rgba(0,0,0,.2); }
.final-cta-fine { margin-top: 1.25rem; font-size: .85rem; color: rgba(255,255,255,.6); }
.final-cta-fine a { color: rgba(255,255,255,.85); text-decoration: underline; }

/* ── FOOTER ────────────────────────────────────────────────── */
.site-footer {
  background: var(--text-dark);
  padding: 48px 0 32px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.footer-logo { color: #fff; }
.footer-logo .nav-logo-icon rect { fill: rgba(255,255,255,.15); }
.footer-tagline { font-size: .875rem; color: rgba(255,255,255,.5); margin-top: .5rem; }
.footer-copy { font-size: .8rem; color: rgba(255,255,255,.3); margin-top: .4rem; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer-col { display: flex; flex-direction: column; gap: .5rem; }
.footer-col-heading {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: .25rem;
}
.footer-col a { font-size: .875rem; color: rgba(255,255,255,.6); transition: color .15s; }
.footer-col a:hover { color: #fff; }

/* ── RESPONSIVE: tablet+ ───────────────────────────────────── */
@media (min-width: 768px) {
  .hero .container { flex-direction: row; gap: 48px; text-align: left; }
  .hero-content { text-align: left; }
  .hero-actions { justify-content: flex-start; }
  .hero-fine { text-align: left; }

  .problem-inner { flex-direction: row; gap: 60px; }
  .problem-text { max-width: 420px; flex-shrink: 0; }
  .problem-vs { flex: 1; }

  .spotlight-inner { flex-direction: row; }
  .spotlight-inner--reverse { flex-direction: row-reverse; }

  .steps { flex-direction: row; align-items: flex-start; }
  .step-arrow { transform: none; margin-top: 48px; }

  .screenshots-grid { grid-template-columns: 1fr 1fr 1fr; }

  .footer-inner { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}
