:root {
  --ink: #171411;
  --muted: #625950;
  --paper: #fffaf2;
  --panel: #ffffff;
  --line: #ded5c7;
  --red: #b93f2f;
  --yellow: #f2b84b;
  --blue: #2f6f9f;
  --green: #4f8b5f;
  --shadow: 0 24px 70px rgba(44, 31, 20, 0.16);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: #fff;
}

.site-header::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(180deg, rgba(23, 20, 17, 0.48), rgba(23, 20, 17, 0));
  pointer-events: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-cube {
  position: relative;
  width: 24px;
  height: 22px;
  border-radius: 4px;
  background: var(--yellow);
  box-shadow:
    12px 0 0 var(--red),
    6px -8px 0 var(--blue);
  transform: rotate(-3deg);
}

.brand-cube::before,
.brand-cube::after {
  position: absolute;
  top: -4px;
  width: 7px;
  height: 4px;
  border-radius: 7px 7px 0 0;
  content: "";
  background: rgba(255, 255, 255, 0.75);
}

.brand-cube::before {
  left: 4px;
}

.brand-cube::after {
  left: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a {
  opacity: 0.88;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  opacity: 1;
}

.hero {
  position: relative;
  display: grid;
  min-height: 88svh;
  overflow: hidden;
  align-items: center;
  padding: 120px clamp(18px, 4vw, 56px) 80px;
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/hero-keepsake.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 15, 13, 0.82) 0%, rgba(18, 15, 13, 0.58) 34%, rgba(18, 15, 13, 0.15) 72%),
    linear-gradient(180deg, rgba(18, 15, 13, 0.12) 0%, rgba(18, 15, 13, 0.32) 100%);
}

.hero-content {
  position: relative;
  width: min(720px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd980;
}

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

h1 {
  margin-bottom: 18px;
  max-width: 12ch;
  font-size: clamp(4rem, 14vw, 9.4rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.16rem;
  line-height: 1.15;
}

.hero-copy {
  width: min(620px, 100%);
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.04rem, 2vw, 1.34rem);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 13px 20px;
  cursor: pointer;
  font-weight: 900;
  line-height: 1;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background-color 150ms ease;
}

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

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

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.section-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.intro-band {
  padding: 44px 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  gap: clamp(24px, 6vw, 90px);
  align-items: center;
}

.intro-grid h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3.6vw, 3.4rem);
}

.intro-grid p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.process-section,
.formats-section,
.join-section {
  padding: clamp(70px, 10vw, 128px) 0;
}

.section-heading {
  margin-bottom: clamp(28px, 5vw, 52px);
}

.section-heading p {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.steps article,
.format-list article,
.waitlist-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 50px rgba(44, 31, 20, 0.07);
}

.steps article {
  min-height: 230px;
  padding: 28px;
}

.steps span {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--blue);
  font-weight: 900;
}

.steps p,
.format-list p,
.join-copy p,
.site-footer p {
  color: var(--muted);
}

.formats-section {
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.result-layout,
.formats-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
}

.result-layout {
  grid-template-columns: minmax(300px, 1fr) minmax(280px, 0.8fr);
  align-items: center;
  margin-bottom: clamp(56px, 8vw, 104px);
}

.result-preview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4ece1;
  box-shadow: var(--shadow);
}

.result-preview img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.result-copy p:not(.section-kicker) {
  color: var(--muted);
  font-size: 1.05rem;
}

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

.result-points span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fffaf2;
  font-weight: 850;
}

.sticky-copy {
  position: sticky;
  top: 100px;
  margin-bottom: 0;
}

.format-list {
  display: grid;
  gap: 16px;
}

.format-list article {
  padding: 26px;
}

.format-topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.format-topline h3 {
  margin-bottom: 12px;
}

.format-topline span {
  flex: none;
  color: var(--green);
  font-weight: 900;
}

.join-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(30px, 6vw, 86px);
  align-items: start;
}

.join-copy {
  padding-top: 12px;
}

.trust-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-notes span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  background: #fff;
  font-size: 0.9rem;
  font-weight: 800;
}

.waitlist-form {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 4vw, 34px);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 8px;
}

label,
.consent-row {
  color: #302922;
  font-size: 0.92rem;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfc2b4;
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(47, 111, 159, 0.12);
}

textarea {
  resize: vertical;
}

.photo-preview {
  display: grid;
  min-height: 170px;
  place-items: center;
  overflow: hidden;
  border: 1px dashed #cfc2b4;
  border-radius: 8px;
  color: var(--muted);
  background:
    linear-gradient(45deg, rgba(185, 63, 47, 0.06), transparent),
    #fffaf2;
}

.photo-preview.has-image {
  border-style: solid;
}

.photo-preview img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.consent-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
}

.consent-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--red);
}

.form-submit {
  width: 100%;
  border: 0;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.form-status.error {
  color: var(--red);
}

.success-panel {
  display: grid;
  gap: 18px;
  min-height: 520px;
  align-content: center;
  border-color: rgba(79, 139, 95, 0.38);
}

.success-icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 1.4rem;
  font-weight: 900;
}

.success-panel h3 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.success-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.success-panel strong {
  color: var(--ink);
}

.site-footer {
  padding: 34px 0;
  background: #171411;
}

.footer-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-footer p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.86rem;
}

@media (max-width: 840px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 86svh;
    padding-top: 112px;
  }

  .hero-bg {
    background-position: 61% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(18, 15, 13, 0.84), rgba(18, 15, 13, 0.42)),
      linear-gradient(180deg, rgba(18, 15, 13, 0.12), rgba(18, 15, 13, 0.56));
  }

  .intro-grid,
  .result-layout,
  .formats-layout,
  .join-layout {
    grid-template-columns: 1fr;
  }

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

  .sticky-copy {
    position: static;
  }

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

@media (max-width: 680px) {
  .result-points {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .brand-mark span:last-child {
    font-size: 0.95rem;
  }

  .hero {
    min-height: 84svh;
    padding-bottom: 54px;
  }

  h1 {
    font-size: clamp(3.3rem, 19vw, 5.8rem);
  }

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

  .format-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }
}
