/* CalGantt website */
@font-face { font-family: 'Inter'; src: url('/assets/fonts/inter-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --bg: #ffffff; --bg-soft: #f7f7fc; --card: #ffffff; --line: #e5e7f0; --line-2: #d6d9e6;
  --ink: #0f172a; --ink-2: #334155; --muted: #5b6477;
  --brand: #4f46e5; --brand-2: #7c3aed; --brand-ink: #4338ca; --brand-soft: #eef2ff; --brand-line: #c7d2fe;
  --teal: #0f766e; --teal-soft: #e6f6f4;
  --ok: #15803d; --no: #b91c1c;
  --shadow: 0 1px 2px rgba(15,23,42,.06), 0 8px 24px -12px rgba(15,23,42,.18);
  --shadow-lg: 0 30px 60px -24px rgba(49,46,129,.35), 0 0 0 1px rgba(15,23,42,.06);
  --radius: 16px; --container: 1160px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020; --bg-soft: #111731; --card: #151c38; --line: #262f52; --line-2: #343f68;
    --ink: #eef1fb; --ink-2: #cdd3e6; --muted: #9aa3bd;
    --brand: #818cf8; --brand-2: #a78bfa; --brand-ink: #a5b4fc; --brand-soft: #1e2350; --brand-line: #3a4185;
    --teal: #5eead4; --teal-soft: #11302f;
    --ok: #4ade80; --no: #f87171;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
    --shadow-lg: 0 30px 60px -24px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.06);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-feature-settings: 'cv11', 'ss01'; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.025em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 720px; }
.center .lead { margin-left: auto; margin-right: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--brand); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }
section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 10px; }
.grad-text { background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
svg { width: 1.1em; height: 1.1em; flex: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; border-radius: 12px; font-weight: 650; font-size: 1rem; text-decoration: none; border: 1px solid transparent; transition: transform .15s, box-shadow .15s, background .15s; line-height: 1.2; }
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, #4f46e5, #6d28d9); color: #fff; box-shadow: 0 8px 20px -8px rgba(79,70,229,.7); }
.btn-primary:hover { box-shadow: 0 12px 26px -10px rgba(79,70,229,.8); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--brand-line); }
.btn-light { background: #fff; color: #312e81; }
.btn-sm { padding: 9px 14px; font-size: .92rem; border-radius: 10px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.brand-mark { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 22px; margin-left: 12px; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: .95rem; }
.nav-links a:hover { color: var(--brand-ink); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line-2); border-radius: 10px; width: 42px; height: 40px; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 22px; height: 22px; }
details.lang { position: relative; }
details.lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: .88rem; color: var(--ink-2); padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line-2); }
details.lang summary::-webkit-details-marker { display: none; }
details.lang ul { position: absolute; right: 0; top: calc(100% + 6px); background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); list-style: none; margin: 0; padding: 6px; min-width: 150px; }
details.lang a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
details.lang a:hover, details.lang a[aria-current] { background: var(--brand-soft); }

