/* ============================================================
   FIXD core styles — themeable baseline for everything that
   fixd-core.js renders. Each page maps its palette onto the --fx-*
   custom properties; sections can re-map them locally (e.g. a dark
   band sets --fx-ink:#fff) and every rendered component follows.
   ============================================================ */
:root{
  --fx-accent:#3C0F93;
  --fx-accent-deep:#2A0A6B;
  --fx-accent-wash:#F2EFFC;
  --fx-on-accent:#FFFFFF;
  --fx-ink:#1E1A38;
  --fx-body:#2B2A32;
  --fx-muted:#6E6B78;
  --fx-paper:#FDFCFA;
  --fx-card:#FFFFFF;
  --fx-line:#E7E3DC;
  --fx-mint:#BBFFD6;
  --fx-mint-soft:#E8FBEF;
  --fx-mint-deep:#2F8F5B;
  --fx-gold:#F4BE3F;
  --fx-warn:#B4441C;
  --fx-radius:18px;
  --fx-radius-lg:26px;
  --fx-display:inherit;
  --fx-mono:ui-monospace,SFMono-Regular,Menlo,monospace;
  --fx-ease:cubic-bezier(.22,.61,.36,1);
}

[hidden]{display:none!important}
html.fx-loading,html.fx-locked{overflow:hidden}
.fx-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ---------- loader: the hexagon in the i seats itself (brief §15) ---------- */
.fx-pre{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;
  background:var(--fx-pre-bg,var(--fx-paper));transition:opacity .7s var(--fx-ease),visibility .7s}
.fx-pre.is-out{opacity:0;visibility:hidden;pointer-events:none}
.fx-pre__in{display:grid;justify-items:center;gap:1.5rem}
.fx-pre__mark{width:clamp(132px,21vw,208px);height:auto;display:block;overflow:visible}
.fx-pre__letters{fill:var(--fx-pre-ink,var(--fx-accent));opacity:0;transform:translateY(7px);
  animation:fxLetters .75s var(--fx-ease) .1s forwards}
.fx-pre__hex{fill:var(--fx-gold);transform-box:fill-box;transform-origin:center;
  transform:rotate(-150deg) scale(.5);opacity:0;
  animation:fxSeat 1.1s cubic-bezier(.34,1.42,.64,1) .5s forwards,fxTint .45s ease 1.5s forwards}
.fx-pre__rule{width:clamp(132px,21vw,208px);height:2px;border-radius:2px;overflow:hidden;
  background:var(--fx-pre-line,rgba(30,26,56,.08))}
.fx-pre__rule i{display:block;height:100%;width:0;border-radius:2px;background:var(--fx-pre-ink,var(--fx-accent));
  animation:fxRule 1.9s var(--fx-ease) .1s forwards}
@keyframes fxLetters{to{opacity:1;transform:none}}
@keyframes fxSeat{from{transform:rotate(-150deg) scale(.5);opacity:0}55%{opacity:1}to{transform:rotate(0) scale(1);opacity:1}}
@keyframes fxTint{to{fill:var(--fx-pre-ink,var(--fx-accent))}}
@keyframes fxRule{to{width:100%}}
@keyframes fxFade{to{opacity:1;transform:none}}
.fx-pre.is-quick .fx-pre__letters,.fx-pre.is-quick .fx-pre__hex{animation:none;opacity:1;transform:none;fill:var(--fx-pre-ink,var(--fx-accent))}
.fx-pre.is-quick .fx-pre__rule i{animation:none;width:100%}
.fx-pre.is-quick .fx-pre__cap{animation:none;opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  .fx-pre__letters,.fx-pre__hex{animation:none;opacity:1;transform:none;fill:var(--fx-pre-ink,var(--fx-accent))}
  .fx-pre__rule i{animation:none;width:100%}
  .fx-pre__cap{animation:none!important;opacity:1!important;transform:none!important}
}

/* ---------- reveal (only when JS is running) ---------- */
html.fx-js [data-rv]{opacity:0;transform:translateY(20px);
  transition:opacity .8s var(--fx-ease),transform .8s var(--fx-ease)}
html.fx-js [data-rv].is-in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){html.fx-js [data-rv]{opacity:1;transform:none;transition:none}}

/* ---------- buttons + inputs ---------- */
.fx-btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  font:inherit;font-weight:600;font-size:.98rem;letter-spacing:-.01em;line-height:1.1;
  padding:.95rem 1.45rem;border-radius:100px;border:1.5px solid transparent;cursor:pointer;
  text-decoration:none;transition:transform .3s var(--fx-ease),background .2s,color .2s,border-color .2s}
