:root {
  --ink: #0B1F3A;
  --ink-2: #13294A;
  --teal: #0FA3A0;
  --teal-deep: #0B7F7C;
  --signal: #2BD1C8;
  --mist: #F3F6F9;
  --paper: #FFFFFF;
  --slate: #51617A;
  --line: #DCE3EB;

  --display: "Space Grotesk", "Instrument Sans", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
}
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--body); font-weight: 600; font-size: 1rem;
  padding: 14px 24px; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--teal { background: var(--teal); color: #fff; box-shadow: 0 8px 24px -10px rgba(15,163,160,.8); }
.btn--teal:hover { background: var(--teal-deep); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-2); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--small { padding: 10px 18px; font-size: .9375rem; }
.btn--block { width: 100%; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243,246,249,.85);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.nav__logo img { height: 34px; width: auto; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { text-decoration: none; font-weight: 500; font-size: .9375rem; color: var(--slate); }
.nav__links a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 72px 0 96px; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  max-width: 12ch;
}
.hero__lead { margin-top: 28px; font-size: 1.1875rem; color: var(--slate); max-width: 52ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__note { margin-top: 18px; font-size: .9375rem; color: var(--slate); max-width: 46ch; }

/* Flow panel: the one bold element */
.flow {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff;
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: 0 40px 80px -40px rgba(11,31,58,.55);
}
.flow::before {
  content: ""; position: absolute; inset: auto -20% -45% auto;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(43,209,200,.35), transparent 65%);
  pointer-events: none;
}
.flow__mark {
  position: absolute; right: -36px; top: -30px; width: 190px; height: 190px;
  color: rgba(255,255,255,.04); pointer-events: none;
}
.flow__head { display: flex; justify-content: space-between; align-items: center; font-size: .875rem; color: rgba(255,255,255,.7); position: relative; }
.flow__live { display: inline-flex; align-items: center; gap: 8px; }
.flow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 rgba(43,209,200,.6); animation: pulse 2s infinite; }
.flow__count strong { color: var(--signal); font-family: var(--display); font-size: 1rem; }

.flow__lead {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  margin-top: 22px; padding: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-md);
  transition: opacity .35s ease, transform .35s ease;
}
.flow__lead.is-leaving { opacity: 0; transform: translateY(-8px); }
.flow__lead.is-entering { opacity: 0; transform: translateY(10px); }
.flow__avatar {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--signal); color: var(--ink);
  font-family: var(--display); font-weight: 700;
}
.flow__name { font-family: var(--display); font-weight: 600; font-size: 1.0625rem; }
.flow__src { font-size: .875rem; color: rgba(255,255,255,.65); }

.flow__steps { list-style: none; margin: 18px 0 0; padding: 0 0 0 22px; position: relative; }
.flow__steps::before {
  content: ""; position: absolute; left: 9px; top: 18px; bottom: 18px; width: 2px;
  background: rgba(255,255,255,.12);
}
.flow__steps li {
  position: relative;
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
  padding: 11px 0 11px 18px;
  color: rgba(255,255,255,.45);
  transition: color .3s ease;
}
.flow__tick {
  position: absolute; left: -22px; top: 50%; translate: 0 -50%;
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.25);
  background: var(--ink);
  transition: background-color .3s ease, border-color .3s ease, transform .3s ease;
}
.flow__tick::after {
  content: ""; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px;
  border: solid var(--ink); border-width: 0 2px 2px 0; rotate: 45deg;
  opacity: 0; transition: opacity .2s ease;
}
.flow__time { font-size: .8125rem; color: rgba(255,255,255,.35); font-variant-numeric: tabular-nums; }
.flow__steps li.is-done { color: #fff; }
.flow__steps li.is-done .flow__tick { background: var(--signal); border-color: var(--signal); transform: scale(1.05); }
.flow__steps li.is-done .flow__tick::after { opacity: 1; }
.flow__steps li.is-done .flow__time { color: var(--signal); }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(43,209,200,.6); }
  70% { box-shadow: 0 0 0 10px rgba(43,209,200,0); }
  100% { box-shadow: 0 0 0 0 rgba(43,209,200,0); }
}

