/* White-label pages — shared components (branded-app mock-ups, studio, calculator, combo prices).
   Source: dgtexam.es scripts/whitelabel-pages-content/whitelabel.css, copied to assets/whitelabel.css of
   dgtexam.es (generate-whitelabel-pages.js) and of mydgttest.com (Tools/Landing/build_whitelabel.py).
   Each site maps its own palette onto the --wl-* tokens on .wl-root; the app screens stay light like the
   real app and take only the school colour (--wl-brand, set by assets/whitelabel.js). */

.wl-root {
  --wl-brand: #D64933;
  --wl-on-brand: #FFFFFF;
  --wl-brand-soft: color-mix(in srgb, var(--wl-brand) 13%, #FFFFFF);
  --wl-brand-ink: color-mix(in srgb, var(--wl-brand) 78%, #000000);
  --wl-app-bg: #F4F5F8;
  --wl-app-card: #FFFFFF;
  --wl-app-ink: #161B26;
  --wl-app-ink-2: #5B6273;
  --wl-app-line: #E3E6EC;
}

/* ---------- mock-ups ---------- */
.wl-phone {
  container-type: inline-size;
  position: relative; width: 100%; aspect-ratio: 9 / 19.2;
  padding: 3.2%; border-radius: 14% / 6.6%; background: #0B0F17;
  box-shadow: 0 30px 60px -24px rgba(10, 14, 30, .55), inset 0 0 0 1.5px #2A2F3A;
}
.wl-screen {
  position: relative; height: 100%; overflow: hidden;
  display: flex; flex-direction: column; gap: 3.4cqw;
  padding: 3cqw 5cqw 0; border-radius: 11% / 5.2%;
  background: var(--wl-app-bg); color: var(--wl-app-ink);
  font: 500 4.1cqw/1.3 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  text-align: start;
}
.wl-screen svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wl-status { display: flex; justify-content: space-between; align-items: center; padding: 1cqw 2cqw 0; font-weight: 700; font-size: 3.6cqw; }
.wl-status i { width: 7cqw; height: 3cqw; border-radius: 1cqw; border: 1.5px solid currentColor; opacity: .8; }
.wl-logo {
  position: relative; display: inline-grid; place-items: center; flex: none;
  width: 11cqw; height: 11cqw; border-radius: 27%; overflow: hidden;
  background: var(--wl-brand); color: var(--wl-on-brand);
  font-weight: 800; font-size: 4.4cqw; letter-spacing: -.02em;
  transition: background-color .25s ease;
}
.wl-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 8%; }
.wl-logo.has-img b { visibility: hidden; }
.wl-apphead { display: flex; align-items: center; gap: 3cqw; }
.wl-apphead-txt { display: grid; min-width: 0; }
.wl-apphead-txt b { font-size: 4.6cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-apphead-txt small { color: var(--wl-app-ink-2); font-size: 3.4cqw; }
.wl-hello { margin: 0; font-size: 6.2cqw; font-weight: 800; letter-spacing: -.02em; }
.wl-ready {
  display: flex; align-items: center; gap: 4cqw; padding: 4cqw;
  border-radius: 5cqw; background: var(--wl-brand); color: var(--wl-on-brand);
  transition: background-color .25s ease, color .25s ease;
}
.wl-ready span { display: grid; gap: .5cqw; }
.wl-ready b { font-size: 8cqw; line-height: 1; letter-spacing: -.03em; }
.wl-ready small { font-size: 3.3cqw; opacity: .88; }
.wl-ring { width: 17cqw !important; height: 17cqw !important; transform: rotate(-90deg); }
.wl-ring circle { fill: none; stroke: currentColor; stroke-width: 3.6; opacity: .28; }
.wl-ring .wl-ring-val { opacity: 1; stroke-linecap: round; }
.wl-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 2.6cqw; }
.wl-tiles span {
  display: flex; align-items: center; gap: 2cqw; min-height: 12cqw; padding: 2.4cqw 3cqw;
  border-radius: 3.6cqw; background: var(--wl-app-card); box-shadow: 0 0 0 1px var(--wl-app-line);
  font-size: 3.4cqw; font-weight: 700; line-height: 1.15;
}
.wl-tiles svg { color: var(--wl-brand); transition: color .25s ease; }
.wl-next { display: grid; gap: .6cqw; padding: 3.4cqw 4cqw; border-radius: 4cqw; background: var(--wl-brand-soft); border-inline-start: 1.6cqw solid var(--wl-brand); }
.wl-next small { font-size: 3.2cqw; color: var(--wl-app-ink-2); }
.wl-next b { font-size: 4.1cqw; }
.wl-task { display: flex; align-items: center; gap: 3cqw; padding: 3cqw 4cqw; border-radius: 4cqw; background: var(--wl-app-card); box-shadow: 0 0 0 1px var(--wl-app-line); }
.wl-task svg { color: var(--wl-brand); width: 6cqw; height: 6cqw; }
.wl-task span { display: grid; gap: .4cqw; }
.wl-task small { font-size: 3.1cqw; color: var(--wl-app-ink-2); }
.wl-task b { font-size: 3.7cqw; }
.wl-contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; }
.wl-contact span { display: grid; justify-items: center; gap: 1cqw; padding: 2.4cqw 1cqw; border-radius: 3.4cqw; background: var(--wl-app-card); box-shadow: 0 0 0 1px var(--wl-app-line); color: var(--wl-brand-ink); font-size: 3.1cqw; font-weight: 700; }
.wl-tabbar { margin: auto -5cqw 0; display: grid; grid-template-columns: repeat(4, 1fr); padding: 2.6cqw 2cqw 5cqw; background: var(--wl-app-card); border-top: 1px solid var(--wl-app-line); }
.wl-tabbar span { display: grid; justify-items: center; gap: 1cqw; font-size: 2.9cqw; color: var(--wl-app-ink-2); }
.wl-tabbar i { width: 5.4cqw; height: 5.4cqw; border-radius: 1.6cqw; background: currentColor; opacity: .35; }
.wl-tabbar .on { color: var(--wl-brand); font-weight: 700; } .wl-tabbar .on i { opacity: 1; }

