/* Townie homepage styles */

:root {
  --yellow: #FFD24D;
  --yellow-soft: #FFF6D9;
  --blue-ink: #0A6E99;
  --blue-ink-hover: #074F6E;
  --blue-ring: #71C6DE;
  --blue-fill: #E3F5FC;
  --blue-fill-strong: #BFE8F7;
  --ink: #121212;
  --ink-2: #3A3A3A;
  --ink-3: #555555;
  --line: #EEEEEE;
  --surface: #FFFFFF;
  --surface-alt: #F7F7F5;
  --dark-card: #1F1F1F;
  --dark-line: #333333;
  --radius-lg: 24px;
  --container: 1200px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: 'Quicksand', system-ui, sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--blue-ink); }
a:hover { color: var(--blue-ink-hover); }

h1, h2, h3, p { margin: 0; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
}
.skip-link:focus { left: 16px; }

:focus-visible { outline: 3px solid var(--blue-ink); outline-offset: 3px; }

/* ---------- Shared type ---------- */

.eyebrow {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue-ink);
}

.section-title {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -1px;
}

.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
}

.section { padding: 104px 0; }

.split {
  display: flex;
  align-items: center;
  gap: 64px;
  flex-wrap: wrap;
}
.split > * { flex: 1 1 440px; }
.split .media { display: flex; justify-content: center; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.brand img { width: 40px; height: 43px; }
.brand span { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; }
.brand:hover { color: var(--ink); }
.brand-text { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.brand .brand-name { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; }
.brand .brand-slogan {
  margin-top: 1px;
  font-family: 'Dancing Script', cursive;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--blue-ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 16px;
  font-weight: 600;
}
.nav-links a { color: var(--ink); text-decoration: none; }
.nav-links a:hover { color: var(--blue-ink); }

.btn-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink) !important;
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s ease;
}
.btn-pill:hover { transform: translateY(-1px); }

/* ---------- Store buttons ---------- */

.store-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 60px;
  padding: 0 24px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.store-btn:hover { color: #fff; background: #000; transform: translateY(-2px); }
.store-btn .label { display: flex; flex-direction: column; line-height: 1.1; }
.store-btn .small { font-size: 12px; font-weight: 600; }
.store-btn .big { font-size: 20px; font-weight: 700; }

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

.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }

.ring { position: absolute; border-radius: 50%; pointer-events: none; }
.ring--fill { right: -120px; top: 40px; width: 640px; height: 640px; background: var(--blue-fill); }
.ring--yellow { right: 60px; top: 120px; width: 560px; height: 560px; border: 10px solid var(--yellow); }
.ring--blue { right: -200px; top: -20px; width: 520px; height: 520px; border: 8px solid var(--blue-ring); }

.hero .split { position: relative; gap: 48px; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; flex-basis: 480px; }

.badge {
  align-self: flex-start;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--blue-fill);
  color: var(--blue-ink);
  font-size: 15px;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(42px, 5.6vw, 72px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -1.5px;
}
.hero h1 .accent { color: var(--blue-ink); }
.hero .lede { font-size: 20px; max-width: 560px; }
.hero .note { font-size: 15px; font-weight: 600; color: var(--ink-3); }
.hero .media img { width: 100%; max-width: 440px; }

/* ---------- Categories ---------- */

.categories { padding: 24px 0 72px; }
.categories .container { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.categories h2 { font-size: 15px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-3); }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0; padding: 0; list-style: none; }
.chips li {
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--blue-fill);
  font-size: 17px;
  font-weight: 700;
}

/* ---------- Audiences ---------- */

.audiences { padding: 88px 0; background: var(--surface-alt); }
.audiences .container { display: flex; flex-direction: column; gap: 48px; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }

