/* ═══════════════════════════════════════
   ECHO — web.css  (services/web.html, website-design.html, website-redesign.html)
   Page accent + the browser-frame hero visual, package cards and the
   "two ways in" cards. Everything else comes from service-page.css.
   ═══════════════════════════════════════ */

body.web-page { --page-accent: #0d6e8a; --page-glow: #cde8ef; }

/* ── Hero visual: a browser frame whose page assembles block by block ── */
.wb-frame {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(30, 16, 64, 0.12);
  overflow: hidden;
}
.wb-frame__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.wb-frame__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.wb-frame__url {
  margin-left: 8px;
  flex: 1;
  height: 18px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid var(--border);
  font-family: 'DM Mono', monospace;
  font-size: 0.625rem;
  line-height: 16px;
  padding-left: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
}
.wb-frame__page { position: relative; display: grid; gap: 10px; padding: 16px; min-height: 230px; }
.wb-block {
  border-radius: 6px;
  background: color-mix(in srgb, var(--page-accent) 10%, #fff);
  opacity: 0;
  transform: translateY(8px);
  animation: wbBuild 7s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  animation-delay: calc(var(--i, 0) * 0.35s);
}
.wb-block--nav  { height: 12px; width: 100%; background: color-mix(in srgb, var(--text) 8%, #fff); }
.wb-block--hero { height: 62px; background: color-mix(in srgb, var(--page-accent) 18%, #fff); }
.wb-block--h    { height: 10px; width: 62%; background: color-mix(in srgb, var(--text) 22%, #fff); }
.wb-block--p    { height: 7px; width: 84%; background: color-mix(in srgb, var(--text) 10%, #fff); }
.wb-block--cta  { height: 18px; width: 34%; border-radius: 9px; background: var(--page-accent); }
.wb-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.wb-cols .wb-block { height: 40px; }
@keyframes wbBuild {
  0%        { opacity: 0; transform: translateY(8px); }
  8%, 82%   { opacity: 1; transform: none; }
  92%, 100% { opacity: 0; transform: none; }
}
.wb-frame__status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 9px 14px;
  border-top: 1px solid var(--border);
  font-family: 'DM Mono', monospace;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.wb-frame__status b { color: var(--page-accent); font-weight: 500; }
.wb-frame__status b::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--page-accent);
  vertical-align: middle;
  animation: wbLive 1.6s ease-in-out infinite;
}
@keyframes wbLive { 50% { opacity: 0.25; } }

/* redesign: the old layout fades out, the new one builds in its place */
.wb-frame--redesign .wb-layer { position: absolute; inset: 16px; display: grid; gap: 10px; align-content: start; }
.wb-layer--old { animation: wbOld 7s ease-in-out infinite; }
.wb-layer--old .wb-old {
  height: 14px;
  border-radius: 2px;
  background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--text) 14%, #fff) 0 18px, transparent 18px 24px);
}
.wb-layer--old .wb-old--tall { height: 54px; background: color-mix(in srgb, var(--text) 9%, #fff); }
.wb-layer--old .wb-old--side { width: 40%; }
@keyframes wbOld { 0%, 30% { opacity: 1; } 40%, 92% { opacity: 0; } 100% { opacity: 1; } }
.wb-layer--new .wb-block { animation-name: wbNew; }
@keyframes wbNew {
  0%, 38%   { opacity: 0; transform: translateY(8px); }
  46%, 88%  { opacity: 1; transform: none; }
  95%, 100% { opacity: 0; transform: none; }
}
.wb-tag {
  position: absolute;
  right: 12px; top: 10px;
  font-family: 'DM Mono', monospace;
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-muted);
  z-index: 2;
}
.wb-tag--old { animation: wbOld 7s ease-in-out infinite; }
.wb-tag--new { color: var(--page-accent); border-color: var(--page-accent); animation: wbNewTag 7s ease-in-out infinite; }
@keyframes wbNewTag { 0%, 38% { opacity: 0; } 46%, 88% { opacity: 1; } 95%, 100% { opacity: 0; } }

/* ── Two ways in (pillar) ── */
.wb-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.wb-path {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 16px;
  background: #fff;
  border: 1.5px solid var(--border);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.wb-path:hover,
.wb-path:focus-visible { border-color: var(--page-accent); transform: translateY(-2px); box-shadow: 0 12px 36px rgba(30, 16, 64, 0.1); }
.wb-path__num { font-family: 'DM Mono', monospace; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--page-accent); }
.wb-path__title { font-family: var(--font-head); font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 600; line-height: 1.1; color: var(--text); }
.wb-path__body { font-size: 0.95rem; line-height: 1.7; color: var(--text-muted); }
.wb-path__go { margin-top: auto; padding-top: 0.5rem; font-size: 0.9rem; font-weight: 500; color: var(--page-accent); }

/* ── Engagement shapes (no prices) ── */
.wb-packs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wb-pack__for { min-height: 2.2em; }
.wb-pack__list { display: grid; gap: 0.45rem; margin-top: 0.9rem; padding: 0; }
.wb-pack__list li { font-size: 0.85rem; color: var(--text-muted); padding-left: 1.1rem; position: relative; list-style: none; line-height: 1.5; }
.wb-pack__list li::before { content: '✦'; position: absolute; left: 0; top: 0.2em; color: var(--page-accent); font-size: 0.6rem; }
.wb-packs__note { margin-top: 1.75rem; font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; max-width: 68ch; }
.wb-packs__note a { color: var(--page-accent); font-weight: 500; }

@media (max-width: 1100px) { .wb-packs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .wb-paths { grid-template-columns: minmax(0, 1fr); }
  .wb-frame { max-width: 400px; }
}
@media (max-width: 600px) { .wb-packs { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  .wb-block, .wb-layer--old, .wb-tag, .wb-frame__status b::before { animation: none !important; }
  .wb-block { opacity: 1; transform: none; }
  .wb-layer--old, .wb-tag--old { opacity: 0; }
  .wb-tag--new { opacity: 1; }
}
