/* SentryView — landing page styles (v2: warm light + logo teal) */
:root {
  --bg: #F7F5F0;
  --bg-alt: #EFECE4;
  --surface: #FFFFFF;
  --ink: #14161A;
  --text-2: #4A4D52;
  --text-3: #686B70;
  --border: #E4E0D6;
  --border-strong: #CFC9BB;

  --teal: #00796D;        /* buttons, links, key text (AA on white & bg) */
  --teal-hover: #00665C;
  --teal-bright: #00A896; /* decorative: logo, icons, bars */
  --teal-tint: #E3F3F0;
  --violet: #5B3FD0;
  --violet-tint: #ECE8FB;
  --navy: #1F4E8C;
  --navy-tint: #E4ECF6;
  --danger: #B42318;

  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(20, 22, 26, .04), 0 8px 24px -12px rgba(20, 22, 26, .12);
  --shadow-lg: 0 2px 4px rgba(20, 22, 26, .04), 0 24px 48px -24px rgba(20, 22, 26, .22);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Outfit", "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2 { text-wrap: balance; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.accent { color: var(--teal); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 16px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent; font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap; transition: background-color .2s, border-color .2s, color .2s, transform .15s; }
.btn .ic { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-hover); }
.btn--ghost { background: transparent; border-color: var(--border-strong); color: var(--ink); }
.btn--ghost:hover { background: var(--surface); border-color: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 14.5px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(247, 245, 240, .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .25s; }
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -0.5px; color: var(--ink); }
.brand__mark { display: flex; width: 36px; height: 36px; flex-shrink: 0; }
.brand__mark svg { width: 100%; height: 100%; }
.brand__mark .orb-ring { transform-box: fill-box; transform-origin: center; animation: markOrbSpin 4s linear infinite; }
@keyframes markOrbSpin { to { transform: rotate(360deg); } }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a:not(.btn) { padding: 10px 14px; border-radius: 10px; color: var(--text-2); font-size: 15px; font-weight: 500; transition: color .2s, background-color .2s; }
.nav__links a:not(.btn):hover { color: var(--ink); background: var(--bg-alt); }
.nav__cta { margin-left: 8px; }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border-strong); background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.nav__toggle .ic { width: 22px; height: 22px; }

