/* Greedo marketing site. One shared stylesheet, mobile-first. */

:root {
  --radius: 0.875rem;
  --background: #efe8d6;
  --foreground: #2f3a2c;
  --card: #ffffff;
  --primary: #4caf50;          /* brand green: wordmark, icons, accents */
  --primary-strong: #2e7d32;   /* darker green for text and button fills (WCAG AA with white) */
  --primary-hover: #276b2b;
  --secondary: #e7eecf;
  --muted: #e7e0cd;
  --muted-foreground: #565e4f; /* darkened from #6b7363 so body text passes AA on cream */
  --accent: #d9ecc4;
  --border: #ddd6c2;
  --brand-1: #d2e6bb;
  --brand-2: #c4dca3;
  --brand-3: #a9cf86;
  --shadow: 0 1px 2px rgba(47, 58, 44, 0.06), 0 8px 24px -8px rgba(47, 58, 44, 0.14);
  --shadow-lg: 0 2px 4px rgba(47, 58, 44, 0.06), 0 18px 40px -12px rgba(47, 58, 44, 0.22);
  --max: 72rem;
  --font-body: "Quicksand", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Lora", Georgia, "Times New Roman", serif;
  --font-logo: "Pacifico", cursive;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  color: var(--foreground);
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 6vw, 3.5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

a { color: var(--primary-strong); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }

:focus-visible {
  outline: 3px solid var(--primary-strong);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--card);
  color: var(--foreground);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-weight: 700;
}
.skip-link:focus { top: 0.75rem; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(239, 232, 214, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo img { width: 36px; height: 36px; object-fit: contain; }
.wordmark {
  font-family: var(--font-logo);
  color: var(--primary);
  font-size: 1.6rem;
  line-height: 1;
  padding-bottom: 0.2rem;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--foreground);
  cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--background);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 24px -12px rgba(47, 58, 44, 0.25);
  padding: 0.5rem 1rem 1.25rem;
}
.site-nav.is-open { display: block; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav li a {
  display: block;
  padding: 0.8rem 0.5rem;
  color: var(--foreground);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.site-nav li a:hover { color: var(--primary-strong); }
.site-nav li a[aria-current="page"] { color: var(--primary-strong); }
.site-nav .btn { margin-top: 1rem; width: 100%; }

@media (min-width: 860px) {
  .menu-toggle { display: none; }
  .site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: static;
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  .site-nav ul { display: flex; gap: 1.75rem; }
  .site-nav li a {
    padding: 0.25rem 0;
    border: 0;
    border-bottom: 2px solid transparent;
  }
  .site-nav li a[aria-current="page"] { border-bottom-color: var(--primary); }
  .site-nav .btn { margin-top: 0; width: auto; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.1em; height: 1.1em; flex-shrink: 0; fill: currentColor; }

.btn-primary { background: var(--primary-strong); color: #fff; box-shadow: 0 6px 16px -6px rgba(46, 125, 50, 0.55); }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }

.btn-store {
  background: #111;
  color: #fff;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.45);
}
.btn-store:hover { background: #2a2a2a; color: #fff; }
.btn-store svg { width: 1.5em; height: 1.5em; }
.btn-store .store-text { display: flex; flex-direction: column; text-align: left; }
.btn-store .store-small { font-size: 0.72rem; font-weight: 600; opacity: 0.85; }
.btn-store .store-big { font-size: 1.1rem; }

/* ---------- Sections & cards ---------- */
main { display: block; }
.section { padding: 3.5rem 0; }
@media (min-width: 860px) { .section { padding: 5rem 0; } }
.section-head { text-align: center; max-width: 40rem; margin: 0 auto 2.5rem; }
.section-head p, .lead { color: var(--muted-foreground); font-size: 1.1rem; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}
@media (min-width: 640px) { .card { padding: 2rem; } }

.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.875rem;
  background: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.grid { display: grid; gap: 1.25rem; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.card p:last-child { margin-bottom: 0; }
.card .muted, .muted { color: var(--muted-foreground); }

/* Phone mockup frame around app screenshots */
.phone {
  background: #1d1f1b;
  padding: 7px;
  border-radius: 2rem;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 260px;
}
.phone img {
  border-radius: 1.6rem;
  width: 100%;
  aspect-ratio: 887 / 1920;
  object-fit: cover;
  background: var(--background);
}

/* ---------- Hero ---------- */
.hero { padding: 2.5rem 0 3rem; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero-copy { text-align: center; }
.pill {
  display: inline-block;
  background: var(--secondary);
  border: 1px solid var(--brand-2);
  color: var(--foreground);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.hero .lead { max-width: 34rem; margin-left: auto; margin-right: auto; }
.hero-note { color: var(--muted-foreground); font-size: 0.95rem; margin-top: 1rem; }
.hero-phones {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0.9rem;
}
.hero-phones .phone { max-width: 46%; }
.hero-phones .phone:nth-child(2) { margin-top: 2.5rem; }
@media (min-width: 640px) { .hero-phones .phone { max-width: 240px; } }
@media (min-width: 960px) {
  .hero { padding: 4.5rem 0 4rem; }
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 3rem; }
  .hero-copy { text-align: left; }
  .hero .lead { margin-left: 0; }
}

/* ---------- Greedo mood section ---------- */
.greedo-block { display: grid; gap: 2rem; align-items: center; }
.greedo-block .phone { margin: 0 auto; max-width: 240px; }
.moods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.mood {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 0.5rem;
  text-align: center;
}
.mood img { width: 100%; max-width: 110px; aspect-ratio: 1 / 1; object-fit: contain; margin: 0 auto 0.5rem; }
.mood h3 { font-size: 1.05rem; margin-bottom: 0.15rem; }
.mood p { font-size: 0.85rem; line-height: 1.35; color: var(--muted-foreground); margin: 0; }
@media (min-width: 860px) {
  .greedo-block { grid-template-columns: 1.4fr 1fr; gap: 3.5rem; }
  .mood { padding: 1.25rem 1rem; }
}

/* ---------- Pricing ---------- */
.pricing { max-width: 52rem; margin: 0 auto; }
.price-card h3 { font-size: 1.5rem; margin-bottom: 0.35rem; }
.price-card.featured { border: 2px solid var(--primary); position: relative; }
.checks { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.checks li { position: relative; padding-left: 2rem; margin-bottom: 0.6rem; font-weight: 600; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 999px;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e7d32' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 0.85rem no-repeat;
}
.pricing-cta { text-align: center; margin-top: 2rem; }
.fine-print { color: var(--muted-foreground); font-size: 0.9rem; max-width: 34rem; margin: 1rem auto 0; }

/* ---------- Final CTA ---------- */
.cta-card {
  text-align: center;
  background: linear-gradient(160deg, var(--brand-1), var(--brand-2));
  border-radius: calc(var(--radius) * 1.5);
  padding: 2.5rem 1.25rem;
  box-shadow: var(--shadow);
}
.cta-card img { width: 140px; aspect-ratio: 886 / 1120; margin: 0 auto 1rem; }
.cta-card h2 { margin-bottom: 1.5rem; }

/* ---------- Page header (inner pages) ---------- */
.page-head { text-align: center; padding: 3rem 0 1.5rem; max-width: 44rem; margin: 0 auto; }
@media (min-width: 860px) { .page-head { padding: 4.5rem 0 2rem; } }
.page-cta { text-align: center; padding: 1rem 0 4rem; }

/* Features page */
.feature-row { display: grid; gap: 1.5rem; align-items: center; }
.feature-row .phone { margin: 0 auto; max-width: 220px; }
@media (min-width: 860px) {
  .feature-row { grid-template-columns: 1.3fr 1fr; gap: 3rem; padding: 2.5rem 3rem; }
  .feature-row.reverse .feature-copy { order: 2; }
}
.feature-copy p { font-size: 1.05rem; }
.stack { display: grid; gap: 1.25rem; }

/* How it works */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { display: flex; gap: 1rem; align-items: flex-start; }
.step-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: var(--primary-strong);
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
}
.step h2 { font-size: 1.3rem; margin-bottom: 0.4rem; }

/* Press */
.press-card { display: grid; gap: 1.5rem; align-items: center; max-width: 52rem; margin: 0 auto; }
.press-card img { width: 140px; aspect-ratio: 886 / 1120; margin: 0 auto; }
.press-card .tagline { color: var(--primary-strong); font-weight: 700; font-size: 1.1rem; }
@media (min-width: 720px) {
  .press-card { grid-template-columns: 180px 1fr; }
  .press-card img { width: 100%; }
}
.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.swatch { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.swatch-color { height: 72px; border-bottom: 1px solid var(--border); }
.swatch-label { padding: 0.65rem 0.85rem; font-size: 0.9rem; }
.swatch-label strong { display: block; }
.swatch-label code { font-family: ui-monospace, "SF Mono", Menlo, monospace; color: var(--muted-foreground); font-size: 0.85rem; }
.narrow { max-width: 52rem; margin: 0 auto; }

/* Document pages (support, privacy) */
.doc { max-width: 46rem; margin: 0 auto 4rem; }
.doc h2 { font-size: 1.35rem; margin-top: 2rem; }
.doc h2:first-of-type { margin-top: 0.5rem; }
.doc ul { padding-left: 1.25rem; margin: 0 0 1rem; }
.doc li { margin-bottom: 0.4rem; }
.doc .updated { color: var(--muted-foreground); font-size: 0.95rem; }
.doc p, .doc li { overflow-wrap: anywhere; }

/* 404 */
.not-found { text-align: center; padding: 3.5rem 0 5rem; }
.not-found img { width: 180px; aspect-ratio: 1035 / 1024; margin: 0 auto 1.5rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
  margin-top: 1rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.footer-links { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; margin: 0; padding: 0; }
.footer-links a { color: var(--foreground); font-weight: 600; text-decoration: none; display: inline-block; padding: 0.4rem 0; }
.footer-links a:hover { color: var(--primary-strong); text-decoration: underline; }
.copyright { color: var(--muted-foreground); font-size: 0.9rem; margin: 0; }
@media (min-width: 720px) {
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ---------- Utilities ---------- */
.card-title { font-size: 1.3rem; margin-bottom: 0.5rem; }
@media (min-width: 860px) { .feature-row .card-title { font-size: 1.6rem; } }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
