/* RAVAD theme — site-specific layer on top of assets/ds/ravad-ds.css */

/* ---------- Helpers ---------- */
.h3 { font-size: var(--fs-h3); }
.h4 { font-size: var(--fs-lg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .badge { font-size: var(--fs-sm); padding: 6px 12px; }
.crumbs { font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--s-4); }
.crumbs a { text-decoration: none; }
.icon-tile--warn { background: var(--warning-bg); color: var(--warning); }

/* ---------- Hero visual (home) ---------- */
.hero-visual { position: relative; padding: var(--s-5) 0 var(--s-8); }
.hero-visual__browser { transform: none; }
.hero-visual__phone { position: absolute; right: -8px; bottom: -6px; width: 200px; }
.hero-visual__phone .frame-phone { width: 200px; border-radius: 30px; padding: 8px; }
.hero-visual__phone .frame-phone__screen { border-radius: 23px; }
.hero-visual__chip {
  position: absolute; left: -18px; bottom: 26px; display: flex; gap: 12px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 16px; box-shadow: var(--shadow-3);
}
.hero-visual__chip .icon-tile { width: 40px; height: 40px; background: var(--success-bg); color: var(--success); }
.hero-visual__chip small { display: block; color: var(--muted); font-size: 11px; }
.hero-visual__chip strong { font-family: var(--font-body); color: var(--ink); font-size: 1rem; font-weight: 650; }
@media (max-width: 1023px) {
  .hero-visual__browser { transform: none; }
}
@media (max-width: 640px) {
  .hero-visual { padding-bottom: var(--s-5); }
  .hero-visual__phone { display: none; }
  .hero-visual__chip { left: 8px; bottom: -10px; }
}

/* Phone screen */
.mk-phone { padding: 14px 14px 16px; font-size: 12px; color: var(--ink-2); background: #fff; }
.mk-phone__top { display: flex; justify-content: space-between; font-weight: 600; font-size: 11px; color: var(--ink); }
.mk-phone__top .icon { width: 14px; height: 14px; color: var(--brand-500); }
.mk-phone__hello { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--ink); margin: 14px 0 10px; line-height: 1.2; }
.mk-phone__card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; display: grid; gap: 2px; box-shadow: var(--shadow-1); }
.mk-phone__card small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.mk-phone__card strong { font-family: var(--font-head); color: var(--ink); font-size: 14px; }
.mk-phone__card > span { color: var(--muted); font-size: 11px; }
.mk-phone__map { height: 64px; margin: 8px 0 6px; border-radius: 10px; position: relative; overflow: hidden;
  background: linear-gradient(90deg, #e3edf6 1px, transparent 1px) 0 0 / 14px 14px, linear-gradient(#e3edf6 1px, transparent 1px) 0 0 / 14px 14px, #f4f8fb; }
.mk-phone__map i { position: absolute; left: 54%; top: 40%; width: 14px; height: 14px; border-radius: 50%; background: var(--brand-500); box-shadow: 0 0 0 6px rgba(0, 130, 198, .2); }
.mk-phone__gps { display: inline-flex; align-items: center; gap: 4px; color: #0b7a5a; font-weight: 600; font-size: 11px; }
.mk-phone__gps .icon { width: 13px; height: 13px; }
.mk-phone__btn { display: block; margin-top: 12px; text-align: center; padding: 10px; border-radius: 999px; background: var(--brand-600); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 13px; }

/* ---------- Mockups ---------- */
.mk { font-size: 12px; line-height: 1.45; color: var(--ink-2); user-select: none; }
.mk__body { background: #fff; }
.mk__app { display: grid; grid-template-columns: 44px 1fr; min-height: 260px; }
.mk__side { background: var(--navy-900); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 0; }
.mk__side img { width: 22px; height: 22px; margin-bottom: 6px; filter: brightness(1.6); }
.mk__side span { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #6f88a3; }
.mk__side span.is-on { background: rgba(0, 130, 198, .25); color: #9edaf8; }
.mk__side .icon { width: 16px; height: 16px; }
.mk__main { padding: 12px 14px 14px; min-width: 0; }
.mk__title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.mk__title strong { font-family: var(--font-head); font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk__search { width: 90px; height: 22px; border-radius: 6px; background: var(--surface-3); flex: none; }
.mk .badge { font-size: 10.5px; padding: 2px 8px; gap: 5px; white-space: nowrap; }
.mk .dot { width: 6px; height: 6px; }
.mk .mono { font-size: 11px; }

.mk__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.mk__kpis > div { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.mk__kpis b { display: block; font-family: var(--font-head); font-size: 17px; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.2; }
.mk__kpis span { color: var(--muted); font-size: 10.5px; }
.mk__kpis .is-warn b { color: var(--warning); }
.mk__kpis .is-ok b { color: var(--success); }

.mk__board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mk__col { background: var(--surface-2); border-radius: 10px; padding: 8px; display: grid; gap: 6px; align-content: start; }
.mk__colhead { margin-bottom: 2px; }
.mk__visit { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 7px 8px; display: grid; }
.mk__visit strong { color: var(--ink); font-size: 12px; }
.mk__visit span { color: var(--ink-2); font-size: 11px; }
.mk__visit small { color: var(--muted); font-size: 10px; }

.mk__table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.mk__table th { text-align: left; font-weight: 600; color: var(--muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; padding: 6px 6px; border-bottom: 1px solid var(--line); }
.mk__table td { padding: 7px 6px; border-bottom: 1px solid var(--surface-3); white-space: nowrap; }
.mk__table .is-ot { color: var(--warning); font-weight: 600; }
.mk__tick, .mk__none { display: inline-block; width: 14px; height: 14px; border-radius: 4px; }
.mk__tick { background: var(--brand-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.mk__none { border: 1.5px solid var(--line-strong); }

.mk__note { margin-top: 10px; display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 8px; background: var(--brand-50); color: var(--brand-700); font-weight: 600; font-size: 11.5px; }
.mk__note .icon { width: 15px; height: 15px; }
.mk__note.is-ok { background: var(--success-bg); color: #0b7a5a; }

.mk__form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.mk__form--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mk__form > div { border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; min-width: 0; }
.mk__form label { display: block; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.mk__form span { color: var(--ink); font-weight: 600; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

.mk__log, .mk__timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mk__log li, .mk__timeline li { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.mk__log strong, .mk__timeline strong { display: block; color: var(--ink); }
.mk__log small, .mk__timeline small { color: var(--muted); font-size: 10.5px; }
.mk__timeline .mono { color: var(--brand-600); font-weight: 600; }

.mk__chart { height: 130px; display: flex; align-items: flex-end; gap: 6px; padding: 10px 4px 0; border-bottom: 1px solid var(--line);
  background: linear-gradient(var(--surface-3) 1px, transparent 1px) 0 0 / 100% 32px; }
.mk__chart span { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--brand-500), var(--brand-300)); transform-origin: bottom; }
.is-in .mk__chart span { animation: grow .6s var(--ease-out) both; animation-delay: calc(var(--i) * 40ms); }
@keyframes grow { from { transform: scaleY(.1); } to { transform: none; } }

.mk__cards { display: grid; gap: 6px; }
.mk__pcard { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; }
.mk__pcard strong { display: block; color: var(--ink); }
.mk__pcard small { color: var(--muted); font-size: 10.5px; }
.mk__avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-100); color: var(--brand-700); display: grid; place-items: center; font-weight: 700; font-size: 11px; }
.mk__pmeta { display: grid; justify-items: end; gap: 2px; }

.mk__routes { display: grid; gap: 10px; }
.mk__routes svg { width: 100%; border-radius: 10px; border: 1px solid var(--line); }
.mk__route { fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 0; }
.mk__route--a { stroke: var(--brand-500); }
.mk__route--b { stroke: #12a37a; }
.is-in .mk__route { animation: draw 1.6s var(--ease-out) both; }
@keyframes draw { from { stroke-dashoffset: 600; } to { stroke-dashoffset: 0; } }
.mk__stops circle { fill: #fff; stroke: var(--navy-700); stroke-width: 2.5; }
.mk__stops .is-hub { fill: var(--navy-700); }
.mk__routes ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mk__routes li { display: flex; align-items: center; gap: 8px; }
.mk__routes li b { margin-left: auto; }
.mk__routes .icon { width: 15px; height: 15px; color: var(--success); }
.mk__swatch { width: 14px; height: 4px; border-radius: 2px; background: var(--brand-500); }
.mk__swatch.is-b { background: #12a37a; }

.mk__esign { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; padding: 16px; background: var(--surface-2); }
.mk__doc { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px; box-shadow: var(--shadow-1); display: grid; gap: 8px; align-content: start; }
.mk__docline { height: 7px; border-radius: 4px; background: var(--surface-3); }
.mk__docline.w80 { width: 80%; height: 10px; background: var(--line-strong); }
.mk__docline.w60 { width: 60%; }
.mk__docline.w70 { width: 70%; }
.mk__sig { margin-top: 10px; border-top: 1px dashed var(--line-strong); padding-top: 6px; }
.mk__sig svg, .mk__sigpair svg { width: 100%; height: 44px; }
.mk__sig path, .mk__sigpair path { fill: none; stroke: var(--navy-700); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mk__sig span { font-size: 10.5px; color: #0b7a5a; font-weight: 600; }
.mk__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; align-content: center; }
.mk__steps li { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-weight: 600; color: var(--ink); }
.mk__steps .icon { width: 16px; height: 16px; color: var(--brand-600); }

.mk__sigcheck { padding: 16px; display: grid; gap: 12px; }
.mk__sigpair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mk__sigpair figure { margin: 0; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--surface-2); }
.mk__sigpair figcaption { font-size: 10.5px; color: var(--muted); }
.mk__score { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.mk__score span { display: block; color: var(--muted); font-size: 10.5px; }
.mk__score b { font-size: 20px; color: var(--ink); }
.mk__meter { height: 8px; border-radius: 4px; background: var(--surface-3); position: relative; overflow: hidden; }
.mk__meter i { position: absolute; inset: 0 auto 0 0; width: var(--v); background: linear-gradient(90deg, var(--brand-300), var(--success)); border-radius: 4px; }
.mk__extract { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mk__extract li { border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; }
.mk__extract span { display: block; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.mk__extract b { color: var(--ink); }

@media (max-width: 520px) {
  .mk__app { grid-template-columns: 1fr; }
  .mk__side { display: none; }
  .mk__board { grid-template-columns: 1fr 1fr; }
  .mk__board .mk__col:nth-child(3) { display: none; }
  .mk__esign { grid-template-columns: 1fr; }
  .mk__form { grid-template-columns: 1fr 1fr; }
  .mk__table th:nth-child(n+5), .mk__table td:nth-child(n+5) { display: none; }
  .mk[data-mockup="claims"] .mk__table th:nth-child(3), .mk[data-mockup="claims"] .mk__table td:nth-child(3) { display: none; }
}

/* ---------- Bento extras ---------- */
.bento__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s-2); }
.bento__tag { align-self: flex-start; margin-bottom: var(--s-3); }
.bento__visual .frame-browser { width: 100%; transform: translateY(14px); box-shadow: var(--shadow-2); transition: transform var(--t-slow) var(--ease-out); }
.bento__item:hover .bento__visual .frame-browser { transform: translateY(4px); }
.bento__item--custom { display: grid; gap: var(--s-6); align-items: center; background: var(--surface-2); }
@media (min-width: 960px) { .bento__item--custom { grid-template-columns: 1fr 1.15fr; } }
.bento__custom-text { display: flex; flex-direction: column; align-items: flex-start; }
.bento__custom-text .icon-tile { margin-bottom: var(--s-3); }
.bento__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
@media (min-width: 1100px) { .bento__steps { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.bento__steps li { border: 0; border-top: 1px solid var(--line-strong); border-radius: 0; padding: 12px 0 0; background: transparent; }
.bento__steps .mono { display: block; color: var(--brand-600); font: 700 12px/1.6 var(--font-body); letter-spacing: .1em; }
.bento__steps strong { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.bento__steps small { color: var(--muted); font-size: var(--fs-xs); line-height: 1.4; display: block; }

/* ---------- Dark bands ---------- */
.flow-band, .eng-band { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.flow-band__stats { margin-top: var(--s-8); padding-top: var(--s-6); border-top: 1px solid var(--navy-line); }
.flow-band .stat__label { color: var(--on-navy-muted); }
.eng-band__cards { gap: var(--s-4); }
.eng-band .card h3 { display: flex; align-items: center; gap: 8px; color: #fff; }
.eng-band__ext { width: 16px; height: 16px; opacity: .6; }

/* ---------- Product page ---------- */
.product-hero .lead { max-width: 600px; }
.wwd { max-width: 820px; margin-bottom: var(--s-8); }
.card--pain { border-top: 3px solid var(--warning); }
.module__title { font-size: var(--fs-xl); }
.int-grid .card h2 { margin-top: 0; }
.int-grid .icon-tile { margin-bottom: var(--s-4); }

/* ---------- Generic pages ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(3.5rem, 2rem + 4vw, 6rem) 0 var(--s-7); background: linear-gradient(180deg, #fff, var(--surface-2)); border-bottom: 1px solid var(--line); }
.page-hero::before { content: ""; position: absolute; z-index: -1; width: 760px; height: 760px; right: -260px; top: -380px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 130, 198, .14), rgba(0, 130, 198, 0)); }
.page-hero h1 { font-size: clamp(2.25rem, 1.6rem + 2.5vw, 3.5rem); max-width: 900px; }
.page-hero .lead { max-width: 680px; margin: 0; }
.page-body { padding-top: var(--s-8); }
.contact-grid { display: grid; gap: var(--s-7); align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.5fr 1fr; } .contact-card { position: sticky; top: 100px; } }
.contact-card .contact-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.contact-card .contact-list svg { color: var(--brand-500); width: 18px; height: 18px; margin-top: 3px; }
.next-steps { padding-left: 1.2rem; color: var(--muted); }
.next-steps li { margin-bottom: 6px; }
.page-404 .nf-links { justify-content: center; }

/* ---------- Brand logo ---------- */
.brand img.brand__logo { width: auto; height: 50px; }
.site-footer .brand img.brand__logo { height: 56px; }
@media (max-width: 640px) { .brand img.brand__logo { height: 42px; } }

/* ---------- Footer ---------- */
.footer-note { display: inline-flex; align-items: center; gap: 8px; color: var(--on-navy); }
.footer-note .icon { width: 18px; height: 18px; color: #6cc4f2; }

/* ---------- Contact Form 7 ---------- */
.wpcf7 form.form { margin-top: var(--s-5); }
.wpcf7 p { margin: 0; }
.wpcf7-form-control-wrap { display: block; }
.wpcf7-not-valid-tip { display: block; margin-top: 6px; color: #b42f2f; font-size: var(--fs-sm); font-weight: 600; }
.wpcf7-not-valid { border-color: var(--danger) !important; }
.wpcf7 form .wpcf7-response-output { margin: var(--s-4) 0 0; padding: var(--s-3) var(--s-4); border-radius: 10px; border: 1.5px solid var(--line-strong); font-weight: 600; }
/* CF7's own CSS is off (wpcf7_load_css), so hide the empty message box and the screen-reader copy ourselves. */
.wpcf7 form.init .wpcf7-response-output, .wpcf7 form.resetting .wpcf7-response-output, .wpcf7 form.submitting .wpcf7-response-output { display: none; }
.wpcf7 .screen-reader-response { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; border: 0; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output, .wpcf7 form.spam .wpcf7-response-output { border-color: var(--danger); background: var(--danger-bg); color: #a92f2f; }
/* Sent: the fields give way to a success panel. */
.wpcf7 form.sent > :not(.wpcf7-response-output) { display: none; }
.wpcf7 form.sent .wpcf7-response-output { display: grid; justify-items: center; gap: 10px; margin: 0; padding: 36px 24px; border: 1px solid #bfe9d8; border-radius: 18px; background: var(--success-bg); color: #0b6b50; font: 600 1.05rem/1.5 var(--font-body); text-align: center; animation: fadeUp .5s var(--ease-out); }
.wpcf7 form.sent .wpcf7-response-output::before { content: ""; width: 56px; height: 56px; border-radius: 50%; background: var(--success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8.5'/%3E%3C/svg%3E") center / 28px no-repeat; box-shadow: 0 12px 24px -12px rgba(15, 157, 99, .7); }
/* Custom select arrow. */
.form select { -webkit-appearance: none; appearance: none; padding-right: 46px; cursor: pointer; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006aa6' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 16px center / 18px no-repeat; }
.form input:hover:not(:focus), .form select:hover:not(:focus), .form textarea:hover:not(:focus) { border-color: var(--brand-200); }
/* Submit: CF7 adds a loader after the button (.ajax-loader in 5.4, .wpcf7-spinner in newer versions); show it inside the button while sending. */
.wpcf7 form .wpcf7-submit + .ajax-loader, .wpcf7 form .wpcf7-submit + .wpcf7-spinner { display: none; }
.wpcf7 form.submitting div:has(> .wpcf7-submit) { position: relative; }
.wpcf7 form.submitting .wpcf7-submit { opacity: .75; cursor: progress; }
.wpcf7 form.submitting .wpcf7-submit + .ajax-loader, .wpcf7 form.submitting .wpcf7-submit + .wpcf7-spinner { display: block; margin-left: 0; visibility: visible; background: none; position: absolute; right: 20px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: ravadSpin .8s linear infinite; }
@keyframes ravadSpin { to { transform: rotate(360deg); } }
.form-legal { margin: var(--s-4) 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; text-align: center; }
.form-legal a { color: inherit; }
.grecaptcha-badge { visibility: hidden; }
.ravad-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Editorial direction adjustments ---------- */
/* Product UI inside frames keeps a UI sans, like the real application. */
.mk, .mk-phone, .hero-visual__chip small { --font-head: var(--font-body); }
.mk__title strong, .mk__kpis b, .mk-phone__hello, .mk-phone__card strong { font-weight: 700; }
/* Bento: visual follows the text instead of sinking to the bottom of tall cards. */
.bento__visual { display: block; flex: none; margin-top: var(--s-6); }
.bento__visual .frame-browser { transform: none; }
.bento__item:hover .bento__visual .frame-browser { transform: none; }

/* ---------- Clear Sky adjustments ---------- */
.hero h1 { margin-bottom: var(--s-5); }
.product-hero h1 { font-size: clamp(2.3rem, 1.5rem + 2.6vw, 3.6rem); }

/* Office address on two lines (ravad_address_html) */
.addr { display: inline-flex; flex-direction: column; line-height: 1.45; }
.addr > span + span { color: inherit; opacity: .8; }

/* Office address on two lines (ravad_address_html) */
.addr { display: inline-flex; flex-direction: column; line-height: 1.45; }
.addr  + span { color: inherit; opacity: .8; }
