/* ==================================================
   NUTRIDETECTOR HOMEPAGE ONLY
   Scoped under .nd-home
================================================== */

.nd-home {
  --nd-home-max: 1200px;
  --nd-home-narrow: 760px;

  --nd-home-bg: #ffffff;
  --nd-home-bg-soft: #f8fafc;
  --nd-home-bg-softer: #fbfcfe;
  --nd-home-line: #e9eef4;
  --nd-home-line-strong: #dce5ef;

  --nd-home-heading: #0d1726;
  --nd-home-text-main: #1c2735;
  --nd-home-text-muted: #657487;
  --nd-home-text-soft: #8a98aa;

  --nd-home-accent: #1f5fbf;
  --nd-home-accent-strong: #174a95;

  --nd-home-radius-xl: 28px;
  --nd-home-radius-lg: 22px;
  --nd-home-radius-md: 16px;

  --nd-home-shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.04);
  --nd-home-shadow-md: 0 18px 48px rgba(15, 23, 42, 0.08);
  --nd-home-shadow-lg: 0 30px 70px rgba(15, 23, 42, 0.10);

  color: var(--nd-home-text-main);
  background: var(--nd-home-bg);
}

.nd-home *,
.nd-home *::before,
.nd-home *::after {
  box-sizing: border-box;
}

.nd-home img {
  display: block;
  width: 100%;
  height: auto;
}

.nd-home a {
  color: var(--nd-home-accent-strong);
  text-decoration: none;
}

.nd-home a:hover {
  color: var(--nd-home-accent);
}

.nd-home-container {
  width: 100%;
  max-width: var(--nd-home-max);
  margin: 0 auto;
  padding: 0 24px;
}

.nd-home-narrow {
  max-width: var(--nd-home-narrow);
}

/* -------------------------------------------------
   SECTION RHYTHM
-------------------------------------------------- */
.nd-home-section {
  position: relative;
  padding: 72px 0;
}

.nd-home-section-soft {
  background: var(--nd-home-bg-soft);
}

.nd-home-section-intro {
  padding-top: 36px;
  padding-bottom: 12px;
}

.nd-home-kicker,
.nd-home-section-label {
  display: inline-block;
  margin: 0 0 8px;
  font-size: 11px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nd-home-accent-strong);
  opacity: 0.82;
}

.nd-home-section-head {
  max-width: 760px;
  margin: 0 auto 22px;
  text-align: center;
}

.nd-home-section-head-left {
  max-width: 760px;
  margin: 0 0 22px;
  text-align: left;
}

.nd-home-section-head > .nd-home-section-label,
.nd-home-section-head-left > .nd-home-section-label,
.nd-home-copy-block > .nd-home-section-label {
  display: block;
  margin: 0 0 8px;
}

.nd-home-section-head h2,
.nd-home-section-head-left h2,
.nd-home-copy-block h2,
.nd-home-cta-panel h2 {
  margin: 0;
  color: var(--nd-home-heading);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.nd-home-section-sub {
  max-width: 62ch;
  margin: 14px auto 0;
  font-size: 1.04rem;
  line-height: 1.78;
  color: var(--nd-home-text-muted);
}

.nd-home-section-head-left .nd-home-section-sub {
  margin-left: 0;
  margin-right: 0;
}

/* -------------------------------------------------
   HERO
-------------------------------------------------- */
.nd-home-hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 56px;
  background:
    radial-gradient(circle at 12% 18%, rgba(31, 95, 191, 0.05), transparent 30%),
    radial-gradient(circle at 88% 22%, rgba(31, 95, 191, 0.04), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.nd-home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  gap: 68px;
  align-items: center;
}

.nd-home-hero-copy {
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.nd-home-hero h1 {
  margin: 0;
  color: var(--nd-home-heading);
  font-size: clamp(2.6rem, 6vw, 5.25rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-weight: 850;
  text-wrap: balance;
}

.nd-home-hero-sub {
  max-width: 56ch;
  margin: 20px 0 0;
  font-size: 1.08rem;
  line-height: 1.78;
  color: var(--nd-home-text-muted);
}

.nd-home-hero-actions {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
  margin-bottom: 0;
}

.nd-home-hero-actions + .nd-home-hero-points {
  margin-top: 20px;
}

.nd-home-hero-points {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.nd-home-hero-points li {
  position: relative;
  padding-left: 28px;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--nd-home-text-main);
}

.nd-home-hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2a6dce 0%, #1f5fbf 100%);
  box-shadow: 0 0 0 6px rgba(31, 95, 191, 0.08);
}

.nd-home-hero-visual {
  position: relative;
  min-width: 0;
}

.nd-home-visual-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--nd-home-line);
  border-radius: 32px;
  background: #ffffff;
  box-shadow: var(--nd-home-shadow-lg);
}

