/* What the Koeia prototype did not have, in its language: the comparison
   under the plan cards, the about / team / legal pages, the 404, the account
   pages (sign in, sign up, checkout, /my). Loaded after koeia-site.css (the
   prototype's layer.css) on every Koeia page. No new colours: ECH0's ground
   (--ti-bg-mid) for every card, the page's ink for text, hairlines from
   --nix-text at low alpha. */

/* ---- The comparison ------------------------------------------------------
   Under the cards, before the payment-plans note: an eyebrow, a title at the
   landing's display size, then one card in ECH0's fill holding a table. On a
   phone the table keeps its first column pinned and scrolls sideways inside
   the card, never the page. */
.compare {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  margin-top: clamp(48px, 7vw, 96px);
  text-align: center;
}
.compare__eyebrow {
  margin: 0;
  font-size: var(--text-2xs, 11px);
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--nix-text-soft);
}
body .landing__block .compare__title { margin: 0 auto; }
.compare__card {
  width: 100%;
  border-radius: 10px;
  background: var(--ti-bg-mid);
  overflow: hidden;
}
.compare__scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.compare__scroll:focus-visible { outline: var(--focus-ring); outline-offset: -2px; }
.compare__table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-family: var(--font-sans);
  text-align: center;
}
.compare__table th,
.compare__table td {
  padding: 14px 16px;
  line-height: 1.4;
  border-bottom: 1px solid color-mix(in srgb, var(--nix-text) 8%, transparent);
  vertical-align: middle;
}
.compare__table tbody tr:last-child th,
.compare__table tbody tr:last-child td { border-bottom: 0; }
.compare__table thead th { vertical-align: top; padding-top: 24px; padding-bottom: 20px; }
.compare__corner,
.compare__row {
  text-align: left;
  width: 34%;
}
.compare__corner {
  display: table-cell;
}
.compare__all {
  display: block;
  font-size: var(--text-2xs, 11px);
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--nix-text);
}
.compare__lede {
  display: block;
  margin-top: 8px;
  max-width: 260px;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.45;
  color: var(--nix-text-soft);
  text-transform: none;
  letter-spacing: 0;
}
.compare__plan { width: 22%; }
.compare__name {
  display: block;
  font-size: 15px;
  font-weight: 400;
  color: var(--nix-text);
}
.compare__amount {
  display: block;
  margin-top: 6px;
  font-size: 22px;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--nix-text);
  white-space: nowrap;
  transition: opacity 160ms ease, filter 160ms ease;
}
.compare__amount.is-swapping { opacity: 0; filter: blur(4px); }
.compare__fig { font-variant-numeric: proportional-nums; }
.compare__per { font-size: .6em; color: var(--nix-text-soft); }
.compare__cta {
  display: inline-flex;
  margin-top: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nix-text) 18%, transparent);
  font-size: 13px;
  font-weight: 400;
  color: var(--nix-text);
  text-decoration: none;
  white-space: nowrap;
  transition: background 180ms ease, box-shadow 180ms ease;
}
.compare__cta:hover {
  background: color-mix(in srgb, var(--nix-text) 6%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nix-text) 30%, transparent);
}
.compare__row {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.4;
  color: var(--nix-text);
}
.compare__yes { display: inline-flex; color: var(--nix-text); }
.compare__yes svg { width: 18px; height: 18px; }
.compare__no { color: color-mix(in srgb, var(--nix-text) 35%, transparent); font-size: 15px; }
.compare__val { font-size: 13px; font-weight: 400; color: var(--nix-text); }
@media (max-width: 760px) {
  .compare__table { min-width: 560px; }
  .compare__table th, .compare__table td { padding: 12px 10px; }
  /* the rows' names stay in view while the plans scroll under them */
  .compare__corner,
  .compare__row {
    position: sticky;
    left: 0;
    z-index: 1;
    width: 150px;
    min-width: 150px;
    background: var(--ti-bg-mid);
    box-shadow: 1px 0 0 color-mix(in srgb, var(--nix-text) 8%, transparent);
  }
  .compare__row { font-size: 13px; }
  .compare__lede { max-width: 140px; }
  .compare__amount { font-size: 18px; }
}
@media (max-width: 360px) {
  .compare__corner, .compare__row { width: 124px; min-width: 124px; }
  .compare__lede { max-width: 112px; }
}
@media (prefers-reduced-motion: reduce) {
  .compare__amount { transition: none; }
}

