/* ============================================================
   Chicas Automation — shared design system ("Quiet" direction)
   ============================================================ */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/PlusJakartaSans-Variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --ink-faint: #6e6e73;
  --ink-faintest: #aeaeb2;
  --blue: #0057D9;
  --blue-hover: #0062F5;
  --blue-tint: rgba(0, 87, 217, 0.10);
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --bg-footer: #fafafa;
  --line: #d2d2d7;
  --line-soft: #ededed;
  --card: #ffffff;
  --radius: 18px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: "Plus Jakarta Sans", var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { text-decoration: none; color: inherit; }
::selection { background: rgba(0, 87, 217, 0.18); }
img { max-width: 100%; display: block; }
h1, h2 { font-family: var(--display); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 52px;
  background: rgba(255, 255, 255, 0);
  backdrop-filter: saturate(180%) blur(0px);
  -webkit-backdrop-filter: saturate(180%) blur(0px);
  border-bottom: 1px solid rgba(0, 0, 0, 0);
  transition: background 0.25s var(--ease), backdrop-filter 0.25s var(--ease),
              -webkit-backdrop-filter 0.25s var(--ease), border-color 0.25s var(--ease);
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: rgba(0, 0, 0, 0.07);
}
.nav__brand { font-weight: 600; font-size: 18px; letter-spacing: -0.02em; color: var(--ink); }
.nav__links { display: flex; align-items: center; gap: 34px; font-size: 13.5px; font-weight: 400; }
.nav__links a { color: var(--ink); transition: color 0.2s; }
.nav__links a:hover { color: var(--blue); }
.nav__links a[aria-current="page"] { color: var(--blue); }
.nav__cta {
  display: inline-flex; align-items: center;
  background: var(--blue); color: #fff !important;
  padding: 7px 16px; border-radius: 980px; font-size: 13px; font-weight: 400;
  transition: background 0.2s;
}
.nav__cta:hover { background: var(--blue-hover); }
.nav__toggle { display: none; background: none; border: 0; font-size: 22px; color: var(--ink); cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 980px; font-weight: 400; cursor: pointer;
  border: none; transition: background 0.2s, color 0.2s;
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-hover); }
.btn--lg { font-size: 17px; padding: 13px 26px; }
.btn--xl { font-size: 18px; padding: 15px 34px; }
.btn--link { color: var(--blue); font-size: 17px; }
.btn--link:hover { text-decoration: underline; }

/* ---------- Layout primitives ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.wrap--wide { max-width: 1180px; }
.section { padding: 128px 24px; }
.section--soft { background: var(--bg-soft); }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--blue); letter-spacing: -0.005em; }
.eyebrow--upper { letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Hero ---------- */
.hero { max-width: 1000px; margin: 0 auto; padding: 128px 24px 0; text-align: center; }
.hero h1 {
  font-size: 88px; line-height: 1.03; font-weight: 600;
  letter-spacing: -0.035em; margin: 0; text-wrap: balance;
}
.hero p {
  font-size: 24px; line-height: 1.42; font-weight: 400; color: var(--ink-soft);
  max-width: 640px; margin: 28px auto 0; text-wrap: pretty; letter-spacing: -0.01em;
}
.hero__actions { display: flex; align-items: center; justify-content: center; gap: 26px; margin-top: 36px; flex-wrap: wrap; }
.hero__note { font-size: 13px; color: var(--ink-faint); margin-top: 22px; letter-spacing: 0; }

/* ---------- Hero entrance (homepage only — the one bespoke moment) ---------- */
.hero[data-hero] .word { display: inline-block; overflow: hidden; vertical-align: top;
  padding: 0.12em 0 0.04em; margin: -0.12em 0 -0.04em; }
.hero[data-hero] .word > span { display: inline-block; transform: translateY(110%);
  transition: transform 0.3s var(--ease); }
