/* Neut: warm civic editorial system */
:root {
  --font-body: "Manrope", system-ui, sans-serif;
  --font-display: var(--font-body);
  --font-code: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --color-ink: #161410;
  --color-ink-muted: #3d3830;
  --color-body: #5c564c;
  --color-paper: #f3ece1;
  --color-paper-deep: #e8dfd0;
  --color-line: rgba(22, 20, 16, 0.12);
  --color-scrim: linear-gradient(
    105deg,
    rgba(243, 236, 225, 0.97) 0%,
    rgba(243, 236, 225, 0.88) 38%,
    rgba(243, 236, 225, 0.35) 72%,
    rgba(243, 236, 225, 0.15) 100%
  );
  --color-scrim-mobile: linear-gradient(
    180deg,
    rgba(243, 236, 225, 0.96) 0%,
    rgba(243, 236, 225, 0.75) 45%,
    rgba(243, 236, 225, 0.5) 100%
  );
  --color-accent: #0f5f5f;
  --color-accent-hover: #0a4545;
  --color-warm: #8b4518;
  --header-h: 4rem;
  --space-section: clamp(4rem, 10vw, 7rem);
  --content-max: 72rem;
  --text-max: 38rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft: 0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 12px 40px rgba(22, 20, 16, 0.08);
  /* Muted sage aligned with hero gradient (#8fa9a8 → #3d5c5a), not blue-teal */
  --pricing-accent: #3d5c5a;
  --pricing-accent-hover: #334f4d;
  --pricing-accent-soft: #e3e9e7;
  --pricing-save-badge-bg: #c9d4d1;
  --pricing-save-badge-ink: #2c3b39;
  --pricing-save-badge-border: rgba(61, 92, 90, 0.38);
}

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

html {
  font-family: var(--font-body);
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

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

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration: underline;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(243, 236, 225, 0.72);
  border-bottom: 1px solid var(--color-line);
  backdrop-filter: blur(14px);
  transition: background 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}

.site-header.is-raised {
  background: rgba(243, 236, 225, 0.92);
}

.site-header__inner {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-lockup:hover {
  text-decoration: none;
  color: var(--color-accent);
}

.brand-lockup img {
  height: 1.75rem;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  display: none;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-ink-muted);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

@media (min-width: 768px) {
  .site-nav a {
    display: inline-block;
  }
}

.site-nav a:hover {
  background: rgba(22, 20, 16, 0.06);
  text-decoration: none;
  color: var(--color-ink);
}

.site-nav a[aria-current="page"] {
  color: var(--color-accent);
  background: rgba(15, 95, 95, 0.08);
}

.site-nav__social {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.5rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--color-line);
}

.site-nav__social a {
  display: flex;
  padding: 0.4rem;
  border-radius: 0.5rem;
  color: var(--color-ink-muted);
}

.site-nav__social a:hover {
  background: rgba(22, 20, 16, 0.08);
  color: var(--color-ink);
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--color-line);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  color: var(--color-ink);
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}

.nav-drawer {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  background: rgba(22, 20, 16, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-out), visibility 0.3s;
}

.nav-drawer.is-open {
  opacity: 1;
  visibility: visible;
}

.nav-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(20rem, 88vw);
  height: 100%;
  background: var(--color-paper);
  border-left: 1px solid var(--color-line);
  padding: 1.25rem;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-out);
  box-shadow: var(--shadow-soft);
}

.nav-drawer.is-open .nav-drawer__panel {
  transform: translateX(0);
}

.nav-drawer a {
  display: block;
  padding: 0.85rem 0;
  font-weight: 500;
  color: var(--color-ink);
  border-bottom: 1px solid var(--color-line);
  text-decoration: none;
}

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

/* Hero (full-bleed) */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  margin-top: var(--header-h);
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  background: var(--color-paper-deep);
}

/* Home: show sources as a distinct band, then a slice of the widgets section (scroll affordance) */
.page-home {
  /* Full logo strip + wedge of .section--widgets gradient below it */
  --home-scroll-peek: clamp(12rem, 36svh, 22rem);
}

@media (max-height: 700px) {
  .page-home {
    --home-scroll-peek: clamp(8.5rem, 30svh, 16rem);
  }
}

.page-home .hero,
.page-home .hero__inner {
  min-height: calc(100svh - var(--header-h) - var(--home-scroll-peek));
}

