/* Styles for LinkedIn landing page prototypes: enquiry-pages.html and home-services.html.
   Extends Pat's Design tokens from refresh.css and pages.css without touching existing pages. */

.ep-clinic {
  border: 1px solid var(--rule);
  background: var(--paper);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 52px rgba(7, 13, 34, 0.08);
}

.ep-clinic__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  padding: 14px 20px;
  background: var(--night);
  color: var(--cream);
}

.ep-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(160, 186, 240, 0.22);
}

.ep-tab {
  border: 0;
  background: transparent;
  color: #cdd6ea;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.ep-tab[aria-selected="true"] {
  background: var(--cream);
  color: var(--night);
}

.ep-clinic__tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #aeb9d2;
}

.ep-clinic__body {
  padding: clamp(22px, 3vw, 36px);
}

.ep-panel[hidden] {
  display: none !important;
}

/* Before panel: realistic blank enquiry form + Pat's 4 LinkedIn banner buyer questions */
.ep-before {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.ep-mockform {
  background: #ffffff;
  border: 1px solid rgba(18, 22, 29, 0.14);
  border-radius: 10px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(18, 22, 29, 0.05);
}

.ep-mockform__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(18, 22, 29, 0.1);
}

.ep-mockform__head h3 {
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
}

.ep-mockform__badge {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9e2a2b;
  background: rgba(158, 42, 43, 0.09);
  padding: 3px 8px;
  border-radius: 999px;
}

.ep-mockform__grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.ep-mockfield {
  display: grid;
  gap: 5px;
}

.ep-mockfield span {
  font-size: 0.78rem;
  font-weight: 500;
  color: #4b5563;
}

.ep-mockfield__box {
  height: 36px;
  border: 1px solid rgba(18, 22, 29, 0.18);
  border-radius: 6px;
  background: #f9fafb;
  padding: 0 10px;
  display: flex;
  align-items: center;
  font-size: 0.82rem;
  color: #9ca3af;
}

.ep-mockfield__box--tall {
  height: 68px;
  align-items: flex-start;
  padding-top: 8px;
}

.ep-mockform__btn {
  margin-top: 4px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 10px 16px;
  border-radius: 6px;
  background: #4b5563;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 500;
  opacity: 0.78;
}

.ep-worries {
  display: grid;
  gap: 14px;
}

.ep-worries__intro {
  color: var(--ink-2);
  font-size: 0.96rem;
}

.ep-worry-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ep-worry-pill {
  background: var(--paper-3);
  border: 1px solid rgba(0, 95, 204, 0.28);
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  padding: 8px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.ep-worry-pill[aria-pressed="true"],
.ep-worry-pill:hover {
  background: var(--night);
  border-color: var(--night);
  color: var(--cream);
}

.ep-worry-note {
  background: var(--paper-3);
  border-left: 2px solid var(--blue);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
}

.ep-worry-note strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--ink);
}

.ep-worry-note p {
  margin-top: 6px;
  font-size: 0.92rem;
  color: var(--ink-2);
}

.ep-before__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  margin-top: 6px;
}

/* After panel: working mini ballpark estimator + self-build guided brief */
.ep-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.ep-subtab {
  border: 1px solid var(--rule);
  background: var(--paper-3);
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.ep-subtab[aria-selected="true"] {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
}

.ep-after-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: start;
}

.ep-controls {
  display: grid;
  gap: 16px;
}

.ep-control {
  display: grid;
  gap: 8px;
}

.ep-control__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 500;
}

.ep-control__val {
  font-family: var(--mono);
  font-size: 0.84rem;
  color: var(--blue);
}

.ep-range {
  width: 100%;
  accent-color: var(--blue);
  cursor: pointer;
}

.ep-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ep-choice {
  border: 1px solid var(--rule);
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 0.84rem;
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.ep-choice[aria-pressed="true"] {
  background: var(--night);
  border-color: var(--night);
  color: var(--cream);
}

.ep-result {
  background: var(--night);
  color: var(--cream);
  border-radius: 12px;
  padding: 22px 24px;
  display: grid;
  gap: 14px;
}

.ep-result__eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9bb2df;
}

.ep-result__price {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  line-height: 1.08;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
}

.ep-result__sub {
  font-size: 0.86rem;
  color: #cdd6ea;
}

.ep-result__list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 7px;
  border-top: 1px solid rgba(246, 243, 236, 0.14);
  padding-top: 12px;
  font-size: 0.86rem;
  color: #dce4f5;
}

.ep-result__list li {
  position: relative;
  padding-left: 18px;
}

.ep-result__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 9px;
  height: 1.5px;
  background: #6ea8ff;
}

.ep-result__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 4px;
}

.ep-copy-status {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: #4de3a1;
}

.ep-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.ep-stat {
  border-top: 1.5px solid var(--blue);
  padding-top: 12px;
}

.ep-stat strong {
  display: block;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.6rem, 2.4vw, 2.15rem);
  line-height: 1.1;
  color: var(--fg);
}

.ep-stat span {
  display: block;
  margin-top: 4px;
  font-size: 0.86rem;
  color: var(--fg-2);
}

.ep-clinic__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 14px 20px;
  background: var(--paper-3);
  border-top: 1px solid var(--rule);
  font-size: 0.86rem;
  color: var(--ink-2);
}

.ep-clinic__foot .btn--ghost {
  font-size: 0.84rem;
  padding: 8px 14px;
}

/* Home-services trade strip */
.hs-trades {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.hs-trade-tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(160, 186, 240, 0.24);
  color: #cdd6ea;
}