/* home screen + push */
.wl-wall { gap: 6cqw; color: #fff; background: radial-gradient(120% 70% at 20% 0%, color-mix(in srgb, var(--wl-brand) 70%, #3B4A7A), transparent 70%), linear-gradient(170deg, #2B3556, #11162A); }
.wl-push { display: flex; gap: 3cqw; padding: 3.6cqw; border-radius: 5cqw; background: rgba(250, 250, 252, .9); color: #161B26; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .5); backdrop-filter: blur(10px); }
.wl-push > span:last-child { display: grid; gap: .6cqw; min-width: 0; }
.wl-push small { font-size: 3.2cqw; color: #4B5265; }
.wl-push small b { color: #161B26; }
.wl-push > span > b { font-size: 3.9cqw; }
.wl-logo-sm { width: 9cqw; height: 9cqw; font-size: 3.6cqw; }
.wl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6cqw 5cqw; padding: 2cqw 2cqw 0; }
.wl-grid > i, .wl-dock i { aspect-ratio: 1; border-radius: 27%; background: rgba(255, 255, 255, .18); }
.wl-icon { display: grid; justify-items: center; gap: 1.6cqw; }
.wl-logo-icon { width: 100%; height: auto; aspect-ratio: 1; font-size: 6cqw; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .6); animation: wl-pop 2.8s ease-in-out infinite; }
.wl-icon small { max-width: 18cqw; font-size: 2.8cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-dock { margin: auto -1cqw 5cqw; display: grid; grid-template-columns: repeat(4, 1fr); gap: 5cqw; padding: 3.6cqw; border-radius: 7cqw; background: rgba(255, 255, 255, .16); }
@keyframes wl-pop { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.08); } }

/* school website */
.wl-browser { container-type: inline-size; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 24px 50px -24px rgba(10, 14, 30, .5), 0 0 0 1.5px rgba(10, 14, 30, .18); color: #161B26; text-align: start; }
.wl-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #ECEEF3; border-bottom: 1px solid #DCDFE7; }
.wl-bar i { width: 9px; height: 9px; border-radius: 50%; background: #E0806D; } .wl-bar i:nth-child(2) { background: #E8BE5A; } .wl-bar i:nth-child(3) { background: #6DBB8A; }
.wl-bar > span { flex: 1; min-width: 0; max-width: 300px; margin: 0 auto; padding: 2px 10px; border-radius: 6px; background: #fff; color: #5B6273; font-size: 12px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: ltr; }
.wl-site { font: 500 clamp(11px, 2.6cqw, 15px)/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.wl-site-head { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid #ECEEF3; }
.wl-site-head .wl-logo { width: 30px; height: 30px; font-size: 12px; }
.wl-site-hero { display: grid; gap: 4px; padding: 22px 18px 20px; background: linear-gradient(135deg, var(--wl-brand), var(--wl-brand-ink)); color: var(--wl-on-brand); transition: background .25s ease; }
.wl-site-hero > b { font-size: 1.7em; line-height: 1.1; letter-spacing: -.02em; }
.wl-site-hero small { opacity: .9; }
.wl-site-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.wl-btn { padding: 6px 12px; border-radius: 999px; background: var(--wl-on-brand); color: var(--wl-brand-ink); font-weight: 700; }
.wl-btn-2 { background: transparent; color: var(--wl-on-brand); box-shadow: inset 0 0 0 1.5px currentColor; }
.wl-site-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 18px 18px; }
.wl-site-row span { padding: 10px 12px; border-radius: 10px; background: var(--wl-brand-soft); color: var(--wl-brand-ink); font-weight: 700; }

/* ---------- studio ---------- */
.wl-studio { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.wl-controls { display: grid; gap: 20px; align-content: start; }
.wl-field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.wl-field > label, .wl-field > legend { padding: 0; font-weight: 700; font-size: .95rem; color: var(--wl-ink); }
.wl-input { width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid var(--wl-outline); border-radius: 12px; background: var(--wl-surface); color: var(--wl-ink); font: inherit; font-size: 1rem; }
.wl-input:focus-visible { outline: 3px solid var(--wl-focus); outline-offset: 2px; }
.wl-swatches { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.wl-swatch { position: relative; width: 40px; height: 40px; margin: 0; }
.wl-swatch input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.wl-swatch span { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .12); }
.wl-swatch input:checked + span { box-shadow: 0 0 0 3px var(--wl-surface), 0 0 0 5px var(--wl-ink); }
.wl-swatch input:focus-visible + span { outline: 3px solid var(--wl-focus); outline-offset: 4px; }
.wl-swatch-custom span { background: conic-gradient(#D64933, #F2A900, #0E8A5F, #1F6FEB, #7B3FE4, #D64933); }
.wl-file { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.wl-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.wl-file label { cursor: pointer; }
.wl-file input:focus-visible + label { outline: 3px solid var(--wl-focus); outline-offset: 2px; }
.wl-hint { margin: 0; color: var(--wl-ink-2); font-size: .88rem; }
.wl-slug { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--wl-surface-2); color: var(--wl-ink); font-size: .95rem; overflow-wrap: anywhere; }
.wl-slug b { font-weight: 800; }
.wl-reset { justify-self: start; padding: 0; border: 0; background: none; color: var(--wl-link); font: inherit; font-size: .92rem; text-decoration: underline; cursor: pointer; }
.wl-previews { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .78fr); grid-template-rows: auto auto; gap: clamp(16px, 3vw, 28px); align-items: end; }
.wl-previews .wl-pv-app { grid-row: 1 / 3; max-width: 330px; justify-self: center; width: 100%; }
.wl-previews .wl-pv-home { max-width: 250px; width: 100%; justify-self: center; }
.wl-previews .wl-pv-web { grid-column: 1 / 3; }
.wl-previews figure { margin: 0; }
.wl-previews figcaption { margin-top: 10px; text-align: center; color: var(--wl-ink-2); font-size: .88rem; }

/* ---------- combo prices ---------- */
.wl-combos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.wl-combo { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 26px 22px 22px; border: 2px solid var(--wl-outline); border-radius: 20px; background: var(--wl-surface); color: var(--wl-ink); }
.wl-combo h3 { margin: 0; font-size: 1.3rem; }
.wl-combo > p { margin: 0; color: var(--wl-ink-2); font-size: .95rem; line-height: 1.5; }
.wl-combo .wl-flag { position: absolute; top: -14px; inset-inline-start: 20px; padding: 4px 12px; border-radius: 999px; background: var(--wl-accent); color: var(--wl-on-accent); font-size: .76rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.wl-combo.is-rec { border-width: 3px; box-shadow: var(--wl-shadow); }
.wl-tiers { list-style: none; margin: 4px 0 0; padding: 0; border-top: 1.5px solid var(--wl-line); }
.wl-tiers li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; padding: 11px 0; border-bottom: 1.5px solid var(--wl-line); }
.wl-tiers span { color: var(--wl-ink-2); font-size: .92rem; }
.wl-tiers b { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wl-tiers b small { font-size: .78rem; font-weight: 600; color: var(--wl-ink-2); letter-spacing: 0; }
.wl-tiers .is-req b { font-size: 1rem; }
.wl-combo .wl-addon-line { margin: 0; color: var(--wl-ink-2); font-size: .88rem; }
.wl-combo .wl-cta { margin-top: auto; }
.wl-addons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.wl-addon { display: grid; gap: 6px; padding: 20px 22px; border: 2px dashed var(--wl-line-strong); border-radius: 18px; color: var(--wl-ink); }
.wl-addon h3 { margin: 0; font-size: 1.1rem; }
.wl-addon b { font-size: 1.05rem; }
.wl-addon p { margin: 0; color: var(--wl-ink-2); font-size: .92rem; line-height: 1.5; }
/* App propia / Red: payment ends → app suspended, setup not refunded (owner rule 2026-11-08). */
.wl-terms { margin: 0; color: var(--wl-ink-2); font-size: .84rem; line-height: 1.45; }
.wl-addon .wl-terms { font-size: .84rem; }
.wl-terms[hidden] { display: none; }
.wl-incl { margin-top: 22px; }
.wl-incl h3 { margin: 0 0 10px; font-size: 1rem; }
.wl-incl ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.wl-incl li { margin: 0; padding: 6px 12px; border-radius: 999px; background: var(--wl-surface-2); color: var(--wl-ink); font-size: .88rem; }
.wl-note { margin: 16px 0 0; color: var(--wl-ink-2); font-size: .88rem; line-height: 1.55; max-width: 92ch; }


/* ---------- calculator ---------- */
.wl-calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); padding: clamp(20px, 3vw, 32px); border: 2px solid var(--wl-outline); border-radius: 22px; background: var(--wl-surface); color: var(--wl-ink); }
.wl-calc-in { display: grid; gap: 20px; align-content: start; }
.wl-range-row { display: flex; align-items: center; gap: 14px; }
.wl-range-row input[type="range"] { flex: 1; accent-color: var(--wl-accent-strong); min-height: 32px; }
.wl-range-row output { min-width: 3.5ch; font-size: 1.6rem; font-weight: 800; text-align: end; font-variant-numeric: tabular-nums; }
.wl-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border: 2px solid var(--wl-outline); border-radius: 14px; }
.wl-seg label { position: relative; display: grid; place-items: center; min-height: 44px; padding: 6px 8px; border-radius: 10px; font-weight: 700; font-size: .9rem; text-align: center; line-height: 1.2; cursor: pointer; color: var(--wl-ink-2); }
.wl-seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.wl-seg label:has(input:checked) { background: var(--wl-ink); color: var(--wl-surface); }
.wl-seg label:has(input:focus-visible) { outline: 3px solid var(--wl-focus); }
.wl-check { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.wl-check input { width: 20px; height: 20px; accent-color: var(--wl-accent-strong); }
.wl-check input:disabled + span { opacity: .45; }
.wl-calc-out { display: grid; gap: 0; align-content: start; }
.wl-calc-big { display: grid; gap: 2px; padding-bottom: 16px; border-bottom: 2px solid var(--wl-outline); }
.wl-calc-big small { color: var(--wl-ink-2); font-weight: 700; }
.wl-calc-big b { font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.wl-calc-out dl { margin: 0; display: grid; grid-template-columns: 1fr auto; }
.wl-calc-out dt, .wl-calc-out dd { margin: 0; padding: 11px 0; border-bottom: 1.5px solid var(--wl-line); }
.wl-calc-out dt { color: var(--wl-ink-2); }
.wl-calc-out dd { font-weight: 800; text-align: end; font-variant-numeric: tabular-nums; }
.wl-calc-out .wl-cta { margin-top: 18px; }
.wl-calc-out .wl-hint { margin-top: 12px; }
.wl-calc [hidden] { display: none !important; }

/* ---------- responsive / motion ---------- */
@media (max-width: 900px) {
  .wl-studio { grid-template-columns: 1fr; }
  .wl-combos { grid-template-columns: 1fr; }
  .wl-combo.is-rec { order: -1; }
  .wl-calc { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wl-previews { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); }
  .wl-addons { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .wl-logo-icon { animation: none; }
  .wl-root * { transition: none !important; }
}
