:root {
  --bg: #f4f2f1;
  --surface: #ffffff;
  --surface-alt: #e8e6e3;
  --ink: #1c1a17;
  --ink-2: #554d44;
  --ink-3: #8e8071;
  --ink-4: #a4998e;
  --border: #d2ccc6;
  --divider: #e8e6e3;
  --accent: #e8503a;
  --accent-deep: #c33f2c;
  --accent-subtle: #fdeeea;
  --accent-border: #f6d5cc;
  --on-accent: #17110f;
  --shadow: 0 22px 70px rgba(28, 26, 23, 0.12);
  --shadow-soft: 0 10px 26px rgba(28, 26, 23, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171412;
    --surface: #211d19;
    --surface-alt: #272220;
    --ink: #f2ede7;
    --ink-2: #c0b6ab;
    --ink-3: #9a8f82;
    --ink-4: #8a7f73;
    --border: #38312b;
    --divider: #272220;
    --accent: #e8503a;
    --accent-deep: #c33f2c;
    --accent-subtle: #2a1712;
    --accent-border: #4a241b;
    --on-accent: #17110f;
    --shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
    --shadow-soft: 0 10px 26px rgba(0, 0, 0, 0.3);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, ui-sans-serif,
    sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  align-items: center;
  background: rgba(244, 242, 241, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--divider);
  display: flex;
  justify-content: space-between;
  min-height: 70px;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 20;
}

@media (prefers-color-scheme: dark) {
  .site-header {
    background: rgba(23, 20, 18, 0.86);
  }
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 18px;
  font-weight: 900;
  gap: 10px;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 11px;
  color: var(--bg);
  display: inline-flex;
  font-size: 22px;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  position: relative;
  width: 42px;
}

.brand-mark::after {
  background: var(--accent);
  border: 2px solid var(--bg);
  border-radius: 999px;
  bottom: -4px;
  content: "";
  height: 12px;
  position: absolute;
  right: -4px;
  width: 12px;
}

.brand-mark.tiny {
  border-radius: 7px;
  font-size: 13px;
  height: 26px;
  width: 26px;
}

.nav {
  align-items: center;
  color: var(--ink-3);
  display: flex;
  font-size: 14px;
  font-weight: 800;
  gap: 26px;
}

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

.hero {
  align-items: center;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(230px, 0.78fr) minmax(320px, 0.95fr) minmax(250px, 0.82fr);
  margin: 0 auto;
  max-width: 1220px;
  min-height: calc(100vh - 70px);
  padding: 54px 32px 42px;
}

.hero-copy {
  justify-self: center;
  max-width: 520px;
  text-align: center;
}

.pill {
  align-items: center;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  color: var(--accent-deep);
  display: inline-flex;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  min-height: 32px;
  padding: 0 13px;
}

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

h1 {
  font-size: 68px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 0.98;
  margin-top: 18px;
}

h2 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.06;
}

h3 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.hero-copy p,
.copy-block p,
.preview-grid p {
  color: var(--ink-3);
  font-size: 18px;
  line-height: 1.55;
}

.hero-copy p {
  margin-top: 20px;
}

.hero-actions {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 30px;
}

.store-button,
.button,
.download-strip a {
  align-items: center;
  border-radius: 12px;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
}

.store-button {
  background: var(--accent);
  color: var(--on-accent);
  flex-direction: column;
  min-height: 62px;
  padding: 9px 16px;
}

.store-button span {
  font-size: 12px;
  opacity: 0.75;
}

.store-button strong {
  font-size: 17px;
}

.store-button.light {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
}

.hero-device {
  min-width: 0;
}

.cluster-left {
  align-self: end;
  transform: rotate(-4deg);
}

.cluster-right {
  align-self: start;
  transform: rotate(3deg);
}

.phone {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 32px;
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 330px;
  overflow: hidden;
  padding: 16px;
  width: 100%;
}

.phone::before {
  background: var(--border);
  border-radius: 999px;
  content: "";
  display: block;
  height: 5px;
  margin: 0 auto 14px;
  width: 54px;
}

.phone-bar,
.post-head,
.profile-row,
.engagement,
.stats {
  align-items: center;
  display: flex;
}

.phone-bar {
  font-weight: 900;
  justify-content: space-between;
  min-height: 30px;
}

.icon-row {
  color: var(--accent);
  font-size: 19px;
}

.dot {
  background: var(--accent);
  border-radius: 999px;
  height: 9px;
  width: 9px;
}

.feed-card {
  margin-top: 14px;
}

.phone-feed {
  max-height: 690px;
}

.story-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow: hidden;
  padding-bottom: 2px;
}

.story-row span {
  background: linear-gradient(145deg, var(--accent), var(--ink));
  border-radius: 999px;
  flex: 0 0 58px;
  height: 58px;
  padding: 3px;
  width: 58px;
}

