/* Glass system for wattaroo.co. Every colour on the site lives here. */

:root {
  --ink: #1B1409;
  --cream: #FFFDF5;
  --white: #FFFFFF;
  --text-secondary: #4D4A44;
  --accent: #FFC700;
  --error: #B3261E;
  --caution: #7A4A00;
  --sky-top: #3D86E8;
  --sky-mid: #7DB8F7;
  --sky-low: #C9E2FB;
  --sky-haze: #EEF6FE;
  --disabled: #DEDCD6;
  --good: #12806F;
  --urgent: #C23A16;
  --glass: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.8);
  --shadow: 0 12px 32px rgba(27, 20, 9, 0.12);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --font: "Figtree", "Segoe UI", sans-serif;
  --wrap: 720px;
  --wide: 960px;
}

* { box-sizing: border-box; }

html { overflow-x: clip; }

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--sky-mid) url("/assets/brand/sky-poster.jpg") center top / cover no-repeat;
}

img, svg, video { max-width: 100%; }

.sky {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 100dvh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.sky video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-nav,
.site-footer,
main,
.skip:focus {
  position: relative;
  z-index: 1;
}

.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.skip:focus {
  width: auto;
  height: auto;
  clip: auto;
  left: 16px;
  top: 16px;
  padding: 12px 16px;
  background: var(--cream);
  color: var(--ink);
  border-radius: 12px;
}

.wrap {
  width: min(var(--wrap), calc(100% - 32px));
  margin-inline: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 50%;
  width: min(var(--wrap), calc(100% - 32px));
  margin: 0;
  padding: 8px 14px;
  background: var(--glass);
  transform: translateX(-50%);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.wordmark {
  color: var(--ink);
  background: var(--cream);
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  padding: 8px 14px;
  border-radius: 999px;
}

.site-nav nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.site-nav nav a {
  color: var(--ink);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 12px;
}

h1 { font-size: clamp(32px, 6vw, 56px); }
h2 { font-size: 28px; }
h3 { font-size: 20px; }

p { margin: 0 0 12px; }

main { padding-top: 108px; }

.page-hero,
.hero-image {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
  min-height: 100dvh;
  margin-top: -108px;
  padding: 120px 0 32px;
}

.hero-roo {
  width: min(220px, 56%);
  margin: auto auto 0;
}

.hero-roo img { display: block; width: 100%; height: auto; }

@media (max-width: 800px) {
  main { padding-top: 176px; }
  .page-hero,
  .hero-image { margin-top: -176px; padding-top: 188px; }
}

.page-hero h1 {
  color: var(--ink);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 16px 18px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.hero-image h1 {
  color: var(--white);
  max-width: 16ch;
  background: none;
  border: 0;
  padding: 0;
  backdrop-filter: none;
  text-shadow: 0 1px 8px rgba(27, 20, 9, 0.45);
}

.highlight { color: var(--accent); }

.glass,
.hero-copy > :not(h1),
.wrap.section,
.join-band .wrap,
.band .wrap,
main.legal,
.product-demo,
.faq .wrap,
.why-matters .wrap {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--ink);
}

.glass,
.hero-copy > :not(h1) {
  padding: 16px 18px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-copy > :not(h1) { margin: 0; }

.eyebrow {
  display: inline-block;
  width: fit-content;
  background: var(--cream);
  color: var(--ink);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.wrap.section,
.band .wrap,
.join-band .wrap,
main.legal,
.why-matters .wrap,
.product-demo {
  width: min(var(--wrap), calc(100% - 32px));
  margin: 16px auto;
  padding: 24px 20px 32px;
}

.band,
.join-band,
.why-matters { background: transparent; }

.screen {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 8px 0 32px;
}

.button,
a.button,
button.button,
a.source {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: transform 160ms var(--ease);
}

.button.secondary,
a.button.secondary {
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--text-secondary);
}

.button:disabled,
button:disabled {
  background: var(--disabled);
  color: var(--text-secondary);
  opacity: 1;
}

.button:active,
a.button:active,
button.button:active,
a.source:active {
  transform: scale(0.97);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

a:not(.button):not(.wordmark):not(.dir-row):not(.source) {
  color: var(--ink);
  text-underline-offset: 3px;
}

.site-footer {
  width: min(var(--wrap), calc(100% - 32px));
  margin: 24px auto 0;
  padding: 8px 0 48px;
  padding-bottom: max(48px, calc(env(safe-area-inset-bottom) + 32px));
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin: 8px 0;
}

.site-footer a { min-height: 44px; display: inline-flex; align-items: center; }

.dir-card,
.program-list {
  background: var(--sky-haze);
  border-radius: 20px;
  overflow: hidden;
}

.dir-row,
.program {
  display: block;
  min-height: 52px;
  padding: 12px 16px;
  border-top: 1px solid var(--sky-low);
  background: var(--sky-haze);
  color: var(--ink);
}

.dir-row:first-child,
.program:first-child { border-top: 0; }

.dir-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  transition: transform 160ms var(--ease);
}

.dir-row small,
.fine,
.micro { display: block; color: var(--text-secondary); font-size: 16px; }

.chev { flex: none; color: var(--ink); }

label { display: block; font-weight: 700; margin: 12px 0 6px; }

input,
textarea,
select {
  font: inherit;
  font-size: 16px;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--text-secondary);
  background: var(--white);
  color: var(--ink);
}

input[type="checkbox"],
input[type="radio"] {
  width: 22px;
  height: 22px;
  min-height: 0;
}

.phone {
  width: min(280px, 100%);
  margin: 8px 0;
  padding: 8px;
  border-radius: 28px;
  background: var(--ink);
}

.phone img { display: block; border-radius: 20px; }

.steps, .questions details { margin: 0 0 12px; }

.questions summary { min-height: 44px; cursor: pointer; font-weight: 700; }

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--good);
  margin-right: 8px;
}

