/* DepletionIQ marketing site. Mirrors app/globals.css in the app repo:
   Georgia for headings and the wordmark, system sans for body, deep teal + gold. */

:root {
  --teal-900: #0D3D30;
  --teal-700: #155E48;
  --teal-500: #1A8A63;
  --teal-200: #A8D5C2;
  --teal-100: #D4EDE4;
  --teal-50:  #F0F8F4;

  --gold-500: #C9A84C;
  --gold-400: #F0C040;
  --gold-100: #FDF6E3;

  --bg-page:   #FFFFFF;
  --bg-tint:   #F6F9F8;
  --text:      #0D3D30;
  --text-2:    #2F5A4A;
  --text-3:    #4A7A68;
  --muted:     #8AAFA3;
  --border:    #D4EDE4;
  --border-2:  #A8D5C2;
  --danger:    #C0392B;

  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --gutter: 16px;
  --max: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  background: var(--bg-page);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 14px 24px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-gold { background: var(--gold-500); color: var(--teal-900); border-color: var(--gold-500); }
.btn-gold:hover { background: var(--gold-400); border-color: var(--gold-400); }
.btn-gold:disabled { background: var(--teal-100); border-color: var(--teal-100); color: var(--text-3); cursor: default; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-block { display: block; width: 100%; }
.link-secondary { color: var(--teal-700); font-weight: 600; font-size: 15px; }
.link-secondary:hover { color: var(--teal-900); text-decoration: underline; text-underline-offset: 3px; }

/* Nav */
.nav { border-bottom: 1px solid var(--border); background: var(--bg-page); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.wordmark {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--teal-900);
}
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { font-size: 14px; font-weight: 600; color: var(--teal-700); white-space: nowrap; }
.nav-links .btn { display: none; }   /* the hero button is right below on phones */
.nav-links a:hover { color: var(--teal-900); }
.nav-links .btn { color: var(--teal-900); }

/* Hero */
.hero { padding: 56px 0 24px; }
.hero h1 {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--teal-900);
  max-width: 760px;
  letter-spacing: -0.005em;
}
.lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 640px;
  margin-top: 20px;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }

/* Screenshots */
.shot {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--teal-50);
  box-shadow: 0 1px 2px rgba(13, 61, 48, 0.04), 0 12px 32px rgba(13, 61, 48, 0.08);
}
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.shot-hero { margin-top: 48px; }

/* Value props */
.props { padding: 64px 0 24px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 48px; }
.prop h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--teal-900);
  margin-top: 22px;
  line-height: 1.25;
}
.prop p { color: var(--text-2); margin-top: 10px; font-size: 16px; }
.prop .shot { box-shadow: 0 1px 2px rgba(13, 61, 48, 0.04), 0 6px 18px rgba(13, 61, 48, 0.06); }

/* Section titles */
.section-title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--teal-900);
  line-height: 1.2;
}

/* How it works */
.how { padding: 64px 0; }
.steps { list-style: none; display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 28px; }
.steps li { display: flex; align-items: flex-start; gap: 14px; }
.step-num {
  flex: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gold-100);
  color: var(--teal-900);
  border: 1px solid var(--gold-500);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center;
}
.step-text { font-size: 17px; font-weight: 600; color: var(--teal-900); padding-top: 5px; line-height: 1.4; }

/* Who it's for: dark band, echoes the app sidebar */
.who { background: var(--teal-900); color: #FFFFFF; padding: 64px 0; }
.who .section-title { color: var(--gold-500); }
.who p { margin-top: 16px; font-size: 18px; line-height: 1.65; color: rgba(255, 255, 255, 0.86); max-width: 680px; }

/* Request access */
.request { padding: 64px 0 80px; background: var(--bg-tint); }
.card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 20px;
  max-width: 560px;
  margin: 0 auto;
  box-shadow: 0 1px 2px rgba(13, 61, 48, 0.04), 0 8px 24px rgba(13, 61, 48, 0.06);
}
.card form { margin-top: 20px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}
.field input, .field select {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: #FFFFFF;
  border: 1px solid var(--border-2);
  border-radius: 8px;
  padding: 12px 14px;
  appearance: none;
  -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234A7A68' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.field input:focus, .field select:focus { border-color: var(--teal-500); outline: none; box-shadow: 0 0 0 3px rgba(26, 138, 99, 0.15); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--danger); font-size: 14px; margin: -6px 0 14px; }
.form-note { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; line-height: 1.5; }
.thanks { margin-top: 20px; padding: 8px 0; }
.thanks h3 { font-family: var(--serif); font-size: 22px; color: var(--teal-900); }
.thanks p { margin-top: 8px; color: var(--text-2); }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 28px 0 40px; background: #FFFFFF; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: var(--text-3); }
.footer-brand { font-family: var(--serif); font-weight: 700; color: var(--teal-900); font-size: 14px; }
.footer a:hover { color: var(--teal-900); text-decoration: underline; text-underline-offset: 3px; }
.dot { color: var(--muted); }

/* Tablet and up */
@media (min-width: 480px) {
  .nav-links .btn { display: inline-block; }
}

@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .hero { padding-top: 80px; }
  .hero h1 { font-size: 44px; }
  .lede { font-size: 18px; }
  .card { padding: 36px 36px; }
}

@media (min-width: 900px) {
  :root { --gutter: 32px; }
  .hero { padding-top: 104px; }
  .hero h1 { font-size: 54px; }
  .shot-hero { margin-top: 64px; }
  .props { padding: 96px 0 40px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 36px; }
  .how, .who { padding: 96px 0; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 36px; }
  .section-title { font-size: 30px; }
  .request { padding: 96px 0 120px; }
}

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