/* =========================
   Base & Variables
========================= */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f7f8;
  --text: #0f172a;
  --muted: #475569;
  --border: #e5e7eb;

  --brand: #c8102e;       /* Canada red */
  --brand-soft: #fde8ec;

  --radius: 14px;
  --radius-sm: 10px;

  --shadow-sm: 0 4px 12px rgba(0,0,0,0.06);
  --shadow: 0 12px 30px rgba(0,0,0,0.08);
}

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

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

html, body {
  overflow-x: hidden;
}

/* =========================
   Layout helpers
========================= */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 72px 0;
}

.section.alt {
  background: var(--bg-alt);
}

.section.cta {
 background: #ffffff;
  color: var(--text);
  text-align: center;
  border-top: 1px solid var(--border); 
}

h1, h2, h3 {
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 28px;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

p {
  margin: 0 0 14px;
  color: var(--muted);
}

.lead {
  font-size: 1.15rem;
  max-width: 620px;
}

.lead-list {
  list-style: none;
  padding: 0;

  display: inline-block;     /* allows centering as a block */
  text-align: left;          /* left-align bullet text */
  margin: 24px auto 0;       /* center under the title */

  font-size: 1.45rem;
  color: var(--muted);
}

.lead-list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 1.2em;
   line-height: 1.4;
}

.lead-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.6em;
  transform: translateY(-50%);
  color: currentColor;
  font-weight: 700;
}

.fine {
  font-size: 0.9rem;
  color: var(--muted);
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* =========================
   Navigation
========================= */

.nav {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav .brand {
  font-size: 1.8rem;  
  font-weight: 800;
  letter-spacing: 0.3px;
   color: #414c77; 
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand {
   display: inline-flex;
  align-items: center;
  gap: 10px; 
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--text);
   text-decoration: none;
}

.brand-icon {
  height: 28px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

/* =========================
   Buttons
========================= */

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn.primary {
  background: var(--brand);
  color: #fff;
}

.btn.ghost {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn.small {
  padding: 8px 14px;
  font-size: 0.9rem;
}

.btn.large {
  padding: 14px 22px;
  font-size: 1.05rem;
}

/* =========================
   Hero
========================= */

.hero {
  padding: 96px 0 88px;
  background: #ffffff;
}

.hero-actions,
.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.hero-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}

.hero-card-top {
  height: 64px;
  background: #f3f4f6; /* pale grey */
  border-bottom: 1px solid var(--border);
}

.hero-card-body {
  padding: 18px;
   text-align: center;
}

.hero-copy {
  max-width: 720px;
   text-align: center;
  margin: 0 auto;
}

.hero-copy h1 {
  margin-bottom: 24px;
}

.hero-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr; /* single column */
  align-items: center;
}

.hero-title {
 color: #414C77;
  /* line-height: 1.2;
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 16px;
  text-align: center;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto; */
}

.pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.line {
  height: 10px;
  background: #e5e7eb;
  border-radius: 999px;
  margin: 10px 0;
}

.w60 { width: 60%; }
.w80 { width: 80%; }
.w90 { width: 90%; }

.meta {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* =========================
   CTA section
========================= */

.section.cta h2,
.section.cta p {
  color: var(--text);
}

.cta-inner {
  max-width: 680px;
  margin: 0 auto;
}


/* =========================
   Badges
========================= */

.app-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
   width: 100%; 
  margin: 28px auto 0;
}

.app-badges a {
  display: flex;             /* fixes anchor baseline issues */
  align-items: center;
}

.app-badges img {
  width: auto;               /* preserve aspect ratio */
  display: block;
  transition: transform 0.15s ease;
}

.store-badge {
  width: auto;
  display: block;
}

/* Optical balancing for store badges */
.store-badge.apple {
  height: 90px;
}

.store-badge.google {
  height: 135px;
}

/* subtle hover lift */
.app-badges a:hover img {
  transform: translateY(-1px);
}


/* =========================
   Cards & grids
========================= */

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.card.notice {
  margin-top: 28px;
  background: var(--brand-soft);
  border-color: #fbcdd6;
}

.grid2,
.grid3 {
  display: grid;
  gap: 20px;
}

.grid2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid3 {
  grid-template-columns: repeat(3, 1fr);
}

.policy .card {
  margin-bottom: 48px;
}

/* =========================
   Value Cards
========================= */

.value-cards {
 padding: 32px 0 40px; 
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Individual card */
.value-card {
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  border-radius: 14px;
  padding: 20px 18px;

   /* Center content */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  /* makes them feel square-ish */
  aspect-ratio: 1 / 1;
}

.value-card h3 {
  font-size: 1.45rem;    
  font-weight: 800;
  color: #414c77;         
  margin-bottom: 10px;
  line-height: 1.15;
}

.value-card p {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
   max-width: 240px; 
}

/* Hover polish */
.value-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* =========================
  Carousel 
========================= */
.shots {
  padding: 24px 0 64px;
}

.shots-viewport {
  overflow: hidden;
  width: 100%;
  /* helps Safari isolate painting */
  contain: paint;
  
   /* Prevent iOS horizontal page-pan */
  touch-action: pan-y;

   /* subtle edge fade */
  mask-image: linear-gradient(
    to right,
    transparent,
    black 5%,
     black 95%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 5%,
     black 95%,
    transparent
  );
}

.shots-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  will-change: transform;
  transform: translate3d(0,0,0);
}

.shots-set {
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  padding-right: 18px; /* space between last and first */
}

.shot {
  flex: 0 0 auto;
  height: 520px;
  width: auto;
  display: block;

  border-radius: 28px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  background: #fff;

  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.shot:hover {
  transform: scale(1.02);
}

/* =========================
   Press Grid
========================= */

.press {
  padding: 72px 0;
   text-align: center;
}

.press h2 {
  margin-bottom: 8px;
   color: #414c77; 
}

.press-note {
  margin: 36px auto 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
}

/* Grid */
.press-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: center;
}

/* Each logo link */
.press-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;              /* 🔑 equal visual height */
  padding: 12px;
  background: transparent;
  border: none;
  transition: transform 0.18s ease-out;
}

/* Logo itself */
.press-item img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;      /* 🔑 prevents cropping */
  display: block;
  opacity: 0.85;
}

