/*
  Grocery Date Tracker landing page prototype styles.
  Everything here is intentionally scoped to this standalone landing page.
  Replace colors only if the production brand palette changes.
*/

:root {
  --go-red: #d71920;
  --go-yellow: #ffd84d;
  --ink: #18202a;
  --muted: #697586;
  --paper: #fffaf0;
  --paper-deep: #f7efe0;
  --card: #ffffff;
  --line: #eadfca;
  --soft-line: rgba(234, 223, 202, 0.92);
  --good: #557c55;
  --cool: #2a9d8f;
  --shadow: 0 18px 48px rgba(24, 32, 42, 0.12);
  --shadow-soft: 0 12px 28px rgba(24, 32, 42, 0.08);
  --radius: 8px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
  background:
    radial-gradient(circle at top left, rgba(255, 216, 77, 0.28), transparent 360px),
    linear-gradient(135deg, var(--paper) 0%, var(--paper-deep) 56%, #fff7e7 100%);
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

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

p {
  color: var(--muted);
}

/* Reusable hidden text for accessible button labels. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: calc(100% - 32px);
  max-width: var(--max-width);
  margin: 16px auto 0;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--soft-line);
  border-top: 5px solid var(--go-red);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  background: var(--go-red);
  border: 2px solid rgba(255, 216, 77, 0.9);
  border-radius: 50%;
}

.brand-mark img,
.founder-photo img,
.screenshot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-mark.is-missing::before,
.founder-photo.is-missing::before {
  content: attr(data-initials);
}

.brand-mark.is-missing img,
.founder-photo.is-missing img {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 9px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  border-radius: var(--radius);
  transition: background 160ms ease, color 160ms ease;
}

.site-nav a:hover {
  color: var(--ink);
  background: #f0e7d8;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  background: #f0e7d8;
  border-radius: var(--radius);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.section {
  width: calc(100% - 32px);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 82px 0;
}

.section-narrow {
  width: calc(100% - 32px);
  max-width: 980px;
}

.tinted {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - var(--max-width)) / 2));
  padding-right: max(16px, calc((100% - var(--max-width)) / 2));
  background: rgba(255, 255, 255, 0.42);
  border-top: 1px solid rgba(234, 223, 202, 0.7);
  border-bottom: 1px solid rgba(234, 223, 202, 0.7);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 1fr);
  align-items: center;
  gap: 42px;
  padding-top: 70px;
  padding-bottom: 70px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--go-red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.96;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

h3 {
  margin-bottom: 8px;
  font-size: 19px;
  line-height: 1.22;
}

.hero-subtitle {
  max-width: 650px;
  margin-bottom: 28px;
  font-size: clamp(18px, 2.2vw, 23px);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.contact-instructions {
  width: 100%;
  max-width: 650px;
  margin: -12px 0 28px;
  padding: 12px 14px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--soft-line);
  border-left: 5px solid var(--go-red);
  border-radius: var(--radius);
  overflow-wrap: break-word;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 16px;
  font-weight: 900;
  border-radius: 999px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.button-primary {
  color: #ffffff;
  background: var(--go-red);
}

.button-secondary {
  color: var(--ink);
  background: var(--go-yellow);
}

.button-ghost {
  color: var(--ink);
  background: #f0e7d8;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 560px;
}

.hero-metrics div {
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  font-size: 18px;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 14px;
}

.demo-panel {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(24, 32, 42, 0.94), rgba(41, 41, 41, 0.9)),
    #292929;
  border: 1px solid rgba(24, 32, 42, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.demo-panel iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

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

.section-heading.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.problem-grid,
.feature-grid,
.proof-grid,
.status-grid {
  display: grid;
  gap: 16px;
}

.problem-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.proof-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.status-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.status-card,
.pricing-card,
.screenshot-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.card,
.status-card {
  padding: 22px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.card:hover,
.status-card:hover,
.screenshot-card:hover {
  transform: translateY(-3px);
  border-color: rgba(215, 25, 32, 0.28);
  box-shadow: var(--shadow);
}

.icon-pill,
.workflow-icon,
.proof-card span {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 34px;
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  background: #fff0c2;
  border: 1px solid rgba(255, 216, 77, 0.7);
  border-radius: 999px;
}

.feature-card {
  border-top: 4px solid var(--go-red);
}

.workflow {
  display: grid;
  grid-template-columns: repeat(9, auto);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.workflow-step {
  width: 190px;
  min-height: 150px;
  padding: 22px 18px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.workflow-arrow {
  color: var(--go-red);
  font-size: 26px;
  font-weight: 900;
}

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

.screenshot-card {
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.screenshot-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background:
    linear-gradient(135deg, #fffdf8 0%, #fff6d9 100%);
  border-bottom: 1px solid var(--soft-line);
}

.screenshot-card img.is-missing {
  opacity: 0;
}

.screenshot-card div {
  padding: 20px;
}

.screenshot-card p {
  margin-bottom: 7px;
  font-size: 14px;
}

.screenshot-mobile img {
  aspect-ratio: 9 / 16;
  width: min(52%, 260px);
  margin: 22px auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.screenshot-crop-top img {
  aspect-ratio: 16 / 7;
  object-fit: cover;
  object-position: top center;
}

.pricing-card {
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.45fr);
  gap: 32px;
  align-items: center;
  border-top: 5px solid var(--go-red);
}

.price {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 900;
  line-height: 1;
}

.price span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 18px;
}

.pricing-highlight {
  display: inline-flex;
  margin: 4px 0 10px;
  padding: 8px 12px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.7px;
  background: var(--go-red);
  border-radius: 999px;
}

.pricing-steady {
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 900;
}

.muted {
  color: var(--muted);
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 10px 0 10px 30px;
  font-weight: 800;
  border-bottom: 1px solid var(--line);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 13px;
  height: 7px;
  border-left: 3px solid var(--good);
  border-bottom: 3px solid var(--good);
  transform: rotate(-45deg);
}

.developer-section {
  position: relative;
}

.developer-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 34px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* The only intentionally creative accent: subtle receipt-line detail for Jeremy's story section. */
.developer-accent {
  position: absolute;
  inset: 46px auto auto -18px;
  width: 220px;
  height: 220px;
  background:
    repeating-linear-gradient(0deg, rgba(215, 25, 32, 0.1) 0 2px, transparent 2px 17px),
    linear-gradient(135deg, rgba(255, 216, 77, 0.42), rgba(42, 157, 143, 0.18));
  border-radius: 50%;
  filter: blur(0.2px);
}

.founder-photo {
  width: 250px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #ffffff;
  font-size: 54px;
  font-weight: 900;
  background: var(--ink);
  border: 6px solid #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.founder-photo img {
  object-fit: contain;
  object-position: center top;
  background: var(--ink);
}

.proof-card span {
  width: auto;
  padding: 0 12px;
  color: var(--go-red);
  background: #fff6df;
}

.status-card {
  border-left: 5px solid var(--cool);
}

.status-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.status-list li + li {
  margin-top: 6px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.contact-grid a {
  padding: 16px;
  color: var(--ink);
  font-weight: 900;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  transition: transform 160ms ease, background 160ms ease;
}

.contact-grid a:hover {
  transform: translateY(-2px);
  background: #fff6df;
}

.contact-button {
  width: fit-content;
}

.site-footer {
  width: calc(100% - 32px);
  max-width: var(--max-width);
  margin: 0 auto 24px;
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer strong {
  color: var(--ink);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer a:hover {
  color: var(--go-red);
}

@media (max-width: 980px) {
  .hero,
  .pricing-card,
  .developer-content {
    grid-template-columns: 1fr;
  }

  .demo-panel {
    min-height: 360px;
  }

  .problem-grid,
  .feature-grid,
  .proof-grid,
  .status-grid,
  .screenshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .workflow-step {
    width: 100%;
  }

  .workflow-arrow {
    text-align: center;
  }

  .workflow-arrow::before {
    content: "↓";
  }

  .workflow-arrow {
    font-size: 0;
  }

  .workflow-arrow::before {
    font-size: 26px;
  }
}

@media (max-width: 720px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    align-items: center;
    gap: 10px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    background: #ffffff;
    border: 1px solid var(--soft-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
  }

  .brand span:last-child {
    max-width: calc(100vw - 132px);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-subtitle {
    max-width: 330px;
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .section {
    padding: 58px 0;
  }

  .hero {
    padding-top: 46px;
  }

  .hero-metrics,
  .problem-grid,
  .feature-grid,
  .proof-grid,
  .status-grid,
  .screenshot-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .contact-button {
    width: 100%;
  }

  .contact-instructions {
    width: calc(100vw - 64px);
    max-width: 330px;
    font-size: 14px;
    line-height: 1.45;
  }

  .demo-panel {
    min-height: 300px;
  }

  .developer-content,
  .pricing-card {
    padding: 24px;
  }

  .founder-photo {
    width: min(100%, 250px);
  }

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

@media (max-width: 420px) {
  .brand span:last-child {
    max-width: 190px;
  }

  h1 {
    font-size: 42px;
  }

  .screenshot-mobile img {
    width: min(78%, 260px);
  }
}
