/* =========================================================================
   Штрих — публічні сторінки: лендінг, правові сторінки, 404.
   Спирається на tokens/base/components застосунку — той самий папір,
   графіт і штрихування, що й у продукті.
   ========================================================================= */

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { font-size: 15px; line-height: 1.55; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 780px; }

/* ---------- Навігація ---------- */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--hairline-soft); }
.nav__row { display: flex; align-items: center; gap: 24px; min-height: 66px; }
.nav__links { display: flex; gap: 4px; margin-left: 20px; }
.nav__links a {
  font-size: 14px; color: var(--text-mid); text-decoration: none;
  padding: 7px 12px; border-radius: 999px;
}
.nav__links a:hover { color: var(--text-hi); background: var(--ink-1); }
.nav__cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }
@media (max-width: 860px) { .nav__links { display: none; } }
@media (max-width: 480px) { .nav__cta .btn--ghost { display: none; } }

/* ---------- Загальні секції ---------- */
.section { padding: 88px 0; position: relative; }
.section--tint { background: color-mix(in srgb, var(--ink-1) 55%, transparent); border-block: 1px solid var(--hairline-soft); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  color: var(--accent); letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow__num {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--accent); font-size: 11px;
}
.h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.12; font-weight: 700; letter-spacing: -.015em; margin: 0 0 14px; }
.h2 em, .h1 em { font-style: normal; font-family: var(--font-hand); color: var(--accent); position: relative; white-space: nowrap; }
.h2 em::after, .h1 em::after {
  content: ""; position: absolute; left: -2px; right: -4px; bottom: -.08em; height: .22em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'%3E%3Cpath d='M1 5.5 C 22 2, 50 6.5, 99 3' fill='none' stroke='%23c8631a' stroke-width='2.4' stroke-linecap='round' opacity='.6'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.lead { font-size: 17.5px; color: var(--text-mid); max-width: 56ch; margin: 0; }
.section__head { max-width: 720px; margin-bottom: 44px; }

/* ---------- Перший екран ---------- */
.hero { padding: 56px 0 72px; }
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
.h1 { font-size: clamp(36px, 5.4vw, 62px); line-height: 1.04; font-weight: 700; letter-spacing: -.025em; margin: 0 0 22px; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 32px 0 18px; }
.hero__note { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--text-lo); }
.hero__note span { display: inline-flex; align-items: center; gap: 6px; }
.hero__note .icon { color: var(--ok); width: 15px; height: 15px; }
.hero__stage { position: relative; display: grid; place-items: center; }
.hero__stage .dial { width: min(78vw, 400px); }
.dial.is-demo .dial__mask-hole { transition: none; }
.hero__badge {
  position: absolute; right: 2%; bottom: 6%;
  display: flex; align-items: center; gap: 10px;
  background: var(--paper-raised); border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-m); padding: 10px 14px;
  box-shadow: var(--shadow-2);
  font-size: 13px; transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.hero__badge b { font-family: var(--font-mono); font-weight: 500; }
.hero__badge.is-hidden { opacity: 0; transform: translateY(8px); }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero__stage { order: -1; }
  .hero__badge { right: 0; bottom: 0; }
}

/* ---------- «Проблема»: картки сходинками зі стрілками ---------- */
.flow { position: relative; display: grid; grid-template-columns: repeat(20, 1fr); row-gap: 26px; }
.flow__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
.flow__svg path { fill: none; stroke: var(--accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.flow__card { position: relative; z-index: 2; padding: 26px 28px 28px; border-radius: 22px; }
.flow__card--1 { grid-column: 1 / 9; grid-row: 1 / 3; align-self: center; }
.flow__card--2 { grid-column: 11 / 20; grid-row: 1; }
.flow__card--3 { grid-column: 12 / 21; grid-row: 2; }
.flow__num {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent-soft); color: var(--text-hi);
  font-family: var(--font-mono); font-size: 16px; font-weight: 600; margin-bottom: 16px;
}
.flow__card h3 { font-size: 20px; line-height: 1.25; margin: 0 0 8px; }
.flow__card p { margin: 0; color: var(--text-mid); font-size: 14.5px; }
@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; row-gap: 44px; }
  .flow__card--1, .flow__card--2, .flow__card--3 { grid-column: 1; grid-row: auto; }
}