/* hero */
.hero { padding: 72px 0 40px; background: radial-gradient(1000px 500px at 85% -10%, color-mix(in srgb, var(--brand-2) 16%, transparent), transparent 70%), radial-gradient(900px 500px at -10% 10%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 70%); }
.hero-text { max-width: 820px; margin: 0 auto; text-align: center; }
.hero-text .lead { margin: 0 auto 28px; font-size: 1.22rem; }
.pill { display: inline-flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 600; color: var(--ink-2); background: var(--card); border: 1px solid var(--line); padding: 5px 14px 5px 5px; border-radius: 999px; margin-bottom: 22px; box-shadow: var(--shadow); }
.pill b { background: var(--brand-soft); color: var(--brand-ink); padding: 3px 10px; border-radius: 999px; font-size: .78rem; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.cta-note { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; margin-top: 20px; font-size: .92rem; color: var(--muted); }
.cta-note span { display: inline-flex; align-items: center; gap: 6px; }
.cta-note svg { color: var(--ok); }
.hero-visual { margin: 56px auto 0; max-width: 1080px; }
.window { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.win-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #f1f3f9; border-bottom: 1px solid #e3e6ef; }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d4d8e4; }
.win-bar i:first-child { background: #f87171; } .win-bar i:nth-child(2) { background: #fbbf24; } .win-bar i:nth-child(3) { background: #34d399; }
.win-bar span { margin-left: 10px; font-size: .8rem; color: #64748b; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* facts */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 8px auto 0; max-width: 1080px; }
.fact { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.fact-t { font-size: 1.02rem; margin: 2px 0 4px; letter-spacing: -.01em; }
.fact p { margin: 0; font-size: .93rem; color: var(--muted); line-height: 1.5; }

/* cards */
.icon-chip { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); flex: none; }
.icon-chip svg { width: 22px; height: 22px; }
.icon-chip.teal { background: var(--teal-soft); color: var(--teal); }
.cards-3, .cards-4 { display: grid; gap: 20px; margin-top: 44px; text-align: left; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-top: 16px; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.more-link { margin: 30px 0 0; font-weight: 650; }
.more-link a { display: inline-flex; align-items: center; gap: 6px; }

/* steps */
.steps { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: left; counter-reset: s; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; position: relative; }
.step .num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 800; margin-bottom: 14px; }
.step p { margin: 0; color: var(--muted); }

/* features */
.feature { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; padding: 40px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.rev .f-text { order: 2; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.ticks svg { color: var(--ok); margin-top: 4px; }
.f-visual .window { transform: perspective(1600px) rotateY(-3deg); transition: transform .4s; }
.feature.rev .f-visual .window { transform: perspective(1600px) rotateY(3deg); }
.f-visual .window:hover { transform: none; }
.window.tall { max-width: 440px; margin: 0 auto; }

/* compare */
.table-wrap { margin-top: 36px; overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
table.compare { width: 100%; border-collapse: collapse; font-size: .97rem; }
.compare th, .compare td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: center; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare th[scope=row] { text-align: left; font-weight: 550; color: var(--ink-2); }
.compare thead th { font-size: .9rem; color: var(--muted); font-weight: 650; }
.compare .us { background: var(--brand-soft); color: var(--brand-ink); font-weight: 750; }
.yes-ico svg, .no-ico svg { width: 22px; height: 22px; display: inline-block; vertical-align: middle; }
.yes-ico { color: var(--ok); } .no-ico { color: var(--no); opacity: .75; }

/* pricing */
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; align-items: stretch; }
.plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.plan.featured { border: 2px solid var(--brand); box-shadow: 0 20px 44px -20px rgba(79,70,229,.45); }
.ribbon { position: absolute; top: -13px; left: 22px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-size: .76rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; }
.plan h3 { margin: 0 0 8px; }
.price { font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.price small { font-size: .95rem; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.price-note { font-size: .9rem; color: var(--muted); margin: 6px 0 4px; min-height: 1.4em; }
.plan .ticks { margin: 14px 0 22px; font-size: .94rem; flex: 1; align-content: start; }
.plan .btn { justify-content: center; }
.pay-note { display: flex; gap: 14px; align-items: flex-start; max-width: 760px; margin: 30px auto 0; padding: 16px 20px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); font-size: .95rem; }
.pay-note svg { color: var(--teal); width: 24px; height: 24px; margin-top: 1px; }
.pay-note p { margin: 0; } .pay-note p + p { margin-top: 4px; }

/* faq */
.faq { max-width: 820px; margin: 36px auto 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 650; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 16px; font-size: 1.5rem; font-weight: 400; color: var(--brand-ink); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); margin: 0 0 20px; }

/* final */
.final { padding: 40px 0 100px; }
.final-box { text-align: center; padding: 64px 28px; border-radius: 24px; background: linear-gradient(135deg, #4338ca, #6d28d9); color: #fff; box-shadow: var(--shadow-lg); }
.final-box h2 { color: #fff; max-width: 760px; margin: 0 auto 12px; }
.final-box p { color: #e0e7ff; font-size: 1.15rem; }
.final-box .cta-note { color: #e0e7ff; } .final-box .cta-note svg { color: #a7f3d0; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 36px; background: var(--bg-soft); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot-tag { margin: 12px 0; max-width: 330px; }
.fh { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 6px 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer ul a { color: var(--ink-2); text-decoration: none; }
.site-footer ul a:hover { color: var(--brand-ink); text-decoration: underline; }
.foot-note { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; gap: 8px 24px; flex-wrap: wrap; justify-content: space-between; font-size: .82rem; color: var(--muted); }
.foot-note span:last-child { max-width: 760px; }

/* text pages */
.page-hero { padding: 56px 0 28px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.doc { max-width: 820px; }
.crumbs { display: flex; gap: 8px; font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page-hero .meta { font-size: .9rem; color: var(--muted); }
.prose { padding: 44px 0 96px; color: var(--ink-2); }
.prose h2 { font-size: 1.5rem; margin: 2em 0 .6em; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.6em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin: .35em 0; }
.prose strong { color: var(--ink); }
.prose code { font-size: .9em; background: var(--brand-soft); padding: 1px 6px; border-radius: 6px; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line); }
.prose th { background: var(--bg-soft); color: var(--ink); }
.prose .box { border: 1px solid var(--brand-line); background: var(--brand-soft); border-radius: 14px; padding: 16px 20px; margin: 1.2em 0 1.6em; }
.prose .box p:last-child { margin-bottom: 0; }
.prose ol.steps-list { counter-reset: s; list-style: none; padding: 0; }
.prose ol.steps-list > li { counter-increment: s; position: relative; padding: 2px 0 10px 48px; margin: 0 0 8px; }
.prose ol.steps-list > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: .95rem; }
.prose .cta-inline { margin: 1.4em 0 2em; }
.prose .shot { margin: 1.2em 0 1.8em; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.nf { padding: 120px 0; }
.center-row { justify-content: center; margin-top: 24px; }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } .btn, .f-visual .window { transition: none; } }

/* responsive */
@media (max-width: 1080px) {
  .pricing { grid-template-columns: repeat(2, 1fr); }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 8px; border-bottom: 1px solid var(--line); }
  .menu-btn { display: inline-flex; }
  .feature, .feature.rev { grid-template-columns: 1fr; gap: 28px; }
  .feature.rev .f-text { order: 0; }
  .f-visual .window, .feature.rev .f-visual .window { transform: none; }
  .facts, .cards-3, .steps { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 72px 0; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  body { font-size: 16px; }
  .nav-cta { display: none; }
  .pricing, .cards-4 { grid-template-columns: 1fr; }
  .hero { padding-top: 44px; }
  .hero-visual { margin-top: 36px; }
  .btn { width: 100%; justify-content: center; }
  .btn-sm, .plan .btn { width: auto; }
  .plan .btn { width: 100%; }
  .foot-grid { grid-template-columns: 1fr; }
  .compare th, .compare td { padding: 12px 10px; font-size: .9rem; }
  .final-box { padding: 48px 20px; }
}