/* Hover polish */
.press-item:hover {
  transform: translateY(-2px);
}

.press-item:hover img {
  opacity: 1;
}
.press-item:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
}

/* =========================
  About
========================= */

.about {
  padding: 72px 0;
  background: #fff;
}

.about h2 {
  text-align: center;
  margin-bottom: 28px;
   color: #414c77; 
}

.about-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 960px;
  margin: 56px auto 64px;
   position: relative;
   /* align-items: start; */
   align-items: center;
}

.about-photo {
  margin: 0;
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
   transform-origin: center;
  transition: transform 0.3s ease;
    position: relative;      /* 🔑 anchor for caption */
  display: inline-block;
  background: transparent;
}

.about-photo figcaption {
  position: absolute;
  bottom: -30px;           /* hangs below the photo */
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

/* Left photo: tilt slightly left */
.about-photo:first-child {
  transform: rotate(-2deg);
   z-index: 2;
}

/* Right photo: tilt slightly right */
.about-photo:last-child {
  transform: rotate(2deg);
   margin-left: -48px;   /* overlap amount */
  margin-top: 24px;
}

/* Let images keep their natural proportions */
.about-photo img {
  width: 100%;
  height: auto;        
  display: block;
}

.about-photo:hover {
  transform: rotate(0deg) translateY(-4px);
}

.about-text {
  max-width: 860px;
  margin: 40px auto;
  text-align: center;
}

.about-text p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 14px;
}

/* =========================
   Download Section
========================= */

