/* Diet2Fit marketing site — styles.css
   Self-contained, responsive, no JS. Brand green: #1B7A5A / #2E8B6E. */

:root {
  --green-900: #14543e;
  --green-700: #1b7a5a;
  --green-600: #2e8b6e;
  --green-500: #2e7d52;
  --green-100: #e8f5ef;
  --green-50: #f3faf6;
  --ink: #14211c;
  --ink-soft: #45564f;
  --muted: #7a8a83;
  --line: #e6ece9;
  --bg: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(20, 84, 62, 0.10);
  --shadow-sm: 0 2px 10px rgba(20, 84, 62, 0.07);
  --maxw: 1120px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.4em; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 14px;
}
.accent { color: var(--green-700); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 22px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
  color: #fff;
  box-shadow: 0 8px 18px rgba(27, 122, 90, 0.28);
}
.btn--primary:hover { box-shadow: 0 12px 24px rgba(27, 122, 90, 0.34); }
.btn--ghost { background: #fff; color: var(--green-700); border-color: var(--green-100); }
.btn--ghost:hover { background: var(--green-50); }
.btn--light { background: #fff; color: var(--green-700); }
.btn--light:hover { box-shadow: var(--shadow); }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__name { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a { font-weight: 500; color: var(--ink-soft); }
.nav__links a:hover { color: var(--green-700); }
.nav__links .btn { padding: 9px 16px; }

/* Hero */
.hero {
  background: radial-gradient(1100px 460px at 78% -8%, var(--green-100), transparent 60%),
              linear-gradient(180deg, var(--green-50), #fff 60%);
  padding: 72px 0 84px;
  overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); font-weight: 800; }
.lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 36ch; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 14px; }
.hero__note { font-size: 0.92rem; color: var(--muted); margin: 0; }

/* Hero phone (real app screenshot in a device-style frame) */
.hero__art { display: flex; justify-content: center; }
.phone {
  width: 290px;
  border-radius: 40px;
  background: linear-gradient(160deg, #ffffff, #eef6f1);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 14px;
}
.phone__img, .shot img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}
.phone__img { border-radius: 26px; }

/* Screenshots strip */
.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 880px;
  margin: 0 auto;
}
.shot { margin: 0; text-align: center; }
.shot img {
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.shot figcaption {
  margin-top: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* Sections */
.section { padding: 80px 0; }
.section--alt { background: var(--green-50); }
.section__head { max-width: 620px; margin: 0 auto 48px; text-align: center; }
.section__head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; }
.section__head p { color: var(--ink-soft); font-size: 1.05rem; }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature__icon {
  width: 50px; height: 50px; border-radius: 12px;
  background: var(--green-100);
  display: grid; place-content: center;
  font-size: 1.5rem; margin-bottom: 16px;
}
.feature h3 { font-size: 1.12rem; font-weight: 700; }
.feature p { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }
.pill {
  display: inline-block;
  vertical-align: 2px;
  margin-left: 6px;
  padding: 2px 9px;
  border-radius: 99px;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Steps */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  counter-reset: step;
}
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); position: relative;
}
.step__num {
  display: grid; place-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
  color: #fff; font-weight: 800; margin-bottom: 16px;
}
.step h3 { font-size: 1.1rem; }
.step p { color: var(--ink-soft); margin: 0; }