/* Pain */
.pain { background: var(--paper); padding: 96px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pain__title { max-width: 18ch; }
.pain__list {
  list-style: none; padding: 0; margin: 40px 0 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px;
}
.pain__list li {
  padding: 22px 0 22px 36px; position: relative;
  border-top: 1px solid var(--line);
  color: var(--slate); max-width: 52ch;
}
.pain__list li::before {
  content: ""; position: absolute; left: 0; top: 30px; width: 18px; height: 2px; background: var(--slate); opacity: .5;
}
.pain__answer {
  margin-top: 40px;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 1.875rem); letter-spacing: -0.02em; line-height: 1.25;
  color: var(--teal-deep); max-width: 30ch;
}

/* Benefits */
.benefits { padding: 112px 0; }
.benefits__grid {
  margin-top: 48px;
  display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto auto; gap: 20px;
}
.benefit {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 28px;
}
.benefit h3 { margin-bottom: 10px; }
.benefit p { color: var(--slate); }
.benefit--calc {
  grid-row: span 3;
  background: var(--ink); color: #fff; border: 0;
  padding: 40px;
  display: flex; flex-direction: column;
}
.benefit--calc h3 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -0.025em; }
.benefit--calc > p { color: rgba(255,255,255,.72); max-width: 42ch; margin-top: 4px; }

.calc { margin-top: auto; padding-top: 40px; }
.calc label { display: block; font-weight: 500; margin-bottom: 14px; }
.calc__row { display: flex; align-items: center; gap: 18px; }
.calc output { font-family: var(--display); font-weight: 700; font-size: 1.25rem; min-width: 5ch; text-align: right; color: var(--signal); }
.calc input[type="range"] {
  flex: 1; appearance: none; -webkit-appearance: none; height: 6px; border-radius: 99px;
  background: linear-gradient(to right, var(--signal) var(--fill, 24%), rgba(255,255,255,.15) var(--fill, 24%));
  cursor: pointer;
}
.calc input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; border: 4px solid var(--signal);
}
.calc input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--signal);
}
.calc__result {
  margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14);
  font-size: 1.125rem; color: rgba(255,255,255,.8);
}
.calc__result strong { color: #fff; font-family: var(--display); font-size: 1.5rem; white-space: nowrap; }

/* Before / after */
.shift { padding: 0 0 112px; }
.shift__table { margin-top: 48px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.shift__row {
  display: grid; grid-template-columns: .7fr 1fr 1fr; align-items: stretch;
  border-top: 1px solid var(--line);
}
.shift__row:first-child { border-top: 0; }
.shift__row > * { padding: 22px 28px; margin: 0; }
.shift__row--head { font-size: .9375rem; font-weight: 600; color: var(--slate); }
.shift__row--head > :last-child { background: var(--ink); color: var(--signal); }
.shift__row h3 { font-size: 1.125rem; align-self: center; }
.shift__before { color: var(--slate); }
.shift__after { background: var(--ink); color: #fff; font-weight: 500; border-top: 1px solid rgba(255,255,255,.08); margin-top: -1px; }

/* Services */
.services { padding: 112px 0; background: var(--paper); border-top: 1px solid var(--line); }
.section__intro { margin-top: 18px; color: var(--slate); max-width: 58ch; font-size: 1.125rem; }
.services__list { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.service { display: flex; flex-direction: column; gap: 20px; }
.service h3 { margin-bottom: 10px; }
.service p { color: var(--slate); }
.service__icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(15,163,160,.1);
}
.service__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--teal-deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Process */
.process { padding: 112px 0; }
.process__steps {
  list-style: none; padding: 0; margin: 56px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  position: relative;
}
.process__steps::before {
  content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 2px;
  background: linear-gradient(to right, var(--teal), var(--line));
}
.process__steps li { position: relative; }
.process__num {
  position: relative;
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--mist); border: 2px solid var(--teal);
  font-family: var(--display); font-weight: 700; color: var(--teal-deep);
  margin-bottom: 24px;
}
.process__steps li:first-child .process__num { background: var(--teal); color: #fff; }
.process__steps h3 { margin-bottom: 8px; }
.process__steps p { color: var(--slate); font-size: 1rem; }

/* Book */
.book { padding: 0 0 112px; }
.book__inner {
  background: var(--ink); color: #fff; border-radius: var(--r-lg);
  padding: clamp(32px, 6vw, 72px);
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center;
  position: relative; overflow: hidden;
}
.book__inner::after {
  content: ""; position: absolute; left: -10%; bottom: -60%;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(43,209,200,.22), transparent 65%);
  pointer-events: none;
}
.book h2 { max-width: 14ch; }
.book__copy { position: relative; z-index: 1; }
.book__copy > p { margin-top: 18px; color: rgba(255,255,255,.75); max-width: 48ch; }
.book__points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.book__points li { position: relative; padding-left: 30px; }
.book__points li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--signal);
}
.book__points li::after {
  content: ""; position: absolute; left: 5px; top: 9px; width: 4px; height: 8px;
  border: solid var(--ink); border-width: 0 2px 2px 0; rotate: 45deg;
}
.book__card {
  position: relative; z-index: 1;
  background: var(--paper); color: var(--ink);
  border-radius: var(--r-md); padding: 32px;
}
.book__card-title { font-family: var(--display); font-weight: 700; font-size: 1.375rem; }
.book__card-text { color: var(--slate); margin: 6px 0 24px; }
.book__card-alt { margin-top: 16px; font-size: .9375rem; color: var(--slate); text-align: center; }
.book__card-alt a { color: var(--teal-deep); font-weight: 600; }

