/*
  EjariFlow marketing site — light, product-led.
  Palette, geometry and type come from /tokens.css (design/tokens.css, .theme-light).
  Regenerate tokens with: npm run tokens:sync
*/

@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url("/fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url("/fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-canvas);
  color: var(--c-text);
  font: 16px / 1.6 var(--font-body);
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--c-cobalt); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 12px; line-height: 1.18; }
h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.05rem, 4.4vw, 3.05rem); letter-spacing: -0.022em; }
h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -0.015em; }
h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.06rem; }
p { margin: 0 0 14px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.mono-label {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--c-text-55);
}

/* ------------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgb(255 255 255 / 0.9);
  border-bottom: 1px solid var(--c-line);
  backdrop-filter: blur(8px);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 62px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--c-text); font-family: var(--font-display); font-weight: 700; }
.brand:hover { text-decoration: none; }
.mark {
  display: grid; place-items: center; width: 29px; height: 29px; border-radius: 7px;
  background: var(--c-brand); color: #fff; font-size: 0.72rem; font-weight: 700;
}
.nav nav { display: flex; align-items: center; gap: 22px; }
.nav nav a { color: var(--c-text-70); font-size: 0.94rem; }
.nav nav a:hover { color: var(--c-text); text-decoration: none; }
/*
  `.nav nav a` is specificity 0,2,1 and beats `.btn` at 0,1,0, so the nav's
  button label was inheriting the muted grey and rendering grey-on-green.
  Put the button colours back on top, explicitly.
*/
.nav nav a.btn, .nav nav a.btn:hover { color: var(--c-brand-ink); }
.nav nav a.btn.ghost, .nav nav a.btn.ghost:hover { color: var(--c-text); }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-block; font-family: var(--font-display); font-weight: 500; font-size: 0.98rem;
  padding: 12px 20px; border-radius: 7px; border: 1px solid var(--c-brand);
  background: var(--c-brand); color: var(--c-brand-ink);
}
.btn:hover { background: var(--c-brand-hover); border-color: var(--c-brand-hover); text-decoration: none; }
.btn.ghost { background: #fff; color: var(--c-text); border-color: var(--c-line-strong); }
.btn.ghost:hover { background: var(--c-inset); border-color: var(--c-text-40); text-decoration: none; }
.btn.small { padding: 8px 14px; font-size: 0.9rem; }

/* ------------------------------------------------------------------ hero */
.hero { padding: 62px 0 46px; }
/* The product image is the argument, so the hero gets a wider container than
   the text sections and the image column takes the larger share. */
.hero .wrap { max-width: 1240px; display: grid; grid-template-columns: minmax(0, 0.79fr) minmax(0, 1.21fr); gap: 44px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 18px;
  padding: 5px 11px; border-radius: 6px; background: var(--c-brand-wash);
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-brand);
}
.lede { font-size: 1.07rem; color: var(--c-text-70); max-width: 50ch; }
.lede b { color: var(--c-text); }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 14px; }
.trust { font-size: 0.87rem; color: var(--c-text-55); max-width: 50ch; margin: 0; }

.shot { margin: 0; }
.shot img {
  display: block; width: 100%; height: auto; border-radius: 10px;
  border: 1px solid var(--c-line);
  box-shadow: 0 26px 54px -30px rgb(15 23 42 / 0.4), 0 2px 6px rgb(15 23 42 / 0.05);
}

/* ----------------------------------------------------------- cover strip */
.strip { background: var(--c-band); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); padding: 28px 0; }
.strip .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 22px; }
.strip .mono-label { margin: 0 0 5px; color: var(--c-brand); }
.strip p { margin: 0; font-size: 0.94rem; color: var(--c-text-70); }

/* ------------------------------------------------------------- sections */
section.block { padding: 62px 0; }
section.band { background: var(--c-band); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.sec-lede { font-size: 1.02rem; color: var(--c-text-70); max-width: 62ch; }

.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); margin-top: 26px; }
.card { background: #fff; border: 1px solid var(--c-line); border-radius: 10px; padding: 20px 22px; box-shadow: var(--shadow-panel); }
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; font-size: 0.95rem; color: var(--c-text-70); }
.card .mono-label { margin-bottom: 9px; }

/* steps */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(225px, 1fr)); gap: 24px; }
.steps li { counter-increment: s; position: relative; padding-top: 40px; }
.steps li::before {
  content: counter(s, decimal-leading-zero); position: absolute; top: 0; left: 0;
  width: 27px; height: 27px; border-radius: 7px; display: grid; place-items: center;
  background: var(--c-brand-wash); color: var(--c-brand);
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
}
.steps strong { display: block; font-family: var(--font-display); font-weight: 500; margin-bottom: 3px; }
.steps p { margin: 0; font-size: 0.93rem; color: var(--c-text-70); }

/*
  Ticks. The previous version drew a checkmark from a 4x8 box with a 1.5px
  border and rendered as a malformed hook at this size. This is a real tick: a
  wide short box with two borders, rotated, so it reads as a checkmark at 14px.
*/
ul.ticks { list-style: none; padding: 0; margin: 0; }
ul.ticks li { position: relative; padding: 5px 0 5px 25px; font-size: 0.95rem; color: var(--c-text-70); }
ul.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 10px;
  width: 12px; height: 6px; border-left: 2px solid var(--c-brand); border-bottom: 2px solid var(--c-brand);
  transform: rotate(-45deg); border-radius: 1px;
}

/* -------------------------------------------------------------- pricing */
.prices { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); margin-top: 26px; max-width: 740px; }
.price { background: #fff; border: 1px solid var(--c-line); border-radius: 12px; padding: 24px; box-shadow: var(--shadow-panel); display: flex; flex-direction: column; }
.price.featured { border-color: var(--c-brand); box-shadow: 0 0 0 1px var(--c-brand), var(--shadow-panel); }
.price .tier { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price .amount { font-family: var(--font-display); font-weight: 700; font-size: 2.5rem; letter-spacing: -0.022em; font-variant-numeric: tabular-nums; margin: 12px 0 2px; line-height: 1; }
.price .amount span { font-family: var(--font-body); font-size: 0.85rem; font-weight: 400; color: var(--c-text-55); letter-spacing: 0; }
.price .sub { font-size: 0.9rem; color: var(--c-text-55); margin: 4px 0 18px; }
.price ul { margin: 0 0 22px; }
.price .btn { margin-top: auto; text-align: center; }
.badge { font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; padding: 3px 8px; border-radius: 5px; background: var(--c-brand-wash); color: var(--c-brand); }

/* ------------------------------------------------------------ start block */
.start { background: var(--c-band); border: 1px solid var(--c-line); border-radius: 14px; padding: 34px 36px; }
.start .cta { margin-bottom: 0; }

/* ----------------------------------------------------------- pilot + foot */
.pilot { padding: 34px 0; border-top: 1px solid var(--c-line); background: var(--c-band); }
.pilot p { margin: 0; font-size: 0.92rem; color: var(--c-text-70); max-width: 88ch; }
.pilot b { color: var(--c-text); }
footer { padding: 34px 0 52px; font-size: 0.88rem; color: var(--c-text-55); }
footer p { margin: 0 0 8px; max-width: 92ch; }
footer .brand { color: var(--c-text); font-size: 0.95rem; margin-bottom: 10px; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 900px) {
  .hero { padding: 44px 0 34px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
}
@media (max-width: 640px) {
  .nav nav a:not(.btn) { display: none; }
  .cta .btn { width: 100%; text-align: center; }
  section.block { padding: 48px 0; }
  .start { padding: 26px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
