/* Hand-written companion of home.css (which tools/port-design.py generates from
   the design build; do not edit that file by hand). Holds what the design does
   not have: the site-wide header/footer pieces, the dialog shell that replaces
   <dialog>, the contact form inside it, and the bridge that gives the interior
   pages (theme.css) the design's type and colours. */

/* ---- interior pages follow the design's type and navy ---------------------- */
:root {
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --navy: #203b6c;
}
.v27 { font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

/* ---- header ------------------------------------------------------------------ */
.header .brand-image,
.v-footer .brand-image { width: auto; height: 34px; object-fit: contain; }
.header .language-options a[data-px-language] { white-space: nowrap; }

/* ---- footer: the design's band plus the site's link columns ------------------ */
.v-footer .footer-main { padding-bottom: 32px; }
.v-footer .footer-main p { margin-left: auto; max-width: 320px; text-align: right; }
.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px;
  padding-bottom: 36px;
}
.footer-column { display: grid; align-content: start; gap: 10px; font-size: 13px; }
.footer-column h2 { font-size: 12px; font-weight: 600; letter-spacing: 0; margin: 0 0 4px; opacity: .7; }
.footer-column a { color: inherit; }
.footer-column a:hover { color: var(--v-accent); }
.footer-column span { opacity: .75; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-legal a { color: inherit; }
@media (max-width: 680px) {
  .v-footer .footer-main p { margin-left: 0; text-align: left; }
}

/* ---- dialog shell (role="dialog" div instead of <dialog>) ------------------- */
.v-dialog {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
  overflow-y: auto;
}
.v-dialog[hidden] { display: none; }
.v-dialog__panel { position: relative; margin: auto; }

/* ---- contact form in the "project" dialog ----------------------------------- */
.v-pform .pform__cell { display: block; }
.v-pform .pform__req { color: var(--v-accent-deep); }
.v-pform .pform__error { color: #b42318; font-size: 12px; margin: -10px 0 14px; }
.v-pform textarea { min-height: 96px; resize: vertical; }
.v-pform .pform__captcha { margin: 6px 0 18px; }

/* ---- speed lab --------------------------------------------------------------- */
.benchmark-context { display: block; margin-top: 8px; }

/* ---- registration pages (trialForm, trialVerify) ------------------------------
   Not in the design: built from its hero (type, accent line, paper glow), the
   project dialog (form card) and the pricing cards (hairlines, numbers). */
.v-trial {
  position: relative;
  overflow: hidden;
  padding: 88px 0 112px;
  background:
    radial-gradient(60% 55% at 85% 0%, #e7f5f4 0%, transparent 70%),
    linear-gradient(180deg, #fff 0%, var(--v-paper) 100%);
}
.v-trial__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 540px);
  grid-template-areas: "head card" "rest card";
  grid-template-rows: auto 1fr;
  column-gap: 88px;
  align-items: start;
}
.v-trial--verify .v-trial__grid { grid-template-areas: "head card"; grid-template-rows: auto; }
.v-trial__head { grid-area: head; }
.v-trial__rest { grid-area: rest; }
.v-trial__card { grid-area: card; }

.v-trial h1 {
  margin-top: 22px;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.04;
  letter-spacing: -.045em;
  font-weight: 550;
  color: var(--v-navy);
}
.v-trial h1 > span { color: var(--v-accent-deep); }
.v-trial__lead { margin-top: 24px; max-width: 520px; font-size: 17px; line-height: 1.7; color: var(--v-muted); }
.v-trial__lead p { margin: 0; }

.v-trial__facts {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  margin: 44px 0 0;
  border-top: 1px solid var(--v-line);
  border-bottom: 1px solid var(--v-line);
}
.v-trial__facts:empty { display: none; }
.v-trial__fact { padding: 18px 20px 18px 0; }
.v-trial__fact + .v-trial__fact { padding-left: 20px; border-left: 1px solid var(--v-line); }
.v-trial__fact dt { font-size: 12px; color: var(--v-muted); }
.v-trial__fact dd { margin: 6px 0 0; font-size: 22px; font-weight: 600; letter-spacing: -.02em; color: var(--v-navy); }

.v-trial__label { margin-top: 44px; font-size: 11px; font-weight: 650; letter-spacing: .15em; text-transform: uppercase; color: var(--v-muted); }
.v-trial__steps { list-style: none; margin: 18px 0 0; padding: 0; counter-reset: v-trial-step; }
.v-trial__step {
  position: relative;
  counter-increment: v-trial-step;
  padding: 0 0 26px 58px;
}
.v-trial__step::before {
  content: counter(v-trial-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -3px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--v-line);
  font-size: 12px;
  font-weight: 650;
  color: var(--v-accent-deep);
  font-variant-numeric: tabular-nums;
}
.v-trial__step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 37px;
  bottom: 2px;
  border-left: 1px dashed #c9d4e2;
}
.v-trial__step strong { display: block; font-size: 16px; font-weight: 600; color: var(--v-navy); }
.v-trial__step p { margin-top: 6px; max-width: 470px; font-size: 14px; line-height: 1.65; color: var(--v-muted); }

.v-trial__contact { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 18px; font-size: 14px; color: var(--v-muted); }
.v-trial__contact a { color: var(--v-navy); font-weight: 600; }
.v-trial__contact a:hover { color: var(--v-accent-deep); }

.v-trial__card {
  position: sticky;
  top: 104px;
  padding: 40px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--v-line);
  box-shadow: 0 30px 90px #203b6c1f;
}
.v-trial__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 99px;
  background: #edf7f7;
  font-size: 12px;
  font-weight: 600;
  color: var(--v-accent-deep);
}
.v-trial__card h2 { margin-top: 18px; font-size: 32px; line-height: 1.1; letter-spacing: -.04em; font-weight: 550; color: var(--v-navy); }
.v-trial__intro { margin-top: 12px; font-size: 14px; line-height: 1.6; color: #7c8fa8; }
.v-trial__note { margin-top: 18px; font-size: 12px; line-height: 1.6; color: #8fa1b8; }
.v-trial__note a { color: var(--v-navy); text-decoration: underline; text-underline-offset: 2px; }
.v-trial__switch {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--v-line);
  font-size: 13px;
  font-weight: 600;
  color: var(--v-navy);
}
.v-trial__switch span { color: var(--v-accent-deep); font-size: 18px; transition: transform .2s; }
.v-trial__switch:hover span { transform: translateX(3px); }

/* the dynamic form, dressed like the project dialog's fields */
.v-tform { margin-top: 26px; }
.v-tform .pform__grid { gap: 18px 14px; }
.v-tform .pform__label { font-size: 12px; font-weight: 600; color: var(--v-navy); }
.v-tform .pform__req { color: var(--v-accent-deep); }
.v-tform .pform__control {
  width: 100%;
  margin: 0;
  padding: 13px 14px;
  border: 1px solid var(--v-line);
  border-radius: 8px;
  background-color: var(--v-paper);
  font: inherit;
  font-size: 14px;
  color: var(--v-navy);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.v-tform .pform__control::placeholder { color: #9aa9bc; }
.v-tform .pform__control:hover { border-color: #c9d4e2; }
.v-tform .pform__control:focus { outline: 0; border-color: var(--v-accent-deep); background-color: #fff; box-shadow: 0 0 0 4px #00a79d1f; }
.v-tform textarea.pform__control { min-height: 96px; }
.v-tform .pform__help { font-size: 11px; color: #8fa1b8; }
.v-tform .pform__check { accent-color: var(--v-accent-deep); width: 16px; height: 16px; }
.v-tform .pform__check-label { font-size: 13px; font-weight: 400; color: var(--v-muted); }
.v-tform .pform__req { margin-left: 2px; }
.v-tform .pform__captcha:not(:empty) { margin-top: 18px; }
.v-tform .pform__note { margin-top: 18px; font-size: 13px; }
.v-tform__submit { width: 100%; justify-content: space-between; margin-top: 24px; }
.v-tform__submit:disabled { opacity: .7; transform: none; }

/* package choice (radio field) as two cards */
.v-tform div.pform__control { padding: 0; border: 0; background: none; box-shadow: none; }
.v-tform__choice [role="radiogroup"] { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.v-tform__choice .df-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--v-line);
  border-radius: 10px;
  background: var(--v-paper);
  font-size: 14px;
  font-weight: 600;
  color: var(--v-navy);
  cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.v-tform__choice .df-option:hover { border-color: #c9d4e2; }
.v-tform__choice .df-option:has(input:checked) { border-color: var(--v-accent-deep); background: #edf7f7; box-shadow: inset 0 0 0 1px var(--v-accent-deep); }
.v-tform__choice .df-option input { margin: 0; width: 16px; height: 16px; accent-color: var(--v-accent-deep); flex: 0 0 auto; }

/* contact band (contactCard): same grid, white background, h2 instead of h1 */
.v-trial--contact { background: #fff; border-top: 1px solid var(--v-line); }
.v-trial__title { margin-top: 22px; font-size: clamp(32px, 3.7vw, 52px); line-height: 1.1; letter-spacing: -.045em; font-weight: 550; color: var(--v-navy); }
.v-trial--contact .v-trial__grid { grid-template-areas: "head card"; grid-template-rows: auto; }
.v-trial__facts--contact { margin-top: 36px; }
.v-trial__facts--contact a { color: inherit; }
.v-trial__facts--contact a:hover { color: var(--v-accent-deep); }
.v-trial__facts--contact dd { font-size: 18px; }
.v-trial--contact .v-tform { margin-top: 18px; }

@media (max-width: 1000px) {
  .v-trial { padding: 56px 0 80px; }
  .v-trial__grid,
  .v-trial--verify .v-trial__grid,
  .v-trial--contact .v-trial__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "card" "rest"; column-gap: 0; }
  .v-trial__card { position: static; margin-top: 36px; }
  .v-trial__rest { margin-top: 8px; }
}
@media (max-width: 680px) {
  .v-trial h1 { font-size: 38px; }
  .v-trial__lead { font-size: 15px; }
  .v-trial__card { padding: 26px 20px; border-radius: 12px; }
  .v-trial__card h2 { font-size: 26px; }
  .v-trial__fact { padding-right: 12px; }
  .v-trial__fact + .v-trial__fact { padding-left: 12px; }
  .v-trial__fact dd { font-size: 16px; }
  .v-trial__fact dt { font-size: 11px; }
  .v-tform__choice [role="radiogroup"] { grid-template-columns: 1fr; }
  .v-trial__facts--contact { grid-auto-flow: row; }
  .v-trial__facts--contact .v-trial__fact + .v-trial__fact { padding-left: 0; border-left: 0; border-top: 1px solid var(--v-line); }
}

/* Client strip: a logo without an image shows its name in the logos' monochrome look. */
.client-logo-name{font:700 18px/1.1 "DM Sans",sans-serif;letter-spacing:.02em;color:#000;opacity:.55;text-align:center;white-space:nowrap}

/* ---- interior pages (pageHead, textPage, contactMap, faqList) ----------------
   Not in the design: the registration page's paper glow and type, so legal
   pages and contacts read as the same site as the home page. */
.v-pagehead {
  padding: 88px 0 72px;
  background:
    radial-gradient(60% 55% at 85% 0%, #e7f5f4 0%, transparent 70%),
    linear-gradient(180deg, #fff 0%, var(--v-paper) 100%);
  border-bottom: 1px solid var(--v-line);
}
.v-pagehead__title { margin: 0; max-width: 900px; font-size: clamp(38px, 4.6vw, 64px); line-height: 1.06; letter-spacing: -.045em; font-weight: 550; color: var(--v-navy); }
.v-pagehead__lead { margin-top: 22px; max-width: 640px; font-size: 17px; line-height: 1.7; color: var(--v-muted); }
.v-pagehead__lead p { margin: 0; }
.v-pagehead__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 32px; }
.v-pagehead__actions .text-button { color: var(--v-navy); }
.v-pagehead__facts { max-width: 900px; }
/* contactCard as the contacts page's own head: the registration glow, not the home band. */
.v-trial--contact.v-trial--page {
  border-top: 0;
  background:
    radial-gradient(60% 55% at 85% 0%, #e7f5f4 0%, transparent 70%),
    linear-gradient(180deg, #fff 0%, var(--v-paper) 100%);
}
.v-trial--page .v-trial__title { margin-top: 0; font-size: clamp(38px, 4.6vw, 64px); line-height: 1.06; }

.v-text { background: #fff; }
.v-text .prose { font-family: inherit; color: var(--v-ink); }
.v-text .prose h2, .v-text .prose h3 { color: var(--v-navy); letter-spacing: -.02em; font-weight: 600; }
.v-text .prose a { color: var(--v-accent-deep); }

.map-band.v27 { background: var(--v-paper); border-color: var(--v-line); }
.map-band.v27 .v-eyebrow { margin-bottom: 4px; }
.map-band.v27 .map-band__title { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; letter-spacing: -.035em; font-weight: 550; color: var(--v-navy); }
.map-band.v27 .body { color: var(--v-muted); }
.map-band__link { margin-top: 6px; color: var(--v-navy); }
.map-band__link:hover { color: var(--v-accent-deep); }
.map-band.v27 .map-band__canvas { border-color: var(--v-line); }

.v-faq { padding: 104px 0; background: #fff; }
.v-faq__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; }
.v-faq__title { margin: 0; max-width: 840px; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.1; letter-spacing: -.045em; font-weight: 550; color: var(--v-navy); }
.v-faq__aside { margin: 0; max-width: 360px; font-size: 15px; line-height: 1.6; color: var(--v-muted); }
.v-faq__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 48px; }
.v-faq__item { padding: 26px 24px; border: 1px solid var(--v-line); border-radius: var(--v-radius); background: var(--v-paper); }
.v-faq__item h3 { margin: 0; font-size: 17px; line-height: 1.35; letter-spacing: -.01em; font-weight: 600; color: var(--v-navy); }
.v-faq__item p { margin: 12px 0 0; font-size: 14px; line-height: 1.65; color: var(--v-muted); }

@media (max-width: 680px) {
  .v-pagehead { padding: 56px 0 48px; }
  .v-pagehead__lead { font-size: 15px; }
  .v-pagehead__facts { grid-auto-flow: row; }
  .v-pagehead__facts .v-trial__fact + .v-trial__fact { padding-left: 0; border-left: 0; border-top: 1px solid var(--v-line); }
  .v-faq { padding: 64px 0; }
}

/* ---- cookie consent (footer section) ------------------------------------------
   Not in the design: a bottom sheet in the trial card's look. The platform shows
   it until the visitor chooses and wires the buttons (consent-* components). */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  max-width: 1080px; margin: 0 auto; padding: 20px 0;
  background: #fff; color: var(--v-ink);
  border: 1px solid var(--v-line); border-radius: var(--v-radius);
  box-shadow: 0 18px 50px rgba(18, 35, 59, .16);
}
.cookie-bar[hidden] { display: none; }
.cookie-bar .cookie-bar-inner { width: auto; padding: 0 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.cookie-text { flex: 1 1 320px; margin: 0; font-size: 14px; line-height: 1.6; color: var(--v-muted); }
.cookie-text a { color: var(--v-navy); text-decoration: underline; }
.cookie-options { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--v-ink); }
.cookie-option { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.cookie-option input { accent-color: var(--v-navy); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.cookie-btn { padding: 11px 16px; border: 1px solid var(--v-line); border-radius: 7px; background: #fff; color: var(--v-navy); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.cookie-btn:hover { border-color: var(--v-navy); }
.cookie-btn--primary { background: var(--v-navy); border-color: var(--v-navy); color: #fff; }
.cookie-btn--primary:hover { background: var(--v-navy-soft); }
.cookie-link { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.cookie-link:hover { text-decoration: underline; }
@media (max-width: 680px) {
  .cookie-bar { left: 8px; right: 8px; bottom: 8px; padding: 16px 0; }
  .cookie-bar .cookie-bar-inner { padding: 0 16px; }
  .cookie-actions { margin-left: 0; width: 100%; }
  .cookie-btn { flex: 1 1 auto; }
}
.cookie-text > span { margin-right: .3em; }
