/* ============================================================================
   Ayoopa — design system
   Light, editorial, technical. One accent, generous whitespace, quiet borders.
   ========================================================================= */

:root {
  --ink:        #0C1220;
  --ink-2:      #1B2436;
  --muted:      #5A667C;
  --muted-2:    #7C8798;
  --line:       #E6E9EF;
  --line-2:     #F0F2F6;
  --bg:         #FFFFFF;
  --bg-soft:    #F7F8FB;
  --bg-tint:    #EEF0FE;

  --accent:     #4338CA;
  --accent-2:   #5B52E8;
  --accent-ink: #312E81;
  --accent-soft:#EEF0FE;
  --teal:       #0E7490;

  --radius:     12px;
  --radius-lg:  18px;
  --radius-xl:  26px;

  --shadow-sm:  0 1px 2px rgba(12, 18, 32, .05);
  --shadow:     0 6px 24px -8px rgba(12, 18, 32, .12);
  --shadow-lg:  0 28px 60px -28px rgba(12, 18, 32, .28);

  --wrap:       1160px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------- layout */

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--tight { padding: 64px 0; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------------------------------------------------------------- header */

.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.hdr__in {
  display: flex; align-items: center; gap: 28px;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.02em; font-size: 17px; }
.brand__mark { width: 26px; height: 26px; flex: 0 0 auto; }
.brand__mark .a { fill: var(--accent); }
.brand__mark .b { fill: var(--accent-2); }

.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav a {
  padding: 8px 12px; border-radius: 8px;
  font-size: 14.5px; font-weight: 500; color: var(--muted);
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--ink); background: var(--line-2); }
.nav a[aria-current="page"] { color: var(--ink); }

.hdr__cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.burger {
  display: none; margin-left: auto;
  width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.burger span { display: block; width: 16px; height: 1.6px; background: var(--ink); position: relative; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 1.6px; background: var(--ink);
}
.burger span::before { top: -5px; }
.burger span::after  { top: 5px; }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px;
  font-size: 14.5px; font-weight: 600; line-height: 1;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-ink); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--muted-2); }
.btn--quiet { background: transparent; color: var(--accent); }
.btn--quiet:hover { background: var(--accent-soft); }
.btn--lg { padding: 14px 22px; font-size: 15.5px; border-radius: 12px; }
.btn--block { width: 100%; }

/* ----------------------------------------------------------- typography */

.eyebrow {
  margin: 0 0 16px; font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
h1, h2, h3, h4 { margin: 0; color: var(--ink); letter-spacing: -.025em; line-height: 1.12; font-weight: 660; }
h1 { font-size: clamp(38px, 5.2vw, 62px); letter-spacing: -.035em; line-height: 1.04; }
h2 { font-size: clamp(28px, 3.4vw, 42px); }
h3 { font-size: 20px; letter-spacing: -.018em; }
h4 { font-size: 16px; letter-spacing: -.01em; }
p  { margin: 0 0 16px; color: var(--muted); }
p:last-child { margin-bottom: 0; }
.lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--muted); max-width: 62ch; }
.sec-head { max-width: 68ch; margin-bottom: 48px; }
.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head p { font-size: 17px; margin-top: 14px; }

/* ----------------------------------------------------------------- hero */

.hero { padding: 84px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -220px 0 auto; height: 620px;
  background:
    radial-gradient(700px 340px at 22% 6%, rgba(67, 56, 202, .10), transparent 70%),
    radial-gradient(520px 300px at 82% 0%, rgba(14, 116, 144, .09), transparent 70%);
  pointer-events: none;
}
.hero__in { position: relative; }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 56px; align-items: center;
}
.hero h1 { max-width: 15ch; }
.hero .lede { margin-top: 20px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__note { margin-top: 18px; font-size: 13.5px; color: var(--muted-2); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink);
  font-size: 12.5px; font-weight: 600; letter-spacing: .01em;
}
.pill i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 3px rgba(67, 56, 202, .18);
}

/* --------------------------------------------------------- product mock */

