/* ============================================================
   CoSkipper landing — tokens mirrored from the Flutter app theme
   (AppColors / AppTextStyles / AppRadii / AppShadows)
   ============================================================ */

:root {
  /* AppColors */
  --brand: #00adb5;            /* primary900 — surfaceGeneralBrand */
  --brand-dark: #00969d;       /* hover step below primary900 */
  --ink: #303841;              /* othersBlack — textGeneralBlack */
  --slate: #50565c;            /* greyscale700 — body text */
  --grey: #8a9098;             /* greyscale500 */
  --mist: #eff1f3;             /* greyscale100 — section surface */
  --border: #d6dadf;           /* greyscale200 — strokeBorderFullStrokeLight */
  --foam: #e0f4f4;             /* backgroundTeal — light brand tint */
  --foam-green: #e0f5f2;       /* backgroundGreen — surfaceButtonsButtonLight */
  --white: #ffffff;

  /* AppRadii */
  --r-chip: 4px;
  --r-btn: 14px;
  --r-card: 16px;
  --r-card-lg: 24px;
  --r-pill: 1000px;

  /* AppShadows (cardShadow1 / cardShadow3) */
  --shadow-card: 0 4px 60px rgba(4, 6, 15, 0.08);
  --shadow-card-lg: 0 20px 100px rgba(4, 6, 15, 0.10);

  --font: "Urbanist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.2px;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { color: var(--ink); margin: 0 0 0.5rem; letter-spacing: 0; }

h1 { font-size: clamp(2.5rem, 5.5vw, 3.75rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; line-height: 1.25; max-width: 22ch; }
h3 { font-size: 1.125rem; font-weight: 700; }

p { margin: 0 0 1rem; }

a { color: var(--brand); }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.container-narrow { max-width: 760px; }

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand);
  margin: 0 0 0.75rem;
}

/* ============ Announcement banner ============ */

.announce {
  background: var(--foam);
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  padding: 10px 0;
}

.announce strong {
  color: var(--brand-dark);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8125rem;
}

/* ============ Header ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px; /* UiConstants.toolbarHeight */
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.nav-links a {
  color: var(--slate);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
}

.nav-links a:hover { color: var(--brand); }

.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  overflow: hidden;
}

.lang-switch a {
  padding: 5px 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--slate);
}

.lang-switch a:hover { color: var(--brand); }

.lang-switch a[aria-current="page"] {
  background: var(--foam);
  color: var(--brand);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-family: var(--font);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--r-btn);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

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

.btn-primary:hover { background: var(--brand-dark); }

.btn-small { padding: 10px 20px; font-size: 0.9375rem; }

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2rem;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--r-btn);
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.store-btn:hover { background: #1e252b; transform: translateY(-2px); }

.store-btn svg { width: 26px; height: 26px; flex: none; }

.store-btn span { display: flex; flex-direction: column; line-height: 1.2; font-weight: 700; font-size: 1.0625rem; }

.store-btn small { font-weight: 500; font-size: 0.6875rem; letter-spacing: 0.04em; opacity: 0.85; }

.store-buttons-inverse .store-btn { background: var(--white); color: var(--ink); }
.store-buttons-inverse .store-btn:hover { background: var(--mist); }

.hero-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--grey);
  font-weight: 500;
}

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

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 85% 10%, var(--foam) 0%, transparent 65%),
    var(--white);
  padding-top: clamp(48px, 8vw, 96px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  padding-bottom: clamp(72px, 10vw, 140px);
}

.hero-copy .lede {
  font-size: 1.1875rem;
  max-width: 46ch;
  margin-top: 1rem;
}

h1 em {
  font-style: normal;
  color: var(--brand);
}

/* Waterline signature — the logo's wave motif, full width */

.waterline {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 90px;
  pointer-events: none;
}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100%;
}

.wave-back { color: var(--foam); animation: drift 26s linear infinite; }
.wave-front { color: var(--brand); opacity: 0.16; animation: drift 16s linear infinite reverse; }

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ Phone mockup ============ */

.hero-visual { display: flex; justify-content: center; }

