/* ==========================================================================
   Curious Air — landing page styles
   --------------------------------------------------------------------------
   Loads after ulix.css. A light, friendly, illustrated page: sky-gradient
   hero with an SVG mascot scene, pastel feature cards, and a Pro logging
   band. Uses the standard Ulix navy header and footer from ulix.css.
   Organised:
     1. Tokens + page base
     2. Hero (sky, illustration, CTAs)
     3. Feature cards
     4. Logging / Pro band with dashboard illustration
     5. Values strip
     6. Footer credo
     7. Responsive
   ========================================================================== */


/* 1. Tokens + page base
   ========================================================================== */
@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/geist-latin.woff2') format('woff2');
}

.ca-page {
  --navy: #00142f;
  --ink: #17263a;
  --muted: #48607c;
  --blue: #2f7fe0;
  --green: #3fa857;
  --purple: #7a6bd8;
  --teal: #2fa9a0;
  --sky-1: #dcedfb;
  --sky-2: #eaf4fe;
  --page: #f6f9fc;
  --card: #ffffff;
  --line: rgba(16, 38, 66, 0.1);
  --shadow: 0 10px 30px rgba(23, 44, 76, 0.08);
  --sans: Geist, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.ca-page * { box-sizing: border-box; }
.ca-page a { text-decoration: none; }
.ca-page img, .ca-page svg { display: block; max-width: 100%; }
.ca-page h1, .ca-page h2, .ca-page h3, .ca-page p, .ca-page ul, .ca-page figure { margin: 0; }
.ca-page main ul { padding: 0; list-style: none; }

.ca-wrap { width: min(1140px, 100% - 44px); margin: 0 auto; }


/* 2. Hero
   ========================================================================== */
.ca-hero {
  position: relative;
  background: linear-gradient(180deg, var(--sky-2) 0%, var(--sky-1) 62%, #e2f2e3 100%);
  overflow: hidden;
}

/* soft hills + skyline along the bottom edge */
.ca-hero__ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  width: 100%;
  height: 130px;
  pointer-events: none;
}

.ca-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 8px;
  align-items: center;
  padding: 64px 0 112px;
}

.ca-title { display: flex; align-items: center; gap: 22px; }
.ca-title img {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  box-shadow: 0 14px 30px rgba(23, 44, 76, 0.18);
}
.ca-title h1 {
  color: var(--navy);
  font-size: clamp(46px, 5.4vw, 78px);
  letter-spacing: -0.025em;
  font-weight: 680;
  white-space: nowrap;
}

.ca-hero__lede {
  margin-top: 26px;
  max-width: 460px;
  color: var(--muted);
  font-size: clamp(21px, 2.3vw, 28px);
  line-height: 1.35;
  font-weight: 480;
}

.ca-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 34px; }

/* Google Play button, in the style of the mock */
.ca-gplay {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 10px 22px 10px 12px;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(47, 127, 224, 0.32);
  transition: transform 0.16s, box-shadow 0.16s;
}
.ca-gplay:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(47, 127, 224, 0.4); }
.ca-gplay__logo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fff;
}
.ca-gplay__logo svg { width: 22px; height: 24px; }
.ca-gplay__text { line-height: 1.15; text-align: left; }
.ca-gplay__text small { display: block; font-size: 11px; letter-spacing: 0.08em; font-weight: 600; opacity: 0.85; }
.ca-gplay__text strong { font-size: 19px; font-weight: 640; letter-spacing: 0.01em; }

.ca-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  font-weight: 560;
  box-shadow: 0 4px 12px rgba(23, 44, 76, 0.06);
  transition: border-color 0.16s, box-shadow 0.16s;
}
.ca-more:hover { border-color: rgba(47, 127, 224, 0.45); box-shadow: 0 6px 16px rgba(23, 44, 76, 0.1); }
.ca-more svg { width: 14px; height: 9px; }

.ca-hero__note { margin-top: 22px; color: var(--muted); font-size: 14.5px; line-height: 1.7; }