.cards { display: flex; flex-wrap: wrap; gap: 20px; }
.card {
  flex: 1 1 250px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card h3 { font-size: 24px; font-weight: 700; }
.card p { font-size: 17px; line-height: 1.55; color: var(--ink-2); }

.icon-dot {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
}
.icon-dot--blue { background: var(--blue-fill-strong); }

/* ---------- How it works ---------- */

.how-copy { display: flex; flex-direction: column; gap: 36px; }
.how-copy .heading { display: flex; flex-direction: column; gap: 14px; }

.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 22px; counter-reset: step; }
.steps li { display: flex; gap: 18px; align-items: flex-start; counter-increment: step; }
.steps li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}
.steps .step-text { display: flex; flex-direction: column; gap: 4px; padding-top: 2px; }
.steps strong { font-size: 20px; font-weight: 700; }
.steps span { font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.how .media img { width: 100%; max-width: 580px; }

/* ---------- Safety ---------- */

.safety { background: var(--ink); color: #fff; }
.safety .container { display: flex; flex-direction: column; gap: 56px; }
.safety .split { gap: 56px; }
.safety-copy { display: flex; flex-direction: column; gap: 18px; }
.safety .eyebrow { color: var(--yellow); }
.safety .lede { color: #D6D6D6; }
.safety .media img { width: 100%; max-width: 520px; }

.safety-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.safety-item {
  flex: 1 1 320px;
  padding: 28px;
  border-radius: 20px;
  background: var(--dark-card);
  border: 1px solid var(--dark-line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.safety-item h3 { font-size: 20px; font-weight: 700; }
.safety-item p { font-size: 16px; line-height: 1.55; color: #CFCFCF; }

/* ---------- Grow ---------- */

.grow .split { flex-wrap: wrap-reverse; }
.grow .media img { width: 100%; max-width: 480px; }
.grow-copy { display: flex; flex-direction: column; gap: 32px; flex-basis: 500px; }
.grow-copy .heading { display: flex; flex-direction: column; gap: 14px; }

.grow-list { display: flex; flex-wrap: wrap; gap: 28px 32px; }
.grow-item { flex: 1 1 230px; display: flex; flex-direction: column; gap: 8px; }
.grow-item::before { content: ""; width: 36px; height: 6px; border-radius: 3px; background: var(--yellow); }
.grow-item h3 { font-size: 20px; font-weight: 700; }
.grow-item p { font-size: 16px; line-height: 1.55; color: var(--ink-2); }

/* ---------- Mission ---------- */

.mission { padding: 96px 0; background: var(--yellow-soft); }
.mission .container {
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.mission blockquote { margin: 0; }
.mission blockquote p {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.mission .lede { max-width: 700px; line-height: 1.6; }

/* ---------- Download CTA ---------- */

.cta-panel {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  background: var(--yellow);
  padding: 64px 56px 0;
  display: flex;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-panel .ring--blue { right: -80px; top: -120px; width: 460px; height: 460px; border-width: 10px; }
.cta-copy { position: relative; flex: 1 1 420px; display: flex; flex-direction: column; gap: 22px; padding-bottom: 64px; }
.cta-copy h2 { font-size: clamp(38px, 4.6vw, 60px); line-height: 1.05; font-weight: 700; letter-spacing: -1.2px; }
.cta-copy p { font-size: 20px; line-height: 1.55; font-weight: 600; color: #2A2A2A; max-width: 480px; }
.cta-media { position: relative; flex: 1 1 380px; display: flex; justify-content: center; }
.cta-media img { width: 100%; max-width: 440px; margin-bottom: -40px; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 48px 0 56px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer-about { display: flex; flex-direction: column; gap: 12px; max-width: 360px; }
.footer-about .brand img { width: 34px; height: 37px; }
.footer-about .brand span { font-size: 22px; }
.footer-about p { font-size: 15px; line-height: 1.55; color: var(--ink-3); }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; font-size: 15px; font-weight: 600; }
.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--blue-ink); }
.copyright { margin-top: 32px; font-size: 14px; color: #666666; }

/* ---------- Inner pages (contact, thank you) ---------- */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.page { position: relative; overflow: hidden; padding: 88px 0 120px; }
.page .ring--fill { right: -220px; top: 60px; width: 560px; height: 560px; }
.page .ring--yellow { right: -60px; top: 160px; width: 460px; height: 460px; }

.page-grid {
  position: relative;
  display: flex;
  gap: 64px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.page-intro { flex: 1 1 380px; display: flex; flex-direction: column; gap: 18px; padding-top: 12px; }

.contact-form {
  flex: 1 1 440px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 40px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid #E4E4E0;
  box-shadow: 0 24px 60px -30px rgba(18, 18, 18, 0.25);
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 16px; font-weight: 700; }
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  padding: 14px 16px;
  min-height: 52px;
  border: 1.5px solid #CFCFCA;
  border-radius: 12px;
  background: #FCFCFA;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 160px; line-height: 1.5; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-ink);
  box-shadow: 0 0 0 4px var(--blue-fill-strong);
  background: #fff;
}

.btn-submit {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 32px;
  border: 0;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease;
}
.btn-submit:hover { color: var(--ink); transform: translateY(-1px); }

.thanks {
  position: relative;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  padding-top: 40px;
  padding-bottom: 40px;
}
.thanks .btn-submit { align-self: center; margin-top: 8px; }
.thanks-check {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

@media (max-width: 860px) {
  .nav-links a:not(.btn-pill) { display: none; }
  .section { padding: 72px 0; }
  .split { gap: 40px; }
  .ring--fill { width: 420px; height: 420px; right: -160px; top: auto; bottom: 0; }
  .ring--yellow { width: 360px; height: 360px; right: -40px; top: auto; bottom: 40px; }
  .ring--blue { display: none; }
  .cta-panel { padding: 48px 24px 0; border-radius: 28px; }
  .cta-copy { padding-bottom: 24px; }
  .page { padding: 56px 0 88px; }
  .page .ring { display: none; }
  .contact-form { padding: 28px 22px; }
  .btn-submit { align-self: stretch; }
}

@media (max-width: 480px) {
  .hero { padding-top: 48px; }
  .split > * { flex-basis: 100%; }
  .store-btn { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .store-btn, .btn-pill { transition: none; }
}