.phone {
  width: 300px;
  padding: 12px;
  background: var(--ink);
  border-radius: 44px;
  box-shadow: var(--shadow-card-lg);
  animation: rise 0.9s ease-out both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.phone-screen {
  background: var(--mist);
  border-radius: 34px;
  padding: 10px 12px 18px;
  overflow: hidden;
}

.app-statusbar {
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--ink);
  padding: 4px 10px 8px;
}

.statusbar-icons { letter-spacing: 2px; font-size: 0.5rem; align-self: center; }

.app-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 12px;
}

.app-bar-title { font-weight: 700; font-size: 0.9375rem; color: var(--ink); }

.app-card {
  background: var(--white);
  border-radius: var(--r-card);
  padding: 12px 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-card);
}

.app-label {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--grey);
  margin-bottom: 6px;
}

.app-countdown { background: var(--foam); }

.app-countdown-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 8px;
}

.app-progress {
  height: 6px;
  border-radius: var(--r-pill);
  background: rgba(0, 173, 181, 0.18);
  overflow: hidden;
}

.app-progress span {
  display: block;
  height: 100%;
  border-radius: var(--r-pill);
  background: var(--brand);
}

.app-progress-note {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--slate);
  margin-top: 6px;
}

.app-route {
  list-style: none;
  margin: 0;
  padding: 0;
}

.app-route li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  padding: 4px 0;
}

.app-route b {
  margin-left: auto;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--brand);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--brand);
  background: var(--white);
  flex: none;
}

.dot-done { background: var(--brand); }

/* StatusChip geometry: 10×6 / r4 / 28px */
.app-chips { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 6px 10px;
  border-radius: var(--r-chip);
  font-size: 0.6875rem;
  font-weight: 700;
}

.chip-done { background: var(--foam-green); color: #2e7d32; }
.chip-open { background: #fff7e5; color: #a07800; }

.avatars { display: flex; }

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--white);
  margin-right: -8px;
}

.a1 { background: var(--brand); }
.a2 { background: #5c6bc0; }   /* othersIndigo */
.a3 { background: #26a69a; }   /* othersTeal */
.a4 { background: var(--grey); }

/* ============ Sections ============ */

.section { padding: clamp(64px, 9vw, 112px) 0; }

.section-mist { background: var(--mist); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 3rem;
}

.feature-card {
  background: var(--white);
  border-radius: var(--r-card-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-card);
  background: var(--foam);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-icon svg { width: 26px; height: 26px; }

.feature-card p { margin: 0; font-size: 0.9375rem; }

/* ============ Steps ============ */

.steps {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  position: relative;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-card-lg);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  background: var(--brand);
  color: var(--white);
  font-weight: 800;
  font-size: 1.125rem;
  margin-bottom: 16px;
}

.step p { margin: 0; font-size: 0.9375rem; }

/* ============ FAQ ============ */

.faq-item {
  background: var(--white);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  margin-top: 12px;
  overflow: hidden;
}

#faq h2 { margin-bottom: 1.5rem; }

.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
  position: relative;
  padding-right: 48px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--brand);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq-item p { padding: 0 22px 18px; margin: 0; }

/* ============ CTA band ============ */

.cta-band {
  background: var(--brand);
}

.cta-inner { text-align: center; }

.cta-band h2 { color: var(--white); margin-inline: auto; }

.cta-band p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  margin-top: 0.75rem;
}

.cta-band .store-buttons { justify-content: center; }

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

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

.footer-links { display: flex; gap: 22px; margin-left: auto; }

.footer-links a {
  color: var(--slate);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
}

.footer-links a:hover { color: var(--brand); }

.footer-copy {
  width: 100%;
  margin: 12px 0 0;
  font-size: 0.8125rem;
  color: var(--grey);
}

/* ============ Scroll reveal ============ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============ Reduced motion ============ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wave-back, .wave-front, .phone { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .store-btn, .btn { transition: none; }
}

/* ============ Responsive ============ */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-copy { text-align: center; }
  .hero-copy .lede { margin-inline: auto; }
  .store-buttons { justify-content: center; }
  h2 { max-width: none; }
  .feature-grid, .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav { gap: 12px; }
  .lang-switch { margin-left: auto; }
  .btn-small { padding: 8px 14px; font-size: 0.875rem; }
  .brand { font-size: 1.125rem; }
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .phone { width: 270px; }
  .footer-links { margin-left: 0; }
}