/* ---- Pages of the site: about, team, legal -------------------------------
   The contact page's column, a little wider for reading. */
.koeia-doc > * { width: min(680px, 100%); }
.koeia-doc > .index-foot { width: 100%; margin-top: clamp(64px, 10vw, 120px); }
.koeia-doc__eyebrow {
  margin: 0 0 14px;
  font-size: var(--text-2xs, 11px);
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--nix-text-soft);
}
.koeia-doc__block { margin-top: clamp(48px, 7vw, 80px); }
.koeia-doc__h {
  margin: 0 0 14px;
  font-size: var(--text-2xs, 11px);
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--nix-text-soft);
}
.koeia-doc__p {
  margin: 0;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--nix-text);
  text-wrap: pretty;
}
.koeia-doc__quote {
  margin: 0 0 18px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--nix-text);
  text-wrap: balance;
}
.koeia-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.koeia-steps__item {
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 16px;
  row-gap: 4px;
  padding: 20px 22px;
  border-radius: 20px;
  background: var(--ti-bg-mid);
}
.koeia-steps__n {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nix-text) 18%, transparent);
  font-size: 15px;
  font-weight: 300;
  color: var(--nix-text);
}
.koeia-steps__name { font-size: 16px; font-weight: 400; color: var(--nix-text); }
.koeia-steps__t { font-size: 14px; font-weight: 300; line-height: 1.5; color: var(--nix-text-soft); }
.koeia-doc__cta {
  margin-top: clamp(64px, 9vw, 112px);
  text-align: center;
}
.koeia-doc__cta-t {
  margin: 0 auto;
  max-width: 560px;
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--nix-text);
  text-wrap: balance;
}
.koeia-doc__cta .landing__cta { margin-top: var(--space-3); flex-wrap: wrap; gap: 12px; }

/* The team: cards in ECH0's fill, the empty places marked as such. */
.koeia-team > .koeia-team__grid { width: min(880px, 100%); }
.koeia-team__grid {
  list-style: none;
  margin: clamp(40px, 6vw, 64px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}
.koeia-team__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 28px 20px 24px;
  border-radius: 20px;
  background: var(--ti-bg-mid);
  text-align: center;
}
.koeia-team__photo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  margin-bottom: 10px;
  border-radius: 50%;
  overflow: hidden;
}
.koeia-team__photo img { width: 100%; height: 100%; object-fit: cover; }
.koeia-team__photo--empty {
  flex-direction: column;
  gap: 2px;
  border: 1px dashed color-mix(in srgb, var(--nix-text) 30%, transparent);
  color: color-mix(in srgb, var(--nix-text) 45%, transparent);
}
.koeia-team__photo--empty svg { width: 36px; height: 36px; }
.koeia-team__hint { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.koeia-team__name { font-size: 16px; font-weight: 400; color: var(--nix-text); }
.koeia-team__role { font-size: 13px; font-weight: 300; color: var(--nix-text-soft); }
.koeia-team__name--empty,
.koeia-team__role--empty { color: color-mix(in srgb, var(--nix-text) 40%, transparent); font-style: normal; }

/* Legal: one column of plain prose. */
.koeia-legal__body { margin-top: clamp(40px, 6vw, 64px); }
.koeia-legal__body h2 {
  margin: 36px 0 10px;
  font-size: 16px;
  font-weight: 500;
  color: var(--nix-text);
}
.koeia-legal__body h2:first-child { margin-top: 0; }
.koeia-legal__body p {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--nix-text);
}
.koeia-legal__body a { color: inherit; text-underline-offset: 3px; }

/* The contact page's error line. */
.contact__error {
  margin: 18px auto 0;
  max-width: 460px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--danger-text, var(--nix-text));
}

