/* =====================================================================
   nelly.digital — landing page
   Design line: binaflow.vip (Rubik, pill buttons, 14/22 radii, quiet surfaces)
   Palette: the Nelly logo — deep teal #234E56 on ivory #F6F5EF
   ===================================================================== */
:root {
  --teal: #234E56;          /* logo primary: actions, headings accents */
  --teal-deep: #183A40;     /* hover, dark surfaces */
  --teal-ink: #0F2A30;      /* darkest surface (video stage, CTA band) */
  --teal-soft: #D4DFD9;     /* from the brand package: borders, quiet lines */
  --teal-mist: #E7EEEB;     /* quiet surface tint */
  --ivory: #F6F5EF;         /* logo inverse field: page background */
  --ivory-deep: #ECEAE1;    /* quiet surface */
  --ink: #1B2A2E;           /* text, teal-leaning */
  --ink-soft: #52646A;      /* secondary text */
  --sun: #FFC84A;           /* single warm accent: a collected field lights up, focus ring */

  --font: "Rubik", "Heebo", "Arial Hebrew", system-ui, sans-serif;
  --measure: 36rem;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --radius: 14px;
  --radius-card: 22px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font-family: var(--font); font-weight: 400; font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-weight: 700; font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.7rem); }
h2 { font-weight: 700; font-size: clamp(1.7rem, 1.1rem + 2.4vw, 2.6rem); }
h3 { font-weight: 600; font-size: 1.2rem; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg, img { display: block; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--teal); color: var(--ivory);
  font: inherit; font-weight: 600; font-size: 1.05rem;
  padding: .9rem 1.6rem; border-radius: 999px; border: 0;
  text-decoration: none; cursor: pointer;
  transition: background .2s, transform .2s var(--ease);
}
.btn:hover { background: var(--teal-deep); }
.btn:active { transform: translateY(1px); }
.btn-small { padding: .55rem 1.1rem; font-size: .95rem; }
.btn-light { background: var(--ivory); color: var(--teal); }
.btn-light:hover { background: #fff; }
.link-quiet {
  color: var(--ink-soft); text-decoration: underline; text-underline-offset: .25em;
  text-decoration-color: var(--teal-soft); font-weight: 500;
}
.link-quiet:hover { color: var(--ink); text-decoration-color: var(--teal); }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--ivory) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--teal-soft) 70%, transparent);
}
.top-inner {
  max-width: var(--wrap); margin: 0 auto; padding: .7rem var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; justify-self: start; }
.brand img { height: 34px; width: auto; }
.top-nav { display: flex; gap: clamp(.9rem, 1.6vw, 1.6rem); justify-content: center; }
.top-nav a { text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: .98rem; white-space: nowrap; }
.top-nav a:hover { color: var(--ink); }
.top .btn-small { justify-self: end; }
@media (max-width: 900px) {
  .top-inner { grid-template-columns: auto 1fr; }
  .top-nav { display: none; }
  .brand img { height: 28px; }
}

