:root {
  --ink: #17150f;
  --muted: #635f54;
  --paper: #fffdf7;
  --line: #ded8ca;
  --yellow: #ffdf59;
  --blue: #c8efff;
  --mint: #bdf3d4;
  --coral: #ff9a84;
  --black: #050505;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #fff7d7 0%, #f7fcff 52%, #fffdf7 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(255, 253, 247, 0.9);
  border-bottom: 1px solid rgba(23, 21, 15, 0.1);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  text-decoration: none;
}

.brand img {
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(23, 21, 15, 0.14);
}

nav {
  display: flex;
  gap: 6px;
}

nav a {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

main {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.7fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
  min-height: calc(100svh - 78px);
  padding: 54px 0 72px;
}

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

.eyebrow {
  margin: 0 0 10px;
  color: #a35038;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3.4rem, 9vw, 7.5rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.2;
}

.lede {
  max-width: 58ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 650;
}

.hero-actions,
.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-actions {
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 2px solid var(--black);
  border-radius: 8px;
  box-shadow: 0 5px 0 var(--black);
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(2px);
  box-shadow: 0 3px 0 var(--black);
}

.button.primary {
  background: var(--yellow);
}

.button.secondary {
  background: var(--paper);
}

.text-link {
  display: inline-flex;
  margin-top: 20px;
  color: var(--ink);
  font-weight: 900;
  text-underline-offset: 5px;
}

.phone-preview {
  width: min(100%, 360px);
  margin: 0 auto;
  padding: 10px;
  border: 3px solid var(--black);
  border-radius: 38px;
  background: var(--black);
  box-shadow: 0 26px 70px rgba(23, 21, 15, 0.24);
}

.preview-screen {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  background: linear-gradient(180deg, #fff3c4 0%, #e8f8ff 100%);
}

.section {
  padding: 72px 0;
  border-top: 1px solid rgba(23, 21, 15, 0.14);
}

.section-heading {
  max-width: 680px;
  margin-bottom: 26px;
}

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

.faq-card {
  min-height: 190px;
  padding: 20px;
  border: 2px solid var(--black);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 5px 0 var(--black);
}

.faq-card:nth-child(2n) {
  background: var(--blue);
}

.faq-card:nth-child(3n) {
  background: var(--mint);
}

.faq-card p,
.split p,
.contact p {
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: start;
}

.split p {
  margin-top: 18px;
  max-width: 58ch;
}

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

.info-list div {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 2px solid var(--black);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 5px 0 var(--black);
}

.info-list strong {
  font-size: 1.02rem;
}

.info-list span {
  color: var(--muted);
  font-weight: 650;
}

.contact {
  flex-direction: column;
  align-items: flex-start;
  padding-bottom: 84px;
}

.contact p {
  max-width: 64ch;
}

.policy-page {
  width: min(900px, calc(100% - 36px));
}

.policy-hero {
  padding: 64px 0 42px;
}

.policy-hero h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 8vw, 6.5rem);
}

.policy-date {
  margin: 22px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.policy-section {
  padding: 36px 0;
  border-top: 1px solid rgba(23, 21, 15, 0.14);
}

.policy-section h2 {
  margin-bottom: 16px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.05;
}

.policy-section p,
.policy-section li {
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 650;
}

.policy-section p {
  margin: 0 0 16px;
}

.policy-section ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.policy-list {
  display: grid;
  gap: 14px;
}

.policy-list article {
  padding: 20px;
  border: 2px solid var(--black);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 5px 0 var(--black);
}

.policy-list article:nth-child(2n) {
  background: var(--blue);
}

.policy-list article:nth-child(3n) {
  background: var(--mint);
}

.policy-list p,
.policy-contact p {
  margin-bottom: 0;
}

.policy-contact {
  padding-bottom: 84px;
}

.invite-body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.invite-header {
  position: relative;
}

.invite-page {
  flex: 1;
  display: grid;
  place-items: center;
  width: min(720px, calc(100% - 36px));
  padding: clamp(34px, 7vw, 82px) 0;
}

.invite-panel {
  width: 100%;
  padding: clamp(22px, 5vw, 42px);
  border: 3px solid var(--black);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.94);
  box-shadow: 0 8px 0 var(--black);
}

.invite-brand-mark {
  display: inline-flex;
  padding: 8px;
  margin-bottom: 22px;
  border: 2px solid var(--black);
  border-radius: 8px;
  background: var(--yellow);
  box-shadow: 0 5px 0 var(--black);
}

.invite-brand-mark img {
  display: block;
  border-radius: 8px;
}

.invite-panel h1 {
  max-width: none;
  font-size: clamp(2.7rem, 10vw, 5.5rem);
  line-height: 0.92;
}

.invite-copy {
  max-width: 42ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-weight: 700;
}

.room-code-box {
  display: grid;
  gap: 4px;
  margin: 28px 0 0;
  padding: 18px;
  border: 2px solid var(--black);
  border-radius: 8px;
  background: var(--blue);
  box-shadow: 0 5px 0 var(--black);
}

.room-code-box span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.room-code-box strong {
  color: var(--ink);
  font-size: clamp(2.2rem, 13vw, 4.7rem);
  line-height: 1;
  letter-spacing: 0;
}

.invite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.invite-actions .button {
  cursor: pointer;
}

.invite-actions .button:disabled,
.invite-actions .button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.invite-status {
  min-height: 24px;
  margin: 18px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.install-options {
  display: none;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(23, 21, 15, 0.14);
}

.install-options.is-visible {
  display: block;
}

.install-options h2 {
  font-size: 1.35rem;
  line-height: 1.1;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.store-badge {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 2px solid var(--black);
  border-radius: 8px;
  background: var(--black);
  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 5px 0 rgba(5, 5, 5, 0.28);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.store-badge:hover,
.store-badge:focus-visible {
  transform: translateY(2px);
  box-shadow: 0 3px 0 rgba(5, 5, 5, 0.28);
}

.store-badge svg {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  fill: currentColor;
}

.store-badge span {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.store-badge small {
  font-size: 0.68rem;
  font-weight: 750;
}

.play-store-badge svg {
  fill: #ffffff;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid rgba(23, 21, 15, 0.14);
  font-size: 0.95rem;
  font-weight: 750;
}

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

  .hero {
    min-height: auto;
  }

  .phone-preview {
    width: min(100%, 320px);
  }

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

@media (max-width: 620px) {
  .site-header,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  main {
    width: min(100% - 28px, 1120px);
  }

  .hero {
    padding-top: 34px;
  }

  .hero-actions,
  .invite-actions,
  .button {
    width: 100%;
  }

  .invite-actions .button,
  .store-badges,
  .store-badge {
    width: 100%;
  }

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