/* Vachan landing — brand-aligned with the Flutter app's AppColors.light */

:root {
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --surface-2: #F8F8FB;
  --text: #0D0D0D;
  --muted: #8A8A8E;
  --border: #ECECEF;

  --yellow: #F5C842;
  --yellow-bg: #FFFBEA;
  --yellow-text: #C07000;
  --on-yellow: #0D0D0D;

  --green: #1A8A40;
  --green-bg: #D6F5E8;
  --red: #B23A30;
  --red-bg: #FBEAE7;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(13, 13, 13, 0.04);
  --shadow: 0 8px 24px rgba(13, 13, 13, 0.06);

  --max-w: 1120px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* ----- Nav ----- */
.nav {
  position: sticky;
  top: 0;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  box-shadow: var(--shadow-sm);
}
.nav-links {
  display: flex;
  gap: 24px;
  font-size: 15px;
  color: var(--muted);
}
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 6px;
  border-radius: 8px;
  flex-shrink: 0;
}
.nav-toggle:hover { background: var(--surface-2); }
.nav-toggle .icon-close { display: none; }
.nav-toggle.open .icon-hamburger { display: none; }
.nav-toggle.open .icon-close { display: block; }

/* ----- Hero ----- */
.hero {
  padding: 88px 0 64px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  background: var(--yellow-bg);
  color: var(--yellow-text);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}
h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 20px;
}
h1 .hl {
  background: linear-gradient(180deg, transparent 60%, var(--yellow) 60%);
  padding: 0 4px;
}
.lede {
  max-width: 640px;
  margin: 0 auto 36px;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--muted);
}
.cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text);
  color: #FAFAFA;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  min-width: 180px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.badge:hover { transform: translateY(-1px); text-decoration: none; box-shadow: var(--shadow); }
.badge svg { flex-shrink: 0; }
.badge .label-sm { display: block; font-size: 11px; opacity: 0.7; line-height: 1; margin-bottom: 3px; }
.badge .label-lg { display: block; font-size: 16px; font-weight: 600; line-height: 1; }

/* ----- Feature grid ----- */
.section {
  padding: 80px 0;
}
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 12px;
}
.section-head p {
  color: var(--muted);
  font-size: 17px;
  margin: 0;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--yellow-bg);
  color: var(--yellow-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-icon.green { background: var(--green-bg); color: var(--green); }
.feature-icon.red { background: var(--red-bg); color: var(--red); }
.feature h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.feature p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
  line-height: 1.55;
}

/* ----- Reputation (hero highlight section) ----- */
.reputation {
  background: linear-gradient(180deg, var(--yellow-bg) 0%, var(--bg) 100%);
  position: relative;
}
.reputation .section-head .eyebrow { margin-bottom: 16px; }

.metrics-showcase {
  background: var(--yellow-bg);
  border: 1px solid rgba(245, 200, 66, 0.5);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 880px;
  margin: 0 auto 64px;
  box-shadow:
    0 1px 3px rgba(13, 13, 13, 0.06),
    0 8px 24px rgba(245, 200, 66, 0.22),
    0 24px 56px rgba(13, 13, 13, 0.12);
}

.showcase-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid rgba(245, 200, 66, 0.3);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
}
.showcase-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--yellow);
  color: var(--on-yellow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  flex-shrink: 0;
}
.showcase-shop-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.showcase-shop-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.showcase-example-tag {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.metrics-showcase-head {
  text-align: center;
  margin-bottom: 28px;
}
.metrics-showcase-head .eyebrow {
  margin-bottom: 10px;
}
.metrics-showcase-head p {
  font-size: 15px;
  color: var(--yellow-text);
  margin: 0;
  max-width: 520px;
  margin-inline: auto;
  line-height: 1.55;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.metric-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.metric-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--yellow-bg);
  color: var(--yellow-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.metric-icon.green { background: var(--green-bg); color: var(--green); }
.metric-icon.red   { background: var(--red-bg);   color: var(--red); }
.metric-icon.yellow { background: var(--yellow-bg); color: var(--yellow-text); }

.metric-value {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 4px;
}
.metric-value.green { color: var(--green); }

.metric-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.metric-sub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

/* Numbered "how reputation builds" grid */
.rep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.rep-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.rep-step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.rep-num {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--yellow-text);
  background: var(--yellow-bg);
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
}
.rep-step h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.rep-step p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
  line-height: 1.6;
}

.rep-callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--yellow);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  font-size: 15px;
  color: #2A2A2E;
  line-height: 1.65;
  max-width: 880px;
  margin: 0 auto;
}
.rep-callout strong { color: var(--text); }

@media (max-width: 720px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics-showcase { padding: 24px; }
}
@media (max-width: 420px) {
  .metrics-grid { grid-template-columns: 1fr; }
}

/* ----- Workflow walkthrough (illustrated) ----- */
.workflow {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.workflow-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: start;
}

.workflow-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Chevron between steps on desktop */
.workflow-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 250px;
  right: -16px;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--yellow);
  border-right: 2px solid var(--yellow);
  transform: rotate(45deg);
  opacity: 0.6;
}

.workflow-num {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--on-yellow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 16px;
  box-shadow: 0 2px 6px rgba(245, 200, 66, 0.4);
}

