/* ============================================================
   Nabrix — Design System & Global Styles
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;1,9..40,400&family=Outfit:wght@500;600&display=swap');

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
  --radius: 0.75rem;

  /* Brand palette */
  --background:        oklch(0.974 0.008 70);
  --foreground:        oklch(0.27  0.005 60);
  --card:              oklch(0.93  0.012 75);
  --card-foreground:   oklch(0.2   0     0);
  --primary:           oklch(0.66  0.18  42);
  --primary-foreground:oklch(1     0     0);
  --primary-dark:      oklch(0.55  0.16  42);
  --secondary:         oklch(0.2   0     0);
  --secondary-foreground: oklch(0.98 0   0);
  --muted:             oklch(0.93  0.012 75);
  --muted-foreground:  oklch(0.52  0.025 65);
  --accent:            oklch(0.78  0.13  80);
  --accent-foreground: oklch(0.2   0     0);
  --border:            oklch(0.86  0.018 75);

  /* Typography */
  --font-display: 'Poppins', system-ui, sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-accent:  'Outfit', system-ui, sans-serif;

  /* Shadows */
  --shadow-card: 0 2px 12px rgba(0,0,0,0.06);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: oklch(0.2 0 0);
  line-height: 1.2;
}

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  margin-inline: auto;
  width: 100%;
  max-width: 1440px;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .container { padding-inline: 5rem; }
}

/* ── Utility ─────────────────────────────────────────────────── */
.label {
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Navbar ─────────────────────────────────────────────────── */
.nav {
  border-bottom: 1px solid oklch(0.86 0.018 75 / 0.6);
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--background);
}

.nav .container {
  display: flex;
  height: 4rem;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-tagline {
  display: flex;
  flex-direction: column;
    gap: 0;         
  line-height: 1;
}

.nav-logo-icon {
  display: grid;
  place-items: center;
  height: 2rem;
  width: 2rem;
  border-radius: 0.375rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
}

.nav-logo-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.1;
}

.nav-logo-tagline{
    font-family: var(--font-accent);
  font-style: italic;
  font-size: 0.7rem;   /* slightly smaller */
  font-weight: 500;
  letter-spacing: 0.04em;  /* less tracking so it fits */
  color: oklch(0.27 0.005 60 / 0.8);
  line-height: 1.5; 
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

@media (min-width: 768px) { .nav-links { display: flex; } }

.nav-links a {
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: oklch(0.27 0.005 60 / 0.8);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--foreground); }

.nav-cta {
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 2px solid var(--primary);
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  color: var(--primary);
  transition: background-color 0.2s;
}

.nav-cta:hover { background-color: oklch(0.96 0.04 42); }

@media (max-width: 420px) {
  .nav-logo-tagline { display: none; }
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero { padding-block: 4rem; }
@media (min-width: 768px) { .hero { padding-block: 6rem; } }

.hero .container {
  display: grid;
  align-items: center;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .hero .container { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.hero-badge {
  display: inline-block;
  border-radius: 9999px;
  background: oklch(0.94 0.06 80);
  padding: 0.25rem 0.75rem;
  color: oklch(0.2 0 0);
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-title {
  margin-top: 1.25rem;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.1;
}

@media (min-width: 640px) { .hero-title { font-size: 48px; } }
@media (min-width: 768px) { .hero-title { font-size: 56px; } }
@media (min-width: 1024px) { .hero-title { font-size: 60px; } }

.hero-desc {
  margin-top: 1.25rem;
  max-width: 58ch;
  font-size: 1rem;
  color: var(--muted-foreground);
}

@media (min-width: 768px) { .hero-desc { font-size: 1.125rem; } }

.hero-form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 28rem;
}

@media (min-width: 640px) { .hero-form { flex-direction: row; } }

.hero-form input {
  flex: 1;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--background);
  padding: 0.875rem 1rem;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: var(--font-body);
}

.hero-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px oklch(0.66 0.18 42 / 0.2);
}

.hero-form button {
  font-family: var(--font-accent);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 0.5rem;
  background: var(--primary);
  padding: 0.875rem 1.75rem;
  color: var(--primary-foreground);
  border: none;
  cursor: pointer;
  transition: transform 0.15s, background-color 0.2s;
  white-space: nowrap;
}

.hero-form button:hover {
  transform: scale(1.02);
  background-color: var(--primary-dark);
}

.hero-note {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Hero image — responsive */
.hero-image-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;        /* cap on small screens */
  margin-inline: auto;     /* center on mobile */
}

@media (min-width: 1024px) {
  .hero-image-wrap {
    max-width: 100%;
    margin-inline: 0;
  }
}

.hero-image-wrap::before {
  content: '';
  position: absolute;
  inset: -1rem;
  z-index: -1;
  border-radius: 1.5rem;
  background: var(--card);
}

.hero-image-wrap img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 1rem;
}

/* ── Problem ──────────────────────────────────────────────────── */
.problem {
  background: var(--card);
  padding-block: 5rem;
}

