/* FLOW landing — tokens */
:root {
  --navy: #1d1b3a;
  --navy-2: #2a2752;
  --violet: #5b3df5;
  --violet-soft: #ece8ff;
  --paper: #f8f7fc;
  --tint: #efedf8;
  --ink: #1d1b3a;
  --muted: #59567a;
  --line: #e2dff0;
  --white: #ffffff;

  /* Stage colors (same order as the workflow) */
  --s-idea: #9097ad;
  --s-iok: #8b7cf6;
  --s-draft: #e3a33b;
  --s-team: #5b3df5;
  --s-client: #d4537e;
  --s-ready: #1b9e8f;
  --s-pub: #2f7de1;
  --s-ver: #23a35a;

  --display: "Familjen Grotesk", system-ui, sans-serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 7px;
  --gutter: clamp(16px, 4vw, 40px);
  --focus: 0 0 0 3px var(--white), 0 0 0 5px var(--violet);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--navy); color: var(--white); padding: 10px 14px; border-radius: var(--r-sm); text-decoration: none; }
.skip:focus { top: 12px; }

/* Trust strip */
.trust { background: var(--navy); color: #c9c5ea; font-size: .84rem; padding: 7px 0; }
.trust a { color: var(--white); text-underline-offset: 3px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(248, 247, 252, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.3rem var(--display); letter-spacing: .02em; }
.logo svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 26px; margin-left: 12px; }
.nav a { text-decoration: none; color: var(--muted); font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--ink); }
.top__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { display: inline-grid; place-items: center; min-width: 40px; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: .85rem; text-decoration: none; color: var(--muted); background: var(--white); }
.lang:hover { color: var(--ink); border-color: #c9c4e6; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 1rem var(--body); text-decoration: none; border: 1.5px solid transparent; transition: background-color .15s, border-color .15s, color .15s; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: .9rem; }
.btn--primary { background: var(--violet); color: var(--white); }
.btn--primary:hover { background: #4a2ee0; }
.btn--ghost { border-color: #cdc8e8; color: var(--ink); background: var(--white); }
.btn--ghost:hover { border-color: var(--navy); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--violet-soft); }
.btn--outline-light { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn--outline-light:hover { border-color: var(--white); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row--center { justify-content: center; }

/* Hero */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.35rem, 4.9vw, 3.9rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.04; max-width: 15ch; }
.lead { margin-top: 22px; font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--muted); max-width: 46ch; }
.hero .cta-row { margin-top: 30px; }

/* Mock: app window + calendar */
.app { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 30px 60px -30px rgba(29, 27, 58, .35), 0 2px 0 rgba(29,27,58,.03); }
.app__bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .82rem; }
.app__dots { display: flex; gap: 5px; }
.app__dots i { width: 9px; height: 9px; border-radius: 50%; background: #e4e1f0; }
.app__title { font-weight: 600; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app__seg { display: flex; background: var(--tint); border-radius: 999px; padding: 3px; font-size: .75rem; }
.app__seg > * { padding: 3px 10px; border-radius: 999px; color: var(--muted); font-weight: 500; }
.app__seg b { background: var(--white); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(29,27,58,.12); }
.cal { padding: 12px 14px 18px; }
.cal__head, .cal__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.cal__head span { font-size: .72rem; color: var(--muted); font-weight: 600; padding: 0 6px 6px; }
.d { min-height: 74px; border: 1px solid #efedf6; border-radius: 9px; padding: 6px; display: flex; flex-direction: column; gap: 4px; background: #fcfcfe; }
.d em { font-style: normal; font-size: .72rem; color: var(--muted); font-weight: 600; }
.d--today { border-color: var(--violet); box-shadow: inset 0 0 0 1px var(--violet); }
.d--today em { color: var(--violet); }
.bar { display: block; font-size: .66rem; font-weight: 600; line-height: 1; color: var(--white); padding: 5px 6px; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transform-origin: left center; }
.s-idea { background: var(--s-idea); } .s-iok { background: var(--s-iok); } .s-draft { background: var(--s-draft); }
.s-team { background: var(--s-team); } .s-client { background: var(--s-client); } .s-ready { background: var(--s-ready); }
.s-pub { background: var(--s-pub); } .s-ver { background: var(--s-ver); }
.toast { position: absolute; left: -22px; bottom: -26px; display: flex; gap: 12px; align-items: flex-start; max-width: 330px; background: var(--navy); color: var(--white); padding: 12px 16px; border-radius: var(--r-md); box-shadow: 0 18px 40px -16px rgba(29,27,58,.6); }
.toast strong { display: block; font-size: .85rem; font-weight: 600; line-height: 1.35; }
.toast small { display: block; font-size: .75rem; color: #b9b5df; margin-top: 3px; }
.toast__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--s-client); margin-top: 5px; }
.hero__visual figcaption { margin-top: 44px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.legend { display: inline-flex; gap: 3px; }
.legend i { width: 14px; height: 6px; border-radius: 3px; }

/* The one orchestrated moment: stage bars fill in on load, then the activity notice appears. */
@media (prefers-reduced-motion: no-preference) {
  .cal .bar { animation: fill .5s cubic-bezier(.2,.7,.2,1) both; }
  .cal .d:nth-child(1) .bar { animation-delay: .15s; } .cal .d:nth-child(3) .bar { animation-delay: .22s; }
  .cal .d:nth-child(5) .bar { animation-delay: .29s; } .cal .d:nth-child(6) .bar { animation-delay: .36s; }
  .cal .d:nth-child(7) .bar { animation-delay: .43s; } .cal .d:nth-child(8) .bar { animation-delay: .5s; }
  .cal .d:nth-child(10) .bar { animation-delay: .57s; } .cal .d:nth-child(11) .bar { animation-delay: .64s; }
  .cal .d:nth-child(13) .bar { animation-delay: .71s; } .cal .d:nth-child(14) .bar { animation-delay: .78s; }
  .toast { animation: rise .5s 1.15s cubic-bezier(.2,.7,.2,1) both; }
}
@keyframes fill { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Facts row */
.facts { padding: 8px 0 clamp(48px, 7vw, 80px); }
.facts__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts__row li { padding: 22px 22px 22px 0; display: flex; flex-direction: column; gap: 6px; }
.facts__row li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.facts__row b { font: 700 1.35rem/1.15 var(--display); letter-spacing: -0.01em; }
.facts__row span { color: var(--muted); font-size: .93rem; line-height: 1.45; }

/* Sections */
.sec { padding: clamp(64px, 9vw, 112px) 0; }
.sec--tint { background: var(--tint); }
.sec--navy { background: var(--navy); color: var(--white); }
.sec-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 52px); }
.sec-head h2, .split__copy h2, .close h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: -0.025em; }
.sec-head p { margin-top: 14px; color: var(--muted); font-size: 1.1rem; max-width: 60ch; }
.sec-head--light p { color: #c4c0e6; }

/* Problem vs solution */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.vs__col { border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); }
.vs__col h3 { font-size: 1.35rem; margin-bottom: 18px; }
.vs__col li { position: relative; padding-left: 32px; margin-top: 14px; }
.vs__col li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; }
.vs__col--before { background: var(--white); border: 1px dashed #cbc7df; color: var(--muted); }
.vs__col--before h3 { color: var(--ink); }
.vs__col--before li::before { background: #efedf6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7 7l6 6M13 7l-6 6' stroke='%239097ad' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/20px no-repeat; }
.vs__col--after { background: var(--white); border: 1.5px solid var(--violet); box-shadow: 0 20px 40px -28px rgba(91, 61, 245, .55); }
.vs__col--after li::before { background: var(--violet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.steps li { position: relative; padding-top: 22px; border-top: 2px solid rgba(255,255,255,.18); }
.steps__n { display: block; font: 700 3.4rem/1 var(--display); color: #a594ff; margin-bottom: 14px; }
.steps h3 { font-size: 1.5rem; margin-bottom: 10px; }
.steps p { color: #cfcbef; max-width: 40ch; }
.track { margin-top: clamp(40px, 6vw, 64px); display: flex; flex-wrap: wrap; gap: 8px; counter-reset: st; }
.track li { counter-increment: st; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; background: var(--navy-2); font-size: .88rem; font-weight: 500; color: #e9e7fb; }
.track li::before { content: counter(st); display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--c); color: var(--white); font-size: .75rem; font-weight: 700; }

/* Split layout */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.sub { margin-top: 14px; color: var(--muted); font-size: 1.1rem; max-width: 46ch; }
.checks { margin-top: 26px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; max-width: 52ch; }
.checks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 5px; background: var(--violet-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.5 2.5L13 6.4' fill='none' stroke='%235b3df5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }

/* Demo card: AI review */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 28px); box-shadow: 0 30px 60px -34px rgba(29,27,58,.35); }
.demo figcaption { margin-top: 14px; font-size: .85rem; color: var(--muted); }
.review__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.chip { background: var(--violet-soft); color: var(--violet); font-weight: 600; font-size: .8rem; padding: 4px 12px; border-radius: 999px; }
.review__post { font-size: .82rem; color: var(--muted); }
.review__rows { display: grid; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid #f0eef7; font-size: .93rem; }
.row b { font-family: var(--display); text-align: right; }
.score { display: inline-flex; gap: 3px; }
.score i { width: 16px; height: 8px; border-radius: 3px; background: #e9e6f3; }
.score[data-s="5"] i, .score[data-s="4"] i:nth-child(-n+4), .score[data-s="2"] i:nth-child(-n+2) { background: var(--s-ver); }
.score--warn[data-s="2"] i:nth-child(-n+2) { background: var(--s-draft); }
.flag { margin-top: 14px; padding: 12px 14px; border-radius: var(--r-md); background: #fdf4e4; border-left: 4px solid var(--s-draft); }
.flag strong { display: block; font-size: .92rem; }
.flag p { font-size: .87rem; color: #6b5a3a; margin-top: 3px; }
.flag--info { background: #eef2fd; border-left-color: var(--s-pub); }
.flag--info p { color: #3e4f73; }

/* Capabilities */
.caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cap { background: var(--white); border-radius: var(--r-lg); padding: 20px 22px 26px; border: 1px solid var(--line); display: flex; flex-direction: column; }
.cap h3 { font-size: 1.32rem; margin: 22px 0 10px; }
.cap > p { color: var(--muted); font-size: .98rem; }
.cap__mock { background: var(--paper); border: 1px solid #ebe8f4; border-radius: var(--r-md); padding: 16px; min-height: 164px; font-size: .86rem; }
.pillars { display: flex; height: 12px; border-radius: 6px; overflow: hidden; gap: 2px; }
.pillars span { width: var(--w); background: var(--c); }
.cap__line { margin-top: 14px; }
.cap__quote { margin-top: 8px; color: var(--muted); font-style: italic; line-height: 1.45; }
.sign { display: grid; gap: 8px; align-content: start; }
.sign__row { background: var(--white); border: 1px solid #ebe8f4; border-radius: 9px; padding: 8px 10px 8px 34px; position: relative; display: grid; }
.sign__row::before { content: ""; position: absolute; left: 10px; top: 11px; width: 16px; height: 16px; border-radius: 50%; }
.sign__row.ok::before { background: var(--s-ver) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2L11.5 5.7' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.sign__row.void { color: var(--muted); background: transparent; border-style: dashed; }
.sign__row.void::before { border: 1.5px solid #b6b2cc; top: 9px; }
.sign__row small { font-size: .75rem; color: var(--muted); }
.sig { font: 600 1.05rem/1.2 "Familjen Grotesk", cursive; font-style: italic; color: var(--navy); }
.mini-phone { display: grid; gap: 8px; align-content: start; max-width: 240px; margin: 0 auto; width: 100%; border: 6px solid var(--navy); border-radius: 22px; background: var(--white); padding: 12px; }
.mini-phone__brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .82rem; }
.mini-phone__brand span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: #0f766e; color: var(--white); font-size: .66rem; font-weight: 700; }
.mini-phone__card { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 8px; background: var(--paper); font-size: .78rem; font-weight: 500; }
.mini-phone__card i { width: 4px; height: 26px; border-radius: 2px; background: var(--c); }
.mini-phone__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: .68rem; font-weight: 600; text-align: center; }
.mini-phone__btns span { padding: 6px 4px; white-space: nowrap; border-radius: 999px; border: 1px solid var(--line); }
.mini-phone__btns .ok { background: var(--s-ver); color: var(--white); border-color: transparent; }
.more { margin-top: 36px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding-top: 28px; border-top: 1px solid #d9d5ea; }
.more h3 { font-size: 1.05rem; margin-bottom: 6px; }
.more p { font-size: .93rem; color: var(--muted); }

/* Closing CTA */
.close { background: var(--violet); color: var(--white); padding: clamp(64px, 9vw, 104px) 0; text-align: center; }
.close__in { max-width: 760px; }
.close p { margin: 16px auto 0; max-width: 54ch; color: #e6e1ff; font-size: 1.1rem; }
.close .cta-row { margin-top: 30px; }
.close__todo { font-size: .88rem !important; opacity: .85; }
.close__alt { font-size: .95rem !important; }
.close a:not(.btn) { color: var(--white); text-underline-offset: 3px; }
.close :focus-visible { box-shadow: 0 0 0 3px var(--violet), 0 0 0 5px var(--white); }
.sec--navy :focus-visible, .trust :focus-visible, .foot :focus-visible { box-shadow: 0 0 0 3px var(--navy), 0 0 0 5px var(--white); }

/* Footer */
.foot { background: var(--navy); color: #c9c5ea; padding: 28px 0; font-size: .92rem; }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
.foot a { color: var(--white); text-underline-offset: 3px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 18px; }

/* Responsive */
@media (max-width: 960px) {
  .nav { display: none; }
  .hero__grid, .split { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 18ch; }
  .facts__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts__row li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts__row li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .caps { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toast { left: 12px; }
}
@media (max-width: 680px) {
  .vs, .steps { grid-template-columns: minmax(0, 1fr); }
  .more { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .top__actions .btn--sm { padding: 0 12px; }
  .cta-row .btn { flex: 1 1 100%; }
  .d { min-height: 60px; padding: 4px; }
  .bar { font-size: .58rem; padding: 4px; }
  .cal { padding: 10px 8px 14px; }
  .cal__head, .cal__grid { gap: 4px; }
  .app__seg { display: none; }
  .toast { position: relative; left: auto; bottom: auto; margin: -6px 10px 10px; max-width: none; }
  .hero__visual figcaption { margin-top: 14px; }
}
@media (max-width: 420px) {
  .facts__row { grid-template-columns: minmax(0, 1fr); }
  .facts__row li, .facts__row li + li { padding: 18px 0; border-left: 0; }
  .facts__row li + li { border-top: 1px solid var(--line); }
  .logo span { font-size: 1.15rem; }
  .top__in { gap: 10px; }
}