/* 404 */
.koeia-404__code {
  margin: 0 0 8px;
  font-size: clamp(64px, 11vw, 140px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: .14em;
  text-indent: .14em;
  color: color-mix(in srgb, var(--nix-text) 20%, transparent);
}
.koeia-404 .landing__cta { flex-wrap: wrap; gap: 12px; }

/* The footer's columns on a page whose main is a centred flex column. */
.koeia-foot .index-foot__col a { text-decoration: none; }

/* Blog: nothing published yet */
.koeia-blog__empty { text-align: center; color: var(--nix-text-soft); }

/* ---- The plan cards' second way in -----------------------------------------
   Under "Get a quote", the same choice straight to an account and the payment:
   a quiet underlined word, the payment-plans note's link. */
.plan__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}
.plan__actions .plan__cta { margin-top: 0; }
.plan__start {
  align-self: center;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--nix-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  transition: text-decoration-color 200ms ease;
}
.plan__start:hover { text-decoration-color: currentColor; }

/* ---- Sign in, sign up, reset ------------------------------------------------
   The contact page's column and fields. */
.koeia-auth .contact__form { margin-top: var(--space-5, 40px); }
.koeia-auth__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  margin: 4px 0 0;
  font-size: 14px;
}
.koeia-auth__links a,
.koeia-auth__fine a {
  color: var(--nix-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
}
.koeia-auth__fine {
  margin: 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: var(--nix-text-soft);
}
.koeia-auth__message {
  margin: 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: var(--nix-text);
}
/* the plan on its way, over the form */
.koeia-chip {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 4px 10px;
  margin: 22px auto 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ti-bg-mid);
  font-size: 13px;
  font-weight: 300;
  color: var(--nix-text-soft);
}
.koeia-chip b { font-weight: 400; color: var(--nix-text); }
.koeia-chip__fig { color: var(--nix-text); }

/* ---- Checkout and account (.nix-dash.acct, blank.css) -------------------- */
html body #wrapwrap.koeia-odoo main#page > .nix-dash { max-width: 600px; }
.koeia-checkout__price {
  margin: 10px 0 0;
  font-size: 28px;
  font-weight: 300;
  line-height: 1.15;
  color: var(--nix-text);
  font-variant-numeric: proportional-nums;
}
.koeia-checkout__per { font-size: .6em; color: var(--acct-soft); }
.koeia-checkout__switch {
  font-size: 13px;
  color: var(--nix-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
}
.koeia-includes {
  list-style: none;
  margin: 0;
  padding: 18px 22px;
  border-radius: 10px;
  background: var(--ti-bg-mid);
  display: grid;
  gap: 10px;
}
.koeia-includes li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.45;
  color: var(--nix-text);
}
.koeia-includes li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .3em;
  width: 12px;
  height: 7px;
  border-left: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(-45deg);
}
.koeia-checkout__pay #o_payment_form { margin-top: 4px; }
.koeia-checkout__fine {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--acct-soft);
}
.koeia-checkout__fine a { color: inherit; }
.koeia-checkout__off { margin-top: 0; }

/* The payment form, Odoo's markup, in the account's language: the options in
   ECH0's fill, the button the account's ink pill. */
#wrapwrap.koeia-odoo .o_payment_form .list-group {
  border-radius: 10px;
  overflow: hidden;
  background: var(--ti-bg-mid);
}
#wrapwrap.koeia-odoo .o_payment_form .list-group-item {
  background: transparent;
  border-color: color-mix(in srgb, var(--nix-text) 8%, transparent);
  color: var(--nix-text);
}
#wrapwrap.koeia-odoo .o_payment_form h4,
#wrapwrap.koeia-odoo .o_payment_form .o_payment_option_label { color: var(--nix-text); font-weight: 400; }
#wrapwrap.koeia-odoo .o_payment_form button[name="o_payment_submit_button"],
#wrapwrap.koeia-odoo .o_payment_form .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--nix-text);
  color: var(--ti-bg-mid);
  font-size: 14px;
  font-weight: 400;
}
#wrapwrap.koeia-odoo .o_payment_form .btn-primary:hover { opacity: .88; }
#wrapwrap.koeia-odoo .o_payment_form .form-control,
#wrapwrap.koeia-odoo .o_payment_form .form-select {
  background: var(--ti-bg-top, transparent);
  color: var(--nix-text);
  border-color: color-mix(in srgb, var(--nix-text) 14%, transparent);
  border-radius: 10px;
}