@media (max-width: 900px) {
  .ep-before,
  .ep-after-grid,
  .ep-stat-strip,
  .dfy-grid {
    grid-template-columns: 1fr;
  }
}

/* DFY AI Assistant trade preview blueprint */
.dfy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: start;
}

.dfy-spec {
  display: grid;
  gap: 16px;
}

.dfy-spec__item {
  border-top: 1px solid var(--rule);
  padding-top: 12px;
}

.dfy-spec__label {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 5px;
}

.dfy-spec__item p {
  color: var(--ink-2);
  font-size: 0.94rem;
}

.dfy-exchange {
  display: grid;
  gap: 10px;
}

.dfy-bubble {
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 0.88rem;
  line-height: 1.48;
}

.dfy-bubble--visitor {
  background: rgba(56, 132, 255, 0.22);
  border: 1px solid rgba(110, 168, 255, 0.36);
  color: #f6f3ec;
}

.dfy-bubble--assistant {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #eef2fb;
}

.dfy-bubble b {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9bb2df;
  margin-bottom: 4px;
  font-weight: 500;
}

.dfy-brief-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.dfy-brief-tags span {
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(160, 186, 240, 0.22);
  color: #dce4f5;
}

/* 5-trade Material-Craft Avatar Gallery */
.dfy-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 20px;
  background: #081026;
  border-bottom: 1px solid rgba(160, 186, 240, 0.18);
}

.dfy-card {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(160, 186, 240, 0.16);
  color: #f6f3ec;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.dfy-card:hover {
  transform: translateY(-2px);
  border-color: rgba(110, 168, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
}

.dfy-card[aria-selected="true"] {
  border-color: #f6b664;
  background: rgba(246, 182, 100, 0.08);
  box-shadow: 0 0 0 1px rgba(246, 182, 100, 0.45), 0 12px 28px rgba(2, 6, 18, 0.45);
}

.dfy-card__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  background: #09132b;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.dfy-card__stage {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  perspective: 720px;
}

.dfy-card__stage::after {
  content: "";
  position: absolute;
  inset: -20% -60%;
  background: linear-gradient(105deg, transparent 36%, rgba(255, 245, 224, 0.22) 50%, transparent 64%);
  transform: translateX(-85%);
  pointer-events: none;
  opacity: 0;
}

.dfy-card.is-turn .dfy-card__img {
  animation: dfyBarelyMove 2.6s cubic-bezier(0.25, 0.85, 0.35, 1) forwards;
}

.dfy-card.is-turn .dfy-card__stage::after {
  animation: dfySheenSweep 2.6s ease-out forwards;
}

@keyframes dfyBarelyMove {
  0%   { transform: rotateY(0deg) scale(1); }
  32%  { transform: rotateY(-7deg) rotateX(1.5deg) scale(1.018); }
  68%  { transform: rotateY(-5.5deg) rotateX(1deg) scale(1.012); }
  100% { transform: rotateY(0deg) scale(1); }
}

@keyframes dfySheenSweep {
  0%   { opacity: 0; transform: translateX(-85%); }
  28%  { opacity: 0.9; }
  75%  { opacity: 0.35; }
  100% { opacity: 0; transform: translateX(85%); }
}

@media (prefers-reduced-motion: reduce) {
  .dfy-card.is-turn .dfy-card__img,
  .dfy-card.is-turn .dfy-card__stage::after {
    animation: none;
  }
}

.dfy-voice-box {
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(246, 182, 100, 0.28);
  display: grid;
  gap: 6px;
}

.dfy-voice-box strong {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #f6b664;
  font-weight: 500;
}

.dfy-voice-box p {
  font-size: 0.82rem;
  color: #dce4f5;
  line-height: 1.44;
}

.dfy-card__meta {
  display: grid;
  gap: 2px;
  padding: 0 2px 2px;
}

.dfy-card__meta strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.02rem;
  line-height: 1.18;
  color: #f6f3ec;
}

.dfy-card__meta span {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: #aeb9d2;
  line-height: 1.35;
}

.dfy-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(7, 13, 34, 0.82);
  border: 1px solid rgba(246, 182, 100, 0.6);
  color: #f6b664;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s, transform 0.25s;
}

.dfy-card[aria-selected="true"] .dfy-card__badge {
  opacity: 1;
  transform: translateY(0);
}

/* Hero live spotlight card triggered cleanly during Rob's spiel */
.dfy-spotlight {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 45;
  width: min(312px, calc(100vw - 32px));
  padding: 12px;
  border-radius: 14px;
  background: rgba(8, 15, 36, 0.92);
  border: 1px solid rgba(246, 182, 100, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 48px rgba(2, 5, 16, 0.62);
  color: #f6f3ec;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dfy-spotlight[hidden] {
  display: none !important;
}

.dfy-spotlight.is-open {
  opacity: 1;
  transform: translateY(0);
}

.dfy-spotlight__img {
  width: 84px;
  height: 84px;
  border-radius: 9px;
  object-fit: cover;
  display: block;
}

.dfy-spotlight__body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.dfy-spotlight__kicker {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f6b664;
}

.dfy-spotlight__body strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.06rem;
  line-height: 1.15;
}

.dfy-spotlight__body span {
  font-size: 0.76rem;
  color: #cdd6ea;
  line-height: 1.32;
}

.dfy-spotlight__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.dfy-spotlight__actions a,
.dfy-spotlight__actions button {
  font: inherit;
  font-size: 0.74rem;
  color: #9cb8f0;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1020px) {
  .dfy-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .dfy-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .dfy-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 14px;
  }
}
