:root {
  --ink: #17211b;
  --muted: #5f6f66;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --leaf: #1f6d4f;
  --mint: #cfe9db;
  --tomato: #d94f34;
  --saffron: #f4b740;
  --charcoal: #27302b;
  --line: #dde5dd;
  --shadow: 0 24px 60px rgba(23, 33, 27, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.5;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  min-height: 92vh;
  overflow: hidden;
  background: var(--paper);
}

.hero__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  padding: 48px;
  background:
    linear-gradient(120deg, rgba(31, 109, 79, 0.9), rgba(23, 33, 27, 0.98)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
}

.countertop {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  aspect-ratio: 1 / 1;
}

.phone {
  position: absolute;
  inset: 8% 20% 12% 20%;
  padding: 18px;
  border: 10px solid #101713;
  border-radius: 34px;
  background: #101713;
  box-shadow: var(--shadow);
  transform: rotate(-7deg);
}

.phone__bar {
  width: 34%;
  height: 6px;
  margin: 0 auto 18px;
  border-radius: 20px;
  background: #2f3a34;
}

.phone__screen {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
  padding: 28px;
  border-radius: 22px;
  background: #f7f4ea;
}

.phone__screen span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.phone__screen strong {
  max-width: 11ch;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.phone__line {
  width: 62%;
  height: 10px;
  border-radius: 20px;
  background: var(--line);
}

.phone__line--wide {
  width: 92%;
  margin-top: auto;
}

.phone__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.phone__chips span {
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--ink);
  font-size: 0.75rem;
}

.receipt,
.clock {
  position: absolute;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.receipt {
  right: 0;
  bottom: 13%;
  display: grid;
  gap: 6px;
  width: 185px;
  padding: 22px;
  background: var(--surface);
  transform: rotate(6deg);
}

.receipt span,
.receipt em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 700;
}

.receipt strong {
  font-size: 2rem;
}

.clock {
  top: 12%;
  left: 3%;
  display: grid;
  place-items: center;
  width: 116px;
  height: 116px;
  background: var(--saffron);
  color: #231a0a;
  font-size: 2rem;
  font-weight: 800;
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 7vw, 92px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--tomato);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 9ch;
  margin-bottom: 24px;
  font-size: clamp(4rem, 10vw, 8.4rem);
  line-height: 0.86;
  letter-spacing: 0;
}

h2 {
  max-width: 11ch;
  margin-bottom: 0;
  font-size: clamp(2.5rem, 6vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.28rem;
  line-height: 1.1;
}

.hero__copy {
  max-width: 650px;
  margin-bottom: 34px;
  color: var(--charcoal);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.signup {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 12px;
  max-width: 650px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

input,
select,
textarea {
  min-height: 56px;
  width: 100%;
  max-width: 100%;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 16px;
  outline: none;
}

textarea {
  min-height: 116px;
  padding-top: 14px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--leaf);
  box-shadow: 0 0 0 4px rgba(31, 109, 79, 0.16);
}

button {
  align-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  border: 0;
  border-radius: 8px;
  background: var(--leaf);
  color: #fff;
  padding: 0 22px;
  font-weight: 800;
  cursor: pointer;
}

button:hover {
  background: #185b42;
}

button:focus-visible {
  outline: 4px solid rgba(217, 79, 52, 0.34);
  outline-offset: 3px;
}

button span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.form-note {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.problem-band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0;
}

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

.problem-grid article {
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf6;
}

.problem-grid span {
  display: inline-block;
  margin-bottom: 44px;
  color: var(--tomato);
  font-weight: 800;
}

.problem-grid p,
.invitation p,
.survey-layout p {
  color: var(--muted);
}

.survey-band {
  background: var(--paper);
}

.survey-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(320px, 0.9fr);
  gap: 56px;
  align-items: start;
}

.survey-layout h2 {
  max-width: 10ch;
}

.survey-layout p {
  max-width: 520px;
  margin-top: 24px;
  font-size: 1.08rem;
}

.survey {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.survey button {
  justify-self: start;
}

.invitation {
  background: var(--ink);
  color: #fff;
}

.invitation .eyebrow {
  color: var(--saffron);
}

.invitation__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.8fr);
  gap: 54px;
  align-items: end;
}

.invitation p {
  margin-bottom: 0;
  color: #dfe8e1;
  font-size: 1.2rem;
}

.invitation__actions {
  display: grid;
  gap: 24px;
}

.preview-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  min-height: 52px;
  padding: 0 20px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.preview-link:hover {
  border-color: var(--saffron);
}

.preview-link:focus-visible {
  outline: 4px solid rgba(244, 183, 64, 0.36);
  outline-offset: 3px;
}

.preview-note {
  display: none;
  padding: 16px 18px;
  border-left: 4px solid var(--saffron);
  background: rgba(255, 255, 255, 0.08);
}

.preview-note.is-visible {
  display: block;
}

@media (max-width: 920px) {
  .hero,
  .invitation__layout,
  .survey-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero__media {
    min-height: 440px;
    order: -1;
  }

  h1 {
    max-width: 10ch;
  }

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

@media (max-width: 620px) {
  body {
    overflow-wrap: anywhere;
  }

  .hero__media {
    min-height: 360px;
    padding: 24px;
  }

  .phone {
    inset: 4% 12% 13% 12%;
    border-width: 8px;
  }

  .phone__screen {
    padding: 20px;
  }

  .receipt {
    width: 150px;
    padding: 16px;
  }

  .clock {
    width: 88px;
    height: 88px;
    font-size: 1.5rem;
  }

  .hero__content {
    padding: 34px 20px 48px;
  }

  h1 {
    font-size: clamp(3.35rem, 18vw, 4.8rem);
    line-height: 0.9;
  }

  h2 {
    max-width: 12ch;
    font-size: clamp(2.35rem, 13vw, 3.5rem);
  }

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

  button,
  .survey button,
  .preview-link {
    width: 100%;
  }

  .preview-link {
    min-height: 56px;
  }

  .section-shell {
    width: min(100% - 32px, 1180px);
    padding: 60px 0;
  }
}

@media (max-width: 420px) {
  .hero__media {
    min-height: 310px;
  }

  .phone {
    inset: 5% 6% 16% 10%;
  }

  .receipt {
    right: -8px;
    bottom: 8%;
  }

  .clock {
    left: -6px;
    top: 8%;
  }

  .survey {
    padding: 20px;
  }
}
