/* Company area: About, Contact, Request a Demo, Free Audit, Terms, Privacy, 404.
   Owner: company builder. Uses tokens + components from site.css; only page-specific pieces live here. */

/* ---------- Shared bits ---------- */
/* Chip (Figma "Chips / Chip": lime-100 fill, green-700 label, 32px pill) */
.co-chip { display: inline-flex; align-items: center; align-self: flex-start; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--lime-100); color: var(--green-700); font-size: 14px; line-height: 1.5; font-weight: 400; white-space: nowrap; }
.theme-lime .co-chip { background: var(--black); color: var(--lime); }
.section-head--center .co-chip { align-self: center; }
.co-lead { color: var(--n300); }
.theme-lime .co-lead { color: var(--n800); }
.co-link { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 500; color: var(--lime); }
.co-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.theme-lime .co-link { color: var(--black); }
.co-badges { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.co-badges img { height: 72px; width: auto; }
.co-badges--sm img { height: 54px; }

/* ---------- About: hero ---------- */
.co-hero.page-hero__grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.co-hero__media { justify-self: end; width: 100%; max-width: 560px; aspect-ratio: 1; display: grid; place-items: center; padding: 64px; border-radius: var(--radius-lg); background: var(--black); border: 1px solid var(--n800); }
.co-hero__media img { width: 100%; height: auto; }

/* ---------- About: mission (lime) ---------- */
.co-mission { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.co-mission__head { display: flex; flex-direction: column; gap: 16px; }
.co-mission__copy p { font-size: 18px; line-height: 1.6; color: var(--n800); }
.co-mission__copy p + p { margin-top: 20px; }

/* ---------- About: values ---------- */
.co-values .feature-card { padding: 32px; gap: 16px; }
.co-values .feature-card > img { width: 56px; height: 56px; }
.co-values .feature-card p { color: var(--n300); }

/* ---------- About: story (lime) ---------- */
.co-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.co-story__copy { display: flex; flex-direction: column; gap: 24px; }
.co-story__copy .prose p { font-size: 18px; line-height: 1.6; color: var(--n800); }
.co-timeline { display: flex; flex-direction: column; }
.co-timeline__item { position: relative; padding: 0 0 24px 40px; }
.co-timeline__item::before { content: ""; position: absolute; left: 7px; top: 28px; bottom: 0; width: 2px; background: var(--black); opacity: .18; }
.co-timeline__item:last-child { padding-bottom: 0; }
.co-timeline__item:last-child::before { display: none; }
.co-timeline__dot { position: absolute; left: 0; top: 22px; width: 16px; height: 16px; border-radius: 50%; background: var(--black); border: 3px solid var(--lime); box-shadow: 0 0 0 1px var(--black); }
.co-timeline__card { padding: 20px 24px; border-radius: var(--radius-md); background: var(--lime-50); border: 1px solid var(--lime-500); color: var(--black); display: flex; flex-direction: column; gap: 4px; }
.co-timeline__card p { color: var(--n700); }
.co-logo-card { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 32px; border-radius: var(--radius-lg); background: var(--black); color: var(--lime); }
.co-logo-card .logo-svg { width: 232px; height: 40px; }
.co-logo-card p { color: var(--n300); }

/* ---------- About: leadership placeholder ---------- */
.co-team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.co-team__card { display: flex; align-items: center; gap: 16px; padding: 24px; border-radius: var(--radius-md); border: 1px dashed var(--n600); background: var(--n900); }
.co-team__avatar { flex: 0 0 64px; height: 64px; border-radius: 50%; background: var(--n800) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='9' r='4' fill='%23737373'/%3E%3Cpath d='M4 21c0-4.4 3.6-7 8-7s8 2.6 8 7' fill='%23737373'/%3E%3C/svg%3E") center/32px no-repeat; }
.co-team__card p { color: var(--n400); }
.co-team__cta { margin-top: 40px; }

/* ---------- About: security (lime) ---------- */
.co-security { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; margin-bottom: 48px; }
.co-security__copy { display: flex; flex-direction: column; gap: 24px; }
.co-security__badges { display: flex; flex-direction: column; gap: 24px; padding: 40px; border-radius: var(--radius-lg); background: var(--black); color: var(--white); }
.co-security__badges p { color: var(--n300); }
.co-security .feature-card p, .co-facts .feature-card p { color: var(--n700); }

/* ---------- Contact ---------- */
.co-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 620px); gap: 64px; align-items: start; }
.co-split__copy { display: flex; flex-direction: column; gap: 24px; padding-top: 16px; }
.co-split__copy .body-lg { max-width: 560px; }
.co-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; padding-top: 32px; border-top: 1px solid var(--n800); max-width: 600px; }
.co-details dt { font-size: 14px; color: var(--n400); margin-bottom: 4px; }
.co-details dd { font-size: 16px; line-height: 1.5; }
.co-details a { color: var(--white); text-decoration: underline; text-decoration-color: var(--n600); text-underline-offset: 3px; }
.co-details a:hover { text-decoration-color: var(--lime); }
.co-ways .feature-card__icon { background: var(--black); }
.co-ways .feature-card { gap: 12px; transition: border-color .15s, transform .15s; }
.co-ways a.feature-card:hover { border-color: var(--black); transform: translateY(-2px); }
.co-ways .feature-card p { color: var(--n700); flex: 1; }

