/* PlantID Pro — public static site styles
 * Plain CSS, no dependencies. Tokens mirror src/theme.ts. */

:root {
  --bg: #F4F7F2;
  --surface: #FFFFFF;
  --surface-muted: #FBFBF6;
  --cream: #F7F4EC;
  --border: #E4EBE2;
  --border-strong: #C9D4C5;
  --text: #102016;
  --text-muted: #4F5B53;
  --text-subtle: #7C8A80;
  --primary: #1F6F43;
  --primary-deep: #0F4C2C;
  --primary-tint: #E5F2EA;
  --accent: #7DBC8C;
  --warning: #C5872B;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --max-content-width: 720px;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-stack);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--primary-deep);
  text-decoration: none;
  font-weight: 600;
}
a:hover, a:focus { text-decoration: underline; }

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

.container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 28px 24px 64px;
}

/* Brand header */
.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

/* Container radius matches the icon's pre-rounded shape so the white
 * margins baked into the source PNG are cropped out cleanly. */
.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 22%;
  overflow: hidden;
  background: transparent;
  flex-shrink: 0;
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 18px; font-weight: 800; color: var(--primary-deep); letter-spacing: -0.2px; }
.brand-tag  { font-size: 11px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.6px; }

/* Typography */
h1 {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.6px;
  color: var(--text);
  margin: 0 0 8px;
}
h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin: 32px 0 12px;
}
h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--primary-deep);
  margin: 20px 0 8px;
}
p { margin: 0 0 14px; }
ul { padding-left: 22px; margin: 0 0 14px; }
li { margin-bottom: 8px; }
strong { font-weight: 700; color: var(--text); }
em { font-style: italic; }
code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--surface-muted);
  padding: 2px 6px;
  border-radius: 6px;
}

blockquote {
  margin: 16px 0;
  padding: 12px 18px;
  background: var(--cream);
  border-left: 3px solid var(--primary);
  border-radius: 4px 12px 12px 4px;
  color: var(--text-muted);
}
blockquote p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.updated {
  color: var(--text-muted);
  font-size: 14px;
  margin: 6px 0 24px;
}

/* Landing-page specific */
.hero {
  text-align: center;
  padding: 24px 0 16px;
}

/* The wordmark image has a transparent background and includes the leaves +
 * "PlantID Pro" lockup, so we don't need a container background or border. */
.hero-wordmark {
  width: 220px;
  max-width: 60%;
  margin: 0 auto 16px;
  aspect-ratio: 1 / 1;
}
.hero-wordmark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
@media (min-width: 640px) {
  .hero-wordmark { width: 260px; }
}

.hero h1 { margin-bottom: 12px; }
.tagline {
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

.features {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  margin: 36px 0 16px;
}
@media (min-width: 640px) {
  .features { grid-template-columns: 1fr 1fr; }
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.feature h3 {
  margin: 0 0 6px;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
  font-size: 16px;
}
.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

.plan-banner {
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary) 100%);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  margin: 28px 0 32px;
  color: var(--surface);
  text-align: center;
}
.plan-banner h2 {
  color: var(--surface);
  margin: 0 0 8px;
  font-size: 24px;
  letter-spacing: -0.3px;
}
.plan-banner p {
  color: rgba(255,255,255,0.86);
  margin: 0 0 6px;
  font-size: 16px;
}
.plan-banner .small { font-size: 13px; color: rgba(255,255,255,0.72); margin-top: 12px; }

.badge-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 18px 0 0;
  flex-wrap: wrap;
}
.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--surface);
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  letter-spacing: 0.2px;
}
.app-badge:hover { background: rgba(0,0,0,0.35); text-decoration: none; }
.app-badge small { display: block; font-size: 10px; opacity: 0.75; font-weight: 500; }

.support-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-align: center;
  margin: 24px 0;
}
.support-card h2 {
  margin-top: 0;
  font-size: 18px;
  text-transform: uppercase;
  color: var(--primary-deep);
  letter-spacing: 0.6px;
}
.support-card p { color: var(--text-muted); }

/* Contact card on legal pages */
.contact-card {
  margin-top: 32px;
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.contact-card .company { font-weight: 700; margin-bottom: 4px; color: var(--text); }
.contact-card .line { color: var(--text-muted); font-size: 15px; margin-bottom: 0; }
.contact-card .email { display: inline-block; margin-top: 10px; }

/* Auth callback page */
.callback-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.callback-card {
  background: var(--surface);
  border-radius: 28px;
  padding: 48px 32px 40px;
  text-align: center;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 24px 64px rgba(15, 76, 44, 0.1);
  border: 1px solid var(--border);
}
.callback-icon {
  width: 72px;
  height: 72px;
  border-radius: 36px;
  background: var(--primary-tint);
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}
.callback-card h1 { font-size: 26px; margin-bottom: 8px; }
.callback-card p { color: var(--text-muted); font-size: 16px; }
.callback-card .helper {
  font-size: 13px;
  color: var(--text-subtle);
  margin-top: 18px;
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: var(--surface);
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  margin-top: 16px;
  transition: background 120ms ease;
}
.btn:hover, .btn:focus {
  background: var(--primary-deep);
  text-decoration: none;
  color: var(--surface);
}

/* Footer */
.footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  color: var(--text-subtle);
  font-size: 13px;
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); font-weight: 500; }
.footer-meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

@media (max-width: 480px) {
  .container { padding: 20px 18px 48px; }
  h1 { font-size: 30px; }
  .hero-icon { width: 80px; height: 80px; }
  .plan-banner { padding: 24px 18px; }
}