/* ---------- Розділи продукту: текст + живий макет ---------- */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.split--rev { grid-template-columns: 1.1fr .9fr; }
.split--rev .split__text { order: 2; }
@media (max-width: 960px) {
  .split, .split--rev { grid-template-columns: 1fr; gap: 32px; }
  .split--rev .split__text { order: 0; }
}
.points { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-direction: column; gap: 14px; }
.points li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 15px; color: var(--text-mid); }
.points li::before {
  content: ""; width: 16px; height: 4px; border-radius: 2px; margin-top: 10px;
  background: var(--accent); transform: rotate(-14deg);
}
.points b { color: var(--text-hi); font-weight: 600; }

/* Ремарка про інтеграції з календарями */
.integrations { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.integrations__label {
  font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-lo); margin-right: 4px;
}
.integrations__item {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--text-hi);
  background: var(--paper-raised);
  border: 1px solid var(--hairline-soft);
}
.integrations__item .icon { color: var(--accent); }

.mock { padding: 18px; border-radius: var(--radius-xl); }
.mock__bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: 12px; color: var(--text-lo); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }
.mock__dots { display: flex; gap: 5px; }
.mock__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); }

/* Макет дня */
.mday { display: grid; grid-template-columns: 44px 1fr 1fr; --hour: 46px; }
.mday__hours { position: relative; }
.mday__hours span { position: absolute; right: 8px; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-lo); transform: translateY(-7px); }
.mday__col { position: relative; border-left: 1px solid var(--hairline-soft); height: calc(var(--hour) * 6);
  background-image: repeating-linear-gradient(to bottom, var(--hairline-soft) 0 1px, transparent 1px var(--hour)); }
.mday__title { font-size: 10.5px; font-family: var(--font-mono); letter-spacing: .08em; color: var(--text-lo); padding: 0 0 8px 10px; }
.mday__inner { position: absolute; inset: 0 6px; }
.mday .block { cursor: default; }
.mday .block:hover { transform: none; box-shadow: none; }
.mday__heads { display: grid; grid-template-columns: 44px 1fr 1fr; }
.reveal .block { animation: none; opacity: 0; }
.reveal.is-visible .block { animation: block-in .5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms); }

/* Макет команди */
.mteam { display: grid; gap: 12px; }
.mteam__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mteam__kpis .kpi__value { font-size: 19px; }
.mperson { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; }
.mperson__name { font-size: 14px; font-weight: 600; }
.mperson__task { font-size: 12.5px; color: var(--text-mid); display: flex; align-items: center; gap: 6px; }
.mperson__clock { font-family: var(--font-mono); font-size: 17px; }
.mperson .strip { grid-column: 1 / -1; }
.mperson__warn { grid-column: 1 / -1; font-size: 12.5px; color: var(--text-mid); border: 1px dashed color-mix(in srgb, var(--warn) 60%, transparent); border-radius: var(--radius-s); padding: 6px 10px; }
.mperson__warn b { color: var(--text-hi); }

/* Макет картки винагороди */
.mtimer { display: grid; justify-items: center; gap: 18px; }
.mtimer .dial { width: min(70vw, 300px); }
.mtimer .reward { animation: none; }

/* ---------- Аркуш ---------- */
.section--sheet { background: color-mix(in srgb, var(--ink-1) 55%, transparent); border-block: 1px solid var(--hairline-soft); }
.sheet-stage { position: relative; min-height: 600px; }
.sheet-stage canvas { display: block; border-radius: 6px; box-shadow: 0 2px 0 rgba(0,0,0,.04), 0 22px 44px -18px rgba(42,35,24,.45); }
.sheet-stage__back { position: absolute; right: 0; top: 0; width: 64%; transform: rotate(4deg); opacity: .96; }
.sheet-stage__front { position: absolute; left: 4%; top: 46px; width: 52%; transform: rotate(-3deg); }
.sheet-stage__pair {
  position: absolute; right: 2%; bottom: 0;
  display: flex; gap: 12px;
  background: var(--paper-raised); border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-l); padding: 12px; box-shadow: var(--shadow-2);
}
.sheet-stage__pair figure { margin: 0; text-align: center; }
.sheet-stage__pair canvas { width: 118px; box-shadow: none; border: 1px solid var(--hairline-soft); }
.sheet-stage__pair figcaption { font-family: var(--font-hand); font-size: 13px; font-weight: 700; margin-top: 6px; color: var(--text-mid); }
.sheet-stage__pair figure:first-child figcaption { color: var(--ok); }
.sheet-stage__pair figure:last-child figcaption { color: var(--accent); }
@media (max-width: 960px) {
  .sheet-stage { min-height: 0; display: grid; gap: 14px; justify-items: center; }
  .sheet-stage__back { display: none; }
  .sheet-stage__front, .sheet-stage__pair { position: static; transform: none; }
  .sheet-stage__front { width: min(100%, 420px); }
}

