/* NibbleIQ — shared styles */

:root {
  --green-900: #1F6B4F;
  --green-700: #2F8F6B;
  --green-50:  #F2F7F4;
  --accent:    #E6B65A;
  --ink:       #111827;
  --ink-soft:  #374151;
  --mute:      #6B7280;
  --line:      #E5E7EB;
  --card:      #FFFFFF;
  --radius:    14px;
  --maxw:      960px;
  --font:      -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--green-50);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Header */
header.site {
  padding: 20px 0;
  background: transparent;
}
header.site .bar {
  display: flex;
  align-items: center;
  gap: 12px;
}
header.site .logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
header.site .brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
header.site .wordmark {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.3px;
}
header.site .byline {
  font-size: 11px;
  font-weight: 500;
  color: var(--mute);
  letter-spacing: 0.2px;
  margin-top: 2px;
}

/* Hero */
.hero {
  position: relative;
  padding-top: 64px;
  padding-bottom: 48px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 480px;
  background: radial-gradient(
    circle at center,
    rgba(47, 143, 107, 0.15) 0%,
    rgba(230, 182, 90, 0.08) 35%,
    transparent 70%
  );
  z-index: 0;
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(47, 143, 107, 0.1);
  color: var(--green-900);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 48px;
  line-height: 1.08;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 16px;
  letter-spacing: -0.8px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--green-900), var(--green-700));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .tagline {
  font-size: 18px;
  color: var(--ink-soft);
  font-weight: 500;
  margin: 0 0 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero demo card */
.demo {
  max-width: 640px;
  margin: 0 auto 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 12px 40px rgba(31, 107, 79, 0.08);
  text-align: left;
}
.demo-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
}
.demo-row + .demo-row { border-top: 1px dashed var(--line); margin-top: 4px; padding-top: 14px; }
.demo-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--mute);
  min-width: 70px;
  padding-top: 2px;
}
.demo-content {
  flex: 1;
  font-size: 15px;
  color: var(--ink);
}
.demo-input {
  color: var(--ink);
  font-weight: 500;
}
.demo-input .cursor {
  display: inline-block;
  width: 2px;
  height: 18px;
  background: var(--green-900);
  vertical-align: middle;
  margin-left: 2px;
  animation: blink 1.1s infinite steps(1);
}
@keyframes blink { 50% { opacity: 0; } }

.demo-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--green-50);
  border: 1px solid rgba(31, 107, 79, 0.15);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--green-900);
  margin: 3px 4px 3px 0;
}
.demo-chip .num { color: var(--mute); font-weight: 400; font-size: 12px; }

.demo-meta {
  font-size: 13px;
  color: var(--mute);
  margin-top: 8px;
}
.demo-meta span + span::before { content: " · "; }

/* Hero CTA */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  background: var(--green-900);
  color: #fff;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 8px 24px rgba(31, 107, 79, 0.25);
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(31, 107, 79, 0.3);
  text-decoration: none;
  color: #fff;
}
.hero-sub {
  font-size: 13px;
  color: var(--mute);
  margin-top: 12px;
}

/* Sections */
section {
  padding: 48px 0;
}
section h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: -0.3px;
}
section h2 + .sub {
  color: var(--mute);
  font-size: 15px;
  margin: 0 0 28px;
}

/* Steps grid: 1 col mobile → 2x2 everywhere else (4-across cramps content) */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 600px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
.step { padding: 24px; }
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-900);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 12px;
}
.step h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--ink);
}
.step p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

/* Trust — plain section, no card treatment */
.trust h2 { margin-bottom: 14px; }
.trust p {
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.7;
  margin: 0 0 14px;
  max-width: 780px;
}
.trust strong { color: var(--green-900); }
.trust .credit {
  font-size: 13px;
  color: var(--mute);
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  max-width: 780px;
}

/* CTA — closing moment, tinted card */
.cta-card {
  position: relative;
  text-align: center;
  padding: 56px 32px 48px;
  background:
    radial-gradient(circle at 50% 0%, rgba(230, 182, 90, 0.12), transparent 55%),
    linear-gradient(180deg, #EAF4EE 0%, #F5FBF7 100%);
  border: 1px solid rgba(31, 107, 79, 0.18);
  border-radius: 22px;
  overflow: hidden;
}
.cta-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(31, 107, 79, 0.22);
  margin-bottom: 20px;
}
.cta-card h2 {
  margin: 0 0 10px;
  font-size: 30px;
  letter-spacing: -0.4px;
}
.cta-sub {
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 520px;
  margin: 0 auto 28px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-align: left;
}
.store-btn span { display: flex; flex-direction: column; line-height: 1.15; }
.store-btn small {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.8;
  letter-spacing: 0.2px;
}
.store-btn strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.1px;
}

.store-btn.primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.22);
}
.store-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.3);
  text-decoration: none;
  color: #fff;
}

.store-btn.soon {
  background: rgba(17, 24, 39, 0.04);
  color: var(--mute);
  border: 1px solid rgba(17, 24, 39, 0.08);
  cursor: default;
}
.store-btn.soon:hover { transform: none; }

.cta-trust {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  font-size: 13px;
  color: var(--green-900);
  font-weight: 500;
}

@media (max-width: 560px) {
  .cta-card { padding: 40px 22px 32px; }
  .cta-card h2 { font-size: 24px; }
  .badge-row { flex-direction: column; align-items: stretch; }
  .store-btn { justify-content: center; }
}

/* Legal pages */
.legal {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  margin: 32px 0;
}
.legal h1 {
  font-size: 32px;
  margin: 0 0 8px;
  color: var(--ink);
}
.legal .meta {
  font-size: 14px;
  color: var(--mute);
  margin-bottom: 24px;
}
.legal h2 {
  font-size: 20px;
  margin: 28px 0 10px;
  color: var(--ink);
}
.legal h3 {
  font-size: 16px;
  margin: 18px 0 6px;
  color: var(--ink);
}
.legal p, .legal li {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.65;
}
.legal ul { padding-left: 22px; }
.legal strong { color: var(--ink); }
.legal hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}

/* Footer */
footer.site {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  margin-top: 40px;
  color: var(--mute);
  font-size: 13px;
}
footer.site .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
footer.site a { color: var(--mute); margin-left: 16px; }
footer.site a:first-of-type { margin-left: 0; }

/* Responsive */
@media (max-width: 600px) {
  .hero { padding-top: 32px; padding-bottom: 24px; }
  .hero h1 { font-size: 34px; }
  .hero .tagline { font-size: 16px; }
  section { padding-top: 28px; padding-bottom: 28px; }
  section h2 { font-size: 24px; }
  .legal { padding: 22px; }
  .legal h1 { font-size: 26px; }
  footer.site .row { justify-content: center; text-align: center; }
  footer.site a { margin: 0 10px; }
}
