/* ============================================================
   FLITZEN — Website Design (service detail) page
   Extends styles.css + services.css + works.css.
   New: hero/crumb spacing, "built in as standard" grid,
   website work showcase, outcome chips. Strict monochrome.
   ============================================================ */

/* ---------- Hero (compact title/lead LEFT, "live build" browser RIGHT) ---------- */
.wd-hero .crumbs { margin-bottom: clamp(20px, 2.2vw, 32px); flex-wrap: nowrap; }
.wd-hero .crumbs .here { white-space: nowrap; }
.wd-h1 {
  font-size: clamp(48px, 9vw, 154px);
  line-height: 0.88;
  letter-spacing: -0.035em;
}
.wd-h1b {
  font-size: clamp(36px, 3.9vw, 60px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-top: clamp(16px, 1.6vw, 24px);
}
.wd-hero-row {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(34px, 4.4vw, 70px);
  align-items: center;
  margin-top: clamp(24px, 2.8vw, 44px);
}
.wd-hero-lead .lead {
  max-width: 42ch;
  color: var(--gray-1);
  font-size: clamp(16px, 1.05vw, 18.5px);
  margin-top: clamp(18px, 1.7vw, 26px);
}
.wd-hero-lead .hero-cta { margin-top: clamp(22px, 2.3vw, 32px); }
@media (max-width: 1000px) {
  .wd-hero-row { grid-template-columns: 1fr; gap: clamp(30px, 6vw, 44px); align-items: start; }
  .wd-h1b { font-size: clamp(40px, 9vw, 66px); }
  .wd-hero-lead .lead { max-width: 50ch; }
}

/* ---------- "Live build" browser window ---------- */
.wb-browser {
  position: relative;
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: 0 50px 90px -40px rgba(14,14,14,0.4), 0 16px 36px -18px rgba(14,14,14,0.22);
  overflow: hidden;
}
/* browser chrome */
.wb-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.wb-lights { display: flex; gap: 7px; flex: none; }
.wb-lights i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); display: block; }
.wb-url {
  flex: 1 1 auto; min-width: 0;
  display: flex; align-items: center; gap: 8px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 100px; padding: 7px 14px;
  font-size: 13px; color: var(--ink); font-weight: 500;
}
.wb-lock { width: 13px; height: 13px; flex: none; color: var(--gray-1); }
.wb-url-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-caret { display: inline-block; width: 1.5px; height: 14px; background: var(--ink); opacity: 0; flex: none; }
.wb-browser.typing .wb-caret { opacity: 1; animation: wbBlink 1s step-end infinite; }
@keyframes wbBlink { 50% { opacity: 0; } }
.wb-kindtag { flex: none; }
.wb-kind {
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--gray-1); white-space: nowrap;
}
@media (max-width: 560px) { .wb-kindtag { display: none; } }