.story-row img {
  border: 3px solid var(--surface);
  border-radius: 999px;
}

.feed-scroll {
  max-height: 570px;
  overflow-y: auto;
  position: relative;
  scrollbar-width: none;
}

.feed-scroll::after {
  background: linear-gradient(180deg, transparent, var(--surface));
  bottom: 0;
  content: "";
  height: 76px;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
}

.feed-scroll::-webkit-scrollbar {
  display: none;
}

.feed-card.compact {
  border-top: 1px solid var(--divider);
  padding-top: 14px;
}

.feed-card.compact .post-media {
  aspect-ratio: 4 / 3;
}

.post-head {
  gap: 10px;
  margin-bottom: 12px;
}

.post-head span,
.profile-row span,
.stats span,
.engagement,
.download-strip span {
  color: var(--ink-3);
  font-size: 13px;
}

.avatar {
  background: linear-gradient(145deg, var(--accent), var(--accent-deep));
  border-radius: 999px;
  height: 38px;
  overflow: hidden;
  width: 38px;
}

.post-media,
.cover-photo,
.screen-thumb {
  overflow: hidden;
  position: relative;
}

.post-media img,
.cover-photo img,
.screen-thumb img,
.mini-grid img,
.family-preview img,
.avatar img,
.story-row img,
.profile-rail img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.post-media {
  aspect-ratio: 4 / 5;
  background: var(--surface-alt);
  border-radius: 16px;
}

.engagement {
  font-weight: 900;
  gap: 14px;
  justify-content: space-between;
  margin: 13px 0 10px;
}

.feed-card p {
  font-size: 14px;
  line-height: 1.42;
}

.cover-photo {
  aspect-ratio: 5 / 3;
  background: var(--surface-alt);
  border-radius: 16px;
  margin-top: 14px;
}

.cover-photo::after,
.screen-thumb::after {
  background: linear-gradient(180deg, transparent 48%, rgba(23, 17, 15, 0.4));
  content: "";
  inset: 0;
  position: absolute;
}

.profile-row {
  gap: 12px;
  margin-top: -24px;
  padding: 0 6px;
}

.profile-avatar {
  border: 4px solid var(--surface);
  height: 66px;
  width: 66px;
}

.profile-row div:last-child {
  display: grid;
  gap: 2px;
  padding-top: 26px;
}

.stats {
  border-bottom: 1px solid var(--divider);
  border-top: 1px solid var(--divider);
  gap: 12px;
  justify-content: space-between;
  margin: 16px 0;
  padding: 13px 0;
  text-align: center;
}

.stats strong {
  color: var(--ink);
  display: block;
}

.profile-bio {
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.35;
  margin: -4px 0 14px;
}

.mini-grid {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(2, 1fr);
}

.mini-grid span {
  aspect-ratio: 1;
  background: var(--surface-alt);
  border-radius: 10px;
  color: var(--surface);
  font-size: 14px;
  font-weight: 900;
  overflow: hidden;
}

.invite-tile {
  align-items: center;
  background: var(--ink) !important;
  color: var(--bg);
  display: flex;
  justify-content: center;
  padding: 12px;
  text-align: center;
}

.download-strip {
  align-items: center;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  margin: 0 auto;
  max-width: 1120px;
  padding: 22px 24px;
  border-radius: 18px;
}

.download-strip div {
  display: grid;
  gap: 4px;
}

.download-strip strong {
  color: var(--bg);
}

.download-strip span {
  color: rgba(242, 237, 231, 0.68);
}

.download-strip a {
  background: var(--accent);
  color: var(--on-accent);
  min-height: 44px;
  padding: 0 16px;
}

.app-preview,
.split-section,
.community-band,
.parent-band,
.eu-band,
.closing {
  margin: 0 auto;
  max-width: 1120px;
  padding: 86px 24px;
}

.section-heading {
  display: grid;
  gap: 16px;
  margin: 0 auto 34px;
  max-width: 760px;
  text-align: center;
}

.preview-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-rail {
  display: grid;
  gap: 14px;
  grid-auto-columns: 160px;
  grid-auto-flow: column;
  margin-bottom: 26px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scrollbar-width: thin;
}

.profile-rail article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 7px;
  min-width: 150px;
  padding: 10px;
  text-align: center;
}

.profile-rail img {
  aspect-ratio: 1;
  border-radius: 10px;
}

.profile-rail strong {
  font-size: 15px;
}

.profile-rail span {
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 800;
}

.preview-grid article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.screen-thumb {
  aspect-ratio: 3 / 4;
  background: var(--surface-alt);
  border-radius: 12px;
}