.nd-home-visual-shell::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 24%;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 20, 33, 0.03) 100%);
  pointer-events: none;
}

.nd-home-visual-shell img {
  aspect-ratio: 1.08 / 1;
  object-fit: cover;
}

.nd-home-floating-card {
  position: absolute;
  z-index: 2;
  max-width: 260px;
  padding: 16px 18px;
  border: 1px solid rgba(220, 229, 239, 0.95);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.10);
}

.nd-home-floating-card strong {
  display: block;
  margin: 0 0 5px;
  color: var(--nd-home-heading);
  font-size: 0.95rem;
  line-height: 1.35;
  font-weight: 700;
}

.nd-home-floating-card span {
  display: block;
  color: var(--nd-home-text-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.nd-home-floating-card-top {
  top: 28px;
  left: -34px;
}

.nd-home-floating-card-bottom {
  right: -34px;
  bottom: 26px;
}

/* -------------------------------------------------
   INLINE PROOF ROW
-------------------------------------------------- */
.nd-home-proof-inline {
  margin: 0;
  padding: 18px 0;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 600;
  color: var(--nd-home-text-muted);
}

/* -------------------------------------------------
   SPLIT LAYOUTS
-------------------------------------------------- */
.nd-home-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.nd-home-split-grid-reverse > :first-child {
  order: 2;
}

.nd-home-split-grid-reverse > :last-child {
  order: 1;
}

.nd-home-media-card {
  overflow: hidden;
  border-radius: var(--nd-home-radius-xl);
  background: #ffffff;
  box-shadow: var(--nd-home-shadow-md);
}

.nd-home-media-card img {
  aspect-ratio: 1.06 / 1;
  object-fit: cover;
}

.nd-home-media-card-soft {
  border: 1px solid var(--nd-home-line);
  box-shadow: none;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.nd-home-copy-block {
  max-width: 600px;
}

.nd-home-copy-block p {
  margin: 16px 0 0;
  font-size: 1.03rem;
  line-height: 1.82;
  color: var(--nd-home-text-main);
}

.nd-home-inline-note {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--nd-home-bg-soft);
  border: 1px solid var(--nd-home-line);
  color: var(--nd-home-text-main);
  font-size: 0.96rem;
  line-height: 1.7;
}

.nd-home-inline-note strong {
  color: var(--nd-home-heading);
}

/* -------------------------------------------------
   CARD GRIDS
-------------------------------------------------- */
.nd-home-card-grid {
  display: grid;
  gap: 18px;
  align-items: stretch;
}

.nd-home-card-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nd-home-card-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nd-home-clean-card {
  min-width: 0;
  padding: 28px 24px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--nd-home-line);
  box-shadow: var(--nd-home-shadow-sm);
}

.nd-home-clean-card h3 {
  margin: 0 0 10px;
  color: var(--nd-home-heading);
  font-size: 1.12rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.nd-home-clean-card p {
  margin: 0;
  color: var(--nd-home-text-muted);
  font-size: 0.95rem;
  line-height: 1.68;
}

/* -------------------------------------------------
   STEPS
-------------------------------------------------- */
.nd-home-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.nd-home-step-card {
  padding: 28px 24px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--nd-home-line);
  box-shadow: var(--nd-home-shadow-sm);
}

.nd-home-step-number {
  margin-bottom: 16px;
  color: var(--nd-home-accent-strong);
  font-size: 0.85rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.nd-home-step-card h3 {
  margin: 0 0 10px;
  color: var(--nd-home-heading);
  font-size: 1.08rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.nd-home-step-card p {
  margin: 0;
  color: var(--nd-home-text-muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

/* -------------------------------------------------
   FEATURE LAYOUT
-------------------------------------------------- */
.nd-home-feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 40px;
  align-items: start;
}

.nd-home-feature-list {
  display: grid;
  gap: 16px;
}

.nd-home-feature-item {
  padding: 22px 22px 20px;
  border-radius: 20px;
  border: 1px solid var(--nd-home-line);
  background: #ffffff;
}

.nd-home-feature-item h3 {
  margin: 0 0 8px;
  color: var(--nd-home-heading);
  font-size: 1.04rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.nd-home-feature-item p {
  margin: 0;
  color: var(--nd-home-text-muted);
  font-size: 0.95rem;
  line-height: 1.68;
}

.nd-home-feature-visuals {
  display: grid;
  gap: 18px;
}

.nd-home-ui-shot {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--nd-home-line);
  background: #ffffff;
  box-shadow: var(--nd-home-shadow-md);
}

.nd-home-ui-shot img {
  aspect-ratio: 1.38 / 1;
  object-fit: cover;
}

/* -------------------------------------------------
   TRUST / SOURCES
-------------------------------------------------- */
.nd-home-trust-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.nd-home-trust-list li {
  position: relative;
  padding-left: 26px;
  color: var(--nd-home-text-main);
  font-size: 0.97rem;
  line-height: 1.62;
}

.nd-home-trust-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--nd-home-accent);
}

.nd-home-text-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
}

.nd-home-text-links a {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--nd-home-accent-strong);
}

