/* ============================================================
   Waddle Nav — static clone (HTML + CSS only, no JavaScript)
   Palette & fonts lifted from the live site's theme CSS.
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Aeonik";
  src: url("../assets/fonts/Aeonik-Regular.woff2") format("woff2"),
       url("../assets/fonts/Aeonik-Regular.woff") format("woff");
  font-weight: 500;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --navy:  #0f2747;   /* primary dark / hero bg / headings */
  --mint:  #adf8e2;   /* light accent */
  --teal:  #087999;   /* accent / links */
  --ink:   #161616;   /* body text on light */
  --grey:  #444;      /* secondary text */
  --light: #f3f3f3;   /* light section bg */
  --line:  #e2e2e2;   /* hairlines */
  --white: #fff;

  --font-body: "Host Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: "Aeonik", "Host Grotesk", system-ui, sans-serif;

  --maxw: 1200px;
  --radius: 16px;
  --pad-y: clamp(3rem, 7vw, 6rem);
  --ease: cubic-bezier(.23, 1, .32, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.1;
  margin: 0 0 .5em;
  font-weight: 500;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.25rem; color: var(--teal); }
p  { margin: 0 0 1rem; color: var(--grey); }

.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.pad-y { padding-block: var(--pad-y); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  color: var(--white);
  padding: .75rem 1.25rem;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  padding: .9rem 1.8rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--mint); color: var(--navy); }
.btn-primary:hover { background: var(--teal); color: var(--white); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--navy); color: var(--white); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-block { display: block; width: 100%; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: .6rem; color: inherit; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 40px; height: 40px; }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* App store badges */
.app-icons, .app-buttons { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.app-icon { height: 42px; width: auto; }
.app-buttons .app-icon { height: 48px; }

/* ============================================================
   HERO / SPLASH  (rounded card with brand bg image)
   ============================================================ */
.splash-section { padding-block: clamp(1.25rem, 3vw, 2rem); }
.splash-wrap {
  background-image: url("../assets/img/splash-bg.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border-radius: 20px;
  color: var(--navy);
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3.5rem) clamp(3rem, 7vw, 5rem);
}
.splash-wrap .logo-text { color: var(--navy); }

.logo-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2.5rem, 8vw, 6rem);
}

.splash-content h1 { color: var(--navy); zmax-width: 16ch; }
.splash-content .lead {
  color: rgba(15, 39, 71, .9);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  zmax-width: 60ch;
  margin-bottom: 2rem;
}

/* ============================================================
   FEATURE TRIO
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
}
.feature-column .image {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: var(--light);
  aspect-ratio: 4 / 3;
}
.feature-column .image img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   EARLY BIRD CTA
   ============================================================ */
.landing-cta {
  background-image: url("../assets/img/splash-bg.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.landing-cta h2,
.landing-cta h4 { color: var(--navy); }
.landing-cta p { color: rgba(15, 39, 71, .9); }
.cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  padding-block: var(--pad-y);
}
.cta-content .app-buttons { margin-top: 1.5rem; }
.cta-content .btn { margin-top: .5rem; }
.section-image { display: flex; justify-content: center; }
.landing-cta .waddle-icon { width: min(280px, 70%); }

/* ============================================================
   FEATURES (two-column: cards left, image right)
   ============================================================ */
.landing-roadmap h2 { text-align: center; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.roadmap-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
}
.roadmap-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-content: start;
}
.roadmap-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.roadmap-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -24px rgba(15, 39, 71, .45);
}
.roadmap-icon { width: 56px; height: 56px; margin-bottom: 1.25rem; }
.roadmap-image {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 300px;
}
.roadmap-image img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   FULL-WIDTH LIFESTYLE IMAGE
   ============================================================ */
.full-image img {
  width: 100%;
  height: clamp(260px, 45vw, 620px);
  object-fit: cover;
}

/* ============================================================
   FAQ + SCREENSHOT GALLERY
   ============================================================ */
.landing-faqs h2 { text-align: center; margin-bottom: clamp(2rem, 5vw, 3rem); }
.faqs-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 820px;
  margin-inline: auto;
}
.faq {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.5rem;
}
.faq h3 { font-size: 1.25rem; margin-bottom: .4rem; }

.screenshots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  width: min(100% - 2.5rem, var(--maxw));
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
}
.screenshots img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 20px 45px -28px rgba(15, 39, 71, .5);
}

/* ============================================================
   STRATEGIC PARTNERSHIPS (split)
   ============================================================ */
.landing-split { background: var(--light); }
.split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
.split-content .btn { margin-top: .5rem; }
.landing-split .section-image img {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, .8);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}
.site-footer .logo-text { color: var(--white); }
.footer-logo { margin-bottom: 1.25rem; }
.footer-contact { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.footer-contact a { color: var(--mint); font-size: 1.1rem; }
.footer-legal { font-size: .9rem; color: rgba(255, 255, 255, .55); margin: 0; }
.footer-legal a { color: rgba(255, 255, 255, .75); }
.footer-column.-right h3 { color: var(--white); }

/* ============================================================
   SIGNUP MODAL — pure CSS via :target
   ============================================================ */
.form-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.form-modal:target {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.form-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 39, 71, .6);
  backdrop-filter: blur(2px);
}
.form-modal__dialog {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  width: min(520px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .55);
  transform: translateY(16px) scale(.98);
  transition: transform .3s var(--ease);
}
.form-modal:target .form-modal__dialog { transform: translateY(0) scale(1); }
.form-modal__dialog h2 { margin-top: 0; }
.form-modal__close {
  position: absolute;
  top: .75rem;
  right: 1rem;
  font-size: 2rem;
  line-height: 1;
  color: var(--grey);
}
.form-modal__close:hover { color: var(--navy); text-decoration: none; }

/* ---------- Form fields ---------- */
.form-row { margin-bottom: 1rem; }
.form-row--split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: flex; flex-direction: column; }
.signup-form label { font-size: .9rem; font-weight: 600; color: var(--navy); margin-bottom: .35rem; }
.signup-form .req { color: #c0392b; }
.signup-form input[type="text"],
.signup-form input[type="email"] {
  font: inherit;
  padding: .7rem .85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafafa;
}
.signup-form input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(8, 121, 153, .18);
}
.form-row--checkbox {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
}
.form-row--checkbox label { font-weight: 400; color: var(--grey); margin: 0; }
.form-row--checkbox input { margin-top: .25rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 700px) {
  .screenshots { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 900px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .cta-grid { grid-template-columns: 1.2fr .8fr; }
  .split-grid { grid-template-columns: 1fr 1fr; }
  .roadmap-split { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .form-row--split { grid-template-columns: 1fr; }
  .logo-wrap { justify-content: center; text-align: center; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