/* ---------- layout ---------- */
.section { max-width: var(--wrap); margin: 0 auto; padding: clamp(4rem, 9vw, 8rem) var(--gutter) 0; }
.section-head { max-width: var(--measure); margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head h2 { margin-bottom: 1rem; }
.big-p { font-size: 1.2rem; line-height: 1.6; color: var(--ink-soft); }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head-row > div { max-width: var(--measure); }
.section-head-row h2 { margin-bottom: 1rem; }
.collect-hint {
  max-width: 20rem; font-size: .95rem; color: var(--ink-soft);
  border-inline-start: 4px solid var(--sun); padding-inline-start: 1rem;
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter) 0;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.hero-text { max-width: 32rem; }
.hero h1 { margin-bottom: 1.4rem; }
.lede { font-size: 1.25rem; line-height: 1.55; margin-bottom: .9rem; }
.lede-small { color: var(--ink-soft); font-weight: 500; margin-bottom: 2rem; }
.hero-actions { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.hero-note { font-size: .92rem; color: var(--ink-soft); max-width: 28rem; }
@media (max-width: 880px) { .hero { grid-template-columns: 1fr; } .hero-text { max-width: var(--measure); } }

/* ---------- the demo: video stage + live file ---------- */
.demo {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  background: var(--ivory-deep); border-radius: var(--radius-card); padding: .75rem; gap: .75rem;
}
.video {
  position: relative; aspect-ratio: 4 / 5; min-height: 360px; overflow: hidden;
  border-radius: calc(var(--radius-card) - 6px);
  background: radial-gradient(90% 70% at 50% 35%, #2E5F68 0%, var(--teal-ink) 100%);
  color: var(--ivory); display: grid; align-items: end;
}
.video-n { position: absolute; inset: 0; margin: auto; width: 46%; top: -18%; opacity: .92; }
.video-bar {
  position: relative; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  padding: .7rem .9rem; background: linear-gradient(to top, rgba(15,42,48,.9), transparent);
  font-size: .9rem;
}
.video-name { font-weight: 700; font-size: 1rem; }
.video-role { color: color-mix(in srgb, var(--ivory) 75%, transparent); }
.speaking { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 3px; height: 16px; }
.speaking i { width: 3px; height: 4px; border-radius: 2px; background: var(--sun); transition: height .15s; }
.video.talking .speaking i { animation: bar .7s ease-in-out infinite alternate; }
.video.talking .speaking i:nth-child(2) { animation-delay: .12s; }
.video.talking .speaking i:nth-child(3) { animation-delay: .24s; }
.video.talking .speaking i:nth-child(4) { animation-delay: .36s; }
@keyframes bar { from { height: 4px; } to { height: 16px; } }

.bubble {
  position: absolute; max-width: 78%; font-size: .95rem; line-height: 1.4;
  padding: .6rem .85rem; border-radius: 16px; opacity: 0; transform: translateY(6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.bubble.show { opacity: 1; transform: none; }
.bubble-nelly { top: .9rem; inset-inline-start: .9rem; background: var(--ivory); color: var(--ink); border-start-start-radius: 4px; }
.bubble-client { bottom: 3.6rem; inset-inline-end: .9rem; background: var(--sun); color: var(--ink); font-weight: 500; border-end-end-radius: 4px; }

.file { background: var(--ivory); border-radius: calc(var(--radius-card) - 6px); padding: 1rem; display: grid; align-content: start; gap: .8rem; }
.file-head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.file-pct { color: var(--teal); font-variant-numeric: tabular-nums; direction: ltr; }
.file-list { display: grid; gap: .35rem; }
.file-list li {
  display: grid; grid-template-columns: 20px 1fr; gap: .55rem; align-items: start;
  font-size: .95rem; line-height: 1.3; color: var(--ink-soft);
}
.file-list .box {
  width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--teal-soft); background: #fff;
  display: grid; place-items: center; transition: background .25s, border-color .25s;
}
.file-list .box svg { width: 12px; height: 12px; opacity: 0; transition: opacity .2s; }
.file-list .label { display: block; }
.file-list .value { display: block; color: var(--ink); font-weight: 600; min-height: 1.2em; }
.file-list .value.ltr { direction: ltr; text-align: end; unicode-bidi: isolate; }
.file-list li.done { color: var(--ink-soft); }
.file-list li.done .box { background: var(--teal); border-color: var(--teal); }
.file-list li.done .box svg { opacity: 1; }
.file-list li.just { animation: lit 1.4s var(--ease); }
@keyframes lit { 0% { background: var(--sun); } 100% { background: transparent; } }
.file-list li.just .box { box-shadow: 0 0 0 4px color-mix(in srgb, var(--sun) 55%, transparent); }
@media (max-width: 560px) {
  .demo { grid-template-columns: 1fr; }
  .video { aspect-ratio: 16 / 11; min-height: 240px; }
  .video-n { width: 34%; top: -22%; }
}

/* =====================================================================
   HOW: three steps (a real sequence)
   ===================================================================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.steps li { display: grid; gap: .5rem; align-content: start; position: relative; padding-top: 1rem; border-top: 2px solid var(--teal-soft); }
.steps li::before { content: ""; position: absolute; top: -2px; inset-inline-start: 0; width: 2.5rem; height: 2px; background: var(--teal); }
.step-n { font-weight: 800; font-size: 2rem; line-height: 1; color: var(--teal); }
.steps p { color: var(--ink-soft); font-size: 1rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* =====================================================================
   COLLECT: the five groups of the file
   ===================================================================== */
.groups { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.groups li { grid-column: span 2; }
.groups li:nth-child(4), .groups li:nth-child(5) { grid-column: span 3; }
.groups li {
  background: var(--ivory-deep); border-radius: var(--radius-card); padding: 1.5rem;
  display: grid; gap: .5rem; align-content: start;
}
.groups li:nth-child(4), .groups li:nth-child(5) { background: var(--teal-mist); }
.groups h3 { color: var(--teal); }
.groups p { color: var(--ink-soft); font-size: 1rem; }
@media (max-width: 880px) { .groups { grid-template-columns: repeat(2, 1fr); } .groups li, .groups li:nth-child(4) { grid-column: auto; } .groups li:nth-child(5) { grid-column: span 2; } }
@media (max-width: 560px) { .groups { grid-template-columns: 1fr; } .groups li, .groups li:nth-child(4), .groups li:nth-child(5) { grid-column: auto; } }

/* =====================================================================
   WHY a conversation
   ===================================================================== */
.why-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.why-text h2 { margin-bottom: 1rem; }
.why-text .big-p { margin-bottom: 2.2rem; max-width: var(--measure); }
.why-points { display: grid; gap: 1.6rem; max-width: 40rem; }
.why-points li { padding-inline-start: 1.2rem; position: relative; }
.why-points li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 8px; height: 8px; border-radius: 2px; background: var(--teal); }
.why-points h3 { margin-bottom: .3rem; }
.why-points p { color: var(--ink-soft); }
.why-aside { position: sticky; top: 6rem; background: var(--teal-ink); color: var(--ivory); border-radius: var(--radius-card); padding: 2rem; }
.why-aside-label { font-weight: 600; color: var(--sun); margin-bottom: 1rem; }
.why-aside blockquote { margin: 0 0 1.6rem; font-size: 1.25rem; font-weight: 500; line-height: 1.45; }
.why-aside-fact { font-size: .9rem; color: color-mix(in srgb, var(--ivory) 70%, transparent); line-height: 1.5; }
@media (max-width: 880px) { .why-layout { grid-template-columns: 1fr; gap: 2.5rem; } .why-aside { position: static; } }

/* =====================================================================
   TRUST
   ===================================================================== */
.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 3rem; max-width: 56rem; }
.trust li { padding-inline-start: 1.25rem; border-inline-start: 4px solid var(--teal-soft); }
.trust h3 { margin-bottom: .3rem; }
.trust p { color: var(--ink-soft); }
@media (max-width: 640px) { .trust { grid-template-columns: 1fr; } }

/* =====================================================================
   FAQ
   ===================================================================== */
.faq { max-width: 44rem; border-top: 1px solid var(--teal-soft); }
.faq details { border-bottom: 1px solid var(--teal-soft); }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 1.15rem; padding: 1.2rem 0 1.2rem 2.5rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; inset-inline-end: .4rem; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal);
  transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-20%) rotate(225deg); }
.faq details p { padding: 0 0 1.4rem; max-width: var(--measure); color: var(--ink-soft); }

/* =====================================================================
   CTA band + footer
   ===================================================================== */
.cta { margin: clamp(4rem, 9vw, 8rem) var(--gutter) 0; }
.cta-inner {
  max-width: var(--wrap); margin: 0 auto; background: var(--teal); color: var(--ivory);
  border-radius: var(--radius-card); padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  display: grid; gap: 1rem; justify-items: start;
}
.cta-logo { height: 40px; width: auto; margin-bottom: .5rem; }
.cta-inner h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); }
.cta-inner p { font-size: 1.15rem; color: color-mix(in srgb, var(--ivory) 80%, transparent); max-width: 30rem; margin-bottom: .6rem; }
.foot { padding: 2.5rem var(--gutter) 2rem; font-size: .9rem; color: var(--ink-soft); text-align: center; display: grid; gap: .6rem; justify-items: center; }
.foot-mark { height: 36px; width: 36px; margin-bottom: .4rem; }
.foot a { color: inherit; }
.foot-small { font-size: .82rem; max-width: 36rem; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}