.nd-home-text-links a:hover {
  color: var(--nd-home-accent);
}

.nd-home-source-panel {
  padding: 34px 30px;
}

.nd-home-source-panel h3 {
  margin: 0 0 14px;
  color: var(--nd-home-heading);
  font-size: 1.16rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.nd-home-source-panel ul {
  margin: 0;
  padding-left: 18px;
}

.nd-home-source-panel li {
  margin-bottom: 10px;
  color: var(--nd-home-text-main);
  font-size: 0.97rem;
  line-height: 1.68;
}

.nd-home-source-note {
  margin: 18px 0 0;
  color: var(--nd-home-text-soft);
  font-size: 0.88rem;
  line-height: 1.62;
}

/* -------------------------------------------------
   FAQ
-------------------------------------------------- */
.nd-home .faq-list {
  max-width: 100%;
  margin: 0;
}

.nd-home details {
  margin-bottom: 12px;
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--nd-home-line);
  background: #ffffff;
  box-shadow: none;
}

.nd-home details[open] {
  border-color: var(--nd-home-line-strong);
  box-shadow: var(--nd-home-shadow-sm);
}

.nd-home details summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 22px 56px 22px 22px;
  color: var(--nd-home-heading);
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 650;
  user-select: none;
}

.nd-home details summary::-webkit-details-marker {
  display: none;
}

.nd-home details summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--nd-home-text-soft);
  font-size: 1.4rem;
  line-height: 1;
  font-weight: 400;
}

.nd-home details[open] summary::after {
  content: "−";
}

.nd-home .details-content {
  padding: 0 22px 22px;
}

.nd-home .details-content p {
  margin: 0;
  color: var(--nd-home-text-muted);
  font-size: 0.96rem;
  line-height: 1.72;
}

/* -------------------------------------------------
   CTA
-------------------------------------------------- */
.nd-home-final-cta {
  padding-top: 28px;
  padding-bottom: 88px;
}

.nd-home-cta-panel {
  padding: 48px 28px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 20% 20%, rgba(31, 95, 191, 0.05), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f9fbfe 100%);
  border: 1px solid var(--nd-home-line);
  text-align: center;
  box-shadow: var(--nd-home-shadow-sm);
}

.nd-home-cta-panel h2 {
  max-width: 14ch;
  margin-left: auto;
  margin-right: auto;
}

