/* AvenLogix website
   Layout: an ink frame (header, hero, footer) around a mist work area with white cards,
   the same "dark frame, light work area" shell the PM app uses.
   Tokens come from the AvenLogix Design System v1.0 (app.css :root). */
:root {
  --ink: #1a1a1f;
  --blue: #2f6bd8;
  --blue-dark: #1e4fa8;
  --blue-light: #ebf1fd;
  --steel: #9a9aa2;
  --steel-light: #d0d0d5;
  --mist: #f3f3f5;
  --white: #ffffff;
  --border: #e8e8ec;
  --border-subtle: #f0f0f3;
  --surface-subtle: #f8f8fa;
  --text-muted: #6b6b73;
  --on-ink: #ffffff;
  --on-ink-muted: rgba(255, 255, 255, 0.68);
  --ink-line: rgba(255, 255, 255, 0.1);
  --ink-hover: rgba(255, 255, 255, 0.07);

  --ok: #166534;      --ok-bg: #dcfce7;
  --prog: #1e40af;    --prog-bg: #dbeafe;
  --ns: #374151;      --ns-bg: #f3f4f6;
  --hold: #92400e;    --hold-bg: #fef3c7;
  --late: #991b1b;    --late-bg: #fee2e2;

  --font: 'Space Grotesk', Arial, sans-serif;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.10);
  --shadow-shot: 0 24px 60px rgba(0, 0, 0, 0.38);
  --focus: 0 0 0 3px rgba(47, 107, 216, 0.28);
  --wrap: 1120px;
  color-scheme: light;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: var(--blue); }
svg { display: block; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
@media (max-width: 600px) { .wrap { padding-inline: 16px; } }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: var(--r-md);
}

/* Header */
.site-header { background: var(--ink); border-bottom: 1px solid var(--ink-line); }
.site-header .wrap {
  display: flex; align-items: center; gap: 16px;
  min-height: 72px; padding-block: 10px;
}
.brand { display: block; flex-shrink: 0; }
.brand svg { width: 150px; height: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a, .nav .nav-soon {
  color: var(--on-ink-muted); text-decoration: none;
  font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: var(--r-md);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
}
.nav a:hover { color: var(--on-ink); background: var(--ink-hover); }
.nav a[aria-current="page"] { color: var(--on-ink); }
.nav .nav-soon { cursor: default; }
.nav .nav-soon small {
  font-size: 10px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--steel); border: 1px solid var(--ink-line);
  padding: 1px 6px; border-radius: 100px;
}
.nav .btn { margin-left: 8px; }
@media (max-width: 720px) {
  .nav .hide-sm { display: none; }
  .brand svg { width: 128px; }
  .nav .btn { margin-left: 2px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 15px; font-weight: 500; line-height: 1.2;
  padding: 12px 20px; border-radius: var(--r-md);
  border: 1px solid var(--steel-light);
  background: var(--white); color: var(--ink);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--blue); border-color: var(--blue); color: var(--on-ink); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.nav .btn-primary { color: var(--on-ink); }
.nav .btn-primary:hover { color: var(--on-ink); background: var(--blue-dark); }
.btn-ghost { background: transparent; color: var(--on-ink); border-color: rgba(255,255,255,0.28); }
.btn-ghost:hover { background: var(--ink-hover); }
.btn-sm { font-size: 14px; padding: 8px 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.textlink {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 500; text-decoration: none; color: var(--blue);
}
.textlink svg { width: 16px; height: 16px; transition: transform .15s; }
.textlink:hover svg { transform: translateX(3px); }

/* Pills and chips */
.pill {
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 600; line-height: 1.4;
  border-radius: 100px; padding: 3px 10px; white-space: nowrap;
}
.pill-ns { background: var(--ns-bg); color: var(--ns); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip {
  font-size: 12px; font-weight: 500; line-height: 1.5;
  background: var(--mist); color: var(--ink);
  border-radius: 100px; padding: 2px 10px;
  font-variant-numeric: tabular-nums;
}

/* Hero */
.hero { background: var(--ink); color: var(--on-ink); padding-block: 72px 96px; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 56px; align-items: center;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 64px); line-height: 1.02;
  font-weight: 600; letter-spacing: -0.035em;
}
.hero h1 .accent { color: var(--blue); }
.hero .sub {
  font-size: 18px; line-height: 1.6; color: var(--on-ink-muted);
  max-width: 34em; margin-top: 24px;
}
.hero .btn-row { margin-top: 32px; }
.hero-tight { padding-block: 64px 72px; }
.hero-tight h1 { font-size: clamp(36px, 5vw, 52px); }
@media (max-width: 920px) {
  .hero { padding-block: 56px 64px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
}

/* Product "screen" frame used for the illustrations */
.shot {
  background: var(--white); color: var(--ink);
  border-radius: var(--r-lg); box-shadow: var(--shadow-shot);
  overflow: hidden; min-width: 0;
}
.shot-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  font-size: 13px; font-weight: 600;
}
.shot-bar .dots { display: flex; gap: 5px; }
.shot-bar .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--steel-light); }
.shot-bar .meta { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--text-muted); }
.shot-scroll { overflow-x: auto; }
.shot-foot {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  padding: 10px 16px; border-top: 1px solid var(--border);
  font-size: 11px; color: var(--text-muted);
}
.shot-foot span { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 14px; height: 6px; border-radius: 2px; display: inline-block; }