/* the account: the welcome line, the status, the steps, the thread */
.koeia-banner {
  margin: 0 0 32px;
  padding: 14px 18px;
  border-radius: 10px;
  background: var(--ti-bg-mid);
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: var(--nix-text);
}
.koeia-state--active { color: var(--nix-text); }
.koeia-project__overall { margin: 0 0 18px; font-size: 13px; color: var(--acct-soft); }
.koeia-project__pct { font-size: 28px; font-weight: 200; color: var(--nix-text); letter-spacing: -0.01em; }
.koeia-progress {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.koeia-progress__step {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  column-gap: 14px;
  row-gap: 10px;
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--ti-bg-mid);
}
.koeia-progress__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nix-text) 18%, transparent);
  font-size: 13px;
  color: var(--nix-text);
}
.koeia-progress__step.is-done .koeia-progress__n { background: var(--nix-text); color: var(--ti-bg-mid); box-shadow: none; }
.koeia-progress__step.is-now .koeia-progress__n { box-shadow: inset 0 0 0 1.5px var(--nix-text); }
.koeia-progress__main { display: grid; gap: 2px; }
.koeia-progress__name { font-size: 15px; font-weight: 400; color: var(--nix-text); }
.koeia-progress__main small { font-size: 12px; line-height: 1.4; color: var(--acct-soft); }
.koeia-progress__step .koeia-progress__pct { font-size: 13px; color: var(--acct-soft); font-variant-numeric: tabular-nums; }
.koeia-progress__bar {
  grid-column: 1 / -1;
  height: 3px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--nix-text) 10%, transparent);
  overflow: hidden;
}
.koeia-progress__bar > span {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--nix-text);
}
.koeia-progress__step.is-todo { opacity: .72; }
.koeia-project__note {
  margin: 16px 0 0;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--nix-text);
  white-space: pre-line;
}
.koeia-teamline__who { margin: 0 0 18px; }
.koeia-thread {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.koeia-thread__msg {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--ti-bg-mid);
  margin-right: 12%;
}
.koeia-thread__msg.is-mine { margin-right: 0; margin-left: 12%; background: color-mix(in srgb, var(--nix-text) 7%, transparent); }
.koeia-thread__meta { margin: 0 0 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--acct-soft); }
.koeia-thread__meta b { font-weight: 500; }
.koeia-thread__body { font-size: 14px; line-height: 1.5; color: var(--nix-text); }
.koeia-thread__body p { margin: 0; }
.acct-empty { margin: 0; font-size: 14px; color: var(--acct-soft); }
.koeia-account .acct-rows > li { flex-wrap: wrap; }
@media (max-width: 420px) {
  .koeia-progress__step { padding: 14px; column-gap: 10px; }
  .koeia-thread__msg, .koeia-thread__msg.is-mine { margin-left: 0; margin-right: 0; }
}

/* the payment form's own controls in the page's ink, not Odoo's purple */
#wrapwrap.koeia-odoo .o_payment_form input[type="radio"],
#wrapwrap.koeia-odoo .o_payment_form input[type="checkbox"] { accent-color: var(--nix-text); }
#wrapwrap.koeia-odoo .o_payment_form .form-check-input:checked {
  background-color: var(--nix-text);
  border-color: var(--nix-text);
}
.koeia-teamline .acct-sent { margin: 0 0 18px; }

/* Odoo's own portal pages under the Koeia layout (/my/account, an order, a
   payment status): one centred column under the header, like the account. */
html body #wrapwrap.koeia-odoo main#page > .o_portal,
html body #wrapwrap.koeia-odoo main#page > .o_portal_wrap,
html body #wrapwrap.koeia-odoo main#page > #wrap {
  width: min(760px, 100%);
  max-width: none;
  margin-inline: auto;
  padding-inline: 24px;
  box-sizing: border-box;
}
html body #wrapwrap.koeia-odoo main#page > :first-child:not(.nix-dash) { padding-top: 92px; }
html body #wrapwrap.koeia-odoo main#page > .o_portal_wrap .container,
html body #wrapwrap.koeia-odoo main#page > #wrap .container { max-width: 100%; padding-inline: 0; }
