.landing-page {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #031613;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

body.modal-open {
  overflow: hidden;
}

img,
picture {
  display: block;
  max-width: 100%;
}

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

button {
  cursor: pointer;
  font: inherit;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
p {
  margin: 0;
  overflow-wrap: anywhere;
  letter-spacing: 0;
}

.landing-page {
  --cream: #f7f5eb;
  --paper: #fffdf5;
  --surface: #fffdf5;
  --surface-soft: #f0f5ed;
  --mist: #edf6ef;
  --ink: #061f1a;
  --ink-strong: #061f1a;
  --muted: #5c6f68;
  --line: rgba(6, 31, 26, 0.14);
  --green: #087b6d;
  --green-deep: #062b25;
  --green-dark: #031613;
  --blue: #1d6f93;
  --amber: #c47a2c;
  --rose: #b54848;
  --shadow: 0 30px 80px rgba(6, 31, 26, 0.16);
  background:
    linear-gradient(180deg, rgba(237, 246, 239, 0.8), rgba(247, 245, 235, 0) 620px),
    var(--cream);
  color: var(--ink);
}

.site-header {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.landing-page .site-header {
  min-height: 72px;
  padding: 14px 28px;
  color: var(--ink);
  background: rgba(255, 253, 245, 0.78);
  border-bottom: 1px solid rgba(6, 31, 26, 0.1);
  backdrop-filter: blur(22px);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 850;
  white-space: nowrap;
}

.landing-page .brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(6, 31, 26, 0.12);
}

.site-header nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
}

.landing-page .site-header nav {
  border-color: rgba(6, 31, 26, 0.12);
  border: 1px solid rgba(6, 31, 26, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.landing-page .site-header nav a {
  min-width: 84px;
  padding: 9px 14px;
  border-radius: 6px;
  color: rgba(6, 31, 26, 0.72);
  font-size: 14px;
  font-weight: 820;
  line-height: 1.2;
  text-align: center;
}

.landing-page .site-header nav a:hover,
.landing-page .site-header nav a:focus-visible {
  color: var(--ink);
  background: rgba(8, 123, 109, 0.1);
}

.app-store-badge {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  line-height: 0;
  border-radius: 8px;
}

.app-store-badge:focus-visible {
  outline: 3px solid rgba(8, 123, 109, 0.34);
  outline-offset: 4px;
}

.app-store-badge img {
  display: block;
  width: auto;
  height: 42px;
}

.app-store-badge-hero img {
  height: 56px;
}

.app-store-badge-footer img {
  height: 50px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 46px;
  padding: 12px 17px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 880;
  letter-spacing: 0;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

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

.landing-page .button {
  border-radius: 8px;
}

.landing-page .button.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--green), var(--blue));
  box-shadow: 0 18px 38px rgba(8, 123, 109, 0.24);
}

.landing-page .button.primary:hover {
  background: linear-gradient(135deg, #076f62, #1a6384);
}

.landing-page .button.secondary {
  color: var(--ink);
  background: rgba(255, 253, 245, 0.78);
  border-color: var(--line);
}

.landing-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 0.74fr) minmax(520px, 1fr);
  align-items: center;
  gap: 32px;
  min-height: 92svh;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 112px 0 42px;
  overflow: visible;
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.landing-page .eyebrow {
  color: var(--green);
}

.landing-page h1 {
  max-width: 720px;
  color: var(--ink);
  font-size: 86px;
  line-height: 0.92;
  font-weight: 930;
}

.hero-copy > p:not(.eyebrow) {
  width: min(560px, 100%);
  margin-top: 24px;
  color: var(--muted);
  font-size: 23px;
  line-height: 1.32;
  font-weight: 720;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-art {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: center;
  min-width: 0;
  justify-self: end;
  width: min(760px, 100%);
}

.hero-art picture {
  display: block;
  min-width: 0;
}

.hero-panel {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(6, 31, 26, 0.13);
  border-radius: 34px;
  background: #fffdf5;
}

.hero-proof {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: -12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
  box-shadow: 0 22px 54px rgba(6, 31, 26, 0.08);
}

.hero-proof p {
  min-width: 0;
  padding: 20px 22px;
  background: rgba(255, 253, 245, 0.92);
}

.hero-proof strong,
.hero-proof span {
  display: block;
}

.hero-proof strong {
  font-size: 18px;
  line-height: 1.12;
}

.hero-proof span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.positioning-band,
.workflow-section,
.split-proof,
.planner-band,
.records-band,
.landing-page .faq-band,
.landing-page .closing-band {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  scroll-margin-top: 94px;
}

.positioning-band {
  padding: 86px 0 60px;
}

.positioning-band h2,
.workflow-copy h2,
.planner-copy h2,
.records-copy h2 {
  color: var(--ink);
  font-size: 56px;
  line-height: 1;
  font-weight: 920;
}

.positioning-band h2 {
  width: min(920px, 100%);
}

.positioning-band > p:not(.eyebrow),
.workflow-copy p,
.planner-copy p,
.records-copy p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.48;
}

.positioning-band > p:not(.eyebrow) {
  width: min(760px, 100%);
  margin-top: 18px;
}

.workflow-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 0.72fr);
  gap: 52px;
  align-items: center;
  padding: 54px 0 72px;
  overflow: visible;
}

.workflow-copy {
  min-width: 0;
}

.workflow-copy p,
.planner-copy p,
.records-copy p {
  margin-top: 16px;
}

.workflow-art,
.planner-art {
  min-width: 0;
  align-self: center;
  overflow: hidden;
  border: 1px solid rgba(6, 31, 26, 0.13);
  border-radius: 34px;
  background: #fffdf5;
  clip-path: inset(0 round 34px);
}