.fx-btn:hover{transform:translateY(-1px)}
.fx-btn:disabled{opacity:.6;cursor:progress;transform:none}
.fx-btn:focus-visible{outline:2.5px solid var(--fx-accent);outline-offset:3px}
.fx-btn--pri{background:var(--fx-accent);color:var(--fx-on-accent)}
.fx-btn--pri:hover{background:var(--fx-accent-deep)}
.fx-btn--ghost{background:transparent;color:var(--fx-ink);border-color:var(--fx-line)}
.fx-btn--ghost:hover{border-color:var(--fx-ink)}
.fx-btn--block{width:100%}

.fx-input{width:100%;font:inherit;font-size:1rem;color:var(--fx-ink);background:var(--fx-input-bg,var(--fx-paper));
  border:1px solid var(--fx-line);border-radius:14px;padding:.85rem 1rem;transition:border-color .2s,background .2s}
.fx-input:focus{outline:0;border-color:var(--fx-accent);background:var(--fx-card)}
.fx-input.is-bad{border-color:var(--fx-warn)}
textarea.fx-input{resize:vertical;min-height:88px;line-height:1.5}
select.fx-input{appearance:none;-webkit-appearance:none;padding-right:2.6rem;cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A86A0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 1rem center;background-size:16px}

.fx-seg{display:flex;flex-wrap:wrap;gap:.3rem;padding:.3rem;border-radius:14px;background:var(--fx-seg-bg,var(--fx-accent-wash))}
.fx-seg label{position:relative;flex:1 1 auto;cursor:pointer}
.fx-seg input{position:absolute;opacity:0;pointer-events:none}
.fx-seg span{display:block;text-align:center;padding:.62rem .8rem;border-radius:10px;
  font-size:.88rem;font-weight:600;color:var(--fx-muted);transition:background .2s,color .2s}
.fx-seg input:checked + span{background:var(--fx-card);color:var(--fx-accent);box-shadow:0 2px 12px -6px rgba(20,16,36,.3)}
.fx-seg input:focus-visible + span{outline:2px solid var(--fx-accent);outline-offset:2px}

/* ---------- modal: enquiry + join ---------- */
.fx-modal{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:1rem}
.fx-modal__bg{position:absolute;inset:0;background:rgba(20,16,36,.52);backdrop-filter:blur(6px);
  opacity:0;transition:opacity .25s}
.fx-modal__card{position:relative;width:100%;max-width:540px;max-height:92vh;overflow:auto;
  background:var(--fx-card);color:var(--fx-body);border-radius:var(--fx-radius-lg);
  padding:clamp(1.5rem,3.6vw,2.4rem);box-shadow:0 50px 100px -40px rgba(20,16,36,.55);
  opacity:0;transform:translateY(14px) scale(.985);transition:opacity .3s var(--fx-ease),transform .35s var(--fx-ease)}
.fx-modal.is-open .fx-modal__bg{opacity:1}
.fx-modal.is-open .fx-modal__card{opacity:1;transform:none}
.fx-modal__x{position:absolute;top:.9rem;right:.9rem;width:38px;height:38px;border-radius:50%;border:0;
  background:var(--fx-accent-wash);color:var(--fx-ink);font-size:1.35rem;line-height:1;cursor:pointer}
.fx-modal__title{margin:0;padding-right:2.6rem;font-family:var(--fx-display);font-size:clamp(1.4rem,1.2rem + .9vw,1.9rem);
  font-weight:700;letter-spacing:-.03em;line-height:1.1;color:var(--fx-accent)}
.fx-modal__sub{margin:.6rem 0 0;color:var(--fx-muted);font-size:.96rem;line-height:1.5}
.fx-modal__pick{margin:.9rem 0 0;padding:.55rem .75rem;border-radius:10px;background:var(--fx-accent-wash);
  font-family:var(--fx-mono);font-size:.74rem;letter-spacing:.04em;color:var(--fx-accent)}
.fx-fld{margin-top:1.05rem}
.fx-fld label,.fx-fld__l{display:block;margin-bottom:.4rem;font-size:.84rem;font-weight:600;color:var(--fx-ink)}
.fx-opt{margin-left:.35rem;font-weight:400;color:var(--fx-muted)}
.fx-fld__hint{margin:.45rem 0 0;font-size:.8rem;line-height:1.45;color:var(--fx-muted)}
.fx-row2{display:grid;grid-template-columns:1fr 1fr;gap:.8rem}
.fx-row2 .fx-fld{min-width:0}
@media(max-width:520px){.fx-row2{grid-template-columns:1fr;gap:0}}
.fx-drop{display:grid;justify-items:center;gap:.45rem;padding:1.2rem;border:1.5px dashed var(--fx-line);
  border-radius:16px;text-align:center;cursor:pointer;color:var(--fx-muted);font-size:.9rem;transition:border-color .2s,background .2s}
