:root {
  --bg: #f4f2ed;
  --elevated: #fcfbf8;
  --surface: #ede9e7;
  --border: #d2cec9;
  --title: #1a1918;
  --body: #3d3b38;
  --muted: #7a7672;
  --accent: #7d9468;
  --accent-soft: rgba(125, 148, 104, 0.12);
  --hairline: 1px;
  --radius: 0;
  --shell: min(1120px, calc(100% - 2.5rem));
  --font: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--title);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.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;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.6rem 0.9rem;
  background: var(--title);
  color: var(--elevated);
}

.skip-link:focus {
  top: 1rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: var(--hairline) solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
  gap: 1rem;
}

.wordmark {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
  color: inherit;
}

.wordmark-eyebrow {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.wordmark-name {
  font-family: var(--font);
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: 0.28em;
  color: var(--title);
  line-height: 1;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--title);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.95rem;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 0.88rem;
  font-weight: 600;
}

.nav-cta:hover {
  filter: brightness(0.95);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2.5rem;
  height: 2.5rem;
  border: var(--hairline) solid var(--border);
  background: var(--elevated);
  cursor: pointer;
  padding: 0.55rem;
}

.nav-toggle span {
  display: block;
  height: 1px;
  background: var(--title);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.25rem 1.25rem;
  border-bottom: var(--hairline) solid var(--border);
  background: var(--elevated);
}

.mobile-nav[hidden] {
  display: none !important;
}

.mobile-nav a {
  color: var(--title);
  text-decoration: none;
  padding: 0.35rem 0;
}

@media (min-width: 860px) {
  .site-nav {
    display: flex;
  }

  .nav-toggle,
  .mobile-nav {
    display: none !important;
  }
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: var(--hairline) solid var(--border);
}

.hero-visual {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, var(--accent-soft), transparent 60%),
    linear-gradient(165deg, #f7f5f0 0%, var(--bg) 45%, #ebe7e0 100%);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  padding: 3rem 0 3.5rem;
  align-items: center;
}

.hero-nest {
  order: -1;
  display: grid;
  place-items: center;
  min-height: 42vw;
  max-height: 420px;
}

.nest {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 1;
}

.nest-frame {
  position: absolute;
  border: var(--hairline) solid var(--border);
  background: color-mix(in srgb, var(--elevated) 70%, transparent);
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease;
}

.nest-frame[data-level="1"] {
  inset: 0;
}

.nest-frame[data-level="2"] {
  inset: 12%;
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}

.nest-frame[data-level="3"] {
  inset: 26%;
}

.nest-frame[data-level="4"] {
  inset: 38%;
  background: var(--elevated);
}

.nest-frame[data-level="5"] {
  inset: 46%;
  background: var(--accent-soft);
  border-color: var(--accent);
}

.nest.is-alive .nest-frame[data-level="1"] { transform: scale(1.02); }
.nest.is-alive .nest-frame[data-level="2"] { transform: scale(1.04); }
.nest.is-alive .nest-frame[data-level="3"] { transform: scale(1.06); }
.nest.is-alive .nest-frame[data-level="4"] { transform: scale(1.08); }
.nest.is-alive .nest-frame[data-level="5"] { transform: scale(1.12); }

.hero-content {
  max-width: 34rem;
}

@media (min-width: 900px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    min-height: min(88vh, 760px);
    padding: 4rem 0;
  }

  .hero-nest {
    order: 0;
    min-height: 0;
    max-height: none;
    height: 100%;
    max-width: 440px;
    width: 100%;
    justify-self: center;
  }

  .nest {
    width: min(100%, 420px);
  }
}

.hero-content.is-visible .reveal {
  opacity: 1;
  transform: none;
}

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

.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font);
  font-size: clamp(2.6rem, 7vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.22em;
  line-height: 1;
  color: var(--title);
}

.hero-headline {
  margin: 0 0 0.85rem;
  font-family: var(--font);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--title);
}

.hero-lede {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 28rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  border: var(--hairline) solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-primary:hover {
  color: #fff;
  filter: brightness(0.96);
}

.button-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--title);
}

.button-ghost:hover {
  border-color: var(--title);
  color: var(--title);
}

/* Sections */

.section {
  padding: 4.5rem 0;
  border-bottom: var(--hairline) solid var(--border);
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.25rem;
}

.section-head h2 {
  margin: 0.35rem 0 0.65rem;
  font-family: var(--font);
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  font-weight: 400;
  color: var(--title);
  line-height: 1.2;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.journey {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--hairline);
  background: var(--border);
  border: var(--hairline) solid var(--border);
}

.journey-step {
  background: var(--elevated);
  padding: 1.25rem 1rem 1.4rem;
  min-height: 9.5rem;
}

.journey-step .step-index {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.journey-step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--title);
}

.journey-step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.feature-list {
  display: grid;
  gap: var(--hairline);
  border: var(--hairline) solid var(--border);
  background: var(--border);
}

.feature {
  background: var(--elevated);
  padding: 1.4rem 1.25rem;
}

.feature h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--title);
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (min-width: 720px) {
  .feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.shot-strip {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.shot {
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border: var(--hairline) solid var(--border);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.cta-band {
  background: var(--elevated);
  border: var(--hairline) solid var(--border);
  padding: 2.25rem 1.5rem;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .cta-band {
    grid-template-columns: 1.4fr auto;
    align-items: center;
    padding: 2.5rem;
  }
}

.cta-band h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font);
  font-size: 1.65rem;
  font-weight: 400;
  color: var(--title);
}

.cta-band p {
  margin: 0;
  color: var(--muted);
}

/* Prose pages */

.page-hero {
  padding: 3rem 0 1.5rem;
  border-bottom: var(--hairline) solid var(--border);
}

.page-hero h1 {
  margin: 0.35rem 0 0.75rem;
  font-family: var(--font);
  font-size: clamp(1.85rem, 3.5vw, 2.4rem);
  font-weight: 300;
  color: var(--title);
}

.page-hero .meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.prose {
  padding: 2.5rem 0 4rem;
  max-width: 42rem;
}

.prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.2rem;
  color: var(--title);
}

.prose p,
.prose li {
  color: var(--body);
}

.prose ul {
  padding-left: 1.2rem;
}

.prose a {
  color: var(--accent);
}

.faq details {
  border-top: var(--hairline) solid var(--border);
  padding: 1rem 0;
}

.faq details:last-child {
  border-bottom: var(--hairline) solid var(--border);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--title);
}

.faq details p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

/* Footer */

.site-footer {
  padding: 2.5rem 0 3rem;
  background: var(--elevated);
  border-top: var(--hairline) solid var(--border);
}

.footer-inner {
  display: grid;
  gap: 1.25rem;
}

.footer-name {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  letter-spacing: 0.22em;
  color: var(--title);
}

.footer-tag,
.footer-copy {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
}

.footer-nav a {
  color: var(--title);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-nav a:hover {
  color: var(--accent);
}

@media (max-width: 860px) {
  .journey {
    grid-template-columns: 1fr;
  }
}

/* In-app WebView (privacy / terms) */

body.is-embed {
  min-height: 100%;
}

body.is-embed .embed-main {
  padding-bottom: 2rem;
}

body.is-embed .page-hero {
  padding-top: 1.25rem;
}