.hero[data-hero].is-in .word > span { transform: translateY(0); }
.hero[data-hero] .word:nth-of-type(1) > span { transition-delay: 0s; }
.hero[data-hero] .word:nth-of-type(2) > span { transition-delay: 0.06s; }
.hero[data-hero] .word:nth-of-type(3) > span { transition-delay: 0.12s; }
.hero[data-hero] .word:nth-of-type(4) > span { transition-delay: 0.18s; }
.hero[data-hero] .word:nth-of-type(5) > span { transition-delay: 0.24s; }
.hero[data-hero] .word:nth-of-type(6) > span { transition-delay: 0.30s; }
.hero[data-hero] .hero__lead,
.hero[data-hero] .hero__actions,
.hero[data-hero] .hero__note { opacity: 0; transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.hero[data-hero].is-in .hero__lead { opacity: 1; transform: none; transition-delay: 0.5s; }
.hero[data-hero].is-in .hero__actions { opacity: 1; transform: none; transition-delay: 0.58s; }
.hero[data-hero].is-in .hero__note { opacity: 1; transform: none; transition-delay: 0.64s; }

/* ---------- Section heads ---------- */
.head { text-align: center; max-width: 700px; margin: 0 auto 72px; }
.head h2 { font-size: 52px; line-height: 1.06; font-weight: 600; letter-spacing: -0.03em; margin: 14px 0 0; }
.head p { font-size: 21px; line-height: 1.5; color: var(--ink-soft); margin: 20px 0 0; text-wrap: pretty; letter-spacing: -0.01em; }
.head--left { text-align: left; margin-left: 0; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card); border-radius: 20px; padding: 34px;
  transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
}
.card__icon {
  width: 46px; height: 46px; border-radius: 13px; background: #f0f1f3;
  display: flex; align-items: center; justify-content: center; color: var(--ink);
}
.card h3 { font-size: 20px; font-weight: 600; margin: 22px 0 8px; letter-spacing: -0.02em; }
.card p { font-size: 15.5px; line-height: 1.52; color: var(--ink-soft); margin: 0; }
.card--hover { transition: box-shadow 0.2s var(--ease); }
.card--hover:hover { box-shadow: inset 2px 0 0 0 var(--blue); }