.page-home .strip-sources {
  position: relative;
  z-index: 1;
  box-shadow:
    0 -1px 0 rgba(22, 20, 16, 0.06),
    0 6px 20px rgba(22, 20, 16, 0.07);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Template hero: layered gradients + grid (no photo asset) */
.hero__media--template {
  background: #1a2f2e;
}

.hero__template-layer {
  position: absolute;
  inset: 0;
}

.hero__template-layer--base {
  background: linear-gradient(
    155deg,
    #f3ece1 0%,
    #d9cfc2 38%,
    #8fa9a8 78%,
    #3d5c5a 100%
  );
}

.hero__template-layer--mesh {
  background: radial-gradient(
      ellipse 90% 70% at 72% 28%,
      rgba(15, 95, 95, 0.35),
      transparent 55%
    ),
    radial-gradient(ellipse 60% 50% at 12% 88%, rgba(139, 69, 24, 0.18), transparent 50%);
  mix-blend-mode: multiply;
  opacity: 0.85;
}

.hero__template-layer--grid {
  background-image: linear-gradient(rgba(22, 20, 16, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 20, 16, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 85% 75% at 70% 35%, black 20%, transparent 75%);
  opacity: 0.9;
}

.hero__template-layer--orb {
  background: radial-gradient(
    circle at 68% 42%,
    rgba(255, 252, 245, 0.45) 0%,
    rgba(255, 252, 245, 0.12) 35%,
    transparent 62%
  );
  transform: scale(1.08);
  animation: hero-ken 22s ease-in-out infinite alternate;
}

@keyframes hero-ken {
  from {
    transform: scale(1.04) translate(0, 0);
  }
  to {
    transform: scale(1.12) translate(-2%, -1%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__template-layer--orb {
    animation: none;
  }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: var(--color-scrim);
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 767px) {
  .hero__scrim {
    background: var(--color-scrim-mobile);
  }
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100svh - var(--header-h));
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 3rem) clamp(1rem, 4vw, 2rem);
}

.hero__brand {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.25rem, 11vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--color-ink);
  opacity: 0;
  animation: rise 0.9s var(--ease-out) 0.05s forwards;
}

.hero__headline {
  margin: 0 0 1rem;
  max-width: var(--text-max);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-ink-muted);
  opacity: 0;
  animation: rise 0.85s var(--ease-out) 0.18s forwards;
}

.hero__lede {
  margin: 0 0 1.75rem;
  max-width: 28rem;
  font-size: 1.05rem;
  color: var(--color-body);
  opacity: 0;
  animation: rise 0.85s var(--ease-out) 0.3s forwards;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, background 0.2s,
    border-color 0.2s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--color-accent);
  color: #f8f6f0;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
}

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

.btn--ghost {
  background: rgba(255, 255, 255, 0.55);
  border-color: var(--color-line);
  color: var(--color-ink);
}

.btn--ghost:hover {
  background: #fff;
  border-color: rgba(22, 20, 16, 0.2);
}

.store-badge {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.8rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--color-line);
  border-radius: 0.5rem;
  color: var(--color-ink);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.store-badge:hover {
  background: #fff;
  text-decoration: none;
  border-color: rgba(22, 20, 16, 0.22);
  box-shadow: 0 2px 12px rgba(22, 20, 16, 0.06);
}

.store-badge__mark {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
}

.store-badge__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.08rem;
  line-height: 1.15;
  min-width: 0;
}

.store-badge__name {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-body);
}

.store-badge__action {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-ink);
}


/* Sections */
.section {
  padding: var(--space-section) clamp(1rem, 4vw, 2rem);
}

.section__inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.section__label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-warm);
}

.section__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  line-height: 1.15;
}

.section__lead {
  margin: 0;
  max-width: 40rem;
  font-size: 1.125rem;
  color: var(--color-body);
}

/* Footer */
.site-footer {
  padding: 3rem clamp(1rem, 4vw, 2rem);
  background: #1c1a16;
  color: #c9c2b6;
}

.site-footer a {
  color: #e8e3d9;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  text-align: center;
}

@media (min-width: 640px) {
  .site-footer__inner {
    text-align: left;
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .footer-social {
    justify-content: flex-end;
  }
}

.footer-social a,
.footer-social__contact {
  display: inline-flex;
  padding: 0.45rem 0.65rem;
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.footer-social__contact {
  margin: 0;
  border: none;
  font: inherit;
  font-size: inherit;
  color: #e8e3d9;
  cursor: pointer;
}

.footer-social a:hover,
.footer-social__contact:hover {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
  color: #fff;
}

.footer-social__contact:focus-visible {
  outline: 2px solid rgba(232, 227, 217, 0.85);
  outline-offset: 2px;
}

.copy-toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  z-index: 200;
  max-width: calc(100vw - 2rem);
  padding: 0.65rem 1.15rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #f3ece1;
  background: #2a2824;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translate(-50%, 120%);
  pointer-events: none;
  transition: opacity 0.25s var(--ease-out), transform 0.35s var(--ease-out);
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.footer-meta {
  font-size: 0.875rem;
}

.footer-meta p {
  margin: 0.35rem 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
}

.footer-brand__logo {
  display: block;
  height: 1.5rem;
  width: auto;
  max-width: 7rem;
  object-fit: contain;
  object-position: left center;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
