:root {
  color-scheme: light;
  --bg: #fafcf7;
  --surface: #ffffff;
  --text: #17211b;
  --muted: #637067;
  --line: #d8e3d9;
  --accent: #246b4f;
  --accent-strong: #1d553f;
  --accent-soft: #e2efe6;
  --gold: #ffd979;
  --red: #ef3b32;
  --yellow: #f4c51d;
  --blue: #0874d7;
  --shadow: 0 22px 70px rgba(23, 33, 27, 0.14);
  --focus: #8b6500;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
}

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

a {
  color: var(--accent-strong);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.site-header {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1160px;
  padding: 20px 24px;
}

.brand {
  align-items: center;
  color: var(--text);
  display: inline-flex;
  font-weight: 850;
  gap: 10px;
  text-decoration: none;
}

.brand img,
.app-icon {
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(36, 107, 79, 0.18);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

nav a {
  color: var(--muted);
  font-weight: 750;
  text-decoration: none;
}

nav a:hover {
  color: var(--accent-strong);
}

main {
  margin: 0 auto;
  max-width: 1160px;
  padding: 0 24px 84px;
}

.home {
  max-width: none;
  padding: 0;
}

.hero {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 217, 121, 0.48), transparent 24rem),
    linear-gradient(135deg, #f8fbf5 0%, #e7f3ea 48%, #ffffff 100%);
  display: grid;
  gap: clamp(32px, 6vw, 72px);
  grid-template-columns: minmax(0, 1fr) minmax(300px, 470px);
  min-height: calc(100vh - 76px);
  overflow: hidden;
  padding: clamp(44px, 8vw, 88px) max(24px, calc((100vw - 1160px) / 2)) 76px;
}

.hero-copy {
  align-self: center;
  max-width: 640px;
}

.app-icon {
  height: 72px;
  margin-bottom: 22px;
  width: 72px;
}

.eyebrow {
  color: var(--accent-strong);
  font-weight: 850;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(3.2rem, 8vw, 6.2rem);
  letter-spacing: 0;
  line-height: 0.94;
  margin-bottom: 24px;
  max-width: 780px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.04;
  margin-bottom: 0;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.25;
  margin-bottom: 8px;
}

.subheadline {
  color: var(--text);
  font-size: clamp(1.22rem, 2.3vw, 1.65rem);
  font-weight: 760;
  line-height: 1.35;
  margin-bottom: 28px;
  max-width: 680px;
}

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

.button {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  display: inline-flex;
  font-weight: 850;
  justify-content: center;
  min-height: 50px;
  padding: 10px 18px;
  text-decoration: none;
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.76);
}

.button:hover {
  border-color: var(--accent);
}

.button.primary:hover {
  background: var(--accent-strong);
}

.signup-section,
.preview-section,
.steps-section,
.features-section {
  margin: 0 auto;
  max-width: 1160px;
  padding: 88px 24px 0;
}

.signup-section {
  scroll-margin-top: 24px;
}

.signup-layout {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
}

.beta-form,
.signup-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 46px rgba(23, 33, 27, 0.08);
}

.beta-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(20px, 4vw, 30px);
}

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

.field-group label,
.check-field {
  color: var(--text);
  font-weight: 800;
}

.beta-form input,
.beta-form textarea {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  min-height: 50px;
  min-width: 0;
  padding: 11px 12px;
  width: 100%;
}

.beta-form textarea {
  min-height: 118px;
  resize: vertical;
}

.check-field {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  line-height: 1.45;
}

.check-field input {
  flex: 0 0 auto;
  height: 18px;
  margin-top: 3px;
  min-height: 0;
  padding: 0;
  width: 18px;
}

.beta-form button {
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  min-height: 52px;
  padding: 0 18px;
}

.beta-form button:hover {
  background: var(--accent-strong);
}

.beta-note {
  color: var(--muted);
  font-weight: 750;
  margin: 14px 0 0;
}

.form-note {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.signup-card {
  align-self: start;
  padding: clamp(20px, 4vw, 30px);
}

.signup-card ol {
  color: var(--muted);
  margin: 0;
  padding-left: 1.4rem;
}

.signup-card li + li {
  margin-top: 10px;
}

.signup-status {
  background: var(--accent-soft);
  border: 1px solid #bddac8;
  border-radius: 8px;
  margin-top: 22px;
  padding: 18px;
}

.signup-status p {
  color: var(--muted);
  margin-bottom: 0;
}

.hero-visual {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 580px;
}

.phone-frame {
  background: #101612;
  border: 10px solid #111813;
  border-radius: 42px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.phone-frame::before {
  background: #101612;
  border-radius: 0 0 14px 14px;
  content: "";
  height: 18px;
  left: 50%;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: 104px;
  z-index: 2;
}

.phone-frame img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.main-phone {
  height: min(760px, 82vh);
  max-height: 760px;
  width: min(360px, 78vw);
}

.section-heading {
  margin-bottom: 32px;
  max-width: 740px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 14px 0 0;
}

.preview-grid {
  align-items: end;
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.preview-phone {
  aspect-ratio: 9 / 17;
  width: 100%;
}

.preview-phone img {
  object-position: center top;
}

.crop-top img {
  object-position: center top;
}

.crop-meal img {
  object-position: center 44%;
}

.crop-coffee img {
  object-position: center bottom;
}

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

.steps-grid article,
.feature-list article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.steps-grid span {
  align-items: center;
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--accent-strong);
  display: inline-flex;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  margin-bottom: 18px;
  width: 38px;
}

.steps-grid article:nth-child(2) span {
  background: #fff3c5;
  color: #6f5213;
}

.steps-grid article:nth-child(3) span {
  background: #e5f1fc;
  color: #0f589d;
}

.steps-grid p,
.feature-list p,
.document p,
.document li {
  color: var(--muted);
}

.feature-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-list article {
  border-left: 6px solid var(--accent);
}

.feature-list article:nth-child(2) {
  border-left-color: var(--gold);
}

.feature-list article:nth-child(3) {
  border-left-color: var(--red);
}

.feature-list article:nth-child(4) {
  border-left-color: var(--blue);
}

.feature-list article:nth-child(5) {
  border-left-color: var(--yellow);
}

.feature-list article:nth-child(6) {
  border-left-color: var(--accent);
}

.estimate-disclaimer {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 18px 0 0;
  max-width: 760px;
}

.document {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 20px;
  padding: clamp(24px, 5vw, 56px);
}

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

.document h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 12px;
}

.document h2 {
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 34px 0 10px;
}

.document ul {
  padding-left: 1.25rem;
}

.document strong {
  color: var(--text);
}

.contact-block {
  background: var(--accent-soft);
  border: 1px solid #bddac8;
  border-radius: 8px;
  margin-top: 28px;
  padding: 20px;
}

.sr-only {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 24px;
  text-align: center;
}

footer p {
  margin: 0;
}

footer nav {
  justify-content: center;
  margin-top: 8px;
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    padding-bottom: 56px;
  }

  .hero-visual {
    min-height: auto;
  }

  .main-phone {
    height: 660px;
    width: min(340px, 86vw);
  }

  .preview-grid {
    grid-template-columns: repeat(3, minmax(210px, 1fr));
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .steps-grid,
  .feature-list,
  .signup-layout {
    grid-template-columns: 1fr;
  }
}

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

  main {
    padding-top: 16px;
  }

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

  .signup-section,
  .preview-section,
  .steps-section,
  .features-section {
    padding-top: 64px;
  }
}