/* Phone mockup */
.phone-mock {
  width: 100%;
  max-width: 240px;
  height: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.phone-header {
  background: var(--surface-2);
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.phone-back {
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  font-weight: 400;
}
.phone-title { flex: 1; }

.phone-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.phone-mock-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mock-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--yellow-bg);
  color: var(--yellow-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.mock-avatar.small { width: 28px; height: 28px; font-size: 13px; }

.mock-contact { flex: 1; min-width: 0; }
.mock-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock-sub {
  font-size: 12px;
  color: var(--muted);
}

.mock-pills {
  display: flex;
  gap: 6px;
}
.mock-pill {
  flex: 1;
  text-align: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.mock-pill-active {
  background: var(--yellow);
  color: var(--on-yellow);
  border-color: var(--yellow);
}

.mock-spacer { flex: 1; }

.mock-btn {
  background: var(--text);
  color: var(--bg);
  padding: 11px;
  border-radius: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  margin-top: auto;
}

.mock-field-amt {
  background: var(--yellow-bg);
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(245, 200, 66, 0.3);
}
.mock-amount {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.2;
}
.mock-amount.green { color: var(--green); }

.mock-field-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 2px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.mock-field-row:last-of-type { border-bottom: 0; }
.mock-val {
  font-weight: 600;
  color: var(--text);
}
.mock-val.green { color: var(--green); }

.mock-photo {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px dashed var(--border);
}
.mock-photo-icon {
  color: var(--yellow-text);
  font-size: 18px;
}

.mock-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-bg);
  color: var(--green);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  align-self: flex-start;
}
.mock-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
}

.mock-rep {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow-bg);
  color: var(--yellow-text);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  margin-top: auto;
}
.mock-rep-star { font-size: 14px; }

/* WhatsApp mockup variant */
.phone-mock.whatsapp { background: #ECE5DD; }
.wa-header {
  background: #075E54;
  color: #fff;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.wa-header .phone-back { color: #fff; font-size: 22px; }
.wa-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #DFE7E4;
  color: #075E54;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.wa-name { font-weight: 700; line-height: 1.2; }
.wa-status { font-size: 11px; opacity: 0.8; }
.wa-body {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wa-bubble {
  background: #DCF8C6;
  align-self: flex-end;
  max-width: 90%;
  padding: 10px 12px;
  border-radius: 8px 0 8px 8px;
  box-shadow: 0 1px 1px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wa-bubble-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #075E54;
  opacity: 0.7;
}
.wa-bubble-shop {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.wa-bubble-amt {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}
.wa-bubble-due {
  font-size: 11px;
  color: #5C6B66;
}
.wa-bubble-btn {
  background: #075E54;
  color: #fff;
  text-align: center;
  padding: 7px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  margin-top: 6px;
}
.wa-time {
  align-self: flex-end;
  font-size: 10px;
  color: rgba(0,0,0,0.4);
  margin-top: 2px;
  margin-right: 4px;
}

/* Caption below each phone */
.workflow-caption {
  margin-top: 20px;
  text-align: center;
  max-width: 240px;
}
.workflow-caption h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.workflow-caption p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

/* Responsive — collapse to 2-col, then 1-col */
@media (max-width: 980px) {
  .workflow-flow { grid-template-columns: repeat(2, 1fr); gap: 48px 24px; }
  .workflow-step:nth-child(2)::after { display: none; }
  .workflow-step:not(:last-child)::after { top: 130px; }
}
@media (max-width: 540px) {
  .workflow-flow { grid-template-columns: 1fr; gap: 40px; }
  .workflow-step::after { display: none !important; }
}

/* ----- How-it-works strip ----- */
.steps {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
}
.step h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 6px;
}
.step p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

/* ----- CTA band ----- */
.cta-band {
  background: var(--yellow);
  color: var(--on-yellow);
  text-align: center;
  border-radius: var(--radius-lg);
  padding: 64px 24px;
  margin: 80px auto;
  max-width: var(--max-w);
}
.cta-band h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.cta-band p {
  margin: 0 0 28px;
  font-size: 17px;
  opacity: 0.8;
}
.cta-band .badge {
  background: var(--on-yellow);
  color: var(--bg);
}

/* ----- Footer ----- */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--muted);
  font-size: 14px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); text-decoration: none; }

/* ----- Legal pages ----- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px;
}
.legal h1 {
  font-size: clamp(32px, 5vw, 44px);
  margin: 0 0 8px;
  text-align: left;
}
.legal .updated {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 40px;
}
.legal h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 40px 0 12px;
  letter-spacing: -0.01em;
}
.legal h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 24px 0 8px;
}
.legal p, .legal li {
  color: #2A2A2E;
  font-size: 16px;
  line-height: 1.7;
}
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--yellow-text); text-decoration: underline; }
.legal .callout {
  background: var(--yellow-bg);
  border-left: 3px solid var(--yellow);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 15px;
}
.legal hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

@media (max-width: 640px) {
  .hero { padding: 56px 0 40px; }
  .section { padding: 56px 0; }
  .cta-band { margin: 56px 16px; padding: 48px 20px; }
  .nav-inner { height: 56px; }
  .brand { font-size: 15px; gap: 8px; }
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
    background: rgba(250, 250, 250, 0.97);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(13, 13, 13, 0.06);
    z-index: 9;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 13px 0;
    font-size: 16px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
  }
  .nav-links a:last-child { border-bottom: none; }
}