/* ---------- Forms (card + fields) ---------- */
.co-form-card { display: flex; flex-direction: column; gap: 32px; padding: 32px; border-radius: var(--radius-md); border: 1px solid var(--n700); background: var(--n900); }
.co-form-card__head { display: flex; flex-direction: column; gap: 4px; }
.co-form-card__head .heading-lg { line-height: 1.3; }
.co-form-card__head p { font-size: 18px; line-height: 1.6; }
.co-form { display: flex; flex-direction: column; gap: 24px; }
.co-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.co-form .field label { font-weight: 500; }
.co-req { color: var(--lime); margin-left: 2px; }
.co-form .select { appearance: none; -webkit-appearance: none; padding-right: 44px; background: var(--n900) url("/assets/icons/chevron-down.svg") right 16px center / 14px no-repeat; cursor: pointer; }
.co-form .select:invalid { color: var(--n500); }
.co-form .select option { color: var(--white); background: var(--n900); }
.co-check { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; padding: 16px; border-radius: var(--radius-sm); border: 1px solid var(--n800); background: var(--black); }
.co-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--lime); cursor: pointer; }
.co-check a { text-decoration: underline; text-underline-offset: 2px; }
.co-check a:hover { color: var(--lime); }
.co-check label { font-size: 13px; line-height: 1.55; font-weight: 400; color: var(--n300); cursor: pointer; }
.co-form .form-note a { text-decoration: underline; text-underline-offset: 3px; }
.co-form .form-note a:hover { color: var(--lime); }
.co-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.co-form__fine { font-size: 13px; color: var(--n400); }
.co-form__success { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; border-radius: var(--radius-sm); background: var(--lime-100); color: var(--black); font-size: 16px; }
.co-form__success::before { content: ""; flex: 0 0 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--black) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23d2ff70' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.co-form__success[hidden] { display: none; }
/* After a successful (demo) submit, hide the inputs and keep the thank-you message */
.co-form:has([data-form-success]:not([hidden])) .co-form__body { display: none; }

/* ---------- Request a demo ---------- */
.co-quotes { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.co-quote { display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: var(--radius-md); background: var(--black); border: 1px solid var(--n800); }
.co-quote blockquote p { font-size: 16px; line-height: 1.6; color: var(--n300); }
.co-quote blockquote strong { color: var(--white); font-weight: 600; }
.co-quote figcaption { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.4; }
.co-quote figcaption strong { display: block; font-size: 16px; font-weight: 600; }
.co-quote figcaption span span { color: var(--n400); }
.co-quote__avatar { flex: 0 0 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--black); font-size: 14px; font-weight: 600; }

/* ---------- Free audit (Figma 11743:21508) ---------- */
.co-audit { padding-block: 160px; border-bottom: 1px solid var(--n800); }
.co-audit__grid { display: grid; grid-template-columns: minmax(0, 596fr) minmax(0, 620fr); gap: 64px; max-width: 1280px; margin-inline: auto; align-items: start; }
.co-audit__copy { display: flex; flex-direction: column; gap: 80px; }
.co-audit__head { display: flex; flex-direction: column; gap: 24px; padding-right: 96px; }
.co-audit__mock { border-radius: var(--radius-md); overflow: hidden; }
.co-audit__mock img { width: 100%; height: auto; }
.co-audit .co-form-card { gap: 48px; }
.co-trust { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.co-trust__copy { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.co-trust__copy .co-link { margin-top: 4px; }
.co-trust .co-badges { padding: 16px 24px; border-radius: var(--radius-md); background: var(--black); }

/* ---------- Legal pages ---------- */
.legal-hero { padding-block: 96px 64px; border-bottom: 1px solid var(--n800); }
.legal-hero .page-hero__copy { gap: 16px; }
.legal-hero__inner { max-width: 1120px; margin-inline: auto; }
.legal-hero__meta { font-size: 16px; color: var(--n400); }
.legal__grid { display: grid; grid-template-columns: 280px minmax(0, 760px); gap: 80px; justify-content: center; align-items: start; }
.legal__toc { position: sticky; top: calc(var(--header-h) + 32px); max-height: calc(100vh - var(--header-h) - 64px); overflow-y: auto; padding-right: 8px; }
.legal__toc summary { font-size: 14px; font-weight: 600; color: var(--n400); margin-bottom: 16px; list-style: none; cursor: default; }
.legal__toc summary::-webkit-details-marker { display: none; }
.legal__toc ol { display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--n800); }
.legal__toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 1px solid transparent; font-size: 14px; line-height: 1.45; color: var(--n400); transition: color .15s, border-color .15s; }
.legal__toc a:hover, .legal__toc a.is-active { color: var(--white); border-left-color: var(--lime); }
.legal__article { margin: 0; max-width: 760px; }
.legal__article h2 { font-size: 24px; margin: 56px 0 16px; scroll-margin-top: calc(var(--header-h) + 24px); }
.legal__article h2:first-child { margin-top: 0; }
.legal__article h3 { font-size: 18px; margin: 32px 0 8px; color: var(--white); }
.legal__article p, .legal__article li { font-size: 16px; line-height: 1.7; }
.legal__article p + p { margin-top: 16px; }
.legal__article li + li { margin-top: 8px; }
.legal__article a { word-break: break-word; }

