/* /diagnostic-booked: the page a prospect lands on after booking the
   diagnostic. Built on style.css and responsive.css; every color and font
   below is one the homepage already uses:

     #080B11  page background (.s1)          #0B1017  card surface (.s21, .s85)
     #0F2A44  Keel navy (.s6, .s17 text)     #FFFFFF  white
     #5B9BFF  Headline Blue (.s14)           #2F6FED  Action Blue (.s10, .s36)
     rgba(255,255,255,0.66)  body grey (.s15, .s28)
     Archivo for headings, Inter for everything else. */

/* Hero: the homepage hero (.s11) at about half its height. The glow is the
   homepage's .s2. */
.db-hero { position: relative; padding: 48px 20px 0; text-align: center; max-width: 800px; margin: 0 auto; }
.db-h1 { margin: 20px auto 0; font-family: 'Archivo', system-ui, sans-serif; font-weight: 800; font-size: 54px; line-height: 1.02; letter-spacing: -0.04em; color: #FFFFFF; max-width: 20ch; }
.db-sub { margin: 16px auto 0; font-size: 18px; line-height: 1.6; color: rgba(255,255,255,0.66); font-weight: 300; max-width: 68ch; }
.db-when { display: inline-block; margin: 20px 0 0; padding: 12px 26px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.04); font-size: 17px; font-weight: 600; color: #FFFFFF; }
.db-when[hidden] { display: none; }

/* Single column */
.db-main { position: relative; max-width: 800px; margin: 0 auto; padding: 0 20px; }
.db-step { padding-top: 96px; }
.db-step[hidden] { display: none; }

.db-h2 { margin: 0; font-family: 'Archivo', system-ui, sans-serif; font-weight: 800; font-size: 40px; line-height: 1.1; letter-spacing: -0.03em; color: #FFFFFF; }
.db-num { display: block; margin-bottom: 14px; font-size: 104px; line-height: 0.9; letter-spacing: -0.05em; color: #2F6FED; }
.db-rule { width: 48px; height: 2px; background: #2F6FED; margin: 24px 0 24px; }
.db-body { margin: 0; font-size: 18px; line-height: 1.75; color: rgba(255,255,255,0.66); font-weight: 300; }
.db-body strong, .db-caption strong { color: #FFFFFF; font-weight: 600; }

/* ---- Step 1: calendar button graphic ---- */

.db-cal { position: relative; margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.db-tile { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 16px 26px 16px 20px; border-radius: 999px; background: #FFFFFF; color: #0F2A44; font-size: 17px; font-weight: 600; line-height: 1.3; box-shadow: 0 18px 50px rgba(0,0,0,0.45); cursor: default; }
.db-tile:hover { color: #0F2A44; }
.db-tile[href] { cursor: pointer; }
.db-tile[href]:hover { box-shadow: 0 22px 56px rgba(0,0,0,0.6); }
.db-tile:focus-visible { outline: 3px solid #5B9BFF; outline-offset: 4px; }
.db-tile-icon { flex-shrink: 0; display: flex; }
.db-tile-label { position: relative; z-index: 1; }

/* the press ripple sits at the tile's center, where the cursor lands */
.db-ripple { position: absolute; left: 50%; top: 50%; width: 140px; height: 140px; margin: -70px 0 0 -70px; border-radius: 999px; background: rgba(47,111,237,0.30); transform: scale(0); opacity: 0; pointer-events: none; }

/* The cursor's tip is the svg's top-left corner, so left/top are the click
   point. Tiles are side by side with a 20px gap, so their centers sit at
   25% - 5px and 75% + 5px. */
.db-cursor { position: absolute; z-index: 2; left: calc(25% - 5px); top: 50%; transform-origin: 0 0; pointer-events: none; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.45)); animation: db-cursor 5s ease-in-out infinite; }
.db-tile--google { animation: db-press-google 5s ease-in-out infinite; }
.db-tile--outlook { animation: db-press-outlook 5s ease-in-out infinite; }
.db-tile--google .db-ripple { animation: db-ripple-google 5s linear infinite; }
.db-tile--outlook .db-ripple { animation: db-ripple-outlook 5s linear infinite; }

@keyframes db-cursor {
  0%       { left: 72%; top: 150%; opacity: 0; transform: scale(1); }
  6%       { opacity: 1; }
  20%      { left: calc(25% - 5px); top: 50%; transform: scale(1); }
  23%      { transform: scale(0.82); }
  27%      { transform: scale(1); }
  44%      { left: calc(25% - 5px); top: 50%; }
  62%      { left: calc(75% + 5px); top: 50%; transform: scale(1); }
  65%      { transform: scale(0.82); }
  69%      { transform: scale(1); }
  86%      { left: calc(75% + 5px); top: 50%; opacity: 1; }
  96%, 100% { left: 72%; top: 150%; opacity: 0; }
}
@keyframes db-cursor-stacked {
  0%       { left: 78%; top: 115%; opacity: 0; transform: scale(1); }
  6%       { opacity: 1; }
  20%      { left: 50%; top: calc(25% - 4px); transform: scale(1); }
  23%      { transform: scale(0.82); }
  27%      { transform: scale(1); }
  44%      { left: 50%; top: calc(25% - 4px); }
  62%      { left: 50%; top: calc(75% + 4px); transform: scale(1); }
  65%      { transform: scale(0.82); }
  69%      { transform: scale(1); }
  86%      { left: 50%; top: calc(75% + 4px); opacity: 1; }
  96%, 100% { left: 78%; top: 115%; opacity: 0; }
}
@keyframes db-press-google {
  0%, 21%   { transform: scale(1); }
  23.5%     { transform: scale(0.96); }
  28%, 100% { transform: scale(1); }
}
@keyframes db-press-outlook {
  0%, 63%   { transform: scale(1); }
  65.5%     { transform: scale(0.96); }
  70%, 100% { transform: scale(1); }
}
@keyframes db-ripple-google {
  0%, 22%   { transform: scale(0); opacity: 0; }
  22.5%     { transform: scale(0.1); opacity: 1; }
  40%, 100% { transform: scale(1.6); opacity: 0; }
}
@keyframes db-ripple-outlook {
  0%, 64%   { transform: scale(0); opacity: 0; }
  64.5%     { transform: scale(0.1); opacity: 1; }
  82%, 100% { transform: scale(1.6); opacity: 0; }
}

.db-caption { margin: 22px 0 0; font-size: 16px; line-height: 1.7; color: rgba(255,255,255,0.66); }
.db-caption[hidden] { display: none; }
.db-small { margin: 22px 0 0; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.48); }

/* ---- Step 2: video ---- */

.db-video { position: relative; margin-top: 32px; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #0F2A44; border: 1px solid rgba(255,255,255,0.10); }
.db-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.db-video-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.db-play { width: 76px; height: 76px; border-radius: 999px; background: #FFFFFF; display: flex; align-items: center; justify-content: center; padding-left: 4px; }

/* ---- Step 3: checklist ---- */

.db-checklist { list-style: none; margin: 30px 0 0; padding: 0; border-top: 1px solid rgba(255,255,255,0.10); }
.db-checklist li { position: relative; padding: 18px 0 18px 44px; border-bottom: 1px solid rgba(255,255,255,0.10); font-size: 18px; line-height: 1.5; color: #FFFFFF; }
.db-checklist li::before { content: ""; position: absolute; left: 0; top: 17px; width: 26px; height: 26px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Ccircle cx='13' cy='13' r='12' fill='none' stroke='%232F6FED' stroke-width='2'/%3E%3Cpath d='M7.5 13.5 L11.2 17 L18.5 9.5' fill='none' stroke='%232F6FED' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; }
.db-closing { margin-top: 28px; }

/* ---- Proof: one result per row, divided like the homepage stat strip (.s20) ---- */

.db-results { display: grid; grid-template-columns: 1fr; gap: 1px; background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.10); border-radius: 20px; overflow: hidden; }
.db-result { background: #0B1017; padding: 34px 36px; }
.db-result-number { font-family: 'Archivo', system-ui, sans-serif; font-weight: 800; font-size: 48px; line-height: 1.05; letter-spacing: -0.03em; color: #2F6FED; }
.db-result-label { margin-top: 14px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #FFFFFF; font-weight: 600; }
.db-result-context { margin-top: 8px; font-size: 15px; line-height: 1.6; color: rgba(255,255,255,0.66); }

/* ---- Testimonials (only exists in the DOM when the data file has entries) ---- */

.db-quote { margin: 0; }
.db-quote-text { margin: 0; font-size: 26px; line-height: 1.5; color: #FFFFFF; font-weight: 300; }
.db-testimonials-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.db-testimonials-grid .db-quote { border-radius: 22px; border: 1px solid rgba(255,255,255,0.10); background: #0B1017; padding: 32px 30px; display: flex; flex-direction: column; justify-content: space-between; gap: 26px; }
.db-testimonials-grid .db-quote-text { font-size: 18px; line-height: 1.65; }
.db-attrib { margin-top: 26px; display: flex; align-items: center; gap: 14px; }
.db-testimonials-grid .db-attrib { margin-top: 0; }
.db-video-link + .db-attrib { margin-top: 20px; }
.db-attrib img { width: 48px; height: 48px; border-radius: 999px; object-fit: cover; flex-shrink: 0; display: block; }
.db-attrib-name { font-size: 15px; font-weight: 600; color: #FFFFFF; }
.db-attrib-role { font-size: 14px; color: rgba(255,255,255,0.62); }
.db-video-link { margin-top: 22px; align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 9px 20px 9px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.24); font-size: 14px; color: #FFFFFF; }
.db-video-link:hover { background: rgba(91,155,255,0.16); color: #FFFFFF; }
.db-video-link span { width: 22px; height: 22px; border-radius: 999px; background: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; }

/* Footer: the homepage footer (.s102) with the copy cut to logo and copyright */
.db-footer { max-width: 800px; margin: 0 auto; padding: 112px 20px 48px; }
.db-footer .s104 { align-items: center; }
.db-footer .s106 { margin-bottom: 0; }

/* ============================ tablet, <= 1024px ======================== */
@media (max-width: 1024px) {
  .db-h1 { font-size: 48px; }
  .db-footer { padding: 88px 20px 40px; }
  .db-footer .s104 { flex-direction: row; align-items: center; }
}

/* ===================== tiles stack, < 600px ============================ */
@media (max-width: 599px) {
  .db-cal { grid-template-columns: 1fr; gap: 16px; }
  .db-tile { min-height: 76px; }
  /* stacked tiles: centers at 25% - 4px and 75% + 4px of the column height */
  .db-cursor { left: 50%; top: calc(25% - 4px); animation-name: db-cursor-stacked; }
  .db-testimonials-grid { grid-template-columns: 1fr; }
}

/* ============================= phone, <= 560px ========================= */
@media (max-width: 560px) {
  .db-hero { padding-top: 40px; }
  .db-h1 { font-size: 34px; margin-top: 18px; max-width: none; }
  .db-sub { font-size: 17px; }
  .db-when { font-size: 15px; padding: 10px 20px; }
  .db-step { padding-top: 72px; }
  .db-h2 { font-size: 30px; }
  .db-num { font-size: 80px; }
  .db-body, .db-checklist li { font-size: 17px; }
  .db-result { padding: 28px 24px; }
  .db-result-number { font-size: 36px; }
  .db-quote-text { font-size: 21px; }
  .db-footer { padding: 72px 20px 36px; }
}

/* Reduced motion: no animation, the cursor rests on the Google tile */
@media (prefers-reduced-motion: reduce) {
  .db-cal .db-cursor, .db-cal .db-tile, .db-cal .db-tile .db-ripple { animation: none; }
}


/* ===================== steps timeline, proof band, case files ========= */
/* The three steps hang on one Action Blue line with numbered nodes and a
   monospace STEP label above each heading. The node and the line are
   placed from the step's top padding (--step-pad), so they line up with
   the label at every width. */

.db-steps { --step-pad: 96px; --node: 44px; padding-bottom: 104px; }
.db-steps .db-step { position: relative; padding-top: var(--step-pad); padding-left: calc(var(--node) + 32px); }
.db-steps .db-step:not(:last-child)::after {
  content: ""; position: absolute; left: calc(var(--node) / 2 - 1px); width: 2px;
  top: calc(var(--step-pad) + 9px); bottom: calc(-1 * (var(--step-pad) + 9px));
  background: #2F6FED;
}
.db-node {
  position: absolute; left: 0; top: calc(var(--step-pad) + 9px - var(--node) / 2); z-index: 1;
  width: var(--node); height: var(--node); border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #2F6FED; background: #080B11; color: #5B9BFF;
  font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.db-step-label { margin: 0 0 14px; line-height: 18px; color: rgba(255,255,255,0.6); }
/* the step number stays part of the heading text, at heading size */
.db-steps .db-num { display: inline; margin: 0; font-size: inherit; line-height: inherit; letter-spacing: inherit; }

/* proof: its own band on the opposite ground (light, in both modes) */
.db-band { padding: 96px 0 104px; }
.db-band-light, .db-band.band-light { background: #F2F5FA; }
.db-band .db-step { padding-top: 0; }
.db-result .cf-head { margin-bottom: 18px; }
.db-footer { margin-top: 0; }

@media (max-width: 560px) {
  .db-steps { --step-pad: 72px; --node: 34px; padding-bottom: 72px; }
  .db-steps .db-step { padding-left: calc(var(--node) + 18px); }
  .db-node { font-size: 12px; }
  .db-band { padding: 64px 0 72px; }
}

html[data-theme="light"] .db-node { background: #FFFFFF; color: #2F6FED; }
html[data-theme="light"] .db-step-label { color: #5C6672; }
