/* Clario — warm editorial, human-first compliance AI */
:root {
  --cream: #FBF7F0;
  --cream-soft: #F2EAD9;
  --paper: #FFFFFF;
  --ink-900: #1C2530;
  --ink-700: #3D4A59;
  --ink-soft: #64707D;
  --ink-faint: #94A0AB;
  --amber-600: #B4650E;
  --amber-500: #C2760F;
  --amber-100: #F6E3C4;
  --line: rgba(28,37,48,.12);
  --line-soft: rgba(28,37,48,.07);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 40px -18px rgba(28,37,48,.22);
  --shadow-sm: 0 6px 16px -8px rgba(28,37,48,.18);
  --font-head: "Newsreader", serif;
  --font-body: "Inter", sans-serif;
  --maxw: 1180px;
  --gutter: 24px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink-700); font-family: var(--font-body); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink-900); font-weight: 600; line-height: 1.18; margin: 0; }
p { margin: 0; }
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.eyebrow { display: inline-block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--amber-600); font-weight: 600; margin-bottom: 10px; }
.lead { color: var(--ink-soft); font-size: 1.02rem; max-width: 640px; }
.text-accent { color: var(--amber-600); font-style: italic; }
.section { padding-block: 84px; }
.section--soft { background: var(--cream-soft); }
.section--paper { background: var(--paper); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-head { max-width: 680px; }
.section-head--center { max-width: 680px; margin-inline: auto; text-align: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: var(--radius-sm); font-weight: 600; font-size: .92rem; font-family: var(--font-body); border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: var(--ink-900); color: #fff; }
.btn--primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn--amber { background: var(--amber-500); color: #fff; }
.btn--amber:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn--line { border-color: var(--line); color: var(--ink-900); }
.btn--line:hover { border-color: var(--ink-700); }
.btn--underline { border: none; padding: 8px 0; border-bottom: 2px solid var(--ink-900); border-radius: 0; }
.btn--lg { padding: 14px 26px; font-size: .98rem; }
.btn--block { width: 100%; justify-content: center; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 70; background: rgba(251,247,240,.86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-soft); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; color: var(--ink-900); }
.brand__mark { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--ink-900); }
.nav__badge { display: inline-flex; align-items: center; gap: 6px; font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; font-weight: 700; color: var(--amber-600); background: var(--amber-100); border-radius: 999px; padding: 4px 10px; margin-left: 10px; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a:not(.btn) { font-size: .92rem; color: var(--ink-700); font-weight: 500; }
.nav__links a:not(.btn):hover { color: var(--ink-900); }
.nav__cta { display: flex; align-items: center; gap: 16px; }
.nav__login { font-size: .92rem; font-weight: 600; color: var(--ink-700); }
.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--ink-900); }
.nav__m-only { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; padding-top: 110px; padding-bottom: 90px; }
.hero__motion { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__motion video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: driftBlob 22s ease-in-out infinite; }
.hero__blob--a { width: 460px; height: 460px; background: var(--amber-100); top: -140px; left: -80px; animation-duration: 26s; }
.hero__blob--b { width: 380px; height: 380px; background: #E7DCC4; top: 60px; right: -100px; animation-duration: 20s; animation-delay: -6s; }
.hero__blob--c { width: 320px; height: 320px; background: var(--amber-100); bottom: -160px; left: 30%; animation-duration: 24s; animation-delay: -12s; }
@keyframes driftBlob { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(30px,-24px) scale(1.06); } 66% { transform: translate(-24px,18px) scale(.96); } }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero__copy h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); }
.hero__sub { margin-top: 20px; color: var(--ink-700); font-size: 1.08rem; max-width: 520px; }
.hero__actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero__note { margin-top: 22px; font-size: .84rem; color: var(--ink-faint); }

