/* ==========================================================================
   Snappia — site styles
   Plain CSS, no build step. Colors & type taken from the original Framer site.
   ========================================================================== */

:root {
  --navy: #153159;
  --navy-deep: #0f2647;
  --orange: #f46231;
  --orange-soft: #fff1ed;
  --yellow: #fac642;
  --gold: #bf8600;
  --cream: #fff9eb;
  --bg: #f8f8f8;
  --surface: #ffffff;
  --text: #242424;
  --muted: #575757;
  --border: #ebebeb;

  --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.05);
  --container: 1120px;
  --container-wide: 1296px;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--wide { max-width: var(--container-wide); }
.container--narrow { max-width: 760px; }

/* ---------- Header / footer ---------- */

.site-header,
.site-footer {
  background: var(--surface);
}
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--border); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
}
.nav__logo img { height: 44px; width: auto; }
.nav__links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-family: var(--font-body);
  font-size: 15px;
  text-decoration: none;
  color: var(--text);
}
.nav__links a:hover,
.nav__links a[aria-current="page"] { color: var(--orange); }

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  margin-left: auto;
  cursor: pointer;
  color: var(--text);
}
.nav__toggle svg { width: 24px; height: 24px; }

.site-footer { margin-top: 0; }
.site-footer .nav { height: 84px; }
.footer__copy {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px 24px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1;
  padding: 12px 20px;
  border-radius: 8px;
  border: 2px solid var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--dark { background: var(--text); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--outline { background: transparent; color: var(--text); }
.btn--outline:hover { background: var(--text); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(180deg, var(--cream) 0%, var(--bg) 100%);
  padding: 96px 0 72px;
  text-align: center;
}
.hero h1 {
  color: var(--navy);
  font-weight: 600;
  font-size: clamp(36px, 5vw, 60px);
  max-width: 820px;
  margin: 0 auto;
}
.hero__tagline {
  font-family: var(--font-head);
  font-size: clamp(18px, 2vw, 22px);
  color: var(--text);
  margin-top: 16px;
}
.hero__lead {
  max-width: 760px;
  margin: 28px auto 0;
  font-size: 17px;
  color: var(--text);
}
.hero__lead + .hero__lead { margin-top: 16px; }
.hero .btn-row { margin-top: 40px; }

/* Boxed hero used on the "What can it do" / "How is it different" pages */
.hero--boxed { background: none; padding: 32px 0 48px; }
.hero--boxed .hero__box {
  background: linear-gradient(180deg, var(--cream) 0%, var(--bg) 100%);
  border-radius: var(--radius-lg);
  padding: 72px 24px 24px;
}
.hero--boxed .hero__lead { color: var(--muted); }

.eyebrow {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

/* ---------- Sections ---------- */

.section { padding: 80px 0; }
.section--tight { padding: 48px 0; }
.section__head { text-align: center; margin-bottom: 48px; }
.section__head h2 {
  color: var(--navy);
  font-weight: 600;
  font-size: clamp(30px, 4.2vw, 52px);
  max-width: 900px;
  margin: 0 auto;
}
.section__head h2.h2--md { font-size: clamp(26px, 3.2vw, 38px); }
.section__head p {
  max-width: 760px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 16px;
}
.section__head p strong { color: var(--text); }
.subhead {
  text-align: center;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 22px;
  margin: 56px 0 28px;
  color: var(--text);
}

.pill {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
  background: var(--cream);
  border: 1px solid #f6d58a;
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 20px;
}

/* ---------- Grids & cards ---------- */

.grid { display: grid; gap: 12px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); gap: 16px; }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: var(--shadow);
}
.card h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}
.card p,
.card li { font-size: 15px; color: var(--muted); }
.card h3 + p,
.card h3 + ul { margin-top: 10px; }
.card p + ul,
.card ul + p { margin-top: 10px; }
.card ul { margin: 0; padding-left: 18px; }
.card li + li { margin-top: 2px; }
.card .card__lead { color: var(--text); font-size: 15px; }

