:root {
  --coral: #ff5a3d;
  --blue: #1f63e8;
  --yellow: #ffd536;
  --ink: #24150f;
  --ink-quiet: #5b5449;
  --paper: #f8f1e6;
  --paper-deep: #efe4d3;
  --surface: #fff8ea;
  --line: #ddcbb5;
  --blue-soft: #eaf1ff;
  --coral-soft: #fff1ea;
  --yellow-soft: #fff3b8;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(36, 21, 15, 0.035) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

button,
input {
  font: inherit;
}

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

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

.site-header {
  min-height: 76px;
  border-bottom: 1px solid rgba(36, 21, 15, 0.16);
}

.site-footer {
  padding: 36px 0 44px;
  border-top: 1px solid rgba(36, 21, 15, 0.16);
}

.site-header nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--ink-quiet);
  font-size: 0.88rem;
  font-weight: 700;
}

.site-header nav a,
.site-footer nav a {
  text-decoration: none;
}

.site-header nav a:hover,
.site-footer nav a:hover {
  color: var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand.small {
  transform: scale(0.9);
  transform-origin: left center;
}

.wordmark {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mark,
.mini-mark {
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  align-items: stretch;
}

.mark {
  width: 28px;
  height: 28px;
}

.mini-mark {
  width: 18px;
  height: 18px;
  gap: 2px;
}

.mark span,
.mini-mark span {
  display: block;
  border-radius: 2px;
}

.mark span:nth-child(1),
.mini-mark span:nth-child(1),
.tricolor span:nth-child(1) {
  background: var(--coral);
}

.mark span:nth-child(2),
.mini-mark span:nth-child(2),
.tricolor span:nth-child(2) {
  background: var(--blue);
}

.mark span:nth-child(3),
.mini-mark span:nth-child(3),
.tricolor span:nth-child(3) {
  background: var(--yellow);
}

.hero {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  min-height: calc(100svh - 76px);
  padding: 56px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 54px;
  align-items: center;
}

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

.eyebrow,
.label {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 20px;
  max-width: 760px;
  font-size: clamp(3.25rem, 11vw, 7.6rem);
  line-height: 0.9;
  letter-spacing: 0;
  font-weight: 900;
}

.legal-page h1,
.reset-page h1 {
  font-size: clamp(2.35rem, 9vw, 5.4rem);
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 0.96;
  letter-spacing: 0;
  font-weight: 900;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
  line-height: 1.2;
  letter-spacing: 0;
  font-weight: 900;
}

.lede {
  max-width: 620px;
  color: var(--ink-quiet);
  font-size: clamp(1.08rem, 2.4vw, 1.34rem);
  line-height: 1.45;
}

.waitlist-box {
  max-width: 650px;
  padding: 18px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 6px 6px 0 var(--ink);
}

.waitlist-box.compact {
  max-width: 620px;
  margin: 28px auto 0;
  text-align: left;
}

.waitlist-title {
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 900;
}

.waitlist-copy {
  margin-bottom: 14px;
  color: var(--ink-quiet);
}

.waitlist-form {
  display: flex;
  gap: 10px;
}

.waitlist-form input {
  min-width: 0;
  flex: 1 1 220px;
  height: 48px;
  padding: 0 14px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fffdf4;
  color: var(--ink);
  font-size: 1rem;
}

.waitlist-form input:focus {
  outline: 3px solid rgba(31, 99, 232, 0.24);
  outline-offset: 2px;
}

.form-note {
  margin: 10px 0 0;
  color: var(--ink-quiet);
  font-size: 0.82rem;
  line-height: 1.35;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--ink);
  color: var(--surface);
}

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

.phone-stage {
  position: relative;
  display: grid;
  place-items: center;
}

.phone-stage::before {
  content: "";
  position: absolute;
  width: 90%;
  height: 86%;
  border: 3px solid var(--blue);
  border-radius: 8px;
  transform: rotate(-4deg) translate(-12px, 10px);
  z-index: -1;
}

.phone-stage::after {
  content: "";
  position: absolute;
  width: 82%;
  height: 76%;
  border: 3px solid var(--coral);
  border-radius: 8px;
  transform: rotate(4deg) translate(16px, -8px);
  z-index: -2;
}

.phone {
  width: min(100%, 374px);
  min-height: 468px;
  padding: 18px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 10px 10px 0 var(--ink);
}

.phone-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-quiet);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mini-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  letter-spacing: 0.12em;
}

.tricolor {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  height: 4px;
  margin: 16px 0;
  overflow: hidden;
  border-radius: 4px;
}

.phone-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 0 0 14px;
}

.phone-tabs span {
  min-height: 32px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(36, 21, 15, 0.2);
  border-radius: 8px;
  color: var(--ink-quiet);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.phone-tabs .is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--surface);
}

.feed-card,
.surface-card,
.future-list article,
.support-panel,
.reset-card {
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--surface);
}

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