/* Why */
.why { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 34px; color: var(--ink-soft); font-size: 1.04rem; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-100); color: var(--green-700);
  display: grid; place-content: center; font-size: 0.78rem; font-weight: 800;
}
.why__card {
  background: linear-gradient(160deg, var(--green-700), var(--green-900));
  color: #fff; border-radius: 20px; padding: 36px;
  display: grid; gap: 22px; box-shadow: var(--shadow);
}
.stat b { font-size: 2.1rem; font-weight: 800; display: block; line-height: 1; }
.stat span { color: rgba(255, 255, 255, 0.82); font-size: 0.95rem; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
  color: #fff; text-align: center; padding: 70px 0;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.cta-band p { color: rgba(255, 255, 255, 0.9); margin-bottom: 24px; }

/* Early-access form (inside the CTA band) */
.ea-form { max-width: 560px; margin: 0 auto; text-align: left; position: relative; }
.ea-form__row { display: flex; gap: 12px; margin-bottom: 12px; }
.ea-input {
  flex: 1; min-width: 0; width: 100%;
  font-family: var(--font); font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid transparent; border-radius: 12px;
  padding: 13px 16px; outline: none;
}
.ea-input::placeholder { color: var(--muted); }
.ea-input:focus { border-color: var(--green-900); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4); }
/* Honeypot — visually hidden, off-screen; real users never see or tab to it. */
.ea-hp { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ea-submit {
  width: 100%; margin-top: 4px; font-size: 1rem; padding: 14px 22px;
  background: var(--green-900); color: #fff;
}
.ea-submit:hover { box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18); }
.ea-submit:disabled { opacity: 0.7; cursor: default; }
.ea-msg { min-height: 1.2em; margin: 12px 0 0; font-size: 0.92rem; text-align: center; color: #fff; }
.ea-msg--err { color: #ffe1e1; }
.ea-done { text-align: center; padding: 6px 0; }
.ea-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.2); color: #fff; font-size: 1.5rem; margin-bottom: 10px;
}
.ea-done b { display: block; font-size: 1.25rem; }
.ea-done p { color: rgba(255, 255, 255, 0.9); margin: 4px 0 0; }
@media (max-width: 560px) {
  .ea-form__row { flex-direction: column; gap: 12px; margin-bottom: 12px; }
}

