/* assets/css/package-modal.css — one package's details (assets/js/package-modal.js). Services page and quote page.
   --tone is the category's colour; everything tinted comes from it. */
html:has(dialog.pkm[open]) { overflow: hidden; }
.pkm { --tone: #F0A35E; --tone-soft: color-mix(in srgb, var(--tone) 15%, transparent); --tile: rgba(255,255,255,.05); --ink-2: #a1a5b8;
  width: min(880px, calc(100vw - 48px)); max-width: none; max-height: min(88vh, 900px); margin: auto; padding: 0; border: 0; border-radius: 28px; background: #12131c; color: var(--white); box-shadow: 0 40px 120px rgba(0,0,0,.65), inset 0 0 0 1px rgba(255,255,255,.07); overflow: hidden; font-family: var(--font); }
.pkm[open] { display: flex; animation: pkm-in .28s cubic-bezier(.2,.8,.2,1); }
.pkm::backdrop { background: rgba(3,4,8,.66); -webkit-backdrop-filter: blur(14px) saturate(120%); backdrop-filter: blur(14px) saturate(120%); }
@keyframes pkm-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.pkm-panel { position: relative; flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; max-height: min(88vh, 900px); }
.pkm-close { position: absolute; top: 18px; right: 18px; z-index: 2; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: var(--white); font-size: 1rem; cursor: pointer; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .15s; }
.pkm-close:hover { background: rgba(255,255,255,.18); }
.pkm-body { flex: 1; min-height: 160px; overflow-y: auto; padding: 0 40px 40px; overscroll-behavior: contain; outline: none; }
.pkm-loading { padding: 110px 0; text-align: center; color: var(--ink-2); font-size: 1.6rem; }
.pkm-error { padding: 70px 0; text-align: center; color: var(--ink-2); }
.pkm button:focus-visible, .pkm a:focus-visible { outline: 2px solid var(--tone); outline-offset: 2px; }

/* Header */
.pkm-hero { display: flex; gap: 24px; align-items: center; margin: 0 -40px; padding: 44px 72px 30px 40px; background: linear-gradient(180deg, var(--tone-soft), transparent); }
.pkm-mark { flex-shrink: 0; width: 88px; height: 88px; display: grid; place-items: center; border-radius: 26px; background: var(--tone); color: #12131c; font-size: 2.6rem; }
.pkm-hero-text { min-width: 0; }
.pkm-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.pkm-tags span { font-size: 0.78rem; font-weight: 500; color: var(--tone); }
.pkm-tags span.is-on { padding: 0 8px; border-radius: 999px; background: var(--tone-soft); }
.pkm-title { font-family: var(--font); font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 600; letter-spacing: -.028em; line-height: 1.08; margin: 0; color: var(--white); }
.pkm-tagline { margin: 8px 0 0; font-size: 1.02rem; line-height: 1.45; letter-spacing: -.005em; color: var(--ink-2); }

/* Quick facts */
.pkm-facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr); gap: 12px; margin-top: 6px; }
.pkm-fact { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 18px; background: var(--tile); }
.pkm-fact > i { flex-shrink: 0; font-size: 1.35rem; color: var(--tone); margin-top: 1px; }
.pkm-fact small { display: block; font-size: 0.74rem; color: var(--ink-2); margin-bottom: 3px; }
.pkm-fact b { display: block; font-size: 0.88rem; font-weight: 500; line-height: 1.35; color: var(--white); }
.pkm-about { margin: 24px 0 0; font-size: 0.95rem; line-height: 1.6; color: #c6c9d6; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.pkm-about.is-open { display: block; }
.pkm-more { margin-top: 4px; padding: 0; border: 0; background: none; font: 500 0.88rem var(--font); color: var(--tone); cursor: pointer; }

/* Sections */
.pkm-sec { margin-top: 40px; }
.pkm-sec h3 { font-family: var(--font); font-size: 1.28rem; font-weight: 600; letter-spacing: -.018em; margin: 0 0 18px; color: var(--white); }

/* How it works: a line of steps. Choosing one fills the line up to it and shows what happens. */
.pkm-flow { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.pkm-flow-line { position: absolute; top: 25px; left: calc(50% / var(--n)); right: calc(50% / var(--n)); height: 2px; background: rgba(255,255,255,.12); }
.pkm-flow-fill { display: block; height: 100%; width: 100%; background: var(--tone); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform .3s ease; }
.pkm-node { position: relative; display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 0 4px; border: 0; background: none; cursor: pointer; color: var(--ink-2); font-family: var(--font); }
.pkm-node span { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: #23242f; color: var(--ink-2); font-size: 1.35rem; transition: background .2s, color .2s, transform .2s; }
.pkm-node small { font-size: 0.78rem; font-weight: 500; line-height: 1.25; text-align: center; }
.pkm-node:hover span { color: var(--white); }
.pkm-node.is-past span { background: color-mix(in srgb, var(--tone) 28%, #23242f); color: var(--tone); }
.pkm-node.is-on span { background: var(--tone); color: #12131c; transform: scale(1.08); }
.pkm-node.is-on small { color: var(--white); }
.pkm-step-text { min-height: 66px; margin: 18px 0 0; padding: 14px 18px; border-radius: 16px; background: var(--tile); font-size: 0.9rem; line-height: 1.45; color: var(--ink-2); }
.pkm-step-text b { display: block; font-weight: 600; color: var(--white); margin-bottom: 2px; }

/* Included */
.pkm-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; align-items: stretch; }
.pkm-group { padding: 20px; border-radius: 20px; background: var(--tile); }
.pkm-group h4 { font-family: var(--font); font-size: 0.82rem; font-weight: 600; color: var(--tone); margin: 0 0 14px; }
.pkm-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.pkm-group li { display: flex; gap: 11px; align-items: flex-start; font-size: 0.86rem; line-height: 1.35; color: #e4e6ee; }
.pkm-group li i { flex-shrink: 0; font-size: 1.2rem; color: var(--ink-2); }

/* What you receive */
.pkm-gets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.pkm-get { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 20px; background: var(--tile); font-size: 0.86rem; line-height: 1.35; color: #e4e6ee; }
.pkm-tile-icon { height: 52px; display: flex; align-items: center; font-size: 2rem; color: var(--tone); }
.pkm-frames { height: 52px; display: flex; align-items: flex-end; gap: 7px; }
.pkm-frames span { height: 100%; max-width: 92px; display: grid; place-items: center; border: 1.5px solid var(--tone); border-radius: 6px; background: var(--tone-soft); font-size: 0.6rem; font-weight: 600; color: var(--tone); }

/* Extras */
.pkm-extras { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pkm-extras li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; background: var(--tile); font-size: 0.84rem; color: #e4e6ee; }
.pkm-extras i { font-size: 1.05rem; color: var(--ink-2); }

/* Examples */
.pkm-works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pkm-works a { color: var(--white); text-decoration: none; font-size: 0.84rem; }
.pkm-works span { position: relative; display: block; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: var(--tile); margin-bottom: 8px; }
.pkm-works img { width: 100%; height: 100%; object-fit: cover; }
.pkm-works span i { position: absolute; inset: 0; margin: auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: .8rem; }
.pkm-works b { font-weight: 500; }

/* Footer */
.pkm-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 18px 14px 40px; background: rgba(24,25,36,.92); box-shadow: 0 -1px 0 rgba(255,255,255,.07); }
.pkm-foot:empty { display: none; }
.pkm-foot-text { min-width: 0; }
.pkm-foot-text b { display: block; font-size: 0.95rem; font-weight: 600; letter-spacing: -.01em; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pkm-foot-text small { font-size: 0.78rem; color: var(--ink-2); }
.pkm-action { flex-shrink: 0; padding: 14px 26px; border: 0; border-radius: 999px; background: var(--white); color: #0c0d14; font: 600 0.94rem var(--font); letter-spacing: -.005em; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.pkm-action:hover { background: #fff; transform: scale(1.02); }

@media (max-width: 720px) {
  .pkm { width: 100vw; max-height: 94dvh; margin: auto 0 0; border-radius: 26px 26px 0 0; }
  .pkm-panel { max-height: 94dvh; }
  .pkm-body { padding: 0 18px 28px; }
  .pkm-close { top: 14px; right: 14px; }
  .pkm-hero { flex-direction: column; align-items: flex-start; gap: 16px; margin: 0 -18px; padding: 26px 18px 22px; }
  .pkm-mark { width: 68px; height: 68px; border-radius: 20px; font-size: 2rem; }
  .pkm-facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pkm-fact { flex-direction: column; gap: 8px; padding: 14px; }
  .pkm-fact.is-wide { grid-column: 1 / -1; flex-direction: row; }
  .pkm-sec { margin-top: 32px; }
  .pkm-sec h3 { font-size: 1.14rem; margin-bottom: 14px; }
  .pkm-flow-line { top: 19px; }
  .pkm-node span { width: 38px; height: 38px; font-size: 1.05rem; }
  .pkm-node small { display: none; } /* the chosen step is named in the panel below */
  .pkm-foot { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 16px max(10px, env(safe-area-inset-bottom)); }
  .pkm-foot-text { display: none; }
  .pkm-action { text-align: center; }
  .pkm-works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .pkm[open] { animation: none; }
  .pkm-flow-fill, .pkm-node span, .pkm-action { transition: none; }
}