.download {
  padding: 72px 0;
  text-align: center;
   border-top: 1px solid var(--border);
}

.download h2 {
  color: #414c77;      
  margin-bottom: 8px;
   text-align: center;
}

.download-sub {
  max-width: 560px;
  margin: 0 auto 28px;
  color: var(--muted);
}

/* =========================
   Policy / Terms page
========================= */

.policy {
  padding: 48px 0 72px;
}

/* constrain text width + add side breathing room */
.policy-inner {
  max-width: 860px;     /* pick one width; 860 is a nice readable max */
  margin: 0 auto;
  padding: 0 20px;
}

/* header row that contains title + language switch */
.policy-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
}

/* blue section headings (Privacy Policy, Terms of Service, etc.) */
.policy-title {
  color: #414c77;
  font-weight: 800;
  font-size: 1.8rem;
  margin: 0;            /* important so the header row aligns neatly */
}

/* language switch link on the right */
.lang-switch {
  font-weight: 600;
  text-decoration: none;
  color: #b4232a;       /* your brand red (change if you want) */
  white-space: nowrap;
}

.lang-switch:hover {
  text-decoration: underline;
}

/* space between the header row and the list/content */
.policy-content {
  margin-top: 12px;
}

/* =========================
   Footer
========================= */

.footer {
   border-top: 1px solid var(--border);
   padding: 32px 0;
   font-size: 0.9rem;
   background: #fff;
}

.footer-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
}

.footer a {
  color: var(--text);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer .copyright {
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer .brand {
  font-size: 1.05rem;
}

/* =========================
   Backlinks
========================= */
.back-link {
  color: #000;             
  font-weight: 500;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

/* =========================
   Mobile adjustments
========================= */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .grid2,
  .grid3 {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }
   .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .about-photos {
    grid-template-columns: 1fr;
     margin: 40px auto 48px;
  }

  .about-photo {
    transform: none !important;
  }

   .about-photo figcaption {
    bottom: -22px;
    font-size: 0.85rem;
  }

   .about-photo:last-child {
    margin-left: 0;
    margin-top: 18px;
  }

  .about-photo img {
    height: auto;   /* keep natural proportions */
  }

  .about-text {
    text-align: left; /* optional: many people prefer left text on mobile */
     margin-top: 28px;
  }
  .press-grid {
    grid-template-columns: repeat(2, 1fr);
  }
    /* If the last item is alone, center it */
  .press-grid > .press-item:last-child {
    grid-column: 1 / -1;     /* span both columns */
    justify-self: center;    /* center within the row */
  }

  .press-item {
    height: 84px;
  }
}

@media (min-width: 701px) {
  .about-photo:last-child {
    margin-top: 0;         /* remove stagger */
    margin-left: -48px;    /* keep overlap */
  }
}

@media (max-width: 600px) {
  .lead-list {
    font-size: 1.15rem;
  }
   .app-badges {
    flex-direction: column;
    gap: 14px;
  }
   .nav .brand {
    font-size: 1.35rem;
  }
   .brand-icon {
    height: 22px;
  }
   .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
   .shot { 
      height: 420px;
   }
  .value-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    justify-items: center;
  }

  .value-cards {
    padding: 24px 0 32px;
  }

 .value-card {
    width: min(280px, 82vw);   
    aspect-ratio: auto;

    padding: 16px 14px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .value-card h3 {
    font-size: 1.15rem;
    margin-bottom: 6px;
  }

  .value-card p {
    font-size: 0.9rem;
    line-height: 1.4;
    max-width: 26ch;
  } 
}

/* =========================
   Debug
========================= 

.hero-copy { outline: 2px solid hotpink; }
.hero-cta { outline: 2px solid orange; }
.lead-list { outline: 2px solid deepskyblue; }
.app-badges { outline: 2px solid yellow; } 
.shots-viewport { outline: 4px solid hotpink; } */