/* ---------- Для кого ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.bento__item { padding: 22px; border-radius: var(--radius-l); display: flex; flex-direction: column; gap: 8px; }
.bento__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.bento__item:nth-child(2) { grid-column: span 2; }
.bento__item h3 { font-size: 16px; margin: 6px 0 0; }
.bento__item p { font-size: 14px; color: var(--text-mid); margin: 0; }
.bento__item > .icon { color: var(--accent); width: 24px; height: 24px; }
.bento__swatches { display: flex; gap: 8px; margin-top: auto; padding-top: 18px; }
.bento__swatches span {
  width: 34px; height: 34px; border-radius: 8px;
  border: 1.4px solid var(--c);
  background: repeating-linear-gradient(135deg, var(--c) 0 1.4px, transparent 1.4px 6px), color-mix(in srgb, var(--c) 12%, var(--paper-raised));
}
@media (max-width: 820px) {
  .bento { grid-template-columns: 1fr; }
  .bento__item:nth-child(n) { grid-column: auto; grid-row: auto; }
}

/* ---------- Ціни ---------- */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 900px; }
.price { padding: 28px; border-radius: var(--radius-xl); display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.price--main { border-color: color-mix(in srgb, var(--accent) 45%, var(--hairline-soft)); box-shadow: var(--shadow-2); }
.price--soon::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--text-lo) 14%, transparent) 0 1.2px, transparent 1.2px 9px);
  mask-image: linear-gradient(200deg, #000, transparent 55%);
}
.price__name { font-family: var(--font-hand); font-size: 20px; font-weight: 700; }
.price__value { font-family: var(--font-mono); font-size: 40px; font-weight: 500; line-height: 1; }
.price__value small { font-size: 14px; color: var(--text-lo); font-family: var(--font-ui); margin-left: 6px; }
.price__desc { color: var(--text-mid); font-size: 14px; margin: 0; }
.price .points { margin-top: 4px; gap: 9px; }
.price .points li { font-size: 14px; }
.price .btn { margin-top: auto; }
@media (max-width: 760px) { .pricing { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; }
.faq__item { border-bottom: 1px dashed var(--hairline); }
.faq__q {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 2px; font-size: 16px; font-weight: 600;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q .icon { color: var(--text-lo); transition: transform .2s var(--ease); }
.faq__item[open] .faq__q .icon { transform: rotate(45deg); color: var(--accent); }
.faq__a { padding: 0 2px 20px; color: var(--text-mid); margin: 0; max-width: 68ch; }

/* ---------- Фінальний заклик ---------- */
.final { text-align: center; padding: 96px 0; }
.final .h2 { margin-bottom: 12px; }
.final p { color: var(--text-mid); margin: 0 0 28px; }
.final__strokes { display: flex; justify-content: center; gap: 10px; margin-bottom: 26px; }
.final__strokes i { width: 6px; border-radius: 3px; background: var(--c); transform: rotate(10deg); }

/* ---------- Підвал ---------- */
.footer { border-top: 1px solid var(--hairline-soft); padding: 40px 0 48px; font-size: 13px; color: var(--text-lo); }
.footer__row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer a { color: var(--text-mid); text-decoration: none; }
.footer a:hover { color: var(--text-hi); }
.footer__legal { margin-top: 18px; line-height: 1.7; }

/* ---------- Правові сторінки ---------- */
.legal { padding: 48px 0 80px; }
.legal h1 { font-size: clamp(30px, 4vw, 40px); line-height: 1.1; margin: 0 0 8px; letter-spacing: -.015em; }
.legal__meta { color: var(--text-lo); font-size: 13.5px; margin-bottom: 36px; }
.legal h2 { font-size: 19px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--text-mid); }
.legal ul { padding-left: 20px; }
.legal li { margin: 4px 0; }
.legal a { color: var(--accent); }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 0; }
.notfound__code { font-family: var(--font-mono); font-size: clamp(72px, 14vw, 140px); line-height: 1; color: var(--hairline); letter-spacing: -.04em; }
.notfound p { color: var(--text-mid); max-width: 44ch; margin: 12px auto 26px; }
