:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --bg-strong: #222721;
  --surface: #ffffff;
  --surface-soft: #eceee6;
  --text: #191d18;
  --muted: #62675d;
  --border: #d9ddcf;
  --accent: #2f7d59;
  --accent-strong: #246346;
  --accent-soft: #d8eadc;
  --orange: #e88f45;
  --blue: #4c7fba;
  --shadow: 0 24px 70px rgba(25, 29, 24, 0.14);
  --radius: 8px;
  --max: 1120px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

.site-header {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand,
.nav-links,
.hero-actions,
.invite-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 780;
  font-size: 1.06rem;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--text);
  color: white;
  font-weight: 850;
}

.nav-links {
  gap: 26px;
  color: var(--muted);
  font-size: 0.94rem;
}

.button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  font-weight: 740;
  font-size: 0.94rem;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-1px);
}

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

.button-primary:hover {
  background: var(--accent-strong);
}

.button-secondary,
.button-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.button-ghost {
  color: var(--accent-strong);
  border-color: transparent;
}

.button[aria-disabled="true"] {
  pointer-events: none;
  background: var(--surface-soft);
  color: var(--muted);
}

.hero {
  width: min(var(--max), calc(100% - 32px));
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  align-items: center;
  gap: clamp(30px, 6vw, 88px);
  padding: 52px 0 92px;
}

.hero-copy {
  max-width: 610px;
}

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

h1 {
  margin-bottom: 22px;
  font-size: 6.4rem;
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: 4rem;
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.hero-copy p,
.section-copy p,
.download-copy,
.circle-panel p,
.invite-copy p {
  color: var(--muted);
  font-size: 1.18rem;
}

.hero-actions,
.invite-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.phone-stack {
  position: relative;
  min-height: 610px;
}

.phone-frame,
.screen-card {
  border: 1px solid rgba(25, 29, 24, 0.1);
  background: #111511;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.phone-frame {
  position: absolute;
  width: min(300px, 52vw);
  aspect-ratio: 390 / 844;
  border-radius: 40px;
  padding: 10px;
}

.phone-frame img {
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
}

.phone-frame-main {
  right: 25%;
  top: 0;
  z-index: 2;
}

.phone-frame-secondary {
  right: 0;
  top: 86px;
  transform: rotate(3deg);
  opacity: 0.92;
}

.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0;
}

.section-why {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 64px);
  border-top: 1px solid var(--border);
}

.section-copy {
  max-width: 620px;
}

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

.reason-grid article,
.circle-panel,
.invite-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.reason-grid article {
  padding: 24px;
  min-height: 206px;
}

.reason-grid p,
.screen-card figcaption,
.feature-list,
.copy-status {
  color: var(--muted);
}

.section-how {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
}

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

.screen-card {
  border-radius: 22px;
  padding: 10px;
}

.screen-card img {
  border-radius: 14px;
  aspect-ratio: 390 / 844;
  object-fit: cover;
}

.screen-card figcaption {
  padding: 14px 8px 4px;
  font-size: 0.92rem;
}

.feature-list {
  margin: 24px 0 0;
  padding-left: 18px;
  font-size: 1rem;
}

.feature-list li + li {
  margin-top: 8px;
}

.section-circles {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.circle-panel {
  padding: 34px;
  background: var(--bg-strong);
  color: white;
  border-color: transparent;
}

.circle-panel p {
  color: rgba(255, 255, 255, 0.74);
  margin-bottom: 0;
}

.panel-label {
  color: var(--accent-soft);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.download {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto 42px;
  padding: 42px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.download h2 {
  font-size: 3.2rem;
}

.download p {
  margin-bottom: 0;
}

.site-footer {
  width: min(var(--max), calc(100% - 32px));
  min-height: 86px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.94rem;
}

.invite-page {
  min-height: 100vh;
}

.invite-shell {
  width: min(760px, calc(100% - 32px));
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 56px 0;
}

.invite-card {
  width: 100%;
  min-width: 0;
  padding: clamp(28px, 6vw, 56px);
  box-shadow: var(--shadow);
}

.invite-card h1 {
  font-size: 4.6rem;
}

.invite-code-block {
  margin-top: 30px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 16px;
  align-items: center;
}

.invite-code-block span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.invite-code-block strong {
  grid-column: 1;
  font-size: 3.8rem;
  letter-spacing: 0.08em;
  line-height: 1;
}

.invite-code-block .button {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.copy-status {
  min-height: 24px;
  margin: 16px 0 0;
}

@media (max-width: 880px) {
  .nav-links {
    display: none;
  }

  .hero,
  .section-why,
  .section-how,
  .section-circles {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
  }

  .phone-stack {
    min-height: 520px;
  }

  .phone-frame-main {
    right: auto;
    left: 4%;
  }

  .phone-frame-secondary {
    right: 4%;
  }

  .reason-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 70px 0;
  }

  h1,
  .invite-card h1 {
    font-size: 4.7rem;
  }

  h2,
  .download h2 {
    font-size: 3rem;
  }

  .hero-copy p,
  .section-copy p,
  .download-copy,
  .circle-panel p,
  .invite-copy p {
    font-size: 1.12rem;
  }

  .download {
    align-items: flex-start;
    flex-direction: column;
    padding: 30px;
  }
}

@media (max-width: 560px) {
  .site-header {
    width: auto;
    margin-inline: 16px;
    min-height: 68px;
  }

  .site-header .button {
    display: none;
  }

  h1 {
    font-size: 3.25rem;
  }

  h2,
  .download h2 {
    font-size: 2.35rem;
  }

  .invite-card h1 {
    font-size: 2.2rem;
    line-height: 1.02;
    overflow-wrap: anywhere;
  }

  .invite-shell,
  .invite-card,
  .invite-copy,
  .invite-code-block {
    min-width: 0;
    max-width: 100%;
  }

  .invite-code-block strong {
    font-size: 2.65rem;
  }

  .phone-stack {
    min-height: 440px;
  }

  .phone-frame {
    width: 230px;
    border-radius: 32px;
  }

  .phone-frame img {
    border-radius: 23px;
  }

  .phone-frame-secondary {
    top: 66px;
  }

  .screen-grid {
    grid-template-columns: 1fr;
  }

  .invite-code-block {
    grid-template-columns: 1fr;
  }

  .invite-shell {
    width: auto;
    max-width: 358px;
    margin-left: 16px;
    margin-right: 16px;
  }

  .invite-card {
    width: 100%;
    max-width: 100%;
  }

  .invite-code-block .button {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }
}
