:root {
  color-scheme: light;
  --ink: #18130f;
  --muted: #71685e;
  --paper: #f5efe3;
  --paper-bright: #fffdf8;
  --line: rgba(24, 19, 15, 0.16);
  --orange: #dc6034;
  --green: #4f7156;
  --shadow: 0 28px 80px rgba(48, 33, 21, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(24, 19, 15, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 19, 15, 0.024) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
}

a {
  color: inherit;
}

.site-header,
.site-footer,
.hero,
.manifesto,
.feature-grid,
.screens-heading,
.document-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark,
.site-header nav,
.site-footer nav {
  display: flex;
  align-items: center;
}

.wordmark {
  gap: 12px;
  font-family: "DM Mono", monospace;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}

.wordmark img {
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(24, 19, 15, 0.2);
}

.site-header nav {
  gap: 28px;
  font-family: "DM Mono", monospace;
  font-size: 12px;
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--ink);
}

.nav-portfolio {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
}

.hero {
  display: grid;
  min-height: 780px;
  align-items: center;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 30px;
  padding: 90px 0 110px;
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--orange);
  font-family: "DM Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  letter-spacing: -0.045em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(68px, 8.7vw, 126px);
  font-weight: 500;
  line-height: 0.84;
}

.hero h1 em {
  color: var(--orange);
  font-weight: 500;
}