.feed-card h2 {
  margin-bottom: 10px;
  font-size: 1.45rem;
  line-height: 1.04;
}

.feed-card p {
  margin-bottom: 0;
  color: var(--ink-quiet);
  font-size: 0.93rem;
}

.card-type {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feed-card.article {
  background: var(--coral-soft);
}

.feed-card.poll {
  background: #fff9d7;
}

.feed-card.deck {
  background: var(--blue-soft);
}

.hero-card {
  min-height: 276px;
  display: flex;
  flex-direction: column;
}

.hero-card .swipe-row {
  margin-top: auto;
}

.swipe-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 18px;
}

.swipe-row span {
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 900;
}

.swipe-row span:first-child {
  background: var(--coral-soft);
}

.swipe-row span:last-child {
  background: var(--blue);
  color: var(--surface);
}

.phone-path {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.phone-path span {
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--surface);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.phone-path span:nth-child(1) {
  border-top: 6px solid var(--coral);
}

.phone-path span:nth-child(2) {
  border-top: 6px solid var(--blue);
}

.phone-path span:nth-child(3) {
  border-top: 6px solid var(--yellow);
}

.principle-band,
.section,
.split-section,
.cta,
.legal-page,
.reset-page {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.principle-band {
  padding: 34px 0;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}

.principle-band p {
  max-width: 960px;
  margin-bottom: 0;
  font-size: clamp(1.45rem, 4vw, 2.65rem);
  line-height: 1.08;
  font-weight: 900;
}

.section,
.split-section,
.cta {
  padding: 88px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.surface-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.surface-card {
  min-height: 260px;
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.surface-card:nth-child(1) {
  background: var(--coral-soft);
}

.surface-card:nth-child(2) {
  background: var(--blue-soft);
}

.surface-card:nth-child(3) {
  background: #fff9d7;
}

.surface-card p,
.future-list p,
.cta p,
.legal-section p,
.legal-hero p,
.support-panel p,
.reset-card p {
  color: var(--ink-quiet);
}

.surface-number {
  margin-bottom: auto;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 32px;
  border-top: 1px solid rgba(36, 21, 15, 0.16);
}

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

.future-list article {
  padding: 22px;
}

.future-list article:nth-child(1) {
  border-left: 8px solid var(--coral);
}

.future-list article:nth-child(2) {
  border-left: 8px solid var(--blue);
}

.cta {
  max-width: 840px;
  text-align: center;
}

.cta .tricolor {
  width: min(420px, 100%);
  margin: 0 auto 30px;
}

.legal-page {
  max-width: 820px;
  padding: 56px 0 88px;
}

.legal-hero {
  margin-bottom: 48px;
}

.legal-section {
  padding: 28px 0;
  border-top: 1px solid rgba(36, 21, 15, 0.16);
}

.legal-section h2 {
  font-size: clamp(1.55rem, 5vw, 2.4rem);
}

.legal-section p {
  font-size: 1rem;
}

.plain-list {
  padding-left: 1.1rem;
  color: var(--ink-quiet);
}

.plain-list li + li {
  margin-top: 10px;
}

.support-panel {
  margin: 24px 0 42px;
  padding: 28px;
  background: var(--blue-soft);
}

.support-panel h2 {
  font-size: clamp(1.65rem, 6vw, 3rem);
  word-break: break-word;
}

.reset-page {
  min-height: calc(100svh - 172px);
  padding: 70px 0;
  display: grid;
  place-items: center;
}

.reset-card {
  max-width: 720px;
  padding: 30px;
  background: var(--surface);
  box-shadow: 8px 8px 0 var(--ink);
}

.reset-card .tricolor {
  margin-top: 0;
}

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

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

  .phone {
    min-height: 560px;
  }

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

  .surface-card {
    min-height: 220px;
  }
}

@media (max-width: 640px) {
  .site-header,
  .site-footer {
    width: min(var(--max), calc(100% - 24px));
  }

  .site-header {
    align-items: flex-start;
    padding: 18px 0;
    flex-direction: column;
    gap: 14px;
  }

  .site-header nav,
  .site-footer nav {
    gap: 14px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .principle-band,
  .section,
  .split-section,
  .cta,
  .legal-page,
  .reset-page {
    width: min(var(--max), calc(100% - 24px));
  }

  .hero {
    padding-bottom: 54px;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.8rem);
  }

  .waitlist-form {
    display: grid;
    grid-template-columns: 1fr;
  }

  .waitlist-box {
    box-shadow: 5px 5px 0 var(--ink);
  }

  .phone {
    min-height: 0;
    box-shadow: 6px 6px 0 var(--ink);
  }

  .phone-stage::before,
  .phone-stage::after {
    display: none;
  }

  .section,
  .split-section,
  .cta {
    padding: 62px 0;
  }

  .reset-card {
    padding: 22px;
    box-shadow: 6px 6px 0 var(--ink);
  }
}