.mock {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: #fff; box-shadow: var(--shadow-lg); overflow: hidden;
}
.mock__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--bg-soft);
}
.mock__dot { width: 9px; height: 9px; border-radius: 50%; background: #D7DBE3; }
.mock__title { margin-left: 6px; font-size: 12px; color: var(--muted-2); font-family: var(--mono); }
.mock__body { padding: 16px; display: grid; gap: 12px; }
.mock__row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.mock__card {
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fff;
}
.mock__label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); font-weight: 700; }
.mock__value { font-size: 15px; font-weight: 620; color: var(--ink); margin-top: 3px; }
.mock__steps { display: grid; gap: 7px; }
.mock__step {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; color: var(--ink-2);
  padding: 8px 11px; border-radius: 8px; background: var(--bg-soft); border: 1px solid var(--line-2);
}
.mock__step em {
  font-style: normal; margin-left: auto; font-size: 11.5px; font-weight: 640;
  padding: 2px 8px; border-radius: 999px;
}
.ok   { background: #E8F6EF; color: #116A45; }
.warn { background: #FEF3E2; color: #8A5A08; }
.run  { background: var(--accent-soft); color: var(--accent-ink); }
.mock__tick {
  width: 15px; height: 15px; border-radius: 50%; flex: 0 0 auto;
  background: var(--accent); display: grid; place-items: center;
}
.mock__tick::after {
  content: ""; width: 6px; height: 3px; border-left: 1.6px solid #fff; border-bottom: 1.6px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}

/* ---------------------------------------------------------------- logos */

.logos { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.logos__in { padding: 34px 0; }
.logos__label {
  text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted-2); margin-bottom: 20px;
}
.logos__row {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 14px 34px;
}
.logos__row span {
  font-size: 15.5px; font-weight: 620; color: var(--muted-2);
  letter-spacing: -.01em; opacity: .9;
}

/* ----------------------------------------------------------------- grid */

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 24px; background: #fff;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.card:hover { border-color: #D5DAE3; box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 14.8px; }
.card__ico {
  width: 38px; height: 38px; border-radius: 10px; margin-bottom: 16px;
  background: var(--accent-soft); display: grid; place-items: center; color: var(--accent);
}
.card__ico svg { width: 19px; height: 19px; }

/* ---------------------------------------------------------------- steps */

.steps { display: grid; gap: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: s; }
.step { position: relative; padding-top: 8px; }
.step__n {
  counter-increment: s; width: 30px; height: 30px; border-radius: 9px;
  background: var(--ink); color: #fff; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; margin-bottom: 16px;
}
.step__n::before { content: counter(s); }
.step h4 { margin-bottom: 6px; }
.step p { font-size: 14.4px; }

/* ------------------------------------------------------------ security */

.trust {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px; margin-top: 8px;
}
.trust__item {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  background: #fff; display: flex; gap: 12px; align-items: flex-start;
}
.trust__item svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; color: var(--accent); }
.trust__item strong { display: block; font-size: 14.5px; font-weight: 640; letter-spacing: -.01em; }
.trust__item span { font-size: 13.4px; color: var(--muted); }

/* -------------------------------------------------------------- pricing */

.price-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.plan {
  border: 1px solid var(--line); border-radius: var(--radius-xl);
  background: #fff; padding: 30px 28px; display: flex; flex-direction: column;
}
.plan--featured { border-color: var(--accent); box-shadow: 0 22px 50px -26px rgba(67, 56, 202, .45); position: relative; }
.plan__flag {
  position: absolute; top: -11px; left: 28px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
}
.plan__name { font-size: 15px; font-weight: 660; letter-spacing: -.01em; }
.plan__desc { font-size: 13.8px; color: var(--muted); margin: 6px 0 18px; min-height: 40px; }
.plan__price { font-size: 40px; font-weight: 680; letter-spacing: -.04em; line-height: 1; }
.plan__price small { font-size: 14px; font-weight: 550; color: var(--muted); letter-spacing: 0; }
.plan__cta { margin: 22px 0 22px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.plan li { display: flex; gap: 10px; font-size: 14.4px; color: var(--ink-2); }
.plan li::before {
  content: ""; flex: 0 0 auto; width: 15px; height: 15px; margin-top: 4px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%234338CA'%3E%3Cpath d='M6.2 11.4 2.9 8.1l1.1-1.1 2.2 2.2 5.8-5.8 1.1 1.1z'/%3E%3C/svg%3E") center/11px no-repeat;
}
.plan__note { margin-top: 18px; font-size: 12.8px; color: var(--muted-2); }

/* ------------------------------------------------------------------ cta */

.band { border-radius: var(--radius-xl); padding: 56px 48px; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.band::after {
  content: ""; position: absolute; inset: auto -80px -140px auto; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(91, 82, 232, .55), transparent 65%); pointer-events: none;
}
.band h2 { color: #fff; max-width: 22ch; }
.band p { color: rgba(255, 255, 255, .72); max-width: 54ch; margin-top: 14px; font-size: 16.5px; }
.band__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; position: relative; }
.band .btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .28); }
.band .btn--ghost:hover { border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .06); }
.band .btn--primary { background: #fff; color: var(--ink); }
.band .btn--primary:hover { background: #EDEFF5; }

/* --------------------------------------------------------------- footer */

.ftr { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 60px 0 34px; }
.ftr__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.ftr h5 {
  margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted-2);
}
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ftr a { font-size: 14.2px; color: var(--muted); }
.ftr a:hover { color: var(--ink); }
.ftr__about { max-width: 34ch; font-size: 14.2px; color: var(--muted); margin-top: 14px; }
.ftr__bottom {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center;
  font-size: 13.4px; color: var(--muted-2);
}
.ftr__bottom nav { display: flex; gap: 18px; margin-left: auto; }

/* ------------------------------------------------------------ documents */

.doc { max-width: 76ch; }
.doc h2 { font-size: 26px; margin: 44px 0 12px; }
.doc h3 { margin: 30px 0 8px; }
.doc p, .doc li { font-size: 15.4px; color: var(--muted); }
.doc ul { margin: 0 0 18px; padding-left: 20px; display: grid; gap: 8px; }
.doc__meta { font-size: 13.6px; color: var(--muted-2); margin-bottom: 8px; }

.crumbs { font-size: 13.6px; color: var(--muted-2); margin-bottom: 20px; }
.crumbs a { color: var(--accent); }

/* ----------------------------------------------------------------- table */

table.tbl { width: 100%; border-collapse: collapse; font-size: 14.4px; }
table.tbl th, table.tbl td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); }
table.tbl th { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; }
table.tbl td { color: var(--ink-2); }
table.tbl tr:last-child td { border-bottom: 0; }
.tbl-wrap { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }

