/* Compiss marketing site — shared styles */

:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --navy: #0f172a;
  --slate: #475569;
  --slate-light: #64748b;
  --green: #16a34a;
  --green-soft: #dcfce7;
  --amber: #f59e0b;
  --card: #ffffff;
  --card-border: rgba(15, 23, 42, 0.06);
  --shadow: 0 10px 30px -12px rgba(37, 99, 235, 0.25);
  --shadow-sm: 0 4px 14px -8px rgba(15, 23, 42, 0.25);
  --bg-top: #dbeafe;
  --bg-bottom: #d1fae5;
  --text: var(--navy);
  --text-soft: var(--slate);
  --radius: 22px;
  --radius-sm: 14px;
  --maxw: 1080px;
}

:root[data-theme="dark"] {
  --navy: #f1f5f9;
  --slate: #cbd5e1;
  --slate-light: #94a3b8;
  --card: #1e293b;
  --card-border: rgba(148, 163, 184, 0.12);
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  --shadow-sm: 0 4px 14px -8px rgba(0, 0, 0, 0.5);
  --bg-top: #0b1220;
  --bg-bottom: #0f1f1a;
  --text: var(--navy);
  --text-soft: var(--slate);
  --card-border: rgba(148, 163, 184, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { color: var(--navy); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.4em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--text-soft); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(180%) blur(12px);
  background: color-mix(in srgb, var(--bg-top) 70%, transparent);
  border-bottom: 1px solid var(--card-border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy);
}
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand small {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--slate-light);
  letter-spacing: 0.01em;
  margin-top: -2px;
}
.nav { display: flex; align-items: center; gap: 8px; }
.nav a {
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 10px;
}
.nav a:hover { color: var(--navy); background: var(--card); text-decoration: none; }

.theme-toggle {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--card-border);
  background: var(--card);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.05rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease;
}
.theme-toggle:hover { transform: translateY(-1px); }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: inline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  padding: 14px 22px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--blue-dark); text-decoration: none; }

.appstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--navy);
  color: #fff;
  padding: 12px 22px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}
:root[data-theme="dark"] .appstore { background: #000; border: 1px solid var(--card-border); }
.appstore:hover { transform: translateY(-2px); text-decoration: none; }
.appstore svg { width: 26px; height: 26px; flex: none; }
.appstore .as-text { text-align: left; line-height: 1.1; }
.appstore .as-text small { display: block; font-size: 0.66rem; opacity: 0.85; font-weight: 500; }
.appstore .as-text strong { font-size: 1.15rem; font-weight: 700; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 24px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero-copy .eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  background: color-mix(in srgb, var(--blue) 12%, transparent);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero-copy p.lead { font-size: 1.2rem; max-width: 32ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.hero-cta .sub { font-size: 0.85rem; color: var(--slate-light); }
.hero-art { position: relative; display: grid; place-items: center; }
.hero-art img.mascot {
  width: min(320px, 80%);
  filter: drop-shadow(0 24px 30px rgba(37, 99, 235, 0.28));
  animation: float 5s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) { .hero-art img.mascot { animation: none; } }

/* ---------- Sections ---------- */
section { padding: 40px 0; }
.section-head { text-align: center; max-width: 40ch; margin: 0 auto 36px; }
.section-head p { font-size: 1.05rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.card .ico {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 14px;
  font-size: 1.5rem;
  margin-bottom: 14px;
  background: color-mix(in srgb, var(--blue) 12%, transparent);
}
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; font-size: 0.95rem; }

/* ---------- Showcase ---------- */
.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  max-width: 880px;
  margin: 0 auto;
}
.shots figure { margin: 0; text-align: center; }
.shots img {
  width: 100%;
  max-width: 260px;
  border-radius: 30px;
  box-shadow: 0 24px 50px -20px rgba(15, 23, 42, 0.45);
  border: 1px solid var(--card-border);
}
.shots figcaption { margin-top: 14px; font-weight: 600; color: var(--text-soft); font-size: 0.95rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  margin-bottom: 14px;
}
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; font-size: 0.95rem; }

/* ---------- CTA banner ---------- */
.cta-banner { text-align: center; }
.cta-inner {
  background: linear-gradient(135deg, var(--blue), #3b82f6);
  color: #fff;
  border-radius: 28px;
  padding: 48px 28px;
  box-shadow: var(--shadow);
}
.cta-inner h2 { color: #fff; }
.cta-inner p { color: rgba(255,255,255,0.9); max-width: 44ch; margin: 0 auto 24px; }

/* ---------- Article (help / privacy) ---------- */
.article { padding-top: 48px; }
.article .wrap { max-width: 760px; }
.article-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 48px);
  box-shadow: var(--shadow-sm);
}
.article-card h2 { margin-top: 1.6em; }
.article-card h2:first-of-type { margin-top: 0; }
.article-card ul { color: var(--text-soft); padding-left: 1.2em; }
.article-card li { margin-bottom: 0.5em; }
.lead-meta { color: var(--slate-light); font-size: 0.9rem; }

.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 4px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 700;
  padding: 5px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--blue) 12%, transparent);
  color: var(--blue);
}
.pill.green { background: var(--green-soft); color: var(--green); }
.pill.amber { background: #fef3c7; color: #b45309; }

.faq { border-top: 1px solid var(--card-border); padding: 18px 0; }
.faq:first-of-type { border-top: none; padding-top: 0; }
.faq h3 { margin-bottom: 4px; }
.faq p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--card-border);
  padding: 36px 0;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
}
.site-footer .f-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); }
.site-footer .f-brand img { width: 28px; height: 28px; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer nav a { color: var(--text-soft); font-weight: 600; font-size: 0.92rem; }
.site-footer .credit { width: 100%; color: var(--slate-light); font-size: 0.82rem; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .eyebrow { margin-inline: auto; }
  .hero-copy p.lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-art { order: -1; }
  .hero-art img.mascot { width: min(240px, 60%); }
  .shots { grid-template-columns: 1fr; max-width: 320px; }
  .steps { grid-template-columns: 1fr; }
  .nav .nav-link { display: none; }
}