.fx-drop:hover,.fx-drop.is-hot,.fx-drop:focus-visible{border-color:var(--fx-accent);background:var(--fx-accent-wash);outline:0}
.fx-drop svg{width:22px;height:22px;color:var(--fx-accent)}
.fx-shots{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.6rem}
.fx-shots:empty{display:none}
.fx-shots img{width:62px;height:62px;object-fit:cover;border-radius:10px;border:1px solid var(--fx-line)}
.fx-mform__err{min-height:1.2em;margin:.8rem 0 .2rem;color:var(--fx-warn);font-size:.88rem}
.fx-mdone{text-align:center;padding:.4rem 0}
.fx-mdone__ok{display:grid;place-items:center;width:60px;height:60px;margin:0 auto 1.1rem;border-radius:50%;
  background:var(--fx-mint);color:var(--fx-accent)}
.fx-mdone__ok svg{width:26px;height:26px}
.fx-mdone .fx-modal__title{padding:0}
.fx-mdone__act{display:flex;flex-wrap:wrap;justify-content:center;gap:.6rem;margin-top:1.4rem}
.fx-mdone__alt{margin:1rem 0 0;font-size:.85rem;color:var(--fx-muted)}
.fx-mdone__alt a{color:var(--fx-accent)}
.fx-mailto{color:var(--fx-accent);font-weight:600}
.fx-btn.fx-mailto{color:var(--fx-on-accent)}
.fx-preview{display:block;margin-top:.7rem;font-family:var(--fx-mono);font-size:.72rem;letter-spacing:.02em;color:var(--fx-warn)}

/* ---------- postcode result + waitlist ---------- */
[data-fx-pc-res].is-shown{animation:fxRise .5s var(--fx-ease) both}
@keyframes fxRise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
.fx-res{padding:clamp(1.1rem,2.4vw,1.6rem);border-radius:var(--fx-radius);border:1px solid var(--fx-line);
  background:var(--fx-card);text-align:left}
.fx-res--yes{background:var(--fx-mint-soft);border-color:var(--fx-mint-deep)}
.fx-res__tag{display:inline-block;font-family:var(--fx-mono);font-size:.68rem;font-weight:500;letter-spacing:.16em;
  text-transform:uppercase;color:var(--fx-mint-deep)}
.fx-res--no .fx-res__tag{color:var(--fx-warn)}
.fx-res__title{margin:.55rem 0 .35rem;font-family:var(--fx-display);font-size:clamp(1.12rem,1rem + .6vw,1.45rem);
  font-weight:700;letter-spacing:-.025em;line-height:1.2;color:var(--fx-ink)}