/* product tiles */
.tile {
  background: var(--card); border-radius: 20px; padding: 30px; min-height: 200px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.tile__badge {
  font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 980px; align-self: flex-start;
}
.tile__badge--now { color: var(--blue); background: var(--blue-tint); }
.tile__badge--soon { color: var(--ink-faint); background: #ececef; }
.tile__icon { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.tile__icon--now { background: var(--blue); color: #fff; }
.tile__icon--soon { background: #e6e6ea; color: var(--ink-faint); }
.tile__name { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.tile__meta { font-size: 14.5px; color: var(--ink-faint); margin-top: 4px; }
/* "Available now" tile (the only <a> tile) — soft blue glow on hover */
a.tile { transition: box-shadow 0.25s var(--ease); }
a.tile:hover { box-shadow: 0 0 0 1px var(--blue-tint), 0 16px 36px -16px var(--blue-tint); }

/* numbered value columns */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.value { padding: 0 40px; }
.value:first-child { padding-left: 0; }
.value:last-child { padding-right: 0; }
.value__inner { border-top: 1px solid var(--line); padding-top: 26px; }
.value__num { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-faint); }
.value h3 { font-size: 27px; font-weight: 600; letter-spacing: -0.025em; margin: 16px 0 12px; }
.value p { font-size: 16px; line-height: 1.56; color: var(--ink-soft); margin: 0; }

/* ---------- Browser frame (coded dashboard mockup) ---------- */
.frame {
  position: relative; border-radius: 18px; overflow: hidden;
  box-shadow: 0 50px 100px -36px rgba(0, 0, 0, 0.32);
  border: 1px solid #e6e6e6; background: #fff;
}
.frame__bar {
  height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 18px;
  background: #f6f6f6; border-bottom: 1px solid #ececec;
}
.frame__dot { width: 11px; height: 11px; border-radius: 50%; display: block; }
.frame__url { margin-left: 16px; font-size: 12px; color: #9a9a9a; font-family: var(--mono); }

/* ---------- Dashboard mockup (layout out of inline styles for reflow) ---------- */
.mock { display: grid; grid-template-columns: 200px 1fr; background: #fff; min-height: 420px; }
.mock__side { background: #fafafa; border-right: 1px solid #ececec; padding: 22px 16px; }
.mock__brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 24px; }
.mock__brandicon { width: 24px; height: 24px; border-radius: 7px; background: var(--blue); display: flex; align-items: center; justify-content: center; color: #fff; }
.mock__nav { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-soft); }
.mock__navitem { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px; }
.mock__navitem.is-active { background: #eaf2fe; color: var(--blue); font-weight: 500; }
.mock__main { padding: 24px; min-width: 0; }
.mock__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.mock__title { font-size: 17px; font-weight: 600; color: var(--ink); }
.mock__board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mock__col { min-width: 0; }
.mock__collabel { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 10px; }

/* ---------- Split two-column ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--start { align-items: start; }

/* ---------- Legal / long-form pages ---------- */
.legal { max-width: 720px; margin: 0 auto; }
.legal h1 { font-size: clamp(34px, 8vw, 52px); font-weight: 600; letter-spacing: -0.03em; margin: 14px 0 0; }
.legal h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin: 46px 0 0; }
.legal p, .legal li { font-size: 16.5px; line-height: 1.62; color: var(--ink-soft); margin: 14px 0 0; }
.legal ul { margin: 14px 0 0; padding-left: 22px; }
.legal a { color: var(--blue); }
.legal__meta { font-size: 14px; color: var(--ink-faint); margin-top: 18px; }
.legal__notice { margin: 26px 0 0; padding: 14px 18px; border: 1px solid #ecd57a;
  background: #fffbe6; border-radius: 12px; font-size: 14.5px; line-height: 1.55; color: #6b5800; }

/* ---------- Final CTA ---------- */
.cta { max-width: 920px; margin: 0 auto; padding: 140px 24px; text-align: center; }
.cta h2 { font-size: 60px; line-height: 1.05; font-weight: 600; letter-spacing: -0.035em; margin: 0; }
.cta p { font-size: 21px; line-height: 1.5; color: var(--ink-soft); margin: 22px auto 0; max-width: 540px; }
.cta .btn { margin-top: 34px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 48px 40px; background: var(--bg-footer); }
.footer__top { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 48px; }
.footer__brand { max-width: 280px; }
.footer__brand strong { font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.footer__brand p { font-size: 13.5px; line-height: 1.55; color: var(--ink-faint); margin: 12px 0 0; }
.footer__cols { display: flex; gap: 72px; font-size: 13.5px; color: var(--ink-soft); }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col span { color: var(--ink); font-weight: 500; }
.footer__col a:hover { color: var(--ink); }
.footer__bottom {
  max-width: var(--maxw); margin: 40px auto 0; padding-top: 24px; border-top: 1px solid #e3e3e3;
  font-size: 12px; color: var(--ink-faintest); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer__bottom a:hover { color: var(--ink-soft); }
.footer__legal { display: flex; gap: 20px; }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
/* Eyebrow labels: slide in from the left (distinct from the fade-up) */
.eyebrow[data-reveal] { transform: translateX(-8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.eyebrow[data-reveal].is-visible { transform: none; }
/* Dashboard mockup rows: sequential reveal on enter */
[data-mock] > div { opacity: 0; transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
[data-mock].is-in > div { opacity: 1; transform: none; }
[data-mock].is-in > div:nth-child(1) { transition-delay: 0s; }
[data-mock].is-in > div:nth-child(2) { transition-delay: 0.12s; }
[data-mock].is-in > div:nth-child(3) { transition-delay: 0.24s; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.field label { font-size: 14px; font-weight: 500; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: var(--font); font-size: 16px; color: var(--ink);
  padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s; letter-spacing: -0.01em;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 87, 217, 0.12);
}
.field textarea { resize: vertical; min-height: 120px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero h1 { font-size: 56px; }
  .hero p { font-size: 20px; }
  .head h2 { font-size: 38px; }
  .cta h2 { font-size: 42px; }
  .grid--3, .grid--4, .grid--2, .values, .split { grid-template-columns: 1fr; }
  .split { gap: 40px; }
  .value { padding: 0; }
  .nav { padding: 0 20px; }
  .nav__links { display: none; }
  .nav__links.is-open {
    display: flex; position: absolute; top: 52px; left: 0; right: 0; flex-direction: column;
    gap: 0; background: #ffffff; box-shadow: 0 20px 40px -24px rgba(0,0,0,0.25);
    border-bottom: 1px solid var(--line-soft); padding: 8px 20px 18px;
  }
  .nav__links.is-open a { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .nav__links.is-open .nav__cta { align-self: flex-start; margin-top: 12px; border-bottom: none; }
  .nav__toggle { display: block; }
  .section { padding: 80px 24px; }
  .footer { padding: 48px 24px 32px; }
  .footer__cols { gap: 40px; }
}
@media (max-width: 600px) {
  /* Mockup reflows: sidebar -> top tab row (active item only), content full width */
  .mock { grid-template-columns: 1fr; min-height: 0; }
  .mock__side { border-right: none; border-bottom: 1px solid #ececec; padding: 12px 14px;
    display: flex; align-items: center; gap: 12px; }
  .mock__brand { margin-bottom: 0; }
  .mock__nav { flex-direction: row; gap: 8px; margin-left: auto; }
  .mock__navitem { display: none; }
  .mock__navitem.is-active { display: inline-flex; }
  /* Jobs board: kanban -> single column, each status a labelled group */
  .mock__board { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 520px) {
  .hero { padding-top: 88px; }
  .hero h1 { font-size: 44px; }
  .cta h2 { font-size: 34px; }
  .footer__cols { flex-direction: column; gap: 28px; }
  .hero__actions { flex-direction: column; gap: 14px; width: 100%; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .eyebrow[data-reveal] { transform: none; transition: none; }
  .card--hover { transition: none; }
  a.tile { transition: none; }
  .nav { transition: none; }
  .hero[data-hero] .word > span,
  .hero[data-hero] .hero__lead,
  .hero[data-hero] .hero__actions,
  .hero[data-hero] .hero__note { transform: none; opacity: 1; transition: none; }
  [data-mock] > div { opacity: 1; transform: none; transition: none; }
}
