:root {
  --bg: #f4f6f1;
  --card: #ffffff;
  --ink: #143524;
  --muted: #4a6356;
  --line: #dce6db;
  --primary: #1e7f3f;
  --primary-dark: #165d2e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Outfit", "Segoe UI", sans-serif;
  color: var(--ink);
  background: #eef3ef;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* ── Hamburger Menu Button ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  padding: 10px;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ── Mobile Nav Drawer ── */
.nav-drawer {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100vh;
  background: #fff;
  border-right: 1px solid var(--line);
  box-shadow: 4px 0 24px rgba(0,0,0,0.1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 70px;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.nav-drawer.open {
  left: 0;
}

.nav-drawer a {
  padding: 16px 24px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
}

.nav-drawer a:hover {
  background: #f0f7f0;
}

.nav-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.topbar {
  max-width: 1280px;
  margin: 0 auto 10px;
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: clamp(8px, 2vw, 16px);
  align-items: center;
  justify-content: space-between;
  padding: clamp(10px, 2vw, 14px) clamp(12px, 3vw, 24px);
  border: 1px solid var(--line);
  border-radius: 0 0 22px 22px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  background: #e9f5ea;
}

.brand-title {
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1;
  font-weight: 800;
}

.brand-sub {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.nav-links {
  display: flex;
  gap: 22px;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-actions select {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
}

main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(12px, 3vw, 20px) 20px;
}

.btn {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(24, 73, 40, 0.1);
}

.btn.primary {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #28974c);
}

.btn.ghost {
  background: #fff;
  color: var(--ink);
}

.btn.google-fallback {
  background: #fff;
  color: #1c3f2a;
  border-color: #cfded0;
}

.hero {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(90deg, #f7f6ee 0%, #f6f4e8 40%, #f4f6f0 100%);
  padding: clamp(14px, 2vw, 20px);
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(10px, 2vw, 16px);
  align-items: center;
  overflow: hidden;
}

.hero-copy h1 {
  font-size: clamp(42px, 3.8vw, 68px);
  line-height: 1.02;
  margin: 2px 0 8px;
  max-width: 640px;
}

.hero-copy p {
  margin: 0;
  font-size: clamp(18px, 1.32vw, 24px);
  color: var(--muted);
  line-height: 1.36;
  max-width: 620px;
}

.hero-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.auth-status {
  min-height: 18px;
  margin-top: 8px;
  color: #2b6a43;
  font-size: 13px;
  font-weight: 600;
}

.voice-highlight {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #cfe4cf;
  background: #f3faef;
  border-radius: 999px;
  padding: 6px 10px;
  color: #1f5933;
  font-size: 15px;
  font-weight: 600;
}

.voice-highlight > span:first-child {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e1f2de;
  display: grid;
  place-content: center;
}

.trust-note {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink);
}

.hero-media {
  position: relative;
}

.hero-art {
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  background-image: url('/assets/hero-farmer-scene.png?v=1');
  background-color: #f3efe5;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 52% center;
  min-height: 380px;
}

.hero-art::before {
  content: none;
}

.hero-art::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 34%;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(246, 244, 233, 0) 0%, rgba(242, 244, 233, 0.35) 36%, rgba(240, 242, 231, 0.72) 100%),
    radial-gradient(220px 160px at 70% 82%, rgba(206, 227, 191, 0.35) 0%, rgba(206, 227, 191, 0) 78%);
}

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

.floating-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(26, 70, 40, 0.18);
}

.floating-chip span:first-child {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e1f2de;
  display: grid;
  place-content: center;
}

.photo-layer {
  display: none;
}

.kurta-overlay, .pagdi-overlay {
  display: none;
}

.hero-art {
  position: relative;
}

.floating-chip:nth-of-type(1) {
  top: 32px;
  left: 32px;
}

.floating-chip:nth-of-type(2) {
  top: 90px;
  left: 36px;
}

.floating-chip:nth-of-type(3) {
  top: 148px;
  left: 24px;
}

.hero-panel {
  border: none;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  position: absolute;
  bottom: 20px;
  right: 12px;
  width: 230px;
  padding: 20px;
  box-shadow: 0 12px 40px rgba(20, 53, 36, 0.10);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-panel h3 {
  margin: 0 0 14px;
  font-size: 18px;
  color: #143524;
}

.trust-list {
  display: grid;
  gap: 10px;
}

.trust-item {
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: start;
  gap: 8px;
}

.trust-item span {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #ebf6e8;
  display: grid;
  place-content: center;
  font-size: 13px;
}

.trust-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.cards-section {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(8px, 1.5vw, 12px);
}

.feature-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: clamp(12px, 1.5vw, 16px);
  box-shadow: 0 7px 16px rgba(25, 58, 35, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(25, 58, 35, 0.1);
}

.feature-card:nth-child(1) { background: linear-gradient(180deg, #ffffff, #f3faef); }
.feature-card:nth-child(2) { background: linear-gradient(180deg, #ffffff, #f5f2fc); }
.feature-card:nth-child(3) { background: linear-gradient(180deg, #ffffff, #f9f7f1); }
.feature-card:nth-child(4) { background: linear-gradient(180deg, #ffffff, #fcf8ea); }
.feature-card:nth-child(5) { background: linear-gradient(180deg, #ffffff, #f0f7ff); }
.feature-card:nth-child(6) { background: linear-gradient(180deg, #ffffff, #fdf4f0); }

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  font-size: 24px;
  background: #edf7ed;
}

.feature-card:nth-child(2) .feature-icon { background: #eee8fb; }
.feature-card:nth-child(3) .feature-icon { background: #f3ede3; }
.feature-card:nth-child(4) .feature-icon { background: #fff2cc; }
.feature-card:nth-child(5) .feature-icon { background: #e3f1ff; }
.feature-card:nth-child(6) .feature-icon { background: #fde9e0; }

.feature-card h4 {
  margin: 8px 0 6px;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.2;
}

.feature-card p {
  margin: 0;
  font-size: clamp(13px, 1vw, 15px);
  color: var(--muted);
  line-height: 1.35;
}

.how-section {
  margin-top: 12px;
  border: 1px solid #dbe8d8;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffefb, #f7fbf3);
  box-shadow: 0 8px 20px rgba(34, 79, 46, 0.05);
  padding: 10px 14px 12px;
}

.how-section h3 {
  margin: 0;
  text-align: center;
  font-size: clamp(26px, 2.6vw, 42px);
  line-height: 1.1;
}

.how-summary {
  margin: 4px auto 8px;
  max-width: 980px;
  text-align: center;
  color: var(--muted);
  font-size: clamp(13px, 0.92vw, 17px);
  line-height: 1.3;
}

.how-image-wrap {
  border: 1px solid #d9e7d7;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  margin-top: 6px;
}

.how-image {
  width: 100%;
  display: block;
  height: auto;
}

#how-infographic-fallback {
  display: none;
}

.how-show-fallback #how-image-wrap {
  display: none;
}

.how-show-fallback #how-infographic-fallback {
  display: grid;
}

.how-infographic {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 8px;
  align-items: stretch;
}

.how-step {
  border: 1px solid #d1e2d0;
  border-radius: 16px;
  min-height: 168px;
  padding: 12px 14px 14px;
  background: linear-gradient(165deg, #ffffff, #f1f9ee);
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(38, 80, 48, 0.07);
}

.how-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #2f9c50, #8bd46f);
}

.num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  font-weight: 800;
  color: #fff;
  background: #239148;
  font-size: 21px;
}

.how-step h4 {
  margin: 8px 0 5px;
  font-size: clamp(16px, 1.14vw, 22px);
  line-height: 1.2;
  max-width: 240px;
}

.how-step p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(13px, 0.85vw, 15px);
  line-height: 1.36;
  max-width: 220px;
}

.connector {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #99d19a;
  background: #eff9ec;
  display: grid;
  place-content: center;
  font-size: 24px;
  font-weight: 800;
  color: #2a8f49;
  justify-self: center;
  align-self: center;
  box-shadow: 0 7px 14px rgba(47, 125, 63, 0.12);
}

.step-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 58px;
  height: 58px;
  border-radius: 29px;
  display: grid;
  place-content: center;
  background: radial-gradient(circle at 35% 35%, #f6fcf5 5%, #dff0da 70%);
  font-size: 30px;
  box-shadow: 0 8px 12px rgba(34, 82, 45, 0.11);
}

.conditions-strip {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 10px 12px;
}

.conditions-strip h3 {
  margin: 0 0 10px;
  font-size: 34px;
}

.conditions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: clamp(8px, 1.5vw, 14px);
}

.condition-item {
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 8px 6px;
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 8px;
}

.condition-item span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ecf5ea;
  display: grid;
  place-content: center;
  font-size: 20px;
  grid-row: span 2;
}

.condition-item strong {
  font-size: 14px;
}

.condition-item small {
  font-size: 12px;
  color: var(--muted);
}

.capstone-strip {
  margin-top: 14px;
  border: 1px solid #cde3cf;
  border-radius: 14px;
  background: #f4fbf4;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
}

.capstone-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #18492b;
  font-size: 22px;
}

.capstone-badge span {
  font-size: 30px;
}

.capstone-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.capstone-art {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #e3f2dd;
  display: grid;
  place-content: center;
  font-size: 30px;
}

.site-footer {
  max-width: 1280px;
  margin-top: 16px;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(135deg, var(--primary-dark), #1f793c);
  color: #fff;
  border-radius: 14px 14px 0 0;
  padding: 14px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 16px;
  align-items: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-brand > span {
  font-size: 31px;
}

.footer-brand strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.footer-brand small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.88;
}

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

.footer-links a {
  color: #e8f7ea;
  text-decoration: none;
  font-size: 15px;
}

.footer-copy {
  font-size: 14px;
  opacity: 0.86;
}

.footer-social {
  display: inline-flex;
  gap: 8px;
}

.footer-social a {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(233, 247, 234, 0.45);
  color: #e9f7ea;
  display: grid;
  place-content: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.google-btn {
  min-height: 42px;
}

#header-google-btn.ready,
#hero-google-btn.ready {
  display: inline-flex;
}

#header-google-btn,
#hero-google-btn {
  display: none;
}

.is-hidden {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(17, 38, 26, 0.55);
  display: grid;
  place-content: center;
  z-index: 100;
  padding: 14px;
}

.hidden {
  display: none;
}

.modal-card {
  width: min(460px, 95vw);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 16px;
}

.modal-card-wide {
  width: min(520px, 95vw);
  max-height: 90vh;
  overflow-y: auto;
}

.guest-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.guest-form-field {
  display: flex;
  flex-direction: column;
}

.guest-form-field.full-width {
  grid-column: span 2;
}

.guest-form-field label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.guest-form-field input,
.guest-form-field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 14px;
  font-family: inherit;
}

.guest-form-field input:focus,
.guest-form-field select:focus {
  outline: none;
  border-color: var(--accent, #2f7c47);
  box-shadow: 0 0 0 2px rgba(47, 124, 71, 0.15);
}

@media (max-width: 520px) {
  .guest-form-grid {
    grid-template-columns: 1fr;
  }
}

.modal-card h3 {
  margin: 0 0 8px;
}

.modal-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.modal-card label {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
}

.modal-card input {
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
}

.modal-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.error {
  margin-top: 6px;
  min-height: 18px;
  color: #b62020;
  font-size: 13px;
}

@media (max-width: 1200px) {
  .hero-art {
    min-height: 300px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 320px;
    background-position: center;
  }

  .hero-panel {
    position: static;
    width: 100%;
    max-width: 500px;
    margin: 10px auto 0;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.85);
  }
}

/* Show hamburger menu on tablet and mobile */
@media (max-width: 900px) {
  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
  }

  .how-infographic {
    grid-template-columns: 1fr;
  }

  .connector {
    display: none;
  }

  .how-step {
    min-height: auto;
  }

  .capstone-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  main {
    padding: 0 10px 14px;
  }

  .topbar {
    margin: 0 6px;
    padding: 10px 12px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .brand-title {
    font-size: 20px;
  }

  .brand-sub {
    font-size: 11px;
  }

  .top-actions {
    width: 100%;
    gap: 6px;
    justify-content: space-between;
  }

  .top-actions select {
    height: 38px;
    font-size: 13px;
  }

  .top-actions .btn {
    padding: 9px 12px;
    font-size: 13px;
  }

  .top-actions .google-fallback {
    white-space: nowrap;
  }

  .hero {
    margin-top: 8px;
    padding: 14px;
  }

  .hero-art {
    min-height: 220px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-copy h1 {
    font-size: clamp(28px, 8vw, 36px);
  }

  .hero-copy p {
    font-size: 16px;
  }

  .voice-highlight {
    border-radius: 12px;
    width: 100%;
    justify-content: flex-start;
  }

  .how-section h3 {
    font-size: clamp(24px, 6vw, 32px);
  }

  .how-summary {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .how-step {
    min-height: auto;
    padding: 16px 16px 14px;
  }

  .num {
    width: 44px;
    height: 44px;
    font-size: 26px;
  }

  .how-step h4 {
    margin-top: 10px;
    font-size: clamp(20px, 5vw, 24px);
    max-width: none;
  }

  .how-step p {
    font-size: 14px;
    max-width: none;
  }

  .connector {
    width: 42px;
    height: 42px;
    font-size: 24px;
  }

  .step-badge {
    width: 56px;
    height: 56px;
    font-size: 30px;
    right: 12px;
    bottom: 10px;
  }

  .step-badge {
    position: static;
    margin-top: 12px;
  }

  .conditions-strip h3 {
    font-size: clamp(20px, 5vw, 26px);
  }

  .footer-brand strong {
    font-size: 22px;
  }

  .footer-links {
    gap: 10px;
  }

  .footer-links a {
    font-size: 14px;
  }

  .footer-social {
    gap: 6px;
  }

  .footer-social a {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}

/* ── Touch device optimizations ── */
@media (pointer: coarse) {
  .btn {
    min-height: 44px;
  }

  .nav-drawer a {
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .feature-card {
    cursor: default;
  }
}

/* ── Desktop fine-tuning ── */
@media (min-width: 1400px) {
  main {
    max-width: 1320px;
  }

  .topbar {
    max-width: 1320px;
  }
}