.workflow-art {
  justify-self: center;
  width: min(520px, 100%);
}

.planner-art {
  justify-self: center;
  width: min(560px, 100%);
}

.workflow-art img,
.planner-art img,
.record-shot img {
  width: 100%;
  height: auto;
  display: block;
}

.split-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 20px 0 96px;
}

.pillar {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 245, 0.8);
  box-shadow: 0 18px 46px rgba(6, 31, 26, 0.06);
}

.pillar span {
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
}

.pillar:nth-child(2) span {
  color: var(--blue);
}

.pillar:nth-child(3) span {
  color: var(--amber);
}

.pillar h3 {
  margin-top: 38px;
  color: var(--ink);
  font-size: 28px;
}

.pillar p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
}

.planner-band {
  display: grid;
  grid-template-columns: minmax(360px, 0.74fr) minmax(0, 0.9fr);
  gap: 54px;
  align-items: center;
  padding: 88px 0;
  overflow: visible;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
}

.mini-grid span {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid rgba(8, 123, 109, 0.2);
  border-radius: 8px;
  color: var(--green-dark);
  background: rgba(210, 236, 226, 0.72);
  font-weight: 850;
  text-align: center;
}

.records-band {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 0.88fr);
  gap: 56px;
  align-items: center;
  padding: 90px 0 78px;
  overflow: visible;
}

.records-art {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.record-shot {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(6, 31, 26, 0.13);
  border-radius: 34px;
  background: #fffdf5;
}

.landing-page .faq-band {
  padding: 74px 0 86px;
}

.faq-list {
  width: min(900px, 100%);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  cursor: pointer;
  padding: 22px 0;
  color: var(--ink-strong);
  font-size: 20px;
  font-weight: 850;
}

.faq-list details p {
  max-width: 760px;
  padding: 0 0 22px;
  color: var(--muted);
  font-size: 17px;
}

.closing-band {
  margin-bottom: 80px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green-deep), #113d48);
  box-shadow: var(--shadow);
}

.closing-band .eyebrow {
  color: #9ce8d8;
}

.closing-band h2 {
  font-size: 42px;
}

.closing-band p:not(.eyebrow) {
  max-width: 560px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.landing-close {
  margin-bottom: 82px;
}

.landing-page .closing-band .button.secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  padding: 28px 24px 36px;
  color: var(--muted);
  background: var(--cream);
  font-size: 14px;
  font-weight: 760;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--green);
}

.invite-modal {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(3, 16, 14, 0.72);
  backdrop-filter: blur(12px);
}

.invite-dialog {
  position: relative;
  width: min(480px, 100%);
  padding: 28px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.invite-dialog img {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 12px;
}

.invite-dialog h2 {
  font-size: 34px;
}

.invite-dialog > p:not(.eyebrow),
.invite-status {
  margin-top: 10px;
  color: var(--muted);
}

.invite-code {
  margin-top: 18px;
  padding: 12px;
  border-radius: 8px;
  background: var(--surface-soft);
  font-weight: 850;
}

.invite-actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
  transition-delay: var(--delay, 0ms);
}

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

@media (max-width: 1080px) {
  .landing-hero,
  .workflow-section,
  .planner-band,
  .records-band {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    gap: 18px;
    padding-top: 104px;
  }

  .landing-page h1 {
    font-size: 72px;
  }

  .hero-art {
    width: min(820px, 100%);
    margin: 0 auto;
    justify-self: center;
  }

  .workflow-art,
  .planner-art {
    width: min(620px, 100%);
    margin: 0 auto;
  }

  .planner-art {
    order: 2;
  }

  .planner-copy {
    order: 1;
  }

  .records-art {
    width: min(820px, 100%);
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  .landing-page .site-header {
    min-height: 66px;
    padding: 12px 14px;
  }

  .landing-page .brand span {
    display: none;
  }

  .landing-page .site-header nav a {
    min-width: 0;
    padding: 8px 8px;
    font-size: 12px;
  }

  .landing-page .app-store-badge-header {
    display: none;
  }

  .landing-hero,
  .positioning-band,
  .workflow-section,
  .split-proof,
  .planner-band,
  .records-band,
  .landing-page .faq-band,
  .landing-page .closing-band {
    width: min(100% - 24px, 1180px);
  }

  .landing-hero {
    min-height: 0;
    padding: 96px 0 34px;
  }

  .landing-page h1 {
    font-size: 48px;
  }

  .hero-copy > p:not(.eyebrow),
  .positioning-band > p:not(.eyebrow),
  .workflow-copy p,
  .planner-copy p,
  .records-copy p {
    font-size: 17px;
  }

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

  .hero-art {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin-left: 0;
  }

  .hero-panel {
    border-radius: 24px;
  }

  .hero-proof,
  .split-proof {
    grid-template-columns: 1fr;
  }

  .hero-proof p {
    padding: 17px;
  }

  .positioning-band,
  .workflow-section,
  .planner-band,
  .records-band,
  .landing-page .faq-band {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .positioning-band h2,
  .workflow-copy h2,
  .planner-copy h2,
  .records-copy h2 {
    font-size: 36px;
  }

  .pillar {
    padding: 22px;
  }

  .pillar h3 {
    margin-top: 28px;
    font-size: 25px;
  }

  .records-art {
    grid-template-columns: 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 430px) {
  .landing-page .site-header nav a[href="#history"] {
    display: none;
  }

  .landing-page h1 {
    font-size: 43px;
  }

  .hero-art {
    width: 100%;
    margin-left: 0;
  }

  .hero-panel {
    border-radius: 22px;
  }

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