/* Illustration column */
.ca-hero__art { position: relative; min-height: 440px; margin-left: -28px; }
.ca-hero__art > svg { width: 100%; height: auto; }


/* 2b. Principles strip
   ========================================================================== */
.ca-principles { padding: 56px 0 0; }
.ca-principles__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
}
.ca-principle { display: flex; align-items: flex-start; gap: 14px; }
.ca-principle__num {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #e4effc;
  color: var(--blue);
  font-size: 13.5px;
  font-weight: 680;
}
.ca-principle h3 { color: var(--navy); font-size: 16.5px; font-weight: 650; }
.ca-principle p { margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.55; }


/* Shared section heading */
.ca-sechead { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.ca-sechead h2 {
  color: var(--navy);
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 670;
}
.ca-sechead p { margin-top: 14px; color: var(--muted); font-size: 17px; line-height: 1.6; }


/* 3. Feature cards
   ========================================================================== */
.ca-features { padding: 72px 0 8px; }
.ca-features__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.ca-card {
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.ca-card__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin-bottom: 26px;
}
.ca-card__icon svg { width: 34px; height: 34px; }
.ca-card__icon--wifi { background: #e3f4e4; color: var(--green); }
.ca-card__icon--bt { background: #e4effc; color: var(--blue); }
.ca-card__icon--cell { background: #fceee0; color: #d98a3d; }
.ca-card__icon--gnss { background: #ece8fb; color: var(--purple); }
.ca-card__icon--sensors { background: #dff3f2; color: var(--teal); }
.ca-card__icon--nfc { background: #e8ecfa; color: #5b76d8; }
.ca-card h3 { color: var(--navy); font-size: 22px; font-weight: 650; }
.ca-card p { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.55; }


/* 3b. Screenshot showcase
   ========================================================================== */
.ca-shots { padding: 72px 0 8px; }
.ca-showcase { display: grid; gap: 24px; }
.ca-showcase__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.95fr);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.ca-showcase__row:nth-child(even) { grid-template-columns: minmax(380px, 0.95fr) minmax(0, 1fr); }
.ca-showcase__row:nth-child(even) .ca-showcase__copy { order: 2; }
.ca-showcase__row:nth-child(even) .ca-showcase__art { order: 1; }
.ca-showcase__copy { padding: 48px 52px; }
.ca-showcase__copy h3 {
  color: var(--navy);
  font-size: clamp(24px, 2.6vw, 31px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 660;
}
.ca-showcase__copy > p { margin-top: 14px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.ca-showcase__art {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 44px 30px 0;
  background: radial-gradient(circle at 50% 60%, rgba(47, 127, 224, 0.12), transparent 55%), #eef5fb;
  overflow: hidden;
}
.ca-shot {
  position: relative;
  width: 215px;
  border: 7px solid #16283a;
  border-bottom: 0;
  border-radius: 30px 30px 0 0;
  box-shadow: 0 20px 48px rgba(23, 44, 76, 0.28);
  background: #0a1520;
}
.ca-shot--rear { z-index: 1; margin-right: -34px; transform: translateY(42px) rotate(-4deg); opacity: 0.85; }
.ca-shot--front { z-index: 2; transform: rotate(2deg); }


/* 3c. Capability panel
   ========================================================================== */
.ca-capability { padding: 72px 0 8px; }
.ca-capability__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: center;
  padding: 52px 54px 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.ca-capability__panel h2 {
  color: var(--navy);
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 670;
}
.ca-capability__panel > div > p { margin-top: 16px; max-width: 560px; color: var(--muted); font-size: 16.5px; line-height: 1.6; }
.ca-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding-bottom: 52px; }
.ca-pills li {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f2f7fc;
  color: var(--muted);
  font-size: 13px;
  font-weight: 560;
  white-space: nowrap;
}
.ca-capability__img {
  align-self: end;
  width: 265px;
  margin: 0 auto -95px;
  border: 8px solid #16283a;
  border-radius: 34px;
  box-shadow: 0 24px 60px rgba(23, 44, 76, 0.3);
  overflow: hidden;
}


/* 4. Logging / Pro band
   ========================================================================== */
.ca-logging { padding: 72px 0 8px; }
.ca-logging__panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(400px, 1.1fr);
  gap: 48px;
  align-items: center;
  padding: 52px 54px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.ca-logging__head { display: flex; align-items: center; gap: 18px; }
.ca-logging__badge {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #e3f4e4;
  color: var(--green);
}
.ca-logging__badge svg { width: 30px; height: 30px; }
.ca-logging h2 { color: var(--navy); font-size: clamp(26px, 3vw, 34px); line-height: 1.15; font-weight: 670; }

.ca-pro-flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 7px 14px;
  border: 1px solid rgba(180, 144, 65, 0.45);
  border-radius: 999px;
  background: rgba(180, 144, 65, 0.1);
  color: #7a5f22;
  font-size: 13.5px;
  font-weight: 620;
}
.ca-pro-flag svg { width: 14px; height: 14px; }

.ca-logging__copy > p { margin-top: 16px; color: var(--muted); font-size: 16.5px; line-height: 1.6; }

.ca-checks { display: grid; gap: 12px; margin-top: 22px; }
.ca-checks li { display: flex; align-items: flex-start; gap: 11px; color: var(--ink); font-size: 15.5px; line-height: 1.45; }
.ca-checks svg { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; }

.ca-logging__cta {
  display: inline-flex;
  align-items: center;
  margin-top: 26px;
  padding: 13px 22px;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-size: 15.5px;
  font-weight: 620;
  box-shadow: 0 8px 20px rgba(47, 127, 224, 0.3);
  transition: transform 0.16s;
}
.ca-logging__cta:hover { transform: translateY(-2px); }
.ca-logging__fine { margin-top: 14px; color: var(--muted); font-size: 13.5px; }

/* Dashboard illustration (decorative, CSS/SVG only) */
.ca-dash {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfdff;
  box-shadow: 0 18px 44px rgba(23, 44, 76, 0.12);
  overflow: hidden;
  font-size: 12px;
}
.ca-dash__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.ca-dash__app { display: flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 650; font-size: 13px; }
.ca-dash__app img { width: 22px; height: 22px; border-radius: 6px; }
.ca-dash__rec {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e3f4e4;
  color: #23703a;
  font-weight: 620;
}
.ca-dash__rec::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: #23703a; }
.ca-dash__body { display: grid; grid-template-columns: 108px 1fr; }
.ca-dash__side { padding: 12px 0; border-right: 1px solid var(--line); background: #fff; }
.ca-dash__side li { padding: 7px 14px; color: var(--muted); }
.ca-dash__side li.is-active { background: #e4effc; color: var(--blue); font-weight: 640; border-radius: 0 8px 8px 0; }
.ca-dash__main { padding: 14px 16px 12px; }
.ca-dash__label { color: var(--navy); font-size: 13px; font-weight: 650; }
.ca-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.ca-stat { padding: 8px 10px; border-radius: 10px; }
.ca-stat b { display: block; font-size: 17px; font-weight: 670; color: var(--navy); }
.ca-stat span { color: var(--muted); font-size: 10.5px; }
.ca-stat--wifi { background: #e3f4e4; }
.ca-stat--bt { background: #e4effc; }
.ca-stat--gnss { background: #ece8fb; }
.ca-stat--sensors { background: #dff3f2; }
.ca-dash__chart { margin-top: 12px; }
.ca-dash__chart svg { width: 100%; height: auto; }
.ca-dash__legend { display: flex; flex-wrap: wrap; gap: 14px; padding: 8px 2px 2px; color: var(--muted); font-size: 10.5px; }
.ca-dash__legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }


/* 5. Trust cards + final CTA
   ========================================================================== */
.ca-trust { padding: 72px 0 8px; }
.ca-trust__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ca-trust__card {
  padding: 36px 38px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.ca-trust__label {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 680;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.ca-trust__label--privacy { background: #e3f4e4; color: #23703a; }
.ca-trust__label--honesty { background: #e4effc; color: #1d5cad; }
.ca-trust__card h3 { margin-top: 18px; color: var(--navy); font-size: 22px; font-weight: 650; }
.ca-trust__card p { margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.65; }

.ca-final { padding: 88px 0 96px; text-align: center; }
.ca-final h2 {
  color: var(--navy);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 680;
}
.ca-final p { max-width: 520px; margin: 16px auto 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.ca-final .ca-gplay { margin-top: 30px; }


/* 6. Footer credo (footer itself is the standard navy one from ulix.css) */
.ca-page .footer-credo {
  margin: 0 0 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.ca-page .footer-credo b { color: #fff; font-weight: 500; }
.ca-page .footer-credo .sep { color: var(--ulix-accent); padding: 0 6px; }

/* keep the footer grid from overflowing at narrow widths: the newsletter
   form's implicit grid column otherwise sizes to the email input's
   intrinsic width and spills out of its track */
.ca-page .site-footer__grid > * { min-width: 0; }
.ca-page .footer-wordmark { width: min(100%, 300px); height: auto; }
.ca-page .newsletter { grid-template-columns: minmax(0, 1fr); }
.ca-page .newsletter__input { width: 100%; }


/* 7. Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .ca-hero__inner { grid-template-columns: 1fr; padding: 56px 0 110px; gap: 48px; }
  .ca-hero__art { max-width: 520px; margin: 0 auto; min-height: 0; }
  .ca-title h1 { font-size: clamp(44px, 10vw, 64px); }
  .ca-principles__grid { grid-template-columns: 1fr 1fr; }
  .ca-features__grid { grid-template-columns: 1fr 1fr; }
  .ca-showcase__row, .ca-showcase__row:nth-child(even) { grid-template-columns: 1fr; }
  .ca-showcase__row:nth-child(even) .ca-showcase__copy,
  .ca-showcase__row:nth-child(even) .ca-showcase__art { order: initial; }
  .ca-capability__panel { grid-template-columns: 1fr; padding: 40px 34px 0; gap: 36px; }
  .ca-logging__panel { grid-template-columns: 1fr; padding: 40px 34px; }
  .ca-trust__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .ca-wrap { width: min(100% - 32px, 1140px); }
  .ca-title { gap: 16px; }
  .ca-title img { width: 64px; height: 64px; border-radius: 16px; }
  .ca-title h1 { font-size: clamp(32px, 11vw, 52px); }
  .ca-principles__grid { grid-template-columns: 1fr; gap: 22px; }
  .ca-features__grid { grid-template-columns: 1fr; }
  .ca-features, .ca-shots, .ca-capability, .ca-logging, .ca-trust { padding-top: 52px; }
  .ca-showcase__copy { padding: 32px 24px; }
  .ca-showcase__art { min-height: 400px; padding: 36px 12px 0; }
  .ca-shot { width: 180px; }
  .ca-shot--rear { margin-right: -58px; }
  .ca-capability__panel { padding: 32px 24px 0; }
  .ca-capability__img { width: 225px; margin-bottom: -80px; }
  .ca-logging__panel { padding: 30px 22px; }
  .ca-dash__body { grid-template-columns: 1fr; }
  .ca-dash__side { display: flex; flex-wrap: wrap; gap: 2px; padding: 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .ca-dash__side li { padding: 5px 9px; }
  .ca-dash__side li.is-active { border-radius: 8px; }
  .ca-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ca-values__band { grid-template-columns: 1fr; padding: 26px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .ca-gplay, .ca-more, .ca-logging__cta { transition: none; }
  .ca-gplay:hover, .ca-logging__cta:hover { transform: none; }
}