/* ----------------------------------------------------------------- form */

.form { display: grid; gap: 16px; max-width: 560px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13.6px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 14.6px; background: #fff; color: var(--ink);
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(67, 56, 202, .12); }
.field__hint { font-size: 12.6px; color: var(--muted-2); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__ok {
  display: none; margin-top: 6px; padding: 13px 16px; border-radius: 10px;
  background: #E8F6EF; color: #116A45; font-size: 14.2px; font-weight: 560;
}
.form__ok[data-show="1"] { display: block; }

/* ------------------------------------------------------------ utilities */

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }

.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.stat { border-top: 2px solid var(--ink); padding-top: 16px; }
.stat b { display: block; font-size: 32px; font-weight: 680; letter-spacing: -.035em; line-height: 1.1; }
.stat span { font-size: 13.6px; color: var(--muted); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.list-check { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.list-check li { display: flex; gap: 11px; font-size: 15px; color: var(--ink-2); }
.list-check li::before {
  content: ""; flex: 0 0 auto; width: 16px; height: 16px; margin-top: 4px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%234338CA'%3E%3Cpath d='M6.2 11.4 2.9 8.1l1.1-1.1 2.2 2.2 5.8-5.8 1.1 1.1z'/%3E%3C/svg%3E") center/11px no-repeat;
}

.jobs { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.job {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr auto; gap: 18px; align-items: center;
  padding: 20px 22px; border-bottom: 1px solid var(--line);
}
.job:last-child { border-bottom: 0; }
.job:hover { background: var(--bg-soft); }
.job b { font-size: 15.4px; font-weight: 640; letter-spacing: -.012em; }
.job span { font-size: 13.8px; color: var(--muted); }

.quote {
  border-left: 2px solid var(--accent); padding: 4px 0 4px 22px;
  font-size: 19px; line-height: 1.5; color: var(--ink-2); letter-spacing: -.015em;
}
.quote cite { display: block; margin-top: 16px; font-size: 13.6px; font-style: normal; color: var(--muted-2); }

/* ------------------------------------------------------------ responsive */

/* Tablet and below. Six nav links plus two header buttons need roughly 870px,
   so they stop fitting well before the layout itself needs to change — the nav
   collapses at the same breakpoint the grid does. */
@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .grid--4, .steps, .trust, .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3, .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftr__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .section { padding: 72px 0; }

  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px 16px;
    box-shadow: var(--shadow);
  }
  .nav[data-open="1"] { display: flex; }
  .nav a { padding: 12px 12px; font-size: 15.5px; }
  .burger { display: inline-flex; }
  .hdr__cta .btn--ghost { display: none; }
  .hdr__cta .btn--primary { padding: 10px 14px; font-size: 14px; }
}

@media (max-width: 720px) {
  .grid--2, .grid--3, .grid--4, .steps, .trust,
  .price-grid, .stat-row, .form__row { grid-template-columns: 1fr; }
  .ftr__grid { grid-template-columns: 1fr; }
  .job { grid-template-columns: 1fr; gap: 6px; }
  .job .btn { margin-top: 10px; justify-self: start; }
  .band { padding: 40px 26px; border-radius: var(--radius-lg); }
  .section { padding: 60px 0; }
  .hero { padding: 56px 0 48px; }
  .wrap { padding: 0 18px; }
  .ftr__bottom { flex-direction: column; align-items: flex-start; }
  .ftr__bottom nav { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
