/* R3a.1 front page — brand-manual front-page spec. Only --cbx-* tokens
   (brand.css defines them); no new colours. Fully fluid, no fixed widths. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
html, body { margin: 0; padding: 0; }
body.esileht {
  background: var(--cbx-paper); color: var(--cbx-ink);
  font-family: var(--cbx-font-body), system-ui, sans-serif;
  font-size: 15px; line-height: 1.55;
}
.el-wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 72px); }
a { color: var(--cbx-steel-700); }
a:hover { color: var(--cbx-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--cbx-steel); outline-offset: 2px;
}

/* --- type scale (spec) --- */
.el-h1 {
  font-family: var(--cbx-font-heading); font-weight: 600;
  font-size: clamp(44px, 6vw, 80px); line-height: 1.04;
  letter-spacing: 0.01em; text-transform: uppercase;
  margin: 0 0 22px -0.052em;
}
.el-h1-steel { color: var(--cbx-steel-700); }
.el-h2 {
  font-family: var(--cbx-font-heading); font-weight: 600;
  font-size: clamp(32px, 4vw, 46px); line-height: 1.08;
  text-transform: uppercase; margin: 0 0 14px;
}
.el-h3 {
  font-family: var(--cbx-font-heading); font-weight: 600;
  font-size: 26px; line-height: 1.12; margin: 0 0 8px;
}
.el-kicker {
  font-family: var(--cbx-font-heading); font-weight: 600; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--cbx-steel-700);
  border-bottom: 1px solid var(--cbx-divider); padding-bottom: 8px; margin-bottom: 18px;
}
.el-lead { font-size: 17px; line-height: 1.55; max-width: 56ch; }
.el-body { font-size: 15px; max-width: 60ch; }
/* Contrast rule: small text >= neutral-700. */
.el-small { font-size: 13px; color: var(--cbx-neutral-700); max-width: 70ch; }
.el-error { font-size: 14px; color: var(--cbx-ink); background: var(--cbx-steel-100);
  border-left: 3px solid var(--cbx-steel-700); padding: 8px 10px; }

/* --- buttons --- */
.el-btn {
  display: inline-block; font-family: var(--cbx-font-body); font-size: 15px;
  padding: 10px 22px; border: 1px solid var(--cbx-steel-700);
  border-radius: 2px; text-decoration: none; cursor: pointer;
  white-space: nowrap;
}
.el-btn-primary { background: var(--cbx-steel-700); color: var(--cbx-paper); }
.el-btn-primary:hover { background: var(--cbx-steel-600); color: var(--cbx-paper); }
.el-btn-primary:active { background: var(--cbx-steel-600); }
.el-btn-secondary { background: transparent; color: var(--cbx-steel-700); }
.el-btn-secondary:hover { background: var(--cbx-steel-100); color: var(--cbx-deep); }
.el-btn-block { width: 100%; text-align: center; }
.el-btn-paper { background: var(--cbx-paper); color: var(--cbx-deep);
  border-color: var(--cbx-paper); }
.el-btn-paper:hover { background: var(--cbx-steel-200); color: var(--cbx-deep); }
.el-btn:disabled { opacity: 0.45; }

/* --- blueprint frames (Industry) --- */
.blueprint { position: relative; border: 1px solid var(--cbx-divider);
  border-radius: 0; background: var(--cbx-paper); }
.corner { position: absolute; width: 9px; height: 9px; }
.corner::before, .corner::after { content: ""; position: absolute; background: var(--cbx-ink); }
.corner::before { width: 9px; height: 1px; top: 4px; }
.corner::after { width: 1px; height: 9px; left: 4px; }
.corner.tl { top: -5px; left: -5px; }
.corner.tr { top: -5px; right: -5px; }
.corner.bl { bottom: -5px; left: -5px; }
.corner.br { bottom: -5px; right: -5px; }

/* --- header --- */
.el-header { position: sticky; top: 0; z-index: 40; height: 64px;
  background: rgba(242, 242, 243, 0.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cbx-divider); }
.el-header-row { display: flex; align-items: center; gap: 22px; height: 64px; }
.el-logo { display: inline-flex; align-items: center; gap: 10px;
  color: var(--cbx-ink); text-decoration: none; }
.el-logo svg { width: 20px; height: 20px; display: block; }
.el-wordmark { font-family: var(--cbx-font-heading); font-weight: 600;
  font-size: 20px; line-height: 1; letter-spacing: 0.005em; }