.fx-res--yes .fx-res__title{color:#1E1A38}
.fx-res__text{margin:0;color:var(--fx-muted);font-size:.95rem;line-height:1.5}
.fx-res--yes .fx-res__text{color:#4A4760}
.fx-res__text strong{color:inherit;font-weight:700}
.fx-res__act{margin-top:1.1rem}
.fx-wl{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1rem}
.fx-wl .fx-input{flex:1 1 200px;border-radius:100px;padding:.8rem 1.15rem}
.fx-wl__ok{margin:.9rem 0 0;font-family:var(--fx-mono);font-size:.82rem;line-height:1.5;color:var(--fx-mint-deep)}

/* ---------- FIXS blocks ---------- */
.fx-packs{display:grid;gap:.8rem}
.fx-pack{position:relative;display:grid;align-content:start;gap:.35rem;padding:1.2rem 1.25rem;
  border-radius:var(--fx-radius);border:1px solid var(--fx-line);background:var(--fx-pack-bg,var(--fx-card));color:var(--fx-body)}
.fx-pack--rec{background:var(--fx-pack-rec-bg,var(--fx-mint));border-color:var(--fx-pack-rec-bg,var(--fx-mint));
  color:var(--fx-pack-rec-ink,var(--fx-accent-deep))}
.fx-pack__tag{justify-self:start;padding:.22rem .55rem;border-radius:100px;background:rgba(255,255,255,.62);
  font-family:var(--fx-mono);font-size:.6rem;letter-spacing:.14em;text-transform:uppercase;color:var(--fx-accent)}
.fx-pack__top{display:flex;justify-content:space-between;align-items:baseline;gap:1rem}
.fx-pack__name{margin:0;font-family:var(--fx-display);font-size:1.12rem;font-weight:700;letter-spacing:-.02em;color:inherit}
.fx-pack__price{margin:0;font-family:var(--fx-display);font-size:1.45rem;font-weight:700;letter-spacing:-.03em;white-space:nowrap;color:inherit}
.fx-pack__price small{margin-left:.1rem;font-size:.72rem;font-weight:500;opacity:.7}
.fx-pack__meta{margin:0;font-size:.92rem;line-height:1.4}
.fx-pack__line{margin:0;font-size:.95rem;line-height:1.45;opacity:.82}
.fx-pack__hint{margin:0;font-size:.88rem;line-height:1.4;opacity:.78}
.fx-pack .fx-btn{margin-top:.7rem}
.fx-pack--rec .fx-btn--pri{background:var(--fx-accent);color:#fff}
.fx-packs__note{margin:.55rem 0 0;font-size:.86rem;line-height:1.55;color:var(--fx-muted)}

/* ---------- FAQ ---------- */
.fx-qa{border-bottom:1px solid var(--fx-line)}
.fx-qa:first-child{border-top:1px solid var(--fx-line)}
.fx-qa__q{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:1.4rem;
  padding:1.35rem .2rem;font-family:var(--fx-display);font-size:clamp(1.02rem,.96rem + .4vw,1.22rem);
  font-weight:600;letter-spacing:-.02em;line-height:1.3;color:var(--fx-ink)}
.fx-qa__q::-webkit-details-marker{display:none}
.fx-qa__q:focus-visible{outline:2px solid var(--fx-accent);outline-offset:4px;border-radius:6px}
.fx-qa__ico{position:relative;flex:none;width:30px;height:30px;border-radius:50%;border:1.5px solid var(--fx-line);
  transition:background .3s,border-color .3s,transform .35s var(--fx-ease)}
.fx-qa__ico::before,.fx-qa__ico::after{content:"";position:absolute;left:50%;top:50%;border-radius:2px;
  background:var(--fx-accent);transform:translate(-50%,-50%)}
.fx-qa__ico::before{width:12px;height:1.8px}
.fx-qa__ico::after{width:1.8px;height:12px;transition:opacity .3s}
.fx-qa[open] .fx-qa__ico{background:var(--fx-accent);border-color:var(--fx-accent);transform:rotate(180deg)}
.fx-qa[open] .fx-qa__ico::before{background:var(--fx-on-accent)}
.fx-qa[open] .fx-qa__ico::after{opacity:0}
.fx-qa__a{padding:0 .2rem 1.4rem;max-width:66ch;color:var(--fx-muted);line-height:1.6}
.fx-qa__a p{margin:0}

/* ---------- hexagon neighbourhood map ---------- */
.fx-hexmap{display:block;width:100%;height:auto;overflow:visible}
.fx-hex{cursor:pointer;outline:none}
.fx-hex__shape{fill:var(--fx-hex-bg,transparent);stroke:var(--fx-hex-line,var(--fx-line));stroke-width:1.5;
  transition:fill .3s,stroke .3s,stroke-width .3s}
.fx-hex__id{font-family:var(--fx-mono);font-size:12px;font-weight:500;letter-spacing:.06em;fill:var(--fx-muted);pointer-events:none}
.fx-hex__area{font-size:8.5px;fill:var(--fx-mint);pointer-events:none}
.fx-hex.is-live .fx-hex__shape{fill:var(--fx-accent);stroke:var(--fx-accent)}
.fx-hex.is-live .fx-hex__id{fill:#fff}
.fx-hex:hover .fx-hex__shape,.fx-hex:focus-visible .fx-hex__shape{stroke:var(--fx-accent);stroke-width:2.5}
.fx-hex.is-live:hover .fx-hex__shape,.fx-hex.is-live:focus-visible .fx-hex__shape{fill:var(--fx-accent-deep)}
.fx-hex.is-you .fx-hex__shape{stroke:var(--fx-gold);stroke-width:3.5}
.fx-hexmap__legend{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem 1.2rem;margin:.9rem 0 0;
  font-family:var(--fx-mono);font-size:.64rem;letter-spacing:.08em;text-transform:uppercase;color:var(--fx-muted)}
.fx-hexmap__legend span::before{content:"";display:inline-block;width:10px;height:9px;margin-right:.45rem;vertical-align:-1px;
  clip-path:polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%);background:var(--fx-line)}
.fx-hexmap__legend .is-live::before{background:var(--fx-accent)}
.fx-hexmap__legend em{font-style:normal;opacity:.7}

/* ---------- analytics consent ---------- */
.fx-consent{position:fixed;left:16px;bottom:16px;z-index:9000;width:min(420px,calc(100% - 32px));padding:1.1rem 1.15rem 1rem;
  background:var(--fx-card);color:var(--fx-body);border:1px solid var(--fx-line);border-radius:var(--fx-radius);
  box-shadow:0 30px 60px -28px rgba(20,16,36,.45);font-size:.9rem;line-height:1.5;
  opacity:0;transform:translateY(12px);transition:opacity .3s var(--fx-ease),transform .35s var(--fx-ease)}
.fx-consent.is-on{opacity:1;transform:none}
.fx-consent p{margin:0}
.fx-consent__act{display:flex;justify-content:flex-end;gap:.5rem;margin-top:.9rem}
.fx-consent .fx-btn{padding:.65rem 1rem;font-size:.86rem}
@media print{.fx-consent{display:none}}