.dot.urgent { background: var(--urgent); }

.pair {
  display: grid;
  gap: 16px;
}

.icon-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.icon-row svg { flex: none; margin-top: 2px; color: var(--ink); }

html.m-enter [data-enter] {
  animation: rise 360ms var(--ease) both;
}

@keyframes rise {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: none; }
}

@media (hover: hover) and (pointer: fine) {
  .dir-row:hover,
  .program:hover,
  a.card:hover {
    transform: translateY(-2px);
  }
}

@media (max-width: 640px) {
  .button,
  a.button,
  button.button,
  a.source { width: 100%; }
}

@media (min-width: 800px) {
  .pair { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: row; }
  .hero-actions .button { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .sky video { display: none; }
  html.m-enter [data-enter] { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .glass,
  .site-nav,
  .page-hero h1,
  .hero-copy > :not(h1),
  .wrap.section,
  .join-band .wrap,
  .band .wrap,
  main.legal,
  .product-demo,
  .faq .wrap,
  .why-matters .wrap {
    background: var(--cream);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .hero-image h1 { text-shadow: none; }
}

/* Design-gate fixes (14 Nov 2026): one gap between sections; bands keep room at their foot; text on the dark phone mock reads;
   the phone header leaves out the audience links (the footer keeps them); question rows share one left edge; each eyebrow carries its icon. */
main > section:not(.hero-image) { margin-block: 0; padding-block: 24px; }
.wrap.section, .band .wrap, .join-band .wrap, .why-matters .wrap, .product-demo { margin: 0 auto; }
.band .wrap { padding-bottom: 48px; }
.phone { color: #FFFDF5; }
.phone small, .phone .muted { color: #D8D0BF; }
.sec-icon { width: 20px; height: 20px; margin-right: 8px; vertical-align: -4px; color: var(--ink); }
.questions summary { list-style: none; padding-left: 0; text-indent: 0; }
.questions summary::-webkit-details-marker { display: none; }
@media (max-width: 640px) {
  .site-nav nav a[href="/caseworkers/"], .site-nav nav a[href="/host/"], .site-nav nav a[href="/press/"] { display: none; }
}