.el-nav { display: flex; gap: 18px; margin-left: auto; }
.el-nav a { font-size: 14px; text-decoration: none; color: var(--cbx-ink); }
.el-nav a:hover { color: var(--cbx-steel-700); }
.el-header-cta { padding: 7px 16px; font-size: 14px; }
@media (max-width: 480px) {
  .el-nav { display: none; }
}

/* --- hero --- */
.el-hero { padding-top: clamp(48px, 7vw, 96px); padding-bottom: 84px; }
.el-hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: clamp(40px, 5vw, 72px); align-items: start; }
.el-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin: 22px 0; }
.el-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.el-tags span { font-family: var(--cbx-font-heading); font-weight: 600;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--cbx-steel-700); border: 1px solid var(--cbx-divider);
  padding: 4px 10px; }

/* --- login card --- */
.el-card { padding: 30px 28px 28px; }
.el-login-title { margin-top: 6px; }
.el-login-form { display: flex; flex-direction: column; gap: 6px; }
.el-login-form label { font-size: 14px; margin-top: 8px; }
.el-login-form input { font-size: 15px; padding: 9px 10px;
  border: 1px solid var(--cbx-neutral-300); border-radius: 2px;
  background: #fff; color: var(--cbx-ink); }
.el-pw-toggle { align-self: flex-start; background: none; border: none;
  color: var(--cbx-steel-700); font-size: 13px; padding: 2px 0;
  cursor: pointer; text-decoration: underline; }
.el-login-form .el-btn { margin-top: 14px; }
.el-login-links { display: flex; justify-content: space-between;
  font-size: 13px; margin-top: 10px; }
.el-login-foot { font-size: 13px; color: var(--cbx-neutral-700);
  border-top: 1px solid var(--cbx-divider); padding-top: 12px; margin-top: 16px; }

/* --- sections --- */
.el-section { padding-bottom: 84px; }
.el-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.el-grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }

/* --- cycle --- */
.el-cycle { padding: 32px 30px 28px; }
.el-cycle-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; align-items: end; margin-bottom: 18px; }
.el-cycle-label { font-family: var(--cbx-font-heading); font-weight: 600;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--cbx-steel-700); }
.el-cycle-phase { font-family: var(--cbx-font-heading); font-weight: 600;
  font-size: clamp(38px, 4.6vw, 56px); line-height: 1.05; text-transform: uppercase; }
.el-cycle-text { margin: 8px 0 0; }
.el-cycle-status { display: flex; flex-direction: column; gap: 1px;
  background: var(--cbx-divider); border: 1px solid var(--cbx-divider); }
.el-status-row { display: flex; justify-content: space-between; gap: 14px;
  background: var(--cbx-paper); padding: 9px 12px; font-size: 14px; }
.el-status-row span { color: var(--cbx-neutral-700); }
.el-cycle-status .el-small { background: var(--cbx-paper); margin: 0; padding: 8px 12px; }
.el-cycle-svg { width: 100%; height: auto; overflow: visible; display: block; }
.el-band { fill: var(--cbx-steel-200); }
.el-midline { stroke: var(--cbx-neutral-300); stroke-dasharray: 5 5; }
.el-phaseline { stroke: var(--cbx-divider); }
.el-curve { fill: none; stroke: var(--cbx-steel); stroke-width: 2.5;
  vector-effect: non-scaling-stroke; }
.el-marker-line { stroke: var(--cbx-ink); }
.el-marker-dot { fill: var(--cbx-ink); }
.el-marker-text { fill: var(--cbx-ink); font-size: 16px; letter-spacing: 1.4px;
  font-family: var(--cbx-font-heading); }
.el-phase-axis { display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--cbx-divider); margin-top: 10px; padding-top: 8px; }
.el-phase-axis span { font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--cbx-neutral-700); text-align: center; }
.el-phase-axis span.active { color: var(--cbx-ink); font-weight: 600; }

/* --- output plate --- */
.el-plate { padding: 0; }
.el-plate-head { display: flex; border-bottom: 1px solid var(--cbx-divider); }
.el-plate-head span { font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--cbx-neutral-700); padding: 10px 16px; }
.el-plate-head span + span { border-left: 1px solid var(--cbx-divider); }
.el-plate-head span:first-child { flex: 1; color: var(--cbx-ink); }
.el-plate-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px; background: var(--cbx-divider); }
.el-plate-cell { background: var(--cbx-paper); padding: 22px 24px; }
.el-plate-no { font-family: var(--cbx-font-heading); font-weight: 600;
  font-size: 13px; color: var(--cbx-steel-700); letter-spacing: 0.08em; }