/* Eyebrow + section heads */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.section { padding: 104px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section h2 { font-size: clamp(30px, 3.6vw, 44px); }
.section__sub { margin-top: 14px; font-size: 18px; color: var(--text-2); }

/* Hero */
.hero { padding: 64px 0 96px; }
.hero__inner { display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: 56px; align-items: center; }
.hero__inner > * { min-width: 0; }
.hero h1 { font-size: clamp(44px, 6vw, 76px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; }
.lead { margin-top: 22px; font-size: clamp(17px, 1.5vw, 19px); color: var(--text-2); max-width: 520px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__for { margin-top: 28px; font-size: 14.5px; color: var(--text-3); max-width: 460px; }

/* Quiz */
.quiz { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 28px; display: flex; flex-direction: column; min-height: 460px; }
.quiz__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.quiz__title { font-family: var(--display); font-weight: 600; font-size: 18px; }
.quiz__step { font-size: 13px; color: var(--text-3); white-space: nowrap; }
.quiz__bar { height: 6px; border-radius: 99px; background: var(--bg-alt); overflow: hidden; margin-bottom: 24px; }
.quiz__bar span { display: block; height: 100%; width: 20%; background: var(--teal-bright); border-radius: inherit; transition: width .4s var(--ease); }
.qstep { display: none; border: 0; margin: 0; padding: 0; min-width: 0; }
.qstep.is-active { display: block; animation: fadeUp .35s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.qstep legend { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; margin-bottom: 18px; padding: 0; }
.qstep legend small { display: block; font-family: var(--font); font-size: 14px; font-weight: 400; color: var(--text-3); margin-top: 4px; }
.qhint { color: var(--text-2); font-size: 15px; margin: -6px 0 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 9px 15px; border-radius: 11px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink); font-size: 15px; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.chip:hover { border-color: var(--teal); }
.chip[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-tint); color: #00564E; box-shadow: inset 0 0 0 1px var(--teal); font-weight: 500; }
.range { display: grid; gap: 12px; }
.range output { font-family: var(--display); font-size: 34px; font-weight: 700; color: var(--teal); letter-spacing: -0.02em; }
.range input { width: 100%; accent-color: var(--teal); height: 28px; cursor: pointer; }
.quiz__err { font-size: 14px; color: var(--danger); margin-top: 14px; }
.quiz__err:empty { display: none; }
.quiz__nav { display: flex; gap: 10px; margin-top: auto; padding-top: 24px; justify-content: flex-end; flex-wrap: wrap; }
.qresult { animation: fadeUp .4s var(--ease); }
.qresult:focus { outline: none; }
.qresult__label { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.qresult__big { font-family: var(--display); font-size: clamp(38px, 4.4vw, 52px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin: 6px 0 4px; }
.qresult__big b { color: var(--teal); }
.qresult__sub { color: var(--text-2); margin-bottom: 20px; }
.qresult__sub b { color: var(--ink); }
.qresult__recs { display: grid; gap: 8px; margin: 10px 0 14px; }
.qresult__recs li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 11px; background: var(--bg); border: 1px solid var(--border); font-weight: 500; }
.qresult__recs li span { margin-left: auto; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.qresult__recs .ic { color: var(--teal); stroke-width: 2.4; width: 18px; height: 18px; }
.qresult__note { font-size: 13px; color: var(--text-3); }

/* Pillars */
.pillars__tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 6px; border-radius: 18px; background: var(--bg-alt); max-width: 840px; margin: 0 auto 28px; }
.ptab { --tone: var(--teal); --tint: var(--teal-tint); display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border-radius: 13px; border: 1px solid transparent; background: transparent; cursor: pointer; text-align: left; transition: background-color .2s, border-color .2s, box-shadow .2s; }
[data-tone="violet"] { --tone: var(--violet); --tint: var(--violet-tint); }
[data-tone="navy"] { --tone: var(--navy); --tint: var(--navy-tint); }
.ptab b { display: block; font-family: var(--display); font-size: 17px; font-weight: 600; }
.ptab small { display: block; font-size: 13px; color: var(--text-3); }
.ptab__ic { width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px; display: grid; place-items: center; color: var(--tone); background: var(--tint); }
.ptab:hover { background: rgba(255, 255, 255, .6); }
.ptab[aria-selected="true"] { background: var(--surface); border-color: var(--border); box-shadow: var(--shadow); }
.ppanel { --tone: var(--teal); --tint: var(--teal-tint); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; animation: fadeUp .4s var(--ease); }
.ppanel[hidden] { display: none; }
.card { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.card__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: var(--tone); background: var(--tint); margin-bottom: 4px; }
.card__icon .ic { width: 23px; height: 23px; }
.card h3 { font-size: 20px; }
.card p { color: var(--text-2); font-size: 15.5px; }
.card--lead { grid-row: span 3; background: var(--tint); border-color: transparent; }
.card--lead .card__icon { background: var(--surface); }
.card--lead h3 { font-size: 26px; }
.card--lead p { font-size: 16.5px; color: var(--ink); }
.ppanel { grid-template-columns: 1.1fr 1fr 1fr; grid-template-rows: auto auto; }
.ppanel .card--lead { grid-row: 1 / span 2; }
.ppanel .card:not(.card--lead):nth-child(4) { grid-column: 2 / span 2; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }
.tags li { font-size: 13px; padding: 5px 11px; border-radius: 99px; background: var(--surface); color: var(--text-2); }
.pill { display: inline-block; vertical-align: middle; margin-left: 6px; font-family: var(--font); font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; color: var(--violet); background: var(--violet-tint); }

/* Steps + why */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { padding: 26px 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.step__n { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--teal); margin-bottom: 18px; }
.step h3 { font-size: 20px; margin-bottom: 6px; }
.step p { color: var(--text-2); font-size: 15px; }
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border-strong); }
.why li { display: flex; gap: 14px; }
.why .ic { width: 24px; height: 24px; color: var(--teal); margin-top: 2px; }
.why b { font-family: var(--display); font-weight: 600; font-size: 17px; }
.why p { color: var(--text-2); font-size: 15px; margin-top: 2px; }

/* FAQ */
.faq__list { max-width: 780px; margin: 0 auto; border-top: 1px solid var(--border-strong); }
.faq details { border-bottom: 1px solid var(--border-strong); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 4px; min-height: 56px; cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 19px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--teal); transition: transform .25s var(--ease); }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq details p { padding: 0 4px 22px; color: var(--text-2); max-width: 680px; }

/* Contact */
.contact__inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.contact__inner > * { min-width: 0; }
.points { display: grid; gap: 12px; margin-top: 28px; }
.points li { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.points .ic { color: var(--teal); stroke-width: 2.4; }
.form { padding: 32px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field label { font-size: 14px; font-weight: 500; }
.field label span { color: var(--teal); }
.field label small { color: var(--text-3); font-size: 13px; font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 11px; background: var(--surface); border: 1px solid var(--border-strong); font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23686B70' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0, 121, 109, .15); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field__err { font-size: 13.5px; color: var(--danger); }
.field__err:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__status { font-size: 15px; text-align: center; }
.form__status:empty { display: none; }
.form__status.is-ok { color: var(--teal); }
.form__status.is-err { color: var(--danger); }

/* Footer */
.footer { padding: 64px 0 28px; background: var(--ink); color: #D9D6CE; }
.footer .brand { color: #fff; }
.footer__inner { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; }
.footer__brand p { margin-top: 14px; color: #A7A49C; max-width: 300px; font-size: 15px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer__cols h4 { font-size: 13px; font-family: var(--font); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: #8E8B84; margin-bottom: 12px; }
.footer__cols a { display: block; padding: 5px 0; color: #D9D6CE; font-size: 15px; transition: color .2s; }
.footer__cols a:hover { color: #fff; }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid #2C2E33; color: #8E8B84; font-size: 14px; }
.footer__base a:hover { color: #fff; }

/* Responsive */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__copy { max-width: 640px; }
  .quiz { max-width: 620px; width: 100%; }
  .ppanel { grid-template-columns: 1fr 1fr; }
  .ppanel .card--lead { grid-row: auto; grid-column: 1 / -1; }
  .ppanel .card:not(.card--lead):nth-child(4) { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact__inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 800px) {
  .nav__toggle { display: inline-flex; }
  .nav__links { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 16px 20px 24px; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  .nav__links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__links a:not(.btn) { padding: 14px 12px; font-size: 16px; }
  .nav__cta { margin: 8px 0 0; }
  .why { grid-template-columns: 1fr; gap: 20px; }
  .footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .brand { font-size: 21px; }
  .hero { padding: 36px 0 72px; }
  .section { padding: 72px 0; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .quiz { padding: 20px; min-height: 0; }
  .qstep legend { font-size: 19px; }
  .quiz__nav .btn { flex: 1 1 auto; }
  .pillars__tabs { grid-template-columns: 1fr; }
  .ppanel { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .steps { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .form__row { grid-template-columns: 1fr; }
  .faq summary { font-size: 17px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}

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

/* ---------- Automation in action ---------- */
.hero { padding-bottom: 56px; }
.flowband { padding: 0 0 24px; }
.flow-card { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow); padding: 36px; }
.flow-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 32px; }
.flow-card__head h2 { font-size: clamp(26px, 3vw, 36px); }
.flow-card__sub { margin-top: 8px; color: var(--text-2); }
.live { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; padding: 6px 12px; border-radius: 99px; background: var(--teal-tint); color: #00564E; font-size: 13px; font-weight: 600; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-bright); animation: livePulse 1.6s ease-out infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(0, 168, 150, .5); } 80%, 100% { box-shadow: 0 0 0 8px rgba(0, 168, 150, 0); } }
.flow-body { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 28px; align-items: stretch; }

.wf { display: flex; align-items: flex-start; padding: 20px 8px; border-radius: 18px; background: var(--bg); }
.wf__node { flex: 0 0 104px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.wf__ic { width: 58px; height: 58px; border-radius: 17px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border-strong); color: var(--text-3); transition: background-color .35s, border-color .35s, color .35s, box-shadow .35s, transform .35s var(--ease); }
.wf__ic .ic { width: 24px; height: 24px; }
.wf__node b { font-size: 14px; font-weight: 600; line-height: 1.25; }
.wf__node small { font-size: 12.5px; color: var(--text-3); line-height: 1.3; }
.wf__node.is-active .wf__ic { border-color: var(--teal-bright); color: var(--teal); background: var(--teal-tint); box-shadow: 0 0 0 6px rgba(0, 168, 150, .14); transform: scale(1.06); animation: nodePulse 1s ease-in-out infinite; }
@keyframes nodePulse { 50% { box-shadow: 0 0 0 10px rgba(0, 168, 150, .06); } }
.wf__node.is-done .wf__ic { background: var(--teal); border-color: var(--teal); color: #fff; }
.wf__link { position: relative; flex: 1 1 auto; min-width: 14px; height: 3px; margin-top: 28px; border-radius: 3px; background: var(--border); overflow: visible; }
.wf__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--teal-bright); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); }
.wf__link.is-done::after { transform: scaleX(1); }
.wf__link::before { content: ""; position: absolute; top: -4px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--teal-bright); box-shadow: 0 0 0 4px rgba(0, 168, 150, .18); opacity: 0; z-index: 1; }
.wf__link.is-moving::before { animation: travel .9s var(--ease) forwards; }
@keyframes travel { 0% { left: 0; opacity: 1; } 90% { opacity: 1; } 100% { left: calc(100% - 11px); opacity: 0; } }

.wf-log { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 18px; padding: 18px; min-height: 250px; }
.wf-log__title { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.wf-log ul { display: grid; gap: 8px; align-content: start; }
.wf-log li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.4; animation: logIn .4s var(--ease); }
.wf-log li .ic { width: 16px; height: 16px; color: var(--teal); stroke-width: 2.6; margin-top: 2px; }
.wf-log li time { margin-left: auto; padding-left: 8px; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wf-log li.wf-log__done { margin-top: 6px; padding-top: 10px; border-top: 1px dashed var(--border-strong); font-weight: 600; color: #00564E; }
@keyframes logIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 1024px) {
  .flow-body { grid-template-columns: 1fr; }
  .wf-log { min-height: 0; }
}
@media (max-width: 720px) {
  .flow-card { padding: 22px; border-radius: 20px; }
  .flow-card__head { flex-direction: column; gap: 12px; margin-bottom: 22px; }
  .wf { flex-direction: column; align-items: stretch; padding: 16px; }
  .wf__node { flex: none; flex-direction: row; text-align: left; gap: 14px; display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; column-gap: 14px; row-gap: 0; align-items: center; }
  .wf__ic { width: 48px; height: 48px; border-radius: 14px; grid-row: 1 / span 2; }
  .wf__node small { grid-column: 2; }
  .wf__link { flex: none; width: 3px; height: 18px; min-width: 0; margin: 4px 0 4px 22px; }
  .wf__link::after { transform: scaleY(0); transform-origin: top; }
  .wf__link.is-done::after { transform: scaleY(1); }
  .wf__link::before { display: none; }
}
.wf-wrap { display: flex; align-items: center; border-radius: 18px; background: var(--bg); padding: 24px 12px; }
.wf-wrap .wf { flex: 1; background: none; padding: 0; }
@media (max-width: 720px) { .wf-wrap { padding: 16px; } .wf-wrap .wf { padding: 0; } }

/* ---------- Chat assistant ---------- */
.svchat { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; font-family: var(--font); }
.svchat__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.svchat__launcher { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 20px 0 8px; border: 0; border-radius: 99px; background: var(--teal); color: #fff; font-weight: 600; font-size: 15px; cursor: pointer; box-shadow: 0 10px 30px -10px rgba(0, 86, 78, .6); transition: background-color .2s, transform .2s var(--ease); }
.svchat__launcher:hover { background: var(--teal-hover); transform: translateY(-2px); }
.svchat__launcher-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); }
.svchat__launcher-ic .ic { width: 22px; height: 22px; }
.svchat.is-open .svchat__launcher { display: none; }
.svchat__teaser { position: relative; max-width: 260px; padding: 14px 40px 14px 16px; border-radius: 16px 16px 4px 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); font-size: 14.5px; line-height: 1.45; animation: fadeUp .35s var(--ease); }
.svchat__teaser p { cursor: pointer; }
.svchat__teaser-close { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border: 0; background: none; border-radius: 8px; color: var(--text-3); cursor: pointer; display: grid; place-items: center; }
.svchat__teaser-close:hover { background: var(--bg-alt); color: var(--ink); }
.svchat__teaser-close .ic { width: 16px; height: 16px; }

.svchat__panel { width: 390px; height: min(620px, calc(100vh - 40px)); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: 0 30px 70px -20px rgba(20, 22, 26, .35); overflow: hidden; animation: fadeUp .3s var(--ease); }
.svchat__head { display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 16px; background: var(--ink); color: #fff; }
.svchat__avatar { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; background: var(--teal); display: grid; place-items: center; }
.svchat__avatar svg { width: 26px; height: 26px; }
.svchat__titles { flex: 1; min-width: 0; }
.svchat__titles h2 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.svchat__titles p { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #B9B6AE; }
.svchat__dot { width: 7px; height: 7px; border-radius: 50%; background: #34D399; }
.svchat__icon-btn { width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: #D9D6CE; cursor: pointer; display: grid; place-items: center; transition: background-color .2s, color .2s; }
.svchat__icon-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.svchat__icon-btn .ic { width: 20px; height: 20px; }
.svchat__head :focus-visible { outline-color: #fff; }

.svchat__log { flex: 1; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); overscroll-behavior: contain; }
.svchat__msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.svchat__msg p + p, .svchat__msg p + ul, .svchat__msg ul + p, .svchat__msg p + ol, .svchat__msg ol + p { margin-top: 8px; }
.svchat__msg ul, .svchat__msg ol { padding-left: 18px; list-style: disc; display: grid; gap: 4px; }
.svchat__msg ol { list-style: decimal; }
.svchat__msg a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.svchat__msg--assistant { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 5px; }
.svchat__msg--user { align-self: flex-end; background: var(--teal); color: #fff; border-bottom-right-radius: 5px; white-space: pre-wrap; }
.svchat__msg--error { border-color: #F1C4BF; background: #FDF1EF; }
.svchat__typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.svchat__typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); animation: svTyping 1.2s infinite ease-in-out; }
.svchat__typing i:nth-child(2) { animation-delay: .15s; }
.svchat__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes svTyping { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.svchat__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.svchat__chip { min-height: 40px; padding: 8px 13px; border-radius: 99px; border: 1px solid var(--teal); background: var(--surface); color: var(--teal); font-size: 14px; font-weight: 500; cursor: pointer; text-align: left; transition: background-color .2s; }
.svchat__chip:hover { background: var(--teal-tint); }
.svchat__note { align-self: center; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--teal-tint); color: #00564E; font-size: 13px; font-weight: 500; }
.svchat__note .ic { width: 15px; height: 15px; stroke-width: 2.6; }

.svchat__form { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid var(--border); background: var(--surface); }
.svchat__form textarea { flex: 1; min-height: 44px; max-height: 120px; padding: 11px 14px; border: 1px solid var(--border-strong); border-radius: 14px; resize: none; overflow-y: hidden; font-size: 16px; line-height: 1.4; background: var(--surface); }
.svchat__form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0, 121, 109, .15); }
.svchat__send { width: 44px; height: 44px; flex-shrink: 0; border: 0; border-radius: 12px; background: var(--teal); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background-color .2s; }
.svchat__send:hover { background: var(--teal-hover); }
.svchat__send[disabled] { opacity: .5; cursor: progress; }
.svchat__send .ic { width: 20px; height: 20px; }
.svchat__foot { padding: 0 14px 10px; font-size: 11.5px; color: var(--text-3); background: var(--surface); text-align: center; }

@media (max-width: 640px) {
  .svchat { right: 12px; bottom: 12px; }
  .svchat__launcher { min-height: 52px; padding: 0 6px; }
  .svchat__launcher-label { display: none; }
  .svchat.is-open { inset: 0; right: 0; bottom: 0; }
  .svchat__panel { width: 100%; height: 100%; height: 100dvh; border-radius: 0; border: 0; }
  .svchat__teaser { max-width: 230px; }
}
.contact__chat { margin-top: 28px; }
.channels { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.channels li { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; padding: 5px 10px; border-radius: 99px; background: var(--tint); color: var(--ink); }
button.link .ic { width: 16px; height: 16px; }
.channels .ic { width: 15px; height: 15px; color: var(--tone); }
button.link { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: auto; border: 0; background: none; padding: 6px 0; min-height: 44px; font: inherit; font-weight: 600; font-size: 14.5px; color: var(--teal); cursor: pointer; }
button.link .ic { transition: transform .2s var(--ease); }
button.link:hover .ic { transform: translateX(3px); }