.hero-lede {
  max-width: 540px;
  margin: 34px 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.store-button {
  display: inline-flex;
  min-width: 190px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 9px;
  background: var(--ink);
  color: white;
  line-height: 1.05;
}

.store-button small {
  display: block;
  margin-bottom: 3px;
  font-size: 9px;
}

.store-mark {
  font-size: 29px;
}

.text-link {
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 11px;
  text-underline-offset: 5px;
}

.trust-list {
  display: flex;
  gap: 24px;
  margin: 30px 0 0;
  padding: 0;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  list-style: none;
  text-transform: uppercase;
}

.trust-list li::before {
  margin-right: 7px;
  color: var(--green);
  content: "✓";
}

.hero-stage {
  position: relative;
  height: 650px;
}

.hero-glow {
  position: absolute;
  inset: 18% 5%;
  border-radius: 50%;
  background: rgba(220, 96, 52, 0.19);
  filter: blur(80px);
}

.hero-screen {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 290px;
  height: auto;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-screen-left {
  transform: translate(-86%, -49%) rotate(-9deg) scale(0.86);
}

.hero-screen-center {
  z-index: 2;
  transform: translate(-50%, -51%);
}

.hero-screen-right {
  transform: translate(-14%, -49%) rotate(9deg) scale(0.86);
}

.manifesto {
  padding: 110px 0;
  border-top: 1px solid var(--line);
}

.manifesto-copy {
  max-width: 1000px;
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(38px, 6vw, 72px);
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.feature-grid {
  display: grid;
  padding: 110px 0;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.section-heading {
  grid-column: 1 / -1;
  padding-bottom: 50px;
}

.section-heading h2,
.screens-heading h2,
.closing h2 {
  margin: 0;
  font-size: clamp(48px, 7vw, 84px);
  font-weight: 500;
  line-height: 0.96;
}

.feature-card {
  display: flex;
  min-height: 330px;
  justify-content: space-between;
  flex-direction: column;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.58);
}

.feature-card-large {
  position: relative;
  min-height: 490px;
  grid-row: span 2;
}

.feature-number {
  color: var(--orange);
  font-family: "DM Mono", monospace;
  font-size: 11px;
}

.feature-copy {
  position: relative;
  z-index: 2;
}

.feature-card h3 {
  max-width: 420px;
  margin: 0 0 13px;
  font-size: clamp(27px, 3vw, 42px);
  font-weight: 500;
}

.feature-card p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.feature-card-dark {
  background: var(--ink);
  color: var(--paper-bright);
}

.feature-card-dark p {
  color: #bdb4aa;
}

.feature-card-dark a {
  display: inline-block;
  margin-top: 22px;
  color: white;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  text-underline-offset: 4px;
}

.moment-visual {
  position: absolute;
  top: 38px;
  right: 30px;
  width: 235px;
  height: 360px;
}

.moment-visual::before {
  position: absolute;
  inset: 10% -14% -8%;
  border-radius: 50%;
  background: rgba(220, 96, 52, 0.14);
  content: "";
  filter: blur(35px);
}

.moment-visual img {
  position: relative;
  width: 100%;
  height: auto;
  border-radius: 17px;
  box-shadow: var(--shadow);
  transform: rotate(3deg);
}

.moment-caption {
  position: absolute;
  z-index: 2;
  right: -16px;
  bottom: -16px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  background: var(--paper-bright);
  box-shadow: 0 12px 30px rgba(48, 33, 21, 0.1);
  font-family: "DM Mono", monospace;
  font-size: 9px;
  transform: rotate(-3deg);
}

.feature-card-moment .feature-copy {
  max-width: 48%;
}

.checkin-visual {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--paper-bright);
}

.checkin-day {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 15px;
  font-family: "DM Mono", monospace;
  font-size: 10px;
}

.checkin-day strong {
  color: var(--orange);
  font-size: 10px;
  text-transform: uppercase;
}

.checkin-times {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.checkin-times span {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: #afa69b;
  font-family: "DM Mono", monospace;
  font-size: 8px;
  flex-direction: column;
}

.checkin-times b {
  color: var(--ink);
  font-size: 18px;
}

.checkin-times .is-complete {
  background: #e8eee7;
  color: var(--green);
}

.checkin-times .is-complete::after {
  margin-top: 4px;
  content: "✓";
}

.checkin-times .is-current {
  border-color: var(--orange);
  background: #fff2e8;
  color: var(--orange);
}

.privacy-visual {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.privacy-visual > div {
  display: flex;
  flex-direction: column;
}

.privacy-visual strong {
  font-family: "Playfair Display", serif;
  font-size: 96px;
  font-weight: 500;
  letter-spacing: -0.08em;
  line-height: 0.75;
}

.privacy-visual span {
  max-width: 120px;
  margin-top: 15px;
  color: #aaa198;
  font-family: "DM Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.privacy-visual ul {
  display: flex;
  align-items: end;
  gap: 7px;
  margin: 0;
  padding: 0;
  flex-direction: column;
  list-style: none;
}

.privacy-visual li {
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #d5cec5;
  font-family: "DM Mono", monospace;
  font-size: 8px;
  text-transform: uppercase;
}

.chapters-visual {
  position: relative;
  width: 178px;
  height: 180px;
  margin: 0 auto 22px;
}

.chapters-visual img,
.chapter-sheet {
  position: absolute;
  width: 118px;
  height: 162px;
  border-radius: 10px;
  box-shadow: 0 18px 35px rgba(48, 33, 21, 0.13);
}

.chapters-visual img {
  z-index: 3;
  top: 0;
  left: 30px;
  object-fit: cover;
  object-position: top;
}

.chapter-sheet {
  top: 6px;
  left: 30px;
  border: 1px solid var(--line);
  background: var(--paper-bright);
}

.chapter-sheet-middle {
  z-index: 2;
  transform: rotate(-8deg) translateX(-18px);
}

.chapter-sheet-back {
  transform: rotate(9deg) translateX(18px);
}

.screens-section {
  padding: 115px 0;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper-bright);
}

.screens-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.screens-heading > p {
  max-width: 410px;
  margin: 0 0 5px;
  color: #aaa198;
  line-height: 1.7;
}

.screens-track {
  display: grid;
  width: min(1560px, calc(100% - 40px));
  margin: 80px auto 0;
  grid-template-columns: repeat(5, minmax(210px, 1fr));
  gap: 18px;
}

.screens-track figure {
  margin: 0;
}

.screens-track img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
}

.closing {
  display: flex;
  min-height: 700px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 100px 20px;
  text-align: center;
}

.closing-icon {
  margin-bottom: 34px;
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.closing p:not(.eyebrow) {
  margin: 25px 0 30px;
  color: var(--muted);
  font-size: 18px;
}

.store-button-light {
  box-shadow: 0 12px 35px rgba(24, 19, 15, 0.18);
}

.site-footer {
  display: grid;
  align-items: center;
  padding: 34px 0 45px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  grid-template-columns: 1fr auto 1fr;
}

.site-footer > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.site-footer strong {
  color: var(--ink);
  font-size: 13px;
}

.site-footer nav {
  gap: 24px;
}

.site-footer nav a {
  text-underline-offset: 4px;
}

.site-footer > span {
  text-align: right;
}

.document-shell {
  padding: 90px 0 120px;
}

.document {
  width: min(760px, 100%);
  margin: 0 auto;
}

.document-header {
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
}

.document-header h1 {
  margin: 0;
  font-size: clamp(58px, 9vw, 96px);
  font-weight: 500;
  line-height: 0.94;
}

.document-header > p:not(.eyebrow) {
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.6;
}

.document section {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.document h2 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 43px);
  font-weight: 500;
}

.document section p,
.document li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.document section a {
  font-weight: 600;
  text-underline-offset: 4px;
}

.contact-slip {
  margin-top: 48px;
  padding: 38px !important;
  border: 0 !important;
  background: var(--paper-bright);
  box-shadow: var(--shadow);
}

.support-button {
  display: inline-block;
  margin-top: 28px;
  padding: 14px 20px;
  border-radius: 3px;
  background: var(--ink);
  color: white;
  font-family: "DM Mono", monospace;
  font-size: 12px;
  text-decoration: none;
}

.document-header small {
  display: block;
  max-width: 580px;
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.6;
}

details {
  border-top: 1px solid var(--line);
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  padding: 24px 34px 24px 0;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

details p {
  margin: 0;
  padding: 0 0 25px;
}

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

  .hero-copy {
    text-align: center;
  }

  .hero-lede {
    margin-inline: auto;
  }

  .hero-actions,
  .trust-list {
    justify-content: center;
  }

  .screens-track {
    overflow-x: auto;
    grid-template-columns: repeat(5, 280px);
    scroll-snap-type: x mandatory;
  }

  .screens-track figure {
    scroll-snap-align: center;
  }
}

@media (max-width: 680px) {
  .site-header,
  .site-footer,
  .hero,
  .manifesto,
  .feature-grid,
  .screens-heading,
  .document-shell {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    min-height: 74px;
  }

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

  .site-header nav a:first-child {
    display: none;
  }

  .nav-portfolio {
    display: none;
  }

  .hero {
    padding: 70px 0 55px;
  }

  .hero h1 {
    font-size: clamp(61px, 20vw, 88px);
  }

  .hero-actions {
    flex-direction: column;
  }

  .trust-list {
    gap: 13px;
    font-size: 9px;
  }

  .hero-stage {
    height: 470px;
    margin-top: 35px;
  }

  .hero-screen {
    width: 215px;
    border-radius: 18px;
  }

  .manifesto,
  .feature-grid {
    padding: 75px 0;
  }

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

  .section-heading {
    grid-column: auto;
  }

  .feature-card,
  .feature-card-large {
    min-height: 330px;
    padding: 26px;
  }

  .feature-card-large {
    padding-bottom: 350px;
  }

  .feature-card-moment .feature-copy {
    max-width: none;
  }

  .moment-visual {
    top: auto;
    right: 50%;
    width: 210px;
    height: 300px;
    bottom: 38px;
    transform: translateX(50%);
  }

  .privacy-visual strong {
    font-size: 78px;
  }

  .screens-section {
    padding: 80px 0;
  }

  .screens-heading {
    align-items: start;
    flex-direction: column;
  }

  .screens-track {
    width: calc(100% - 28px);
    margin-top: 55px;
    grid-template-columns: repeat(5, 245px);
  }

  .closing {
    min-height: 620px;
  }

  .site-footer {
    align-items: start;
    grid-template-columns: 1fr auto;
    gap: 25px;
  }

  .site-footer nav {
    align-items: end;
    flex-direction: column;
    gap: 10px;
  }

  .site-footer > span {
    text-align: left;
  }

  .document-shell {
    padding: 65px 0 85px;
  }

  .document section {
    padding: 38px 0;
  }

  .contact-slip {
    padding: 27px !important;
  }
}

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