/* Doc stack visual */
.doc-stack { position: relative; height: 420px; }
.doc-card { position: absolute; width: 300px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.doc-card__bar { height: 8px; border-radius: 4px; background: var(--line-soft); margin-bottom: 10px; }
.doc-card__bar--w60 { width: 60%; }
.doc-card__bar--w80 { width: 80%; }
.doc-card__bar--w40 { width: 40%; }
.doc-card--1 { top: 10px; left: 40px; transform: rotate(-6deg); z-index: 1; }
.doc-card--2 { top: 90px; left: 130px; transform: rotate(4deg); z-index: 2; }
.doc-card--3 { top: 190px; left: 60px; transform: rotate(-2deg); z-index: 3; }
.doc-card__tag { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; color: var(--amber-600); background: var(--amber-100); border-radius: 999px; padding: 3px 9px; margin-bottom: 12px; }
.doc-card__flag { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .78rem; color: var(--ink-soft); }
.doc-card__flag i { width: 8px; height: 8px; border-radius: 50%; background: #DC6803; display: inline-block; }

/* Trust strip */
.trust { padding-block: 30px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); overflow: hidden; }
.trust__label { text-align: center; font-size: .84rem; color: var(--ink-faint); margin-bottom: 18px; }
.trust__row { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 30px; }
.trust__item { font-family: var(--font-head); font-style: italic; color: var(--ink-soft); font-size: 1rem; }

/* Problem: redline compare */
.redline-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 44px; }
.redline-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.redline-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.redline-card__tag { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.redline-card--before .redline-card__tag { color: #B42318; }
.redline-card--after .redline-card__tag { color: #16794F; }
.redline-line { font-size: .9rem; padding: 6px 0; border-bottom: 1px dashed var(--line-soft); }
.redline-line del { color: #B42318; text-decoration-color: #B42318; }
.redline-line ins { color: #16794F; text-decoration: none; background: #E6F4EC; padding: 1px 4px; border-radius: 3px; }

/* Solution pipeline */
.pipeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 44px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pipeline__step { padding: 32px 28px; border-right: 1px solid var(--line); position: relative; }
.pipeline__step:last-child { border-right: none; }
.pipeline__num { font-family: var(--font-head); font-size: 2.1rem; color: var(--amber-500); font-style: italic; }
.pipeline__step h3 { margin-top: 10px; font-size: 1.1rem; }
.pipeline__step p { margin-top: 8px; color: var(--ink-soft); font-size: .9rem; }

/* AI tech vertical spec list */
.spec-vlist { margin-top: 40px; border-top: 1px solid var(--line); }
.spec-vrow { display: grid; grid-template-columns: 180px 1fr; gap: 30px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.spec-vrow__k { font-family: var(--font-head); font-style: italic; color: var(--amber-600); font-size: 1.05rem; }
.spec-vrow h3 { font-size: 1.05rem; }
.spec-vrow p { margin-top: 8px; color: var(--ink-soft); font-size: .92rem; max-width: 640px; }
.tag-row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.tag { font-size: .74rem; background: var(--cream-soft); border: 1px solid var(--line); color: var(--ink-700); padding: 4px 10px; border-radius: 999px; }

/* Features asymmetric */
.feat-asym { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin-top: 44px; }
.feat-asym__main { background: var(--ink-900); color: #fff; border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 320px; }
.feat-asym__main h3 { color: #fff; font-size: 1.4rem; }
.feat-asym__main p { color: rgba(255,255,255,.7); margin-top: 10px; }
.feat-col { display: flex; flex-direction: column; gap: 20px; }
.feat-sm { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; flex: 1; }
.feat-sm h3 { font-size: 1rem; }
.feat-sm p { margin-top: 8px; color: var(--ink-soft); font-size: .88rem; }
.feat-row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }

/* How it works numbered horizontal */
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 44px; }
.step-card { text-align: left; }
.step-card__n { font-family: var(--font-head); font-style: italic; font-size: 2.4rem; color: var(--amber-100); -webkit-text-stroke: 1.5px var(--amber-500); }
.step-card h3 { margin-top: 10px; font-size: 1.02rem; }
.step-card p { margin-top: 6px; color: var(--ink-soft); font-size: .88rem; }

/* Infra trio */
.infra-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.infra-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.infra-card__ico { width: 42px; height: 42px; border-radius: 10px; background: var(--amber-100); display: grid; place-items: center; color: var(--amber-600); margin-bottom: 14px; }
.infra-card h3 { font-size: 1.02rem; }
.infra-card p { margin-top: 8px; color: var(--ink-soft); font-size: .88rem; }

/* Market split */
.market-split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: center; }
.market-num { font-family: var(--font-head); font-size: clamp(3rem, 8vw, 5.4rem); font-style: italic; color: var(--ink-900); line-height: 1; }
.market-num span { display: block; font-family: var(--font-body); font-style: normal; font-size: 1rem; color: var(--ink-soft); margin-top: 10px; font-weight: 500; }
.market-rows { display: flex; flex-direction: column; gap: 22px; }
.market-row2 { border-top: 1px solid var(--line); padding-top: 16px; }
.market-row2 b { font-family: var(--font-head); font-weight: 600; color: var(--ink-900); }
.market-row2 p { margin-top: 6px; color: var(--ink-soft); font-size: .92rem; }

/* Traction stat row */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 44px; border-top: 1px solid var(--line); }
.stat-cell { padding: 30px 20px; border-right: 1px solid var(--line); }
.stat-cell:last-child { border-right: none; }
.stat-cell__num { font-family: var(--font-head); font-size: 2.1rem; color: var(--ink-900); }
.stat-cell__label { margin-top: 6px; color: var(--ink-soft); font-size: .86rem; }
.banner { margin-top: 30px; background: var(--amber-100); border-radius: var(--radius-sm); padding: 16px 20px; font-size: .92rem; color: var(--ink-700); }

/* Roadmap vertical timeline */
.vtimeline { margin-top: 44px; border-left: 2px solid var(--line); padding-left: 30px; display: flex; flex-direction: column; gap: 30px; }
.vtimeline__item { position: relative; }
.vtimeline__item::before { content: ''; position: absolute; left: -36px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink-faint); }
.vtimeline__item--done::before { background: var(--amber-500); }
.vtimeline__state { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--amber-600); }
.vtimeline__item h3 { margin-top: 4px; font-size: 1.05rem; }
.vtimeline__item p { margin-top: 6px; color: var(--ink-soft); font-size: .9rem; }

/* Team */
.team-row2 { display: flex; flex-wrap: wrap; justify-content: center; gap: 50px; margin-top: 48px; }
.member-sq { width: 260px; text-align: center; }
.member-sq__ph { width: 168px; height: 168px; border-radius: 22px; margin: 0 auto; background: var(--amber-100); display: grid; place-items: center; color: var(--amber-600); font-family: var(--font-head); font-weight: 600; font-size: 2.2rem; overflow: hidden; position: relative; border: 4px solid var(--paper); box-shadow: var(--shadow-sm); }
.member-sq__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.member-sq h3 { font-size: 1.2rem; margin-top: 16px; }
.member-sq .role { color: var(--amber-600); font-size: .86rem; font-weight: 600; }
.member-sq p { font-size: .9rem; color: var(--ink-soft); margin-top: 8px; }
.member-sq__socials { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 10px; }
.member-sq .li svg { width: 20px; height: 20px; }

/* CTA */
.cta-card { background: var(--ink-900); border-radius: 24px; padding: 60px; color: #fff; text-align: center; }
.cta-card h2 { color: #fff; }
.cta-card .lead { color: rgba(255,255,255,.7); margin-inline: auto; }
.cta-card__form { max-width: 560px; margin: 30px auto 0; display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.cta-card__form input { padding: 13px 16px; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; font-family: var(--font-body); font-size: .92rem; }
.cta-card__form input::placeholder { color: rgba(255,255,255,.4); }
.cta-card__note { margin-top: 14px; font-size: .78rem; color: rgba(255,255,255,.45); }
.form__ok { display: none; }
.form.sent .form__body { display: none; }
.form.sent .form__ok { display: block; }

/* Footer */
.footer { padding-block: 54px 30px; border-top: 1px solid var(--line-soft); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer__about { margin-top: 14px; max-width: 300px; font-size: .88rem; color: var(--ink-soft); }
.footer__contact { margin-top: 14px; max-width: 300px; font-size: .84rem; color: var(--ink-faint); display: flex; flex-direction: column; gap: 4px; }
.footer__contact a { color: var(--ink-faint); }
.footer h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-faint); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { font-size: .9rem; color: var(--ink-700); }
.footer ul a:hover { color: var(--ink-900); }
.footer__disclaimer { margin-top: 34px; font-size: .8rem; color: var(--ink-faint); max-width: 760px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.footer__bottom { margin-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: .82rem; color: var(--ink-faint); }
.footer__socials { display: flex; gap: 10px; }
.footer__socials a { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; border: 1px solid var(--line); }
.footer__socials svg { width: 17px; height: 17px; }

/* Reveal / counters */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.js .reveal { opacity: 0; }
body:not(.js) .reveal { opacity: 1; transform: none; }

/* Legal */
.legal { max-width: 760px; margin-inline: auto; padding-block: 60px; }
.legal h2 { margin-top: 34px; font-size: 1.2rem; }
.legal p, .legal li { color: var(--ink-soft); font-size: .95rem; }
.legal ul { padding-left: 20px; }
.legal__meta { color: var(--ink-faint); font-size: .85rem; margin-top: 6px; }
.callout { background: var(--amber-100); border-radius: var(--radius-sm); padding: 18px 22px; margin: 22px 0; }
.callout p { color: var(--ink-700); }

/* Auth */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 100dvh; }
.auth__aside { background: var(--ink-900); color: #fff; padding: 50px; display: flex; flex-direction: column; justify-content: space-between; }
.auth__quote { font-family: var(--font-head); font-style: italic; font-size: 1.4rem; line-height: 1.4; }
.auth__points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.auth__points li { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: rgba(255,255,255,.8); }
.auth__points .ic { width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; color: var(--amber-100); }
.auth__main { display: flex; align-items: center; justify-content: center; padding: 40px; }
.auth__card { width: 100%; max-width: 400px; }
.auth__back { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; color: var(--ink-soft); margin-bottom: 24px; }
.auth__card h1 { font-size: 1.7rem; }
.auth__card .sub { color: var(--ink-soft); margin-top: 6px; }
.oauth { display: grid; gap: 10px; margin-top: 26px; }
.oauth button { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--paper); font-family: var(--font-body); font-weight: 600; font-size: .9rem; cursor: pointer; }
.oauth svg { width: 18px; height: 18px; }
.divider { text-align: center; color: var(--ink-faint); font-size: .82rem; margin: 22px 0; position: relative; }
.divider::before, .divider::after { content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--line); }
.divider::before { left: 0; } .divider::after { right: 0; }
.field { margin-top: 14px; }
.field label { display: block; font-size: .84rem; font-weight: 600; color: var(--ink-700); margin-bottom: 6px; }
.field input, .field select { width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); font-family: var(--font-body); font-size: .92rem; background: var(--paper); }
.strength { height: 4px; border-radius: 2px; background: var(--line-soft); margin-top: 8px; overflow: hidden; }
.strength i { display: block; height: 100%; width: 0; transition: width .2s; }
.checkbox { display: flex; align-items: flex-start; gap: 8px; font-size: .84rem; color: var(--ink-soft); }
.auth__row { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font-size: .84rem; }
.auth__row a { color: var(--ink-700); font-weight: 600; }
.auth__foot { text-align: center; margin-top: 22px; font-size: .88rem; color: var(--ink-soft); }
.auth__foot a { color: var(--ink-900); font-weight: 600; }

/* --------------------------------------------------------------- Responsive */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .doc-stack { height: 280px; margin-top: 20px; }
  .redline-grid, .pipeline, .feat-asym, .feat-row3, .steps-row, .infra-trio, .market-split, .stat-strip { grid-template-columns: 1fr 1fr; }
  .pipeline { grid-template-columns: 1fr; }
  .pipeline__step { border-right: none; border-bottom: 1px solid var(--line); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 26px 20px; }
  .auth { grid-template-columns: 1fr; }
  .auth__aside { display: none; }

  .nav__links { display: none; }
  .nav__cta .btn, .nav__cta .nav__login { display: none; }
  .nav__toggle { display: grid; place-items: center; }
  .nav__links {
    display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    position: fixed; top: 90px; right: 14px; width: min(84vw, 320px);
    height: calc(100dvh - 104px); max-height: calc(100dvh - 104px);
    background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
    padding: 8px 20px 20px; overflow-y: auto; z-index: 60; box-shadow: var(--shadow);
  }
  .nav__links.is-open { display: flex; }
  .nav__links > a:not(.btn) { padding: 15px 4px; font-size: 1.05rem; color: var(--ink-900); border-bottom: 1px solid var(--line-soft); }
  .nav__m-only { display: inline-flex; width: 100%; justify-content: center; }
  .nav__m-login { margin-top: 18px; }
  .nav__m-demo { margin-top: 10px; }
  .nav__scrim { display: none; position: fixed; inset: 0; background: rgba(28,37,48,.4); z-index: 55; }
  .nav__scrim.is-open { display: block; }
}
@media (max-width: 640px) {
  .redline-grid, .feat-asym, .feat-row3, .steps-row, .infra-trio, .market-split, .stat-strip { grid-template-columns: 1fr; }
  .spec-vrow { grid-template-columns: 1fr; gap: 8px; }
  .cta-card { padding: 34px 24px; }
  .cta-card__form { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
}