.screen-thumb::before {
  background: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  content: "";
  height: 8px;
  left: 16px;
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 1;
}

.split-section,
.parent-band {
  align-items: center;
  border-top: 1px solid var(--divider);
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
}

.copy-block {
  display: grid;
  gap: 18px;
}

.flow-list {
  display: grid;
  gap: 12px;
}

.flow-list span,
.control-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-weight: 900;
  padding: 18px 20px;
}

.flow-list span:nth-child(2),
.flow-list span:nth-child(4) {
  margin-left: 34px;
}

.flow-list span.step-final {
  background: var(--accent-subtle);
  border-color: var(--accent-border);
  color: var(--accent-deep);
}

/* ── Communities band: shows the same discovery surface returning
   different local communities as your area changes. ── */
.community-band {
  border-top: 1px solid var(--divider);
}

.community-demo {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.community-stop {
  display: grid;
  gap: 12px;
}

.location-chip {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  padding: 8px 14px;
  width: fit-content;
}

.location-chip .pin {
  color: var(--accent);
}

.community-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 8px;
  padding: 16px;
}

.community-card .topic-badge {
  background: var(--accent-subtle);
  border-radius: 999px;
  color: var(--accent-deep);
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  width: fit-content;
}

.community-card strong {
  font-size: 16px;
  letter-spacing: -0.2px;
}

.community-card span {
  color: var(--ink-3);
  font-size: 13px;
}

.community-arrow {
  align-items: center;
  background: var(--surface-alt);
  border-radius: 999px;
  color: var(--ink-3);
  display: flex;
  font-size: 20px;
  font-weight: 900;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.parent-band {
  background: var(--surface-alt);
  max-width: none;
  padding-left: max(24px, calc((100vw - 1072px) / 2));
  padding-right: max(24px, calc((100vw - 1072px) / 2));
}

.safety-points {
  display: grid;
  gap: 12px;
  margin-top: 6px;
}

.safety-points li {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.5;
  list-style: none;
  padding-left: 26px;
  position: relative;
}

.safety-points li::before {
  color: var(--accent);
  content: "✓";
  font-weight: 900;
  left: 0;
  position: absolute;
}

.control-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
  padding: 16px;
}

.family-preview {
  border-radius: 16px;
  box-shadow: var(--shadow);
  min-height: 430px;
  overflow: hidden;
  position: relative;
}

.family-preview > img {
  min-height: 430px;
}

.family-preview .control-panel {
  bottom: 18px;
  box-shadow: 0 18px 44px rgba(28, 26, 23, 0.28);
  left: 18px;
  position: absolute;
  right: 18px;
}

.control-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.control-row span {
  color: var(--ink-3);
}

.control-row.active {
  background: var(--accent-subtle);
}

.control-row.quiet {
  background: var(--ink);
  color: var(--bg);
}

.control-row.quiet span {
  color: rgba(242, 237, 231, 0.68);
}

/* ── EU data residency trust band ── */
.eu-band {
  border-top: 1px solid var(--divider);
}

.eu-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
}

.eu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: grid;
  gap: 8px;
  padding: 22px;
}

.eu-card .eu-flag {
  font-size: 22px;
}

.eu-card h3 {
  margin-top: 4px;
}

.eu-card p {
  color: var(--ink-3);
  font-size: 14.5px;
  line-height: 1.5;
}

.closing {
  display: grid;
  gap: 22px;
  justify-items: center;
  text-align: center;
}

.closing h2 {
  max-width: 840px;
}

.button {
  background: var(--accent);
  color: var(--on-accent);
  min-height: 48px;
  padding: 0 18px;
}

.footer {
  align-items: center;
  border-top: 1px solid var(--divider);
  color: var(--ink-3);
  display: flex;
  justify-content: space-between;
  padding: 28px 32px;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .cluster-left,
  .cluster-right {
    transform: none;
  }

  .cluster-left {
    display: none;
  }

  .phone {
    max-width: 350px;
  }

  .download-strip,
  .preview-grid,
  .split-section,
  .parent-band,
  .eu-grid {
    grid-template-columns: 1fr;
  }

  .community-demo {
    grid-template-columns: 1fr;
  }

  .community-arrow {
    transform: rotate(90deg);
  }

  .download-strip a {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 16px 18px;
    position: static;
  }

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

  .hero {
    padding: 36px 18px 30px;
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 30px;
  }

  .hero-copy p,
  .copy-block p,
  .preview-grid p {
    font-size: 16px;
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  .download-strip,
  .app-preview,
  .split-section,
  .community-band,
  .parent-band,
  .eu-band,
  .closing {
    padding: 48px 18px;
  }

  .flow-list span:nth-child(2),
  .flow-list span:nth-child(4) {
    margin-left: 0;
  }

  .control-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 24px 18px;
  }
}