/* Quote form */
.quote { padding: 112px 0; background: var(--paper); border-top: 1px solid var(--line); }
.quote__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.quote__copy { position: sticky; top: 112px; }
.quote__copy > p { margin-top: 18px; color: var(--slate); max-width: 40ch; font-size: 1.125rem; }
.quote__small { font-size: .875rem !important; margin-top: 28px !important; }
.quote__form {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 24px 28px; min-height: 400px;
}
.quote__form iframe { display: block; border: 0; }

/* FAQ */
.faq { padding: 112px 0; }
.faq__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
.faq__list details { border-top: 1px solid var(--line); }
.faq__list details:last-child { border-bottom: 1px solid var(--line); }
.faq__list summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0;
  font-family: var(--display); font-weight: 600; font-size: 1.1875rem;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border: solid var(--teal-deep); border-width: 0 2px 2px 0; rotate: 45deg; translate: 0 -3px;
  transition: rotate .2s ease, translate .2s ease;
}
.faq__list details[open] summary::after { rotate: 225deg; translate: 0 3px; }
.faq__list details p { padding: 0 0 22px; color: var(--slate); max-width: 60ch; }

/* Footer */
.footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 48px 0; }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto auto; gap: 32px; align-items: center; }
.footer__logo { height: 60px; width: auto; margin: -12px 0; }
.footer__links { display: flex; gap: 24px; }
.footer__links a { color: #fff; text-decoration: none; font-weight: 500; }
.footer__links a:hover { color: var(--signal); }
.footer__copy { font-size: .875rem; }

/* Responsive */
@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .benefits__grid { grid-template-columns: 1fr 1fr; }
  .benefit--calc { grid-column: 1 / -1; grid-row: auto; }
  .services__list { grid-template-columns: 1fr; gap: 36px; }
  .service { flex-direction: row; }
  .process__steps { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .process__steps::before { display: none; }
  .book__inner, .quote__grid, .faq__inner { grid-template-columns: 1fr; gap: 40px; }
  .quote__copy { position: static; }
  .footer__inner { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__inner { justify-content: space-between; }
  .nav__logo img { height: 28px; }
  .hero { padding: 40px 0 72px; }
  .pain, .benefits, .services, .process, .quote, .faq { padding: 72px 0; }
  .book, .shift { padding-bottom: 72px; }
  .shift__row { grid-template-columns: 1fr; }
  .shift__row--head { display: none; }
  .shift__row > * { padding: 14px 20px; }
  .shift__row h3 { padding-top: 22px; padding-bottom: 4px; }
  .shift__before::before { content: "Előtte: "; font-weight: 600; }
  .shift__after { padding-top: 16px; padding-bottom: 18px; }
  .shift__after::before { content: "Flowsmith-szel: "; color: var(--signal); font-weight: 600; }
  .footer__links { flex-wrap: wrap; gap: 12px 24px; }
  .pain__list { grid-template-columns: 1fr; }
  .benefits__grid { grid-template-columns: 1fr; }
  .benefit--calc { padding: 28px; }
  .process__steps { grid-template-columns: 1fr; }
  .quote__form { padding: 12px 14px; }
  .flow { padding: 20px; }
  .flow__steps li { grid-template-columns: 1fr; gap: 2px; }
}

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