@media (max-width: 640px) {
  .el-plate-grid { grid-template-columns: 1fr; }
}

/* --- steps --- */
.el-step-no { font-family: var(--cbx-font-heading); font-weight: 600;
  font-size: 30px; color: var(--cbx-steel-700); margin-bottom: 6px; }

/* --- promises --- */
.el-promises { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; border-top: 1px solid var(--cbx-divider);
  border-bottom: 1px solid var(--cbx-divider); padding: 26px 0; }
.el-promises > div + div { border-left: 1px solid var(--cbx-divider); padding-left: 20px; }
@media (max-width: 900px) {
  .el-promises > div + div { border-left: none; padding-left: 0; }
}

/* --- lists --- */
.el-list { margin: 10px 0 0; padding-left: 20px; }
.el-list li { margin-bottom: 6px; }

/* --- pricing --- */
.el-price-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.el-price-card { display: flex; flex-direction: column; }
.el-price-badge { align-self: flex-start; background: var(--cbx-steel-700);
  color: var(--cbx-paper); font-family: var(--cbx-font-heading); font-weight: 600;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 2px; margin-bottom: 12px; }
.el-price-who { min-height: 4.5em; }
.el-price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.el-price-main { font-family: var(--cbx-font-heading); font-weight: 600; font-size: 56px; line-height: 1; }
.el-price-list { font-family: var(--cbx-font-heading); font-weight: 600; font-size: 26px;
  text-decoration: line-through; color: var(--cbx-neutral-700); }
.el-price-unit { font-size: 14px; color: var(--cbx-neutral-700); }
.el-price-after { margin: 6px 0 14px; }
.el-price-rows { display: flex; flex-direction: column; gap: 1px;
  background: var(--cbx-divider); border: 1px solid var(--cbx-divider);
  margin-bottom: 18px; }
.el-price-rows > div { display: flex; justify-content: space-between; gap: 12px;
  background: var(--cbx-paper); padding: 9px 12px; font-size: 14px; }
.el-price-rows span { color: var(--cbx-neutral-700); }
.el-price-cta { margin-top: auto; text-align: center; }
.el-price-notes { margin-top: 26px; margin-bottom: 14px; }

/* --- access section (deep field) --- */
.el-access { background: var(--cbx-deep); color: var(--cbx-paper);
  padding: 56px 0 60px; }
.el-access-title { color: var(--cbx-paper); margin-bottom: 8px; }
.el-access-text { color: var(--cbx-steel-200); font-size: 17px; max-width: 60ch; }
.el-access-ok { color: var(--cbx-steel-200); font-size: 16px; border: 1px solid var(--cbx-steel-400);
  padding: 10px 14px; max-width: 60ch; }
.el-access .el-error { background: transparent; color: var(--cbx-paper);
  border-left: 3px solid var(--cbx-steel-400); }
.el-access-form { margin-top: 22px; }
.el-access-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px; margin-bottom: 18px; max-width: 900px; }
.el-access-fields label { display: flex; flex-direction: column; gap: 6px;
  font-size: 14px; color: var(--cbx-steel-200); }
.el-access-fields input, .el-access-fields select { font-size: 15px; padding: 9px 10px;
  border: 1px solid var(--cbx-steel-800); border-radius: 2px;
  background: var(--cbx-paper); color: var(--cbx-ink); }
.el-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px;
  overflow: hidden; }

/* --- footer --- */
.el-footer { border-top: 1px solid var(--cbx-divider); padding: 26px 0 30px; }
.el-footer-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.el-logo-foot svg { width: 20px; height: 20px; }
.el-wordmark-foot { font-size: 19px; }
.el-descriptor { font-size: 12px; text-transform: uppercase;
  color: var(--cbx-neutral-700); border-left: 1px solid var(--cbx-divider);
  padding-left: 18px; letter-spacing: 0.06em; }
.el-footer-links { margin-left: auto; display: flex; gap: 16px; flex-wrap: wrap; }
.el-footer-links a { font-size: 14px; }
.el-footer-meta { display: flex; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; margin-top: 14px; font-size: 12px; color: var(--cbx-neutral-700); }
.el-footer-meta .brand-version { color: var(--cbx-neutral-700); }
@media (max-width: 700px) {
  .el-descriptor { border-left: none; padding-left: 0; }
  .el-footer-links { margin-left: 0; }
}