.nd-home-cta-panel > p:not(.nd-home-section-label) {
  max-width: 52ch;
  margin: 16px auto 0;
  color: var(--nd-home-text-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.nd-home-cta-panel .nd-btn-primary {
  margin-top: 24px;
}

/* -------------------------------------------------
   BUTTON SAFETY INSIDE HOMEPAGE
-------------------------------------------------- */
.nd-home .nd-btn-primary,
.nd-home .nd-btn-secondary {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 14px;
  font-size: 14px;
  white-space: nowrap;
}

.nd-home .nd-btn-secondary {
  border-color: var(--nd-home-line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

.nd-home .nd-btn-secondary:hover {
  background: #ffffff;
  border-color: var(--nd-home-line-strong);
  box-shadow: var(--nd-home-shadow-sm);
}

/* -------------------------------------------------
   RESPONSIVE
-------------------------------------------------- */
@media (max-width: 1180px) {
  .nd-home-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .nd-home-hero-copy {
    max-width: 760px;
  }

  .nd-home-hero-visual {
    max-width: 760px;
  }

  .nd-home-floating-card-top {
    left: 18px;
  }

  .nd-home-floating-card-bottom {
    right: 18px;
  }

  .nd-home-card-grid-4,
  .nd-home-steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nd-home-feature-layout,
  .nd-home-split-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .nd-home-split-grid-reverse > :first-child,
  .nd-home-split-grid-reverse > :last-child {
    order: initial;
  }
}

@media (max-width: 900px) {
  .nd-home-card-grid-3,
  .nd-home-card-grid-4,
  .nd-home-steps-grid {
    grid-template-columns: 1fr;
  }

  .nd-home-proof-inline {
    padding: 16px 0;
    font-size: 0.92rem;
  }
}

@media (max-width: 767px) {
  .nd-home-container {
    padding: 0 16px;
  }

  .nd-home-hero {
    padding: 28px 0 48px;
  }

  .nd-home-kicker,
  .nd-home-section-label {
    margin-bottom: 8px;
    font-size: 10px;
  }

  .nd-home-hero h1 {
    font-size: clamp(2.15rem, 11vw, 3.35rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
  }

  .nd-home-hero-sub,
  .nd-home-section-sub,
  .nd-home-copy-block p,
  .nd-home-cta-panel > p:not(.nd-home-section-label) {
    font-size: 0.98rem;
    line-height: 1.72;
  }

  .nd-home-hero-copy {
    align-items: stretch;
  }

  .nd-home-hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .nd-home .nd-btn-primary,
  .nd-home .nd-btn-secondary {
    width: 100%;
    white-space: normal;
  }

  .nd-home-hero-actions + .nd-home-hero-points {
    margin-top: 18px;
  }

  .nd-home-visual-shell {
    border-radius: 22px;
  }

  .nd-home-floating-card {
    position: static;
    max-width: none;
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nd-home-section {
    padding: 60px 0;
  }

  .nd-home-section-intro {
    padding-top: 28px;
    padding-bottom: 8px;
  }

  .nd-home-section-head,
  .nd-home-section-head-left {
    margin-bottom: 18px;
  }

  .nd-home-section-head h2,
  .nd-home-copy-block h2,
  .nd-home-cta-panel h2 {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
  }

  .nd-home-clean-card,
  .nd-home-step-card,
  .nd-home-feature-item,
  .nd-home-source-panel,
  .nd-home-cta-panel {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .nd-home-media-card {
    border-radius: 22px;
  }

  .nd-home-ui-shot {
    border-radius: 18px;
  }

  .nd-home details summary {
    padding: 18px 48px 18px 18px;
    font-size: 0.96rem;
  }

  .nd-home .details-content {
    padding: 0 18px 18px;
  }

  .nd-home-cta-panel h2 {
    max-width: 16ch;
  }
}
.nd-home .nd-home-hero-copy {
  display: block !important;
  max-width: 620px;
}

.nd-home .nd-home-kicker {
  display: block;
  margin: 0 0 8px !important;
}

.nd-home .nd-home-hero h1 {
  margin: 0 !important;
}

.nd-home .nd-home-hero-sub {
  margin-top: 20px !important;
}