/* Gantt illustration */
.gantt { min-width: 520px; font-size: 12px; }
.g-row { display: grid; grid-template-columns: 168px minmax(0, 1fr); min-height: 36px; border-bottom: 1px solid var(--border-subtle); }
.g-row:last-child { border-bottom: 0; }
.g-head { min-height: 32px; border-bottom: 1px solid var(--border); font-size: 11px; font-weight: 600; color: var(--text-muted); }
.g-name { display: flex; align-items: center; gap: 8px; padding: 0 12px; white-space: nowrap; overflow: hidden; }
.g-name .wbs { color: var(--text-muted); min-width: 22px; font-variant-numeric: tabular-nums; }
.g-phase { background: var(--surface-subtle); }
.g-phase .g-name { color: var(--blue); font-weight: 600; }
.g-phase .g-name .wbs { color: var(--blue); }
.g-track {
  position: relative;
  background-image: linear-gradient(to right, var(--border-subtle) 1px, transparent 1px);
  background-size: 20% 100%;
}
.g-weeks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; }
.g-weeks span { padding-left: 8px; font-variant-numeric: tabular-nums; }
.bar { position: absolute; border-radius: 3px; }
.bar.plan { top: 9px; height: 7px; background: var(--steel-light); }
.bar.act { top: 19px; height: 7px; background: var(--blue-dark); }
.bar.sum { top: 15px; height: 6px; background: var(--ink); border-radius: 2px; }
.today { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--blue); }
.g-head .today-label {
  position: absolute; top: 7px; transform: translateX(-50%);
  background: var(--blue); color: var(--on-ink);
  font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 100px;
}
.slip {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 10px; font-weight: 600; line-height: 1.4;
  color: var(--hold); background: var(--hold-bg);
  padding: 1px 6px; border-radius: 100px; white-space: nowrap;
}

/* Kanban illustration */
.kanban {
  display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 10px; padding: 14px; min-width: 500px; background: var(--surface-subtle);
}
.k-col { display: flex; flex-direction: column; gap: 8px; }
.k-title {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted); padding: 2px 2px 4px;
}
.k-count { font-size: 11px; background: var(--white); border: 1px solid var(--border); border-radius: 100px; padding: 0 7px; letter-spacing: 0; }
.k-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 10px 12px; font-size: 13px; box-shadow: var(--shadow-sm);
}
.k-card .wbs { font-size: 11px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.k-card .t { font-weight: 500; margin-top: 2px; }
.k-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 10px; font-size: 11px; color: var(--text-muted); }
.who { font-size: 11px; font-weight: 600; background: var(--mist); color: var(--ink); border-radius: 100px; padding: 1px 7px; }
.due-soon { color: var(--hold); font-weight: 600; }
.done { color: var(--ok); font-weight: 600; }
.k-card.moving { border-color: var(--blue); box-shadow: var(--shadow-md); transform: rotate(-1.5deg); }

/* Sections */
.section { padding-block: 88px; }
.section + .section { padding-top: 0; }
.section-white { background: var(--white); }
.section-white + .section { padding-top: 88px; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; }
.lede { font-size: 18px; line-height: 1.6; color: var(--text-muted); margin-top: 16px; }
@media (max-width: 720px) {
  .section { padding-block: 64px; }
  .section-white + .section { padding-top: 64px; }
}

/* What AvenLogix is */
.intro-grid {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
  gap: 48px; align-items: start;
}
@media (max-width: 920px) { .intro-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .tiles { grid-template-columns: minmax(0, 1fr); } }
.tile {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  color: inherit; text-decoration: none;
  transition: border-color .15s;
}
a.tile:hover { border-color: var(--blue); }
.tile .lockup svg { height: 38px; width: auto; max-width: 100%; }
.tile p { color: var(--text-muted); font-size: 15px; }
.tile .tile-foot { margin-top: auto; padding-top: 4px; }
.tile-soon { background: var(--surface-subtle); box-shadow: none; }

/* Why teams choose it */
.reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
@media (max-width: 860px) { .reasons { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.reason h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.reason p { color: var(--text-muted); font-size: 16px; }
.ico {
  width: 40px; height: 40px; border-radius: var(--r-md);
  background: var(--blue-light); color: var(--blue);
  display: grid; place-items: center; margin-bottom: 18px; flex-shrink: 0;
}
.ico svg { width: 20px; height: 20px; }

/* Closing call to action */
.cta {
  background: var(--ink); color: var(--on-ink);
  border-radius: var(--r-lg); padding: 48px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
}
.cta h2 { font-size: clamp(24px, 3vw, 32px); max-width: 20em; }
.cta .note { color: var(--on-ink-muted); font-size: 14px; margin-top: 10px; }
@media (max-width: 600px) { .cta { padding: 32px 24px; } }

/* PM features */
.features {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden;
}
.feature {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 18px;
  padding: 26px 28px; border-bottom: 1px solid var(--border-subtle);
}
.feature:nth-child(odd) { border-right: 1px solid var(--border-subtle); }
.feature:last-child { border-bottom: 0; }
.feature:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
.feature:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
.feature .ico { margin-bottom: 0; }
.feature h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.01em; }
.feature p { color: var(--text-muted); font-size: 15px; }
@media (max-width: 760px) {
  .features { grid-template-columns: minmax(0, 1fr); }
  .feature:nth-child(odd) { border-right: 0; }
  .feature:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--border-subtle); }
  .feature { padding: 22px 20px; gap: 14px; }
}