/* ===== the page being built: real mini-websites ===== */
.wb-stage {
  position: relative;
  height: clamp(280px, 28vw, 360px);
  background: var(--paper);
  overflow: hidden;
}
.wb-page { position: absolute; inset: 0; display: flex; flex-direction: column; }
/* each section reveals in sequence */
.wb-seg { opacity: 0; transform: translateY(12px); transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
.wb-seg.in { opacity: 1; transform: none; }

/* shared photo placeholder */
.wb-ph {
  position: relative; overflow: hidden;
  background: repeating-linear-gradient(135deg, var(--paper-2) 0 9px, var(--paper-3) 9px 18px);
}
.wb-ph svg { position: absolute; inset: 0; margin: auto; width: 24px; height: 24px; color: var(--gray-3); }

/* nav (shared) */
.wb-nav {
  display: flex; align-items: center; gap: 12px;
  padding: 11px clamp(14px,1.4vw,20px);
  border-bottom: 1px solid var(--line);
}
.wb-nav .brand { font-family: var(--serif); font-weight: 700; font-size: 14px; letter-spacing: -0.02em; }
.wb-nav nav { display: flex; gap: 12px; margin-left: 6px; }
.wb-nav nav span { font-size: 10.5px; color: var(--gray-1); font-weight: 500; }
.wb-nav .nav-cta { margin-left: auto; font-size: 10px; font-weight: 600; color: #fff; background: var(--ink); border-radius: 100px; padding: 6px 11px; }
.wb-nav .nav-ico { margin-left: auto; width: 16px; height: 16px; color: var(--ink); }
.wb-nav .nav-ico + .nav-ico { margin-left: 10px; }

/* ---- Marketing site ---- */
.wb-mhero { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: clamp(12px,1.3vw,18px); padding: clamp(14px,1.5vw,20px); align-items: center; }
.wb-mhero h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(17px,1.9vw,25px); line-height: 1.04; letter-spacing: -0.025em; }
.wb-mhero h3 em { font-style: italic; }
.wb-mhero p { margin-top: 7px; font-size: 10.5px; line-height: 1.5; color: var(--gray-1); max-width: 26ch; }
.wb-mhero .btn { display: inline-block; margin-top: 11px; font-size: 10px; font-weight: 600; color: #fff; background: var(--ink); border-radius: 100px; padding: 7px 13px; }
.wb-mhero .wb-ph { border-radius: 12px; height: clamp(92px,11vw,140px); align-self: stretch; }
.wb-cards3 { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(8px,0.9vw,12px); padding: 0 clamp(14px,1.5vw,20px) clamp(14px,1.5vw,18px); margin-top: auto; }
.wb-wcard { border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; display: flex; flex-direction: column; gap: 8px; background: var(--paper); }
.wb-wcard .ico { width: 22px; height: 22px; border-radius: 7px; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--ink); }
.wb-wcard .ico svg { width: 13px; height: 13px; }
.wb-wcard .t { font-size: 11px; font-weight: 600; letter-spacing: -0.01em; }
.wb-wcard .l { width: 70%; height: 6px; border-radius: 3px; background: var(--paper-3); }

/* ---- E-commerce ---- */
.wb-shop-bar { display: flex; align-items: center; gap: 7px; padding: 9px clamp(14px,1.4vw,20px); border-bottom: 1px solid var(--line); }
.wb-shop-bar span { font-size: 10px; font-weight: 600; padding: 5px 10px; border-radius: 100px; background: var(--paper-2); color: var(--gray-1); }
.wb-shop-bar span.on { background: var(--ink); color: #fff; }
.wb-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(9px,1vw,14px); padding: clamp(13px,1.4vw,18px); align-content: start; }
.wb-tile { display: flex; flex-direction: column; gap: 6px; }
.wb-tile .wb-ph { border-radius: 9px; aspect-ratio: auto; height: clamp(70px, 8vw, 104px); }
.wb-tile .wb-ph .wb-tag {
  position: absolute; top: 7px; left: 7px; z-index: 1;
  font-size: 8.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff; background: var(--ink); border-radius: 100px; padding: 3px 8px;
}
.wb-tile .nm { font-size: 10px; font-weight: 600; letter-spacing: -0.01em; }
.wb-tile .pr { font-family: var(--serif); font-size: 11px; }
.wb-tile .pr .old { color: var(--gray-3); text-decoration: line-through; margin-left: 5px; font-size: 9.5px; }
/* cart with count badge */
.wb-cart { position: relative; margin-left: auto; display: inline-flex; }
.wb-cart .nav-ico { margin-left: 0; }
.wb-cart-count {
  position: absolute; top: -6px; right: -7px;
  min-width: 15px; height: 15px; padding: 0 3px;
  display: grid; place-items: center;
  font-size: 9px; font-weight: 700; color: #fff; background: var(--ink);
  border: 1.5px solid var(--paper); border-radius: 100px;
  opacity: 0; transform: scale(0.2);
  transition: opacity 0.3s var(--ease-out), transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.wb-cart-count.show { opacity: 1; transform: scale(1); }

/* ===== faux cursor ===== */
/* ---- Booking app ---- */
.wb-book { padding: clamp(14px,1.5vw,20px); display: flex; flex-direction: column; gap: clamp(9px,1vw,13px); }
.wb-book h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(15px,1.6vw,21px); letter-spacing: -0.02em; }
.wb-book .sub { font-size: 10px; color: var(--gray-1); margin-top: -4px; }
.wb-slots { display: flex; gap: 7px; flex-wrap: wrap; }
.wb-slots span { font-size: 10px; font-weight: 600; padding: 7px 11px; border-radius: 9px; border: 1px solid var(--line-strong); color: var(--ink); }
.wb-slots span.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.wb-svc { display: flex; flex-direction: column; gap: 7px; }
.wb-svc .r { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; }
.wb-svc .r .nm { font-size: 10.5px; font-weight: 600; }
.wb-svc .r .pr { font-family: var(--serif); font-size: 11px; }
.wb-book .btn { margin-top: 2px; text-align: center; font-size: 10.5px; font-weight: 600; color: #fff; background: var(--ink); border-radius: 100px; padding: 9px; }

/* ---- Landing page: form + trust row ---- */
.wb-form { display: flex; align-items: center; gap: 8px; margin-top: 11px; }
.wb-form .fld {
  flex: 1 1 auto; min-width: 0;
  font-size: 10px; color: var(--gray-2); font-weight: 500;
  background: var(--paper); border: 1px solid var(--line-strong);
  border-radius: 100px; padding: 8px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wb-form .btn { flex: none; display: inline-block; font-size: 10px; font-weight: 600; color: #fff; background: var(--ink); border-radius: 100px; padding: 8px 13px; }
.wb-trust {
  display: flex; align-items: center; gap: clamp(8px,1vw,14px); flex-wrap: wrap;
  padding: 0 clamp(14px,1.5vw,20px) clamp(14px,1.5vw,18px); margin-top: auto;
}
.wb-trust .stars { color: var(--ink); font-size: 13px; letter-spacing: 1px; }
.wb-trust .rt { font-family: var(--serif); font-size: 13px; }
.wb-trust .ct { font-size: 10px; color: var(--gray-1); }
.wb-trust .badge { margin-left: auto; font-size: 9.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gray-1); border: 1px solid var(--line-strong); border-radius: 100px; padding: 5px 10px; }

/* ===== faux cursor ===== */
.wb-cursor {
  position: absolute; top: 0; left: 0; z-index: 8;
  width: 18px; height: 18px; color: var(--ink);
  transform: translate(40px, 200px);
  transition: transform 0.75s cubic-bezier(0.5, 0, 0.2, 1);
  opacity: 0; pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}
.wb-browser.run .wb-cursor { opacity: 1; }
.wb-cursor svg { width: 100%; height: 100%; }
.wb-cursor.tap { transform: translate(var(--cx), var(--cy)) scale(0.82); }
.wb-click {
  position: absolute; z-index: 7; width: 26px; height: 26px; margin: -13px 0 0 -13px;
  border: 2px solid var(--ink); border-radius: 50%;
  opacity: 0; transform: scale(0.3); pointer-events: none;
}
.wb-click.go { animation: wbClick 0.5s var(--ease-out); }
@keyframes wbClick { 0% { opacity: 0.7; transform: scale(0.3); } 100% { opacity: 0; transform: scale(1.5); } }
.wb-cta-press { transition: transform 0.18s var(--ease); transform: scale(0.95) !important; }

.wb-browser.clearing .wb-stage { opacity: 0; transition: opacity 0.4s var(--ease); }

/* status bar: scores + live */
.wb-status {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px clamp(14px,1.4vw,20px);
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.wb-scores { display: flex; gap: clamp(16px, 1.8vw, 30px); }
.wb-score { display: flex; flex-direction: column; gap: 3px; }
.wb-score .k { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-2); }
.wb-score .v { font-family: var(--serif); font-size: clamp(18px, 1.7vw, 24px); line-height: 1; color: var(--gray-3); transition: color 0.4s var(--ease); font-variant-numeric: tabular-nums; }
.wb-score.good .v { color: var(--ink); }
.wb-live {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  font-size: 12.5px; font-weight: 600; letter-spacing: -0.01em;
  color: #fff; background: var(--ink); border-radius: 100px;
  padding: 8px 15px;
  opacity: 0; transform: translateY(4px) scale(0.96);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.wb-live .d { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.wb-live.show { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .wb-live.show .d { animation: wbPulse 1.4s ease-in-out infinite; }
}
@keyframes wbPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* progress dots */
.wb-foot { display: flex; align-items: center; gap: 8px; padding: 0 clamp(14px,1.4vw,20px) 14px; }
.wb-foot i { width: 22px; height: 3px; border-radius: 3px; background: var(--line-strong); display: block; transition: background 0.4s var(--ease); }
.wb-foot i.on { background: var(--ink); }
.wb-foot .wb-hint { margin-left: auto; font-size: 11px; color: var(--gray-3); letter-spacing: 0.02em; }

.wb-browser.clearing .wb-stage { opacity: 0; transition: opacity 0.4s var(--ease); }

/* index aside: tag the active service in the list */
.idx-row.is-here { background: var(--paper-2); }
.idx-row.is-here .nm { font-style: italic; }
.idx-row.is-here .go { opacity: 1; transform: none; }

/* ---------- Process: four balanced columns ---------- */
.proc-grid.wd-proc-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) { .proc-grid.wd-proc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .proc-grid.wd-proc-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ: two-column (sticky head + full-width accordion) ---------- */
.wd-faq-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(40px, 6vw, 104px);
  align-items: start;
}
.wd-faq-head { position: sticky; top: 112px; }
.wd-faq-head .title { margin-top: 18px; }
.wd-faq-head .ulink { display: inline-flex; margin-top: clamp(22px, 2.4vw, 32px); }
.wd-faq .faq-list { margin-top: 0; }
@media (max-width: 920px) {
  .wd-faq-grid { grid-template-columns: 1fr; gap: clamp(22px, 4vw, 34px); }
  .wd-faq-head { position: static; }
}

/* ---------- "Built in as standard" grid ---------- */
.wd-standards { background: var(--paper-2); }
.wd-std-grid {
  margin-top: clamp(26px, 3vw, 46px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.wd-std {
  background: var(--paper);
  padding: clamp(28px, 2.8vw, 44px);
  display: flex;
  flex-direction: column;
  transition: background 0.45s var(--ease);
}
.wd-std:hover { background: var(--paper-2); }
.wd-std-ic {
  width: 52px; height: 52px;
  flex: none;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  color: var(--ink);
  margin-bottom: clamp(20px, 2.2vw, 30px);
  transition: transform 0.45s var(--ease), background 0.45s var(--ease), color 0.45s var(--ease), border-color 0.45s var(--ease);
}
.wd-std-ic svg { width: 26px; height: 26px; }
.wd-std:hover .wd-std-ic { transform: rotate(-6deg); background: var(--ink); color: #fff; border-color: var(--ink); }
.wd-std h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(21px, 1.9vw, 27px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.wd-std h4 em { font-style: italic; color: var(--orange); }
.wd-std p {
  color: var(--gray-1);
  font-size: 15px;
  line-height: 1.56;
  max-width: 40ch;
}

/* ---------- Selected websites (work showcase) ---------- */
.wd-work .sec-head { grid-template-columns: 1fr auto; align-items: end; }
.wd-work-grid {
  margin-top: clamp(26px, 3vw, 46px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 1.6vw, 28px);
}
.wd-work-grid .work-card { grid-column: auto; }
.wd-work-grid .work-meta {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.work-meta .outcome {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
  padding: 7px 14px;
  border-radius: 100px;
  white-space: nowrap;
}
.work-meta .outcome::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: #fff; flex: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .wd-std-grid { grid-template-columns: repeat(2, 1fr); }
  .wd-work-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .wd-std-grid { grid-template-columns: 1fr; }
  .wd-work-grid { grid-template-columns: 1fr; }
  .wd-work .sec-head { grid-template-columns: 1fr; }
}