.card--simple { padding: 24px 24px 40px; }
.card--simple h3 { font-size: 18px; font-weight: 500; }

.card--navy-title h3 { color: var(--navy); font-size: 22px; }
.card .what { color: var(--navy); font-weight: 600; margin-top: 12px; }

/* Icon tiles */
.icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
}
.icon svg { width: 22px; height: 22px; }
.icon--soft { background: var(--orange-soft); color: var(--orange); }
.icon--solid { background: var(--orange); color: #fff; }
.icon--bare { width: auto; height: auto; justify-content: start; margin-bottom: 16px; color: var(--orange); }
.icon--bare svg { width: 24px; height: 24px; }

/* Challenge cards */
.challenges { max-width: 1104px; margin: 0 auto; }
.challenges .row { display: grid; gap: 16px; }
.challenges .row + .row { margin-top: 16px; }
.challenges .row--3 { grid-template-columns: repeat(3, 1fr); }
.challenges .row--2 { grid-template-columns: repeat(2, 1fr); }
.challenges .card { padding: 20px 20px 28px; }
.challenges .card h3 { font-size: 18px; font-weight: 500; }
.challenges .card .icon { margin-bottom: 36px; }
.challenges--compact .card .icon { margin-bottom: 12px; }
.challenges--compact .card h3 { font-weight: 600; font-size: 17px; }
.challenges--compact .card h3 + p { margin-top: 4px; color: var(--text); }

/* Solution layout (home) */
.solution { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; }
.solution__stack { display: grid; gap: 12px; }
.solution .card { padding: 40px 30px; }

/* Feature cards (tech / API pages) */
.feature .icon { margin-bottom: 32px; }
.feature h3 { font-size: 17px; }

/* ---------- News & Blog Feed ---------- */
.feed {
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: 900px;
  margin: 0 auto;
}

.feed-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feed-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.feed-card__media {
  position: relative;
  width: 100%;
  background: #0b1a2e;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.feed-card__content {
  padding: 36px 40px;
}

.feed-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-family: var(--font-ui);
  font-size: 13.5px;
  color: var(--muted);
}

.feed-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.feed-badge--video {
  background: #fee2e2;
  color: #dc2626;
}
.feed-badge--press {
  background: var(--orange-soft);
  color: var(--orange);
}

.feed-source {
  font-weight: 600;
  color: var(--navy);
}

.feed-dot {
  color: #c4c4c4;
}

.feed-card__title {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 16px;
}
.feed-card__title a {
  text-decoration: none;
  color: inherit;
  transition: color .15s ease;
}
.feed-card__title a:hover {
  color: var(--orange);
}

.feed-card__lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 20px;
}

.feed-card__highlights {
  background: var(--bg);
  border-left: 3px solid var(--orange);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 20px 0 24px;
}
.feed-card__highlights p {
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.55;
}
.feed-card__highlights p strong {
  color: var(--navy);
}

.feed-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

.feed-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.feed-tag {
  font-family: var(--font-ui);
  font-size: 12.5px;
  color: var(--muted);
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.feed-card__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #0f2647 0%, #153159 100%);
  color: #fff;
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.article-banner__info {
  display: flex;
  align-items: center;
  gap: 16px;
}
.article-banner__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #fac642;
  flex-shrink: 0;
}
.article-banner__text h4 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin: 0;
}
.article-banner__text span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}
.feature p { color: var(--text); font-size: 14.5px; }
.feature h3 + p { margin-top: 6px; }