/* Footer */
.footer { background: #0f3527; color: #cfe3da; padding: 48px 0 30px; }
.footer__inner { display: grid; gap: 18px; }
.footer__brand .brand__name { color: #fff; }
.footer__brand p { color: #9fc0b3; margin: 6px 0 0; }
.footer__links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer__links a { color: #cfe3da; font-weight: 500; }
.footer__links a:hover { color: #fff; }
.footer__copy { color: #7fa294; font-size: 0.88rem; margin: 8px 0 0; }

/* Legal / content pages */
.legal { padding: 56px 0 72px; }
.legal__inner { max-width: 760px; }
.legal h1 { font-size: 2.1rem; font-weight: 800; }
.legal .updated { color: var(--muted); font-size: 0.92rem; margin-bottom: 28px; }
.legal h2 { font-size: 1.25rem; font-weight: 700; margin-top: 32px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 20px; }
.back-link { display: inline-block; margin-top: 32px; color: var(--green-700); font-weight: 600; }

/* Help / Learn articles (generated by tools/build_content.py) */
.article { padding: 56px 0 72px; }
.article__inner { max-width: 760px; }
.article h1 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 800; }
.article .updated { color: var(--muted); font-size: 0.92rem; margin-bottom: 28px; }
.article h2 { font-size: 1.3rem; font-weight: 700; margin-top: 36px; }
.article h3 { font-size: 1.08rem; font-weight: 700; margin-top: 26px; }
.article p, .article li { color: var(--ink-soft); }
.article ul, .article ol { padding-left: 22px; }
.article li { margin: 6px 0; }
.article table { border-collapse: collapse; width: 100%; font-size: 0.95rem; margin: 16px 0; }
.article th, .article td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article th { color: var(--green-700); }
.article blockquote {
  margin: 20px 0; padding: 14px 18px;
  background: var(--green-50); border-left: 3px solid var(--green-600);
  border-radius: 0 10px 10px 0;
}
.article blockquote p { margin: 0; }
.article__support {
  margin-top: 44px; padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.article__support a, .article a { color: var(--green-700); font-weight: 600; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); font-weight: 500; }
.crumbs a:hover { color: var(--green-700); }
.crumbs span { margin: 0 6px; }

/* Article index pages */
.article-group { margin-top: 40px; }
.article-group h2 { font-size: 1.2rem; font-weight: 800; color: var(--green-700); }
.article-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.article-list li {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 18px; box-shadow: var(--shadow-sm);
}
.article-list li a { font-weight: 600; color: var(--ink); }
.article-list li a:hover { color: var(--green-700); }
.article-list li p { margin: 4px 0 0; font-size: 0.92rem; color: var(--muted); }

/* Responsive */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { order: 1; }
  .hero__art { order: 2; }
  .lede { margin-left: auto; margin-right: auto; }
  .hero__cta { justify-content: center; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; max-width: 280px; }
}
@media (max-width: 620px) {
  .nav__links { gap: 14px; }
  .nav__links a:not(.btn) { display: none; }
  .grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 60px; }
  .section { padding: 56px 0; }
}

/* ── Careers ──────────────────────────────────────────────────────────── */
.careers-hero { background: var(--green-50); padding: 72px 0 40px; border-bottom: 1px solid var(--line); }
.careers-hero h1 { font-size: 2.4rem; margin-top: 10px; }
.careers-hero .lede { max-width: 60ch; }

.careers-roles { padding: 56px 0 72px; }
.careers-roles > .container > h2 { font-size: 1.6rem; margin-bottom: 24px; }

.roles-list { display: grid; gap: 18px; }
.role-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 24px 26px;
}
.role-card__head h3 { font-size: 1.3rem; margin: 0 0 8px; }
.role-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.role-chip {
  font-size: 0.8rem; font-weight: 600; color: var(--green-700);
  background: var(--green-100); border-radius: 99px; padding: 4px 12px;
}
.role-summary { color: var(--ink-soft); margin: 0 0 16px; }
.role-details { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 16px; }
.role-details h4 { font-size: 0.95rem; color: var(--ink); margin: 14px 0 8px; }
.role-details h4:first-child { margin-top: 0; }
.role-details ul { margin: 0 0 4px; padding-left: 20px; }
.role-details li { color: var(--ink-soft); margin-bottom: 6px; }
.role-salary { color: var(--ink-soft); margin-top: 12px; }
.role-actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.roles-empty { color: var(--ink-soft); }
.roles-empty a { color: var(--green-700); font-weight: 600; }

/* Apply modal */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(15, 53, 39, 0.55); }
.modal__panel {
  position: relative; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; padding: 30px 30px 26px;
}
.modal__close {
  position: absolute; top: 12px; right: 14px; background: none; border: none;
  font-size: 1.7rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 8px;
}
.modal__close:hover { color: var(--ink); }
.modal__panel h3 { font-size: 1.4rem; margin: 0 0 4px; }
.modal__role { color: var(--green-700); font-weight: 600; margin: 0 0 18px; }

/* Apply form sits on a LIGHT panel — override the dark-CTA ea-form styles */
.apply-form { max-width: none; margin: 0; }
.apply-form .ea-input { border-color: var(--line); background: #fff; }
.apply-form .ea-input:focus { border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(46, 139, 110, 0.18); }
.ea-textarea { resize: vertical; min-height: 90px; line-height: 1.5; margin-bottom: 4px; }
.apply-submit { width: 100%; margin-top: 8px; }
.apply-form .ea-msg { color: var(--muted); }
.apply-form .ea-msg--err { color: #c0392b; }
.apply-done { text-align: center; padding: 12px 0; }
.apply-done .ea-check { background: var(--green-100); color: var(--green-700); }
.apply-done .ea-check::before { content: '\2713'; font-weight: 700; }
.apply-done b { display: block; font-size: 1.2rem; color: var(--ink); margin-top: 4px; }
.apply-done p { color: var(--ink-soft); margin: 6px 0 0; }

.file-field { display: block; text-align: left; margin-bottom: 12px; }
.file-label { display: block; font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 6px; font-weight: 500; }
.ea-file { display: block; width: 100%; font-family: var(--font); font-size: 0.92rem; color: var(--ink-soft); }
.ea-file::file-selector-button {
  font-family: var(--font); font-weight: 600; font-size: 0.9rem; color: var(--green-700);
  background: var(--green-100); border: none; border-radius: 8px; padding: 9px 14px;
  margin-right: 12px; cursor: pointer;
}
.ea-file::file-selector-button:hover { background: #d4ede2; }

@media (max-width: 620px) {
  .careers-hero h1 { font-size: 1.9rem; }
  .modal__panel { padding: 26px 20px 22px; }
}