/* ---------- 404 ---------- */
.co-404 { min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; padding-block: 120px; }
.co-404__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; max-width: 760px; }
.co-404__code { font-size: 120px; line-height: 1; font-weight: 600; color: var(--lime); letter-spacing: -0.04em; }
.co-404__links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; padding-top: 24px; border-top: 1px solid var(--n800); width: 100%; }
.co-404__links a { font-size: 16px; color: var(--n300); }
.co-404__links a:hover { color: var(--lime); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .co-audit__head { padding-right: 0; }
}
@media (max-width: 1024px) {
  .co-mission, .co-story, .co-security, .co-split, .co-audit__grid { grid-template-columns: 1fr; gap: 40px; }
  .co-hero.page-hero__grid { grid-template-columns: 1fr; }
  .co-hero__media { justify-self: start; max-width: 440px; padding: 48px; }
  .co-team { grid-template-columns: 1fr 1fr; }
  .co-audit { padding-block: 96px; }
  .co-audit__copy { gap: 48px; }
  .co-audit__mock { max-width: 640px; }
  .co-audit__head .body-lg { max-width: 640px; }
  .legal__grid { grid-template-columns: minmax(0, 760px); gap: 32px; }
  .legal-hero__inner { max-width: 760px; }
  .legal__toc { position: static; max-height: none; padding: 16px 20px; border: 1px solid var(--n800); border-radius: var(--radius-md); background: var(--black); }
  .legal__toc summary { margin-bottom: 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
  .legal__toc summary::after { content: ""; width: 14px; height: 14px; background: url("/assets/icons/chevron-down.svg") center/14px no-repeat; transition: transform .2s; }
  .legal__toc[open] summary { margin-bottom: 16px; }
  .legal__toc[open] summary::after { transform: rotate(180deg); }
}
@media (max-width: 768px) {
  .co-form-card { padding: 24px 20px; gap: 24px; }
  .co-form__row { grid-template-columns: 1fr; }
  .co-details { grid-template-columns: 1fr; }
  .co-team { grid-template-columns: 1fr; }
  .co-audit { padding-block: 56px; }
  .co-audit .co-form-card { gap: 32px; }
  .co-security__badges { padding: 24px; }
  .co-badges img { height: 56px; }
  .co-logo-card .logo-svg { width: 186px; height: 32px; }
  .legal-hero { padding-block: 56px 40px; }
  .legal__article h2 { font-size: 22px; margin-top: 40px; }
  .co-404 { padding-block: 72px; min-height: 0; }
  .co-404__code { font-size: 88px; }
}

/* Nov 11: Contact — details sit under the intro on desktop, after the form on small screens */
.page-contact .co-split { grid-template-rows: auto 1fr; }
.page-contact .co-split > .co-form-card { grid-column: 2; grid-row: 1 / span 2; }
.page-contact .co-split > .co-details { grid-column: 1; grid-row: 2; align-self: start; margin-top: 0; }
@media (max-width: 1024px) {
  .page-contact .co-split { grid-template-rows: none; }
  .page-contact .co-split > .co-form-card, .page-contact .co-split > .co-details { grid-column: auto; grid-row: auto; }
}

/* Nov 11: Request a Demo testimonial cards (Neutral 800, no border); hidden on small screens so the form comes first */
.co-quote { background: var(--n800); border: 0; }
/* Review Nov 11: hide wherever .co-split stacks (<=1024px), not only <=768px, so tablets also get the form first */
@media (max-width: 1024px) { .page-demo .co-quotes { display: none; } }

/* Nov 11: SOC 2 band on lime: no dark box behind the badges; dark badge versions */
.co-trust .co-badges { padding: 0; border-radius: 0; background: none; }

/* Careers (ported Nov 18) */
.co-jobs .feature-card { display: flex; flex-direction: column; gap: 12px; }
.co-jobs .feature-card .btn-row { margin-top: auto; padding-top: 8px; }
.co-jobs__close { margin-top: 48px; text-align: center; }