/* "Why different" gradient cards */
.why { display: grid; gap: 12px; max-width: 960px; margin: 0 auto; grid-template-columns: repeat(3, 1fr); }
.why--4 { max-width: 1120px; grid-template-columns: repeat(4, 1fr); }
.why-card {
  border-radius: var(--radius-lg);
  padding: 44px 40px 48px 52px;
  box-shadow: var(--shadow);
}
.why--4 .why-card { padding: 28px 24px 36px; }
.why-card h3 { font-size: 19px; font-weight: 600; line-height: 1.35; }
.why-card .lead { font-weight: 700; margin-top: 16px; font-size: 15.5px; }
.why-card ul { margin: 20px 0 0; padding-left: 18px; }
.why-card li,
.why-card p { font-size: 15.5px; }
.why-card .lead + ul { margin-top: 20px; }
.why-card ul + p { margin-top: 24px; }
.why--4 .why-card p { margin-top: 16px; font-size: 14.5px; }
.why-card--navy {
  color: #fff;
  background:
    linear-gradient(225deg, rgba(212, 85, 45, .95) 0%, rgba(150, 70, 70, .55) 12%, rgba(21, 49, 89, 0) 28%),
    var(--navy);
}
.why-card--navy li, .why-card--navy p { color: rgba(255, 255, 255, .92); }
.why-card--cream {
  color: var(--text);
  background:
    linear-gradient(225deg, #fac642 0%, #fde3a6 18%, #fff2d6 55%, #fffaf0 100%);
}

/* Comparison matrix */
.matrix {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 48px 48px 56px;
  box-shadow: var(--shadow);
}
.matrix .section__head { margin-bottom: 32px; }
.matrix .section__head h2 { font-size: clamp(26px, 3vw, 36px); }
.matrix__row {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1.25fr;
  gap: 32px;
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  font-size: 14.5px;
}
.matrix__row:first-of-type { border-top: 0; }
.matrix__row h3 { font-size: 15px; font-weight: 600; color: var(--navy); }
.matrix__row .cac { color: var(--muted); }
.matrix__row .snappia { color: var(--navy); font-weight: 600; }

/* Call-to-action box */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 96px 24px;
  text-align: center;
  background:
    radial-gradient(60% 80% at 0% 0%, #ffe2dc 0%, rgba(255, 226, 220, 0) 70%),
    radial-gradient(50% 70% at 100% 100%, #fff6c9 0%, rgba(255, 246, 201, 0) 70%),
    var(--surface);
}
.cta h2 {
  color: var(--navy);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 42px);
  max-width: 760px;
  margin: 0 auto;
}
.cta p { max-width: 620px; margin: 20px auto 0; color: var(--muted); }
.cta .btn-row { margin-top: 32px; }

.center { text-align: center; }
.mt-48 { margin-top: 48px; }

/* ---------- Scroll reveal (only when JS is on & motion allowed) ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .grid--4, .why--4 { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: 1fr 1fr; }
  .why-card { padding: 36px 32px; }
}

@media (max-width: 860px) {
  .nav { padding: 0 20px; }
  .footer__copy { padding: 0 20px 24px; }
  .nav__toggle { display: inline-flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 8px 20px 16px;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { display: block; padding: 12px 0; }
  .site-footer .nav { flex-wrap: wrap; height: auto; padding-top: 20px; padding-bottom: 20px; }
  .site-footer .nav__links { display: flex; position: static; flex-direction: row; padding: 0; border: 0; gap: 20px; order: 3; width: 100%; }
  .site-footer .nav__links a { padding: 0; }

  .grid--2, .grid--3, .solution,
  .challenges .row--3, .challenges .row--2 { grid-template-columns: 1fr; }
  .matrix { padding: 32px 20px; }
  .matrix__row { grid-template-columns: 1fr; gap: 6px; padding: 16px 4px; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hero { padding: 64px 0 48px; }
  .hero--boxed { padding: 16px 0 32px; }
  .hero--boxed .hero__box { padding: 48px 16px 16px; }
  .section { padding: 56px 0; }
  .grid--4, .why, .why--4 { grid-template-columns: 1fr; }
  .why-card { padding: 32px 24px; }
  .cta { padding: 64px 20px; }
  .nav__logo img { height: 38px; }
  .feed { gap: 24px; }
  .feed-card__content { padding: 24px 20px; }
  .article-banner { flex-direction: column; align-items: flex-start; padding: 20px; }
  .feed-card__footer { flex-direction: column; align-items: flex-start; }
}