@media (min-width: 768px) { .problem { padding-block: 6rem; } }

.problem .container {
  display: grid;
  align-items: center;
  gap: 3rem;
}

@media (min-width: 768px) { .problem .container { grid-template-columns: 1fr 1fr; } }

/* Problem image — responsive */
.problem-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  max-width: 100%;
  justify-self: center;
  border-radius: 1rem;
}

@media (min-width: 768px) {
  .problem-img {
    aspect-ratio: 3 / 4;
    max-width: 35rem;
    height: auto;
  }
}

.problem-label {
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
}

.problem-title {
  margin-top: 0.75rem;
  font-size: 28px;
  font-weight: 700;
}

@media (min-width: 640px) { .problem-title { font-size: 34px; } }
@media (min-width: 768px) { .problem-title { font-size: 40px; } }

.problem-desc {
  margin-top: 1.25rem;
  font-size: 1rem;
  color: var(--muted-foreground);
}

@media (min-width: 768px) { .problem-desc { font-size: 1.125rem; } }

/* ── How It Works ─────────────────────────────────────────────── */
.how { padding-block: 5rem; }
@media (min-width: 768px) { .how { padding-block: 6rem; } }

.section-label {
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
}

.section-title {
  margin-top: 0.75rem;
  font-size: 28px;
  font-weight: 700;
}

@media (min-width: 640px) { .section-title { font-size: 34px; } }
@media (min-width: 768px) { .section-title { font-size: 40px; } }

.steps {
  margin-top: 3rem;
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

.step { display: flex; flex-direction: column; gap: 1rem; }

.step-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.step-num {
  display: grid;
  place-items: center;
  height: 2.25rem;
  width: 2.25rem;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--secondary);
  color: var(--secondary);
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.step-icon {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  color: var(--primary);
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

@media (min-width: 768px) { .step h3 { font-size: 1.5rem; } }

.step p { color: var(--muted-foreground); }

/* ── Features ─────────────────────────────────────────────────── */
.features { padding-block: 5rem; }
@media (min-width: 768px) { .features { padding-block: 6rem; } }

.feature-cards {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) { .feature-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-cards { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}

.feature-icon {
  width: 2rem;
  height: 2rem;
  color: var(--primary);
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  font-weight: 600;
}

@media (min-width: 768px) { .feature-card h3 { font-size: 1.25rem; } }

.feature-card p {
  margin-top: 0.5rem;
  color: var(--muted-foreground);
}

/* ── Survey ─────────────────────────────────────────────────── */
.survey {
  position: relative;
  overflow: hidden;
  padding-block: 5rem;
}

@media (min-width: 768px) { .survey { padding-block: 6rem; } }

.survey-glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  /* background: radial-gradient(ellipse at top, oklch(0.94 0.06 80) 0%, transparent 60%); */
}

.survey .container { position: relative; z-index: 1; }

.survey-card {
  display: block;
  border-radius: 1.5rem;
  border: 2px solid var(--primary);
  background: var(--card);
  padding: 2rem;
  box-shadow: 0 10px 40px -15px oklch(0.66 0.18 42 / 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
}

@media (min-width: 768px) { .survey-card { padding: 3rem; } }

.survey-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px -15px oklch(0.66 0.18 42 / 0.5);
}

.survey-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .survey-inner { grid-template-columns: 1fr auto; gap: 3rem; }
}

.survey-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.survey-icon-wrap {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-foreground);
}

.survey-icon-wrap svg {
  width: 1.125rem;
  height: 1.125rem;
}

.survey-tag {
  color: var(--primary);
}

.survey-title {
  margin-top: 1.25rem;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.15;
}

@media (min-width: 640px) { .survey-title { font-size: 2rem; } }
@media (min-width: 768px) { .survey-title { font-size: 2.25rem; } }

.survey-desc {
  margin-top: 1rem;
  max-width: 58ch;
  font-size: 1rem;
  color: var(--muted-foreground);
}

@media (min-width: 768px) { .survey-desc { font-size: 1.125rem; } }

.survey-cta-wrap {
  flex-shrink: 0;
}

.survey-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  background: var(--primary);
  padding: 1rem 1.75rem;
  font-size: 1rem;
  color: var(--primary-foreground);
  white-space: nowrap;
  transition: background-color 0.2s;
}

.survey-card:hover .survey-btn {
  background-color: var(--primary-dark);
}

.survey-arrow {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s;
}

.survey-card:hover .survey-arrow { transform: translateX(4px); }