/* Roles */
.roles-grid {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.3fr);
  gap: 48px; align-items: start;
}
@media (max-width: 920px) { .roles-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.roles-note { color: var(--text-muted); font-size: 15px; margin-top: 20px; max-width: 30em; }
.table-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow-x: auto;
}
.roles-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.roles-table th {
  text-align: left; font-size: 12px; font-weight: 600; letter-spacing: 0.03em;
  color: var(--text-muted); padding: 14px 22px; border-bottom: 1px solid var(--border);
}
.roles-table td { padding: 18px 22px; border-bottom: 1px solid var(--border-subtle); vertical-align: top; }
.roles-table tr:last-child td { border-bottom: 0; }
.roles-table td:first-child { font-weight: 600; white-space: nowrap; }
.roles-table td:last-child { color: var(--text-muted); }
@media (max-width: 480px) { .roles-table th, .roles-table td { padding-inline: 16px; } }

/* Request access */
.ra-grid {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 24px; align-items: start;
}
@media (max-width: 880px) { .ra-grid { grid-template-columns: minmax(0, 1fr); } }
.form-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 32px;
}
@media (max-width: 600px) { .form-card { padding: 24px 20px; } }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lbl { font-size: 13px; font-weight: 600; color: var(--ink); padding: 0; }
.lbl .req { color: var(--late); }
.lbl .opt { color: var(--text-muted); font-weight: 400; }
.input {
  font: inherit; font-size: 15px; width: 100%;
  padding: 10px 12px; border: 1px solid var(--steel-light); border-radius: var(--r-md);
  background: var(--white); color: var(--ink);
}
.input:focus { outline: none; border-color: var(--blue); box-shadow: var(--focus); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset .lbl { margin-bottom: 8px; }
.seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 420px) { .seg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label {
  display: block; text-align: center; cursor: pointer;
  padding: 10px 6px; border: 1px solid var(--steel-light); border-radius: var(--r-md);
  font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums;
  transition: border-color .15s, background-color .15s;
}
.seg label:hover { border-color: var(--steel); }
.seg input:checked + label { border-color: var(--blue); background: var(--blue-light); color: var(--blue-dark); }
.seg input:focus-visible + label { box-shadow: var(--focus); }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 600px) { .checks { grid-template-columns: minmax(0, 1fr); } }
.check {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 14px; border: 1px solid var(--steel-light); border-radius: var(--r-md);
  cursor: pointer; font-size: 15px; font-weight: 500;
}
.check:has(input:checked) { border-color: var(--blue); background: var(--blue-light); }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }
.check .pill { margin-left: auto; font-size: 11px; padding: 1px 8px; background: var(--white); }
.form-actions { margin-top: 28px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-actions .hint { font-size: 13px; color: var(--text-muted); }
.done-card { text-align: left; }
.done-card .ico { background: var(--ok-bg); color: var(--ok); }
.done-card h2 { font-size: 26px; }
.done-card p { color: var(--text-muted); margin-top: 10px; font-size: 16px; }
.done-card .btn-row { margin-top: 24px; }
.aside { display: flex; flex-direction: column; gap: 16px; }
.aside-block {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 24px;
}
.aside-block h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.aside-block p { color: var(--text-muted); font-size: 15px; }
.aside-block .ico { width: 36px; height: 36px; margin-bottom: 14px; }
.email { font-weight: 500; color: var(--blue); word-break: break-all; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-ink-muted); padding-block: 48px 32px; font-size: 14px; }
.foot-top { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; }
.foot-top .brand svg { width: 140px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 22px; max-width: 640px; }
.foot-links a { color: var(--on-ink-muted); text-decoration: none; }
.foot-links a:hover { color: var(--on-ink); }
.foot-links .soon { color: var(--steel); }
.foot-bottom {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--ink-line);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
}
.foot-bottom a { color: var(--on-ink); text-decoration: none; }
.foot-bottom a:hover { text-decoration: underline; }

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

/* Terms and Privacy pages */
.legal {
  max-width: 760px; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 40px 48px;
  font-size: 16px; line-height: 1.65;
}
@media (max-width: 600px) { .legal { padding: 24px 20px; font-size: 15px; } }
.legal p, .legal ul, .legal ol, .legal table { margin: 0 0 14px; }
.legal h2 { font-size: 22px; line-height: 1.25; font-weight: 600; margin: 36px 0 12px; letter-spacing: -0.015em; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal a { word-break: break-word; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.legal th { font-size: 12px; font-weight: 600; letter-spacing: 0.03em; color: var(--text-muted); }
