:root {
  --field: #2e7d32;
  --field-dark: #1f5c23;
  --sky: #1e78c8;
  --teal: #00897b;
  --deep-blue: #3949ab;

  --bg-top: #e6f1fa;
  --bg-mid: #eef5f0;
  --bg-bot: #e8f3e6;

  --surface: #ffffff;
  --surface-muted: #f5f9f6;
  --text: #132217;
  --text-muted: #4b5d50;
  --border: rgba(19, 34, 23, 0.1);
  --shadow: 0 18px 40px -18px rgba(19, 34, 23, 0.18);
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 50%, var(--bg-bot) 100%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--sky);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(227, 239, 248, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a {
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--field);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--field);
  color: #ffffff;
  box-shadow: 0 10px 24px -10px rgba(46, 125, 50, 0.6);
}

.btn-primary:hover {
  background: var(--field-dark);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface-muted);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
  border-radius: 10px;
}

/* Hero */
.hero {
  padding: 64px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(46, 125, 50, 0.1);
  color: var(--field-dark);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 4.4vw, 3.35rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.hero p.lead {
  margin: 0 0 28px;
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  gap: 18px;
  align-items: flex-end;
}

.phone-frame {
  background: #0f1712;
  padding: 10px;
  border-radius: 34px;
  box-shadow: 0 28px 60px -20px rgba(19, 34, 23, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.4);
  max-width: 265px;
}

.phone-frame img {
  border-radius: 25px;
  width: 100%;
  height: auto;
}

.phone-frame.secondary {
  max-width: 225px;
  transform: translateY(14px);
  opacity: 0.96;
}

/* Sections */
section {
  padding: 64px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px;
}

.section-header h2 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.02em;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Feature Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.badge-green { background: rgba(46, 125, 50, 0.12); color: var(--field); }
.badge-sky { background: rgba(30, 120, 200, 0.12); color: var(--sky); }
.badge-teal { background: rgba(0, 137, 123, 0.12); color: var(--teal); }
.badge-blue { background: rgba(57, 73, 171, 0.12); color: var(--deep-blue); }

.card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* Workflow / Highlights */
.split-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 12px;
}

.checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-muted);
}

.checklist li strong {
  color: var(--text);
}

.check-dot {
  flex: 0 0 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(46, 125, 50, 0.14);
  color: var(--field);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 2px;
}

/* Color legend pill strip */
.legend-strip {
  display: grid;
  gap: 12px;
}

.legend-item {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

.swatch-red { background: #d32f2f; box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.15); }
.swatch-yellow { background: #eab308; box-shadow: 0 0 0 4px rgba(234, 179, 8, 0.18); }
.swatch-white { background: #ffffff; border: 2px solid #94a3b8; }

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--field) 0%, var(--sky) 100%);
  color: #ffffff;
  border-radius: 24px;
  padding: 44px 36px;
  text-align: center;
  box-shadow: var(--shadow);
}

.cta-banner h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.cta-banner p {
  margin: 0 auto 24px;
  max-width: 56ch;
  color: rgba(255, 255, 255, 0.9);
}

.cta-banner .btn-secondary {
  background: #ffffff;
  color: var(--field-dark);
  border: none;
}

/* Release Notification Form */
.notify-box {
  margin-bottom: 24px;
}

.notify-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.notify-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.notify-input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.98rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.notify-input:focus {
  border-color: var(--field);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.16);
}

.notify-status {
  margin: 10px 0 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--field-dark);
  min-height: 1.4em;
}

.cta-banner .notify-form {
  justify-content: center;
  max-width: 480px;
  margin: 0 auto;
}

.cta-banner .notify-input {
  border-color: rgba(255, 255, 255, 0.35);
}

.cta-banner .notify-status {
  color: #ffffff;
}

/* Screenshot Gallery */
.gallery-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 18px;
  padding: 10px 4px 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(46, 125, 50, 0.35) transparent;
}

.gallery-grid::-webkit-scrollbar {
  height: 8px;
}

.gallery-grid::-webkit-scrollbar-thumb {
  background: rgba(46, 125, 50, 0.35);
  border-radius: 999px;
}

.gallery-item {
  flex: 0 0 205px;
  scroll-snap-align: start;
  margin: 0;
  text-align: center;
}

.gallery-frame {
  background: #0f1712;
  padding: 6px;
  border-radius: 24px;
  box-shadow: 0 16px 34px -16px rgba(19, 34, 23, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.45);
  transition: transform 0.18s ease;
}

.gallery-frame:hover {
  transform: translateY(-4px);
}

.gallery-frame img {
  border-radius: 18px;
  width: 100%;
  height: auto;
}

.gallery-item figcaption {
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

@media (max-width: 620px) {
  .gallery-item {
    flex: 0 0 175px;
  }
}

/* Subpages (Privacy / Support) */
.prose-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 40px;
  box-shadow: var(--shadow);
  max-width: 820px;
  margin: 40px auto;
}

.prose-card h1 {
  margin-top: 0;
  font-size: 2rem;
}

.prose-card h2 {
  margin-top: 28px;
  font-size: 1.25rem;
}

.prose-card p,
.prose-card li {
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  margin-top: 40px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 920px) {
  .hero-grid,
  .split-panel {
    grid-template-columns: 1fr;
  }

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

  .hero-visual {
    margin-top: 16px;
  }
}

@media (max-width: 620px) {
  .nav-links {
    display: none;
  }

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

  .phone-frame.secondary {
    display: none;
  }

  .split-panel,
  .prose-card {
    padding: 26px 20px;
  }
}

/* Help page */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.help-hero {
  text-align: center;
  max-width: 760px;
  margin: 48px auto 32px;
}

.help-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.help-hero .lead {
  margin: 0 auto 24px;
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 62ch;
}

.help-search input {
  width: 100%;
  max-width: 560px;
  padding: 14px 18px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.help-search input:focus {
  outline: 2px solid var(--field);
  outline-offset: 2px;
}

.help-empty {
  margin-top: 18px;
  color: var(--text-muted);
}

.help-topics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 40px;
}

.help-topic {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.help-topic:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.help-topic .card-badge {
  margin: 0;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  font-size: 1.05rem;
}

.help-body {
  display: grid;
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
}

.help-section {
  padding: 32px 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  scroll-margin-top: 88px;
}

.help-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.help-section-head .card-badge {
  margin: 0;
}

.help-section h2 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.015em;
}

.help-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.help-item:last-of-type {
  border-bottom: none;
}

.help-item h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.help-item p,
.help-item ol {
  margin: 0;
  color: var(--text-muted);
}

.help-item ol {
  padding-left: 1.3em;
}

.help-back {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}

.help-cta {
  max-width: 860px;
  margin: 40px auto 0;
}

@media (max-width: 920px) {
  .help-topics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .help-topics {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .help-topic {
    padding: 10px;
    font-size: 0.88rem;
    gap: 8px;
  }

  .help-topic .card-badge {
    width: 30px;
    height: 30px;
    font-size: 0.95rem;
  }

  .help-section {
    padding: 24px 20px;
  }
}