.survey-note {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ── FAQ ────────────────────────────────────────────────────── */
.faq {
  background: var(--card);
  padding-block: 5rem;
}

@media (min-width: 768px) { .faq { padding-block: 6rem; } }

.faq .container {
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .faq .container {
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: start;
  }
}

/* .faq-header { sticks to top on desktop } */

.faq-sub {
  margin-top: 1rem;
  color: var(--muted-foreground);
}

.faq-mailto {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-mailto:hover { color: var(--primary-dark); }

/* accordion list */
.faq-list {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child { border-bottom: none; }

.faq-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--secondary);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  transition: color 0.15s;
}

@media (min-width: 768px) { .faq-trigger { font-size: 1.125rem; } }

.faq-trigger:hover { color: var(--primary); }

.faq-toggle {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  color: var(--secondary);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.faq-toggle svg {
  width: 1rem;
  height: 1rem;
}

/* show/hide plus & minus icons */
.faq-trigger[aria-expanded="false"] .icon-minus { display: none; }
.faq-trigger[aria-expanded="true"]  .icon-plus  { display: none; }

.faq-trigger[aria-expanded="true"] .faq-toggle {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}

/* answer panel — animated with grid trick */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
  overflow: hidden;
}

.faq-answer:not([hidden]) {
  grid-template-rows: 1fr;
  display: grid; /* override hidden */
}

.faq-answer[hidden] {
  display: grid !important; /* keep in flow for animation */
  visibility: hidden;
}

.faq-answer > p {
  overflow: hidden;
  padding-bottom: 1.25rem;
  max-width: 60ch;
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* ── Waitlist CTA ─────────────────────────────────────────────── */
.waitlist {
  background: var(--primary);
  padding-block: 5rem;
  color: var(--primary-foreground);
}

@media (min-width: 768px) { .waitlist { padding-block: 6rem; } }

.waitlist .container { text-align: center; }

.waitlist h2 {
  margin-inline: auto;
  max-width: 42rem;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--primary-foreground);
}

@media (min-width: 640px) { .waitlist h2 { font-size: 36px; } }
@media (min-width: 768px) { .waitlist h2 { font-size: 44px; } }

.waitlist p {
  margin-inline: auto;
  margin-top: 1rem;
  max-width: 36rem;
  font-size: 1rem;
  color: oklch(1 0 0 / 0.9);
}

@media (min-width: 768px) { .waitlist p { font-size: 1.125rem; } }

.waitlist-form {
  margin-inline: auto;
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 28rem;
}

@media (min-width: 640px) { .waitlist-form { flex-direction: row; } }

.waitlist-form input {
  flex: 1;
  border-radius: 0.5rem;
  border: none;
  background: var(--background);
  padding: 0.875rem 1rem;
  font-size: 1rem;
  outline: none;
  font-family: var(--font-body);
  color: var(--foreground);
}

.waitlist-form input:focus {
  box-shadow: 0 0 0 3px var(--accent);
}

.waitlist-form button {
  font-family: var(--font-accent);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 0.5rem;
  background: var(--secondary);
  padding: 0.875rem 1.75rem;
  color: var(--secondary-foreground);
  border: none;
  cursor: pointer;
  transition: transform 0.15s;
  white-space: nowrap;
}

.waitlist-form button:hover { transform: scale(1.02); }

/* ── Toast notification ───────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  left: 1.5rem;
  background: var(--secondary);
  color: #fff;
  padding: 0.875rem 1.25rem;
  border-radius: 0.75rem;
  font-family: var(--font-accent);
  font-size: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(.22,.61,.36,1), opacity 0.35s;
  z-index: 999;
  text-align: center;
}

@media (min-width: 480px) {
  .toast {
    left: auto;
    max-width: 20rem;
  }
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ── Footer ───────────────────────────────────────────────────── */
footer {
  background: var(--secondary);
  padding-block: 3.5rem;
  color: oklch(1 0 0 / 0.75);
}

footer .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

@media (min-width: 768px) {
  footer .container {
    flex-direction: row;
    align-items: center;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo-icon {
  display: grid;
  place-items: center;
  height: 2rem;
  width: 2rem;
  border-radius: 0.375rem;
  background: var(--background);
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
  font-size: 1rem;
}


.footer-logo-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.5;
}

.footer-logo-tagline {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 300;
  font-style: italic;
  color: #efefef;
  line-height: 1.5;    /* ← add this */
  margin-top: 0; 
}

.footer-tagline {
  margin-top: 0.75rem;
  max-width: 24rem;
  font-size: 0.875rem;
}

.footer-right {
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-right .mail{
  text-transform: lowercase;
  text-decoration: none;
}

@media (min-width: 768px) { .footer-right { align-items: flex-end; } }

.footer-right a:hover { color: #fff; }

.footer-social {
  display: flex;
  gap: 1.25rem;
}

.footer-copy { color: oklch(1 0 0 / 0.5); }


/* WhatsApp FAB */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 9999px;
  background-color: #25D366;
  padding: 12px 16px;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-fab:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.6);
}

.whatsapp-fab__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.whatsapp-fab__label {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* Mobile: hide label, show icon only */
@media (max-width: 480px) {
  .whatsapp-fab {
    padding: 14px;
    gap: 0;
    bottom: 16px;
    right: 16px;
  }

  .whatsapp-fab__label {
    display: none;
  }
}