:root {
  --brand-blue: #1c7aa0;
  --brand-blue-deep: #125d79;
  --brand-orange: #ff5a1f;
  --brand-orange-deep: #db4716;
  --bg: #fff8f2;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --surface-muted: #eaf4f8;
  --text: #163246;
  --muted: #627382;
  --line: rgba(22, 50, 70, 0.12);
  --shadow: 0 22px 54px rgba(17, 50, 71, 0.12);
  --shadow-soft: 0 12px 28px rgba(17, 50, 71, 0.08);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(28, 122, 160, 0.18), transparent 34%),
    radial-gradient(circle at top right, rgba(255, 90, 31, 0.18), transparent 28%),
    linear-gradient(180deg, #fffaf5 0%, var(--bg) 100%);
}

a { color: inherit; text-decoration: none; }
p { color: var(--muted); line-height: 1.65; margin: 0; }
h1, h2 { margin: 0; line-height: 1.04; }

.site-shell {
  padding:
    max(14px, env(safe-area-inset-top))
    max(14px, env(safe-area-inset-right))
    calc(24px + env(safe-area-inset-bottom))
    max(14px, env(safe-area-inset-left));
}

.site-header,
.site-footer,
.hero,
.card,
.page-card,
.metric {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.site-header,
.site-footer {
  display: grid;
  gap: 0.9rem;
  padding: 0.95rem;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header {
  position: sticky;
  top: max(10px, env(safe-area-inset-top));
  z-index: 20;
}

.site-main {
  width: min(760px, 100%);
  margin: 1rem auto 0;
  display: grid;
  gap: 1rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-wordmark {
  display: inline-flex;
  align-items: center;
}

.brand {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.brand-wordmark-image {
  display: block;
  width: min(192px, 52vw);
  height: auto;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #fff;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.brand-text,
.brand-inline {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-weight: 800;
}

.brand-text {
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.brand-class { color: var(--brand-blue); }
.brand-mom { color: var(--brand-orange); }

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.28rem;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(28, 122, 160, 0.14);
  border-radius: 16px;
  background: rgba(28, 122, 160, 0.08);
  color: var(--brand-blue-deep);
  cursor: pointer;
}

.menu-line {
  width: 20px;
  height: 2px;
  margin: 0 auto;
  border-radius: 999px;
  background: currentColor;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-nav,
.footer-links,
.hero-actions,
.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.site-nav {
  display: none;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  overflow: visible;
  flex-wrap: nowrap;
  padding-bottom: 0;
  scrollbar-width: auto;
}

.site-nav.is-open {
  display: flex;
}

.site-nav a,
.footer-links a {
  flex: 0 0 auto;
}

.site-nav a {
  width: 100%;
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  background: rgba(28, 122, 160, 0.08);
  border: 1px solid rgba(28, 122, 160, 0.14);
  color: var(--brand-blue-deep);
  font-weight: 600;
}

.footer-links {
  color: var(--brand-blue-deep);
}

.eyebrow {
  color: var(--brand-blue);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.hero {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
}

.hero-copy,
.hero-panel {
  display: grid;
  gap: 1rem;
}

.hero h1 {
  font-size: clamp(2.15rem, 11vw, 4.9rem);
  max-width: 11ch;
}

.hero-actions .btn {
  flex: 1 1 100%;
}

.metric,
.card,
.page-card {
  padding: 1.2rem;
  border: 1px solid var(--line);
}

.metric {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(234, 244, 248, 0.92));
  box-shadow: var(--shadow-soft);
}

.metric span {
  display: block;
  color: var(--muted);
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
}

.metric strong {
  font-size: 1.05rem;
  line-height: 1.35;
}

.cards {
  display: grid;
  gap: 0.9rem;
}

.page-card { padding: 1.45rem; }

.auth-wordmark {
  display: block;
  width: min(220px, 60vw);
  height: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.92rem 1.2rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-deep));
  color: #fff;
}

.btn-secondary {
  background: var(--surface-muted);
  color: var(--brand-blue-deep);
  border: 1px solid rgba(28, 122, 160, 0.14);
}

.page-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.92rem 1rem;
  font: inherit;
  color: var(--text);
  background: #fff;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(28, 122, 160, 0.4);
  box-shadow: 0 0 0 4px rgba(28, 122, 160, 0.14);
}

label { display: grid; gap: 0.45rem; }

.cookie-banner {
  position: fixed;
  right: 14px;
  left: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  padding: 1rem 1.05rem;
  background: rgba(20, 38, 52, 0.96);
  color: #fff;
  border-radius: 24px;
  box-shadow: 0 28px 60px rgba(10, 24, 36, 0.24);
}

.cookie-banner p { color: rgba(255, 255, 255, 0.76); }
.hidden { display: none; }

@media (min-width: 760px) {
  .site-header,
  .site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .menu-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    flex-direction: row;
    width: auto;
    overflow: visible;
    flex-wrap: wrap;
  }

  .site-nav a {
    width: auto;
  }

  .site-main {
    width: min(1120px, 100%);
    margin-top: 1.35rem;
    gap: 1.25rem;
  }

  .brand-wordmark-image {
    width: 214px;
  }

  .hero {
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.9fr);
    align-items: stretch;
    padding: 1.8rem;
  }

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

  .page-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }

  .hero-actions .btn {
    flex: 0 0 auto;
  }

  .cookie-banner {
    left: auto;
    width: min(420px, calc(100vw - 28px));
  }
}
