/* ==========================================================================
   RRA Online Licensing — "Lagoon & Weave" design system
   Layout rule: flex containers only (no CSS grid) so every standard section
   maps 1:1 to an Elementor flex container. Showpiece styles live at the end.
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("../fonts/fraunces.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 300 800; font-display: swap; src: url("../fonts/fraunces-italic.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/manrope.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --navy: #0b1b4d;
  --navy-2: #13256a;
  --lagoon: #2747d6;
  --lagoon-2: #3d5cf0;
  --sky: #e8edff;
  --gold: #f2c230;
  --gold-soft: #fff4cc;
  --coral: #e5484d;
  --coral-soft: #fde8e8;
  --green: #1f9d6b;
  --green-soft: #ddf5ea;
  --sand: #faf8f3;
  --sand-2: #f2eee4;
  --white: #ffffff;
  --ink: #101631;
  --ink-2: #4a5170;
  --ink-3: #7c839f;
  --line: #e3e1d8;
  --line-2: #d4d8e8;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 24px;
  --shadow-s: 0 1px 2px rgba(11, 27, 77, .06), 0 2px 8px rgba(11, 27, 77, .05);
  --shadow: 0 10px 30px -12px rgba(11, 27, 77, .25);
  --shadow-l: 0 30px 60px -25px rgba(11, 27, 77, .35);

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(64px, 9vw, 128px);
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* woven vacoas motif, taken from the coat of arms basket */
  --weave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cg fill='none' stroke='%23f2c230' stroke-width='1.2' opacity='.55'%3E%3Cpath d='M0 7h14M14 21h14M7 0v14M21 14v14'/%3E%3C/g%3E%3C/svg%3E");
  --weave-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cg fill='none' stroke='%230b1b4d' stroke-width='1' opacity='.07'%3E%3Cpath d='M0 7h14M14 21h14M7 0v14M21 14v14'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
svg { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lagoon); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold); color: var(--navy); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--navy); font-variation-settings: "opsz" 120; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5.2rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 500; }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); letter-spacing: -.01em; }
h4 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 400; color: var(--lagoon); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
small { font-size: .85em; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 999; background: var(--gold); color: var(--navy); padding: 10px 16px; border-radius: var(--radius-s); font-weight: 700; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout primitives (flex only) ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 880px; }
.section { padding: var(--section-y) 0; position: relative; }
.section--tight { padding: calc(var(--section-y) * .6) 0; }
.section--white { background: var(--white); }
.section--sand { background: var(--sand-2); }
.section--navy { background: var(--navy); color: #cfd6f5; }
.section--navy h2, .section--navy h3, .section--navy h4 { color: var(--white); }
.section--navy h2 em { color: var(--gold); }
.section--weave { background-image: var(--weave-dark); }
.section--navy.section--weave { background-image: var(--weave); background-blend-mode: normal; }

.row { display: flex; flex-wrap: wrap; gap: clamp(20px, 3vw, 40px); }
.row--center { align-items: center; }
.row--between { justify-content: space-between; }
.row--end { align-items: flex-end; }
.col { flex: 1 1 0; min-width: 0; }
.col-2 { flex: 1 1 calc(50% - 40px); min-width: min(100%, 300px); }
.col-3 { flex: 1 1 calc(33.333% - 40px); min-width: min(100%, 260px); }
.col-4 { flex: 1 1 calc(25% - 40px); min-width: min(100%, 220px); }
.col-5 { flex: 0 1 41.666%; min-width: min(100%, 320px); }
.col-7 { flex: 1 1 50%; min-width: min(100%, 320px); }
.stack > * + * { margin-top: 16px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: .78rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; color: var(--lagoon);
  margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.section--navy .eyebrow { color: var(--gold); }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--ink-2); line-height: 1.6; max-width: 62ch; }
.section--navy .lead { color: #c3cbf0; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--split { max-width: none; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-end; }
.section-head--split > div { max-width: 680px; }
.underline-gold { background: linear-gradient(transparent 70%, rgba(242, 194, 48, .55) 70%); padding: 0 .1em; }
.muted { color: var(--ink-3); }
.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: .98rem; line-height: 1; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, color .25s, box-shadow .25s, border-color .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--lagoon); color: var(--white); box-shadow: 0 10px 24px -10px rgba(39, 71, 214, .7); }
.btn--primary:hover { background: var(--navy); color: var(--white); }
.btn--gold { background: var(--gold); color: var(--navy); box-shadow: 0 10px 24px -10px rgba(242, 194, 48, .8); }
.btn--gold:hover { background: var(--white); color: var(--navy); }
.btn--ghost { border-color: var(--line-2); color: var(--navy); background: transparent; }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); background: var(--white); }
.btn--light { border-color: rgba(255, 255, 255, .35); color: var(--white); background: transparent; }
.btn--light:hover { border-color: var(--white); background: var(--white); color: var(--navy); }
.btn--small { padding: 10px 18px; font-size: .88rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--lagoon); }
.link-arrow svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.topbar { background: var(--navy); color: #b9c2ea; font-size: .82rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; flex-wrap: wrap; }
.topbar a { color: #e3e8ff; text-decoration: none; }
.topbar a:hover { color: var(--gold); }
.topbar__links { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar__flag { display: inline-flex; align-items: center; gap: 8px; }
.topbar__flag span { display: inline-flex; height: 10px; width: 20px; border-radius: 2px; overflow: hidden; }
.topbar__flag i { flex: 1; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(250, 248, 243, .88); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(11, 27, 77, .4); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); flex: none; }
.brand__logo { width: 52px; height: 52px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; letter-spacing: -.01em; }
.brand__sub { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }

.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-menu a { display: block; padding: 10px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; transition: background-color .2s, color .2s; }
.nav-menu a:hover { background: var(--sky); color: var(--lagoon); }
.nav-menu a[aria-current="page"] { color: var(--lagoon); background: var(--sky); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--white); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; position: relative; transition: transform .3s var(--ease), background-color .2s; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-open .nav-toggle__bars { background: transparent; }
.nav-open .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav { display: none; }

@media (max-width: 1080px) {
  .nav-menu, .header-actions .btn--ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-nav {
    display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 99;
    padding: 130px var(--gutter) 40px; background: var(--navy); background-image: var(--weave);
    transform: translateY(-100%); visibility: hidden; transition: transform .5s var(--ease), visibility .5s;
    overflow-y: auto;
  }
  .nav-open .mobile-nav { transform: none; visibility: visible; }
  .nav-open .site-header { background: var(--navy); }
  .nav-open .brand, .nav-open .brand__sub { color: var(--white); }
  .mobile-nav ul { list-style: none; margin: 0 0 32px; padding: 0; }
  .mobile-nav li { border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .mobile-nav a.mobile-nav__link { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; color: var(--white); text-decoration: none; font-family: var(--font-display); font-size: 1.6rem; }
  .mobile-nav a.mobile-nav__link[aria-current="page"] { color: var(--gold); }
  .mobile-nav .btn-row .btn { flex: 1 1 200px; }
  .mobile-nav__contact { margin-top: 28px; color: #aab4e0; font-size: .92rem; }
  .mobile-nav__contact a { color: var(--white); }
}
@media (max-width: 560px) {
  .header-actions .btn--primary { display: none; }
  .brand__logo { width: 44px; height: 44px; }
  .brand__name { font-size: 1rem; }
  .topbar { display: none; }
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero { position: relative; padding: clamp(56px, 8vw, 110px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; right: -6%; top: -30%; width: 46vw; height: 140%; background: var(--sky); transform: skewX(-12deg); z-index: -1; }
.page-hero::after { content: ""; position: absolute; right: 8%; bottom: 0; width: 120px; height: 120px; background: var(--gold); z-index: -1; opacity: .9; }
.page-hero .row { align-items: center; }
.page-hero__media { position: relative; }
.page-hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-l); box-shadow: var(--shadow-l); }
.page-hero__media::before { content: ""; position: absolute; left: -22px; top: -22px; width: 45%; height: 45%; background: var(--lagoon); border-radius: var(--radius-l); z-index: -1; }
.page-hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; font-size: .88rem; color: var(--ink-3); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--line-2); }
.breadcrumb a { color: var(--ink-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--lagoon); }

/* ---------- Icon boxes ---------- */
.icon-box { flex: 1 1 260px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 32px; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; position: relative; }
.icon-box:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.icon-box__icon { width: 56px; height: 56px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; background: var(--sky); color: var(--lagoon); margin-bottom: 22px; }
.icon-box__icon svg { width: 26px; height: 26px; }
.icon-box__icon--gold { background: var(--gold-soft); color: #9a7300; }
.icon-box__icon--coral { background: var(--coral-soft); color: var(--coral); }
.icon-box__icon--green { background: var(--green-soft); color: var(--green); }
.icon-box__title { font-size: 1.3rem; margin-bottom: 10px; }
.icon-box__text { color: var(--ink-2); margin-bottom: 18px; font-size: .98rem; }
.icon-box--navy { background: var(--navy-2); border-color: rgba(255, 255, 255, .08); color: #c3cbf0; }
.icon-box--navy .icon-box__title { color: var(--white); }
.icon-box--navy .icon-box__text { color: #b4bde6; }
.icon-box--navy .icon-box__icon { background: rgba(242, 194, 48, .14); color: var(--gold); }
.icon-box--plain { background: transparent; border: 0; padding: 0; }
.icon-box--plain:hover { transform: none; box-shadow: none; }
.icon-box--link { text-decoration: none; color: inherit; display: block; }
.icon-box--link:hover { color: inherit; }
.icon-box__num { position: absolute; right: 26px; top: 22px; font-family: var(--font-display); font-size: 3rem; line-height: 1; color: var(--sand-2); font-weight: 600; }

/* Quick actions (home): oversized icon boxes overlapping the hero */
.quick-actions { position: relative; z-index: 3; margin-top: -60px; }
.quick-actions .icon-box { box-shadow: var(--shadow); }
.quick-actions .icon-box:first-child { background: var(--lagoon); border-color: var(--lagoon); color: #dbe2ff; }
.quick-actions .icon-box:first-child .icon-box__title { color: var(--white); }
.quick-actions .icon-box:first-child .icon-box__text { color: #d4dbff; }
.quick-actions .icon-box:first-child .icon-box__icon { background: rgba(255, 255, 255, .14); color: var(--gold); }
.quick-actions .icon-box:first-child .link-arrow { color: var(--gold); }

/* ---------- Image + text split ---------- */
.split-media { position: relative; }
.split-media img { width: 100%; border-radius: var(--radius-l); object-fit: cover; aspect-ratio: 4 / 5; box-shadow: var(--shadow-l); }
.split-media--wide img { aspect-ratio: 4 / 3; }
.split-media__block { position: absolute; width: 38%; aspect-ratio: 1; border-radius: var(--radius-l); z-index: -1; }
.split-media__block--gold { background: var(--gold); right: -24px; bottom: -24px; }
.split-media__block--lagoon { background: var(--lagoon); left: -24px; top: -24px; }
.split-media__badge { position: absolute; left: -16px; bottom: 32px; background: var(--white); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 14px; max-width: 280px; }
.split-media__badge strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--navy); line-height: 1; }
.split-media__badge span { font-size: .85rem; color: var(--ink-2); line-height: 1.3; }
.split-media__badge .icon-box__icon { margin: 0; flex: none; width: 46px; height: 46px; }

.check-list { list-style: none; padding: 0; margin: 0 0 28px; }
.check-list li { position: relative; padding-left: 36px; margin-bottom: 14px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a7300' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat; }
.section--navy .check-list li::before { background-color: rgba(242, 194, 48, .15); }

/* ---------- Licence cards ---------- */
.licence-card { flex: 1 1 300px; max-width: 100%; background: var(--white); border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; }
.licence-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-l); }
.licence-card__media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.licence-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.licence-card:hover .licence-card__media img { transform: scale(1.06); }
.licence-card__tag { position: absolute; left: 16px; top: 16px; background: rgba(11, 27, 77, .82); color: var(--white); font-size: .75rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; letter-spacing: .04em; backdrop-filter: blur(6px); }
.licence-card__body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.licence-card__title { font-size: 1.35rem; margin-bottom: 8px; }
.licence-card__text { color: var(--ink-2); font-size: .96rem; flex: 1; }
.licence-card__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 14px 0 18px; margin-top: 6px; border-top: 1px dashed var(--line); font-size: .85rem; color: var(--ink-2); }
.licence-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.licence-card__meta svg { width: 16px; height: 16px; color: var(--lagoon); }

/* compact licence card (directory, icon-led) */
.licence-tile { flex: 1 1 280px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 28px; display: flex; flex-direction: column; gap: 6px; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.licence-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.licence-tile[hidden] { display: none; }
.licence-tile__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.licence-tile__head .icon-box__icon { margin: 0; }
.licence-tile__title { font-size: 1.25rem; margin: 0; }
.licence-tile__text { color: var(--ink-2); font-size: .95rem; margin: 0 0 12px; flex: 1; }
.licence-tile__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: .86rem; color: var(--ink-2); flex-wrap: wrap; }
.licence-tile__fee { font-weight: 800; color: var(--navy); }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; background: var(--sky); color: var(--lagoon); }
.pill--gold { background: var(--gold-soft); color: #8a6600; }
.pill--coral { background: var(--coral-soft); color: #b42318; }
.pill--green { background: var(--green-soft); color: #0f7a50; }
.pill--grey { background: #eef0f6; color: var(--ink-2); }

/* filter bar */
.filter-bar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 14px; margin-bottom: 36px; box-shadow: var(--shadow-s); }
.search-field { position: relative; flex: 1 1 280px; }
.search-field svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--ink-3); pointer-events: none; }
.search-field input { width: 100%; border: 1px solid var(--line-2); border-radius: 999px; padding: 14px 18px 14px 50px; background: var(--sand); }
.search-field input:focus { outline: none; border-color: var(--lagoon); background: var(--white); box-shadow: 0 0 0 4px rgba(39, 71, 214, .12); }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line-2); background: var(--white); border-radius: 999px; padding: 10px 16px; font-weight: 700; font-size: .88rem; cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--lagoon); color: var(--lagoon); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.empty-state { text-align: center; padding: 48px 20px; color: var(--ink-2); }
.empty-state[hidden] { display: none; }

/* ---------- Stats ---------- */
.stats { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid rgba(255, 255, 255, .14); border-bottom: 1px solid rgba(255, 255, 255, .14); }
.stat { flex: 1 1 220px; padding: 36px 28px; border-right: 1px solid rgba(255, 255, 255, .14); }
.stat:last-child { border-right: 0; }
.stat__value { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 4rem); color: var(--white); line-height: 1; margin-bottom: 10px; font-weight: 500; }
.stat__value span { color: var(--gold); }
.stat__label { color: #b4bde6; font-size: .95rem; margin: 0; }
.section:not(.section--navy) .stats { border-color: var(--line); }
.section:not(.section--navy) .stat { border-color: var(--line); }
.section:not(.section--navy) .stat__value { color: var(--navy); }
.section:not(.section--navy) .stat__label { color: var(--ink-2); }

/* ---------- Testimonials ---------- */
.testimonial { flex: 1 1 320px; background: var(--white); border-radius: var(--radius-l); padding: 34px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; position: relative; }
.testimonial::before { content: "\201C"; position: absolute; right: 26px; top: 6px; font-family: var(--font-display); font-size: 6rem; line-height: 1; color: var(--gold); opacity: .5; }
.testimonial__quote { font-family: var(--font-display); font-size: 1.18rem; line-height: 1.5; color: var(--navy); margin: 0; flex: 1; font-weight: 400; }
.testimonial__person { display: flex; align-items: center; gap: 14px; }
.testimonial__avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--sky); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: var(--lagoon); flex: none; }
.testimonial__name { font-weight: 800; color: var(--navy); margin: 0; line-height: 1.3; }
.testimonial__role { font-size: .86rem; color: var(--ink-3); margin: 0; }
.stars { display: inline-flex; gap: 3px; color: var(--gold); }
.stars svg { width: 18px; height: 18px; }
.stars--muted svg:last-child { color: var(--line-2); }

/* ---------- Gallery ---------- */
.gallery { display: flex; gap: 16px; flex-wrap: wrap; }
.gallery__item { flex: 1 1 200px; margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 1; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; background: linear-gradient(transparent, rgba(11, 27, 77, .85)); color: var(--white); font-weight: 700; font-size: .92rem; }

/* ---------- Accordion (native <details>, maps to Elementor Accordion) ---------- */
.accordion { display: flex; flex-direction: column; gap: 12px; }
.accordion__item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .3s, border-color .3s; }
.accordion__item[open] { box-shadow: var(--shadow); border-color: transparent; }
.accordion__title { list-style: none; cursor: pointer; padding: 22px 64px 22px 26px; font-weight: 700; color: var(--navy); position: relative; font-size: 1.05rem; }
.accordion__title::-webkit-details-marker { display: none; }
.accordion__title::after { content: ""; position: absolute; right: 24px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232747d6' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .3s var(--ease), background-color .3s; }
.accordion__item[open] .accordion__title::after { transform: rotate(45deg); background-color: var(--gold); }
.accordion__content { padding: 0 26px 24px; color: var(--ink-2); }
.accordion__content p:last-child, .accordion__content ul:last-child { margin-bottom: 0; }

/* ---------- Comparison (BRC vs Trade Licence) ---------- */
.compare { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.compare__card { flex: 1 1 320px; border-radius: var(--radius-l); padding: 40px; position: relative; overflow: hidden; }
.compare__card--blue { background: var(--white); border: 1px solid var(--line); }
.compare__card--gold { background: var(--navy); color: #c9d1f3; }
.compare__card--gold h3 { color: var(--gold); }
.compare__card dl { margin: 24px 0 0; }
.compare__card dt { font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); margin-top: 18px; }
.compare__card--gold dt { color: #8f9bd0; }
.compare__card dd { margin: 4px 0 0; font-weight: 600; }
.compare__vs { flex: 0 0 auto; align-self: center; width: 64px; height: 64px; border-radius: 50%; background: var(--gold); color: var(--navy); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-style: italic; font-size: 1.4rem; margin: 0 -44px; z-index: 2; box-shadow: var(--shadow); }
@media (max-width: 760px) { .compare__vs { margin: -40px auto; } }

/* ---------- Notices list ---------- */
.notice { display: flex; gap: 22px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: flex-start; text-decoration: none; color: inherit; transition: padding .3s var(--ease); }
.notice:hover { padding-left: 10px; color: inherit; }
.notice:first-child { border-top: 1px solid var(--line); }
.notice__date { flex: none; width: 78px; text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 6px; }
.notice__day { display: block; font-family: var(--font-display); font-size: 1.8rem; line-height: 1; color: var(--navy); }
.notice__month { font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--coral); }
.notice__title { font-size: 1.2rem; margin: 6px 0 6px; }
.notice__text { color: var(--ink-2); margin: 0; font-size: .95rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; border-radius: calc(var(--radius-l) + 8px); overflow: hidden; background: var(--lagoon); color: #dfe5ff; padding: clamp(40px, 6vw, 80px); display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: var(--weave); opacity: .5; z-index: -1; }
.cta-band::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 260px; height: 260px; background: var(--gold); border-radius: 40px; transform: rotate(18deg); z-index: -1; opacity: .95; }
.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band h2 em { color: var(--gold); }
.cta-band p { margin: 0; max-width: 54ch; color: #dbe2ff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #aab4e0; padding: clamp(64px, 8vw, 100px) 0 0; position: relative; overflow: hidden; font-size: .95rem; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, var(--lagoon) 0 40%, var(--gold) 40% 70%, var(--coral) 70% 85%, var(--green) 85%); }
.footer-top { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; padding-bottom: 56px; }
.footer-brand { flex: 1 1 300px; max-width: 380px; }
.footer-brand .brand { color: var(--white); margin-bottom: 20px; }
.footer-brand .brand__sub { color: #8f9bd0; }
.footer-brand .brand__logo { background: var(--white); border-radius: 50%; padding: 4px; }
.footer-col { flex: 0 1 180px; }
.footer-col h3 { font-family: var(--font-body); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #d8defa; text-decoration: none; }
.footer-col a:hover { color: var(--gold); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 24px 0 30px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: .85rem; }
.footer-bottom a { color: #d8defa; }
.footer-bottom ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-motto { font-family: var(--font-display); font-style: italic; color: var(--gold); letter-spacing: .02em; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: flex; flex-wrap: wrap; gap: 20px; }
.form-row > .field { flex: 1 1 240px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field .field__label { font-weight: 700; font-size: .92rem; color: var(--navy); }
.field .req { color: var(--coral); }
.field__hint { font-size: .84rem; color: var(--ink-3); margin: 0; }
.field input, .field select, .field textarea {
  width: 100%; border: 1.5px solid var(--line-2); border-radius: var(--radius-s); background: var(--white);
  padding: 13px 15px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lagoon); box-shadow: 0 0 0 4px rgba(39, 71, 214, .12); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--coral); }
.field__error { display: none; color: #b42318; font-size: .84rem; font-weight: 600; }
.field.is-invalid .field__error { display: block; }
.choice { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: .95rem; }
.choice input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--lagoon); flex: none; }
.form-card { background: var(--white); border-radius: var(--radius-l); padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); box-shadow: var(--shadow-s); }
.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success.is-visible { display: block; }
.form-success .icon-box__icon { margin: 0 auto 18px; }

/* ---------- Alerts ---------- */
.alert { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius); background: var(--sky); color: var(--navy); font-size: .94rem; }
.alert svg { width: 22px; height: 22px; flex: none; color: var(--lagoon); margin-top: 1px; }
.alert--gold { background: var(--gold-soft); }
.alert--gold svg { color: #9a7300; }
.alert p { margin: 0; }

/* ---------- Info panels (licence detail) ---------- */
.facts { display: flex; flex-wrap: wrap; gap: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.fact { flex: 1 1 200px; padding: 24px 26px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact__label { font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 6px; }
.fact__value { font-family: var(--font-display); font-size: 1.5rem; color: var(--navy); margin: 0; line-height: 1.2; }
.sticky-card { position: sticky; top: 110px; }
.doc-list { list-style: none; padding: 0; margin: 0; }
.doc-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px dashed var(--line); align-items: flex-start; }
.doc-list li:last-child { border-bottom: 0; }
.doc-list svg { width: 22px; height: 22px; color: var(--lagoon); flex: none; margin-top: 2px; }
.doc-list strong { display: block; color: var(--navy); }
.doc-list li > span > span { display: block; font-size: .9rem; color: var(--ink-2); }
.fee-list { list-style: none; padding: 0; margin: 0 0 20px; }
.fee-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.fee-list li strong { color: var(--navy); white-space: nowrap; }

/* ---------- Prose (legal pages) ---------- */
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: var(--ink-2); }

/* ---------- Reveal on scroll (standard sections, progressive) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-delay-1 { transition-delay: .1s; }
.js .reveal-delay-2 { transition-delay: .2s; }
.js .reveal-delay-3 { transition-delay: .3s; }

/* ==========================================================================
   SHOWPIECE 1 — Woven Mosaic hero
   Content lives in markup (.hero-headline, .hero-lead, .hero-cta, .mosaic-tile).
   Tiles are positioned from CSS custom properties on each tile:
   --x / --y (column / row start) and --w / --h (span) on a 6 x 6 board.
   ========================================================================== */
.hero-mosaic { position: relative; padding: clamp(40px, 6vw, 80px) 0 clamp(110px, 12vw, 160px); overflow: hidden; }
.hero-mosaic::before { content: ""; position: absolute; inset: 0; background-image: var(--weave-dark); z-index: -1; }
.hero-mosaic .container { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(32px, 5vw, 64px); }
.hero__content { flex: 1 1 440px; position: relative; z-index: 2; }
.hero-eyebrow { margin-bottom: 26px; }
.hero-headline { font-size: clamp(2.8rem, 6.4vw, 5.6rem); margin-bottom: 26px; }
.hero-headline .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-headline .word__inner { display: inline-block; }
.js .hero-headline .word__inner { transform: translateY(110%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 70ms + 150ms); }
.hero-mosaic.is-ready .hero-headline .word__inner { transform: none; }
.hero-lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--ink-2); max-width: 54ch; margin-bottom: 34px; }
.js .hero-lead, .js .hero-cta, .js .hero-trust { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .hero-lead { transition-delay: .55s; }
.js .hero-cta { transition-delay: .7s; }
.js .hero-trust { transition-delay: .85s; }
.hero-mosaic.is-ready .hero-lead, .hero-mosaic.is-ready .hero-cta, .hero-mosaic.is-ready .hero-trust { opacity: 1; transform: none; }
.hero-trust { display: flex; align-items: center; gap: 14px; margin-top: 38px; font-size: .9rem; color: var(--ink-2); }
.hero-trust img { width: 46px; height: 46px; object-fit: contain; }
.hero-trust strong { color: var(--navy); display: block; }

.mosaic { flex: 1 1 480px; position: relative; aspect-ratio: 1 / 1; max-width: 640px; --cell: calc(100% / 6); }
.mosaic-tile {
  position: absolute; left: calc(var(--x) * 100% / 6); top: calc(var(--y) * 100% / 6);
  width: calc(var(--w) * 100% / 6 - 10px); height: calc(var(--h) * 100% / 6 - 10px);
  border-radius: 18px; overflow: hidden; margin: 5px;
  will-change: transform;
}
.mosaic-tile img { width: 100%; height: 100%; object-fit: cover; }
.mosaic-tile--lagoon { background: var(--lagoon); }
.mosaic-tile--navy { background: var(--navy); }
.mosaic-tile--gold { background: var(--gold); }
.mosaic-tile--coral { background: var(--coral); }
.mosaic-tile--weave { background: var(--navy) var(--weave); }
.mosaic-tile--outline { border: 2px solid var(--lagoon); background: transparent; }
.mosaic-tile--kenburns img { animation: kenburns 18s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.18) translate(-4%, -3%); } }
.mosaic-tile__label { position: absolute; left: 12px; bottom: 12px; right: 12px; background: rgba(255, 255, 255, .92); color: var(--navy); border-radius: 12px; padding: 10px 12px; font-size: .78rem; font-weight: 700; line-height: 1.3; display: flex; gap: 10px; align-items: center; }
.mosaic-tile__label i { width: 10px; height: 10px; border-radius: 50%; background: var(--green); flex: none; box-shadow: 0 0 0 4px var(--green-soft); }
.mosaic-tile__stat { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 16px; color: var(--navy); }
.mosaic-tile__stat strong { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1; font-weight: 600; }
.mosaic-tile__stat span { font-size: .78rem; font-weight: 700; line-height: 1.3; margin-top: 6px; }
.mosaic-tile--navy .mosaic-tile__stat, .mosaic-tile--lagoon .mosaic-tile__stat { color: var(--white); }

/* entrance: JS adds --from-x/--from-y per tile (alternating like weaving strands) */
.js .hero-mosaic .mosaic-tile { opacity: 0; transform: translate(var(--from-x, 0), var(--from-y, 0)) scale(.9); transition: opacity .9s var(--ease), transform 1.2s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.hero-mosaic.is-ready .mosaic-tile { opacity: 1; transform: translate(var(--px, 0), var(--py, 0)); }
.hero-mosaic.is-settled .mosaic-tile { transition: transform .25s linear, opacity .3s; transition-delay: 0s; }

@media (max-width: 900px) {
  .mosaic { max-width: 560px; margin: 0 auto; }
}

/* ==========================================================================
   SHOWPIECE 2 — Licence Journey (scroll-pinned)
   The script reads however many .journey-stage elements exist.
   ========================================================================== */
.journey { position: relative; background: var(--navy); color: #c3cbf0; }
.journey::before { content: ""; position: absolute; inset: 0; background-image: var(--weave); opacity: .35; pointer-events: none; }
.journey__intro { padding-top: var(--section-y); position: relative; }
.journey__intro h2 { color: var(--white); }
.journey__intro h2 em { color: var(--gold); }
.journey__track { position: relative; }
.journey__sticky { position: relative; padding: 40px 0 var(--section-y); }
.journey__rail { position: relative; height: 4px; background: rgba(255, 255, 255, .12); border-radius: 4px; margin: 0 0 40px; overflow: hidden; }
.journey__progress { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--progress, 0) * 100%); background: linear-gradient(90deg, var(--gold), #ffd966); border-radius: 4px; box-shadow: 0 0 20px rgba(242, 194, 48, .6); }
.journey__stages { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.journey-stage { flex: 1 1 0; min-width: 0; padding: 30px 26px; border-radius: var(--radius-l); border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03); transition: background-color .6s var(--ease), border-color .6s, transform .6s var(--ease), flex-grow .7s var(--ease); position: relative; }
.journey-stage__num { font-family: var(--font-display); font-size: 3.2rem; line-height: 1; color: rgba(255, 255, 255, .18); display: block; margin-bottom: 18px; transition: color .6s; font-weight: 500; }
.journey-stage__title { color: var(--white); font-size: 1.45rem; margin-bottom: 10px; }
.journey-stage__text { color: #b4bde6; font-size: .96rem; }
.journey-stage__details { overflow: hidden; }
.journey-stage__points { list-style: none; padding: 0; margin: 0 0 16px; }
.journey-stage__points li { padding: 8px 0 8px 22px; position: relative; font-size: .92rem; color: #d8defa; border-top: 1px solid rgba(255, 255, 255, .08); }
.journey-stage__points li::before { content: ""; position: absolute; left: 0; top: 16px; width: 8px; height: 8px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); }
.journey-stage__time { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.journey-stage__time svg { width: 16px; height: 16px; }
.journey-stage.is-active { background: var(--white); border-color: var(--white); transform: translateY(-8px); }
.journey-stage.is-active .journey-stage__num { color: var(--gold); }
.journey-stage.is-active .journey-stage__title { color: var(--navy); }
.journey-stage.is-active .journey-stage__text { color: var(--ink-2); }
.journey-stage.is-active .journey-stage__points li { color: var(--ink); border-color: var(--line); }
.journey-stage.is-active .journey-stage__time { color: var(--lagoon); }
.journey-stage.is-done .journey-stage__num { color: var(--gold); }
.journey__footer { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; margin-top: 40px; }
.journey__counter { font-family: var(--font-display); font-size: 1.1rem; color: #d8defa; }
.journey__counter-current { color: var(--gold); font-size: 2rem; }

/* Pinned mode (desktop, set by JS) */
.journey.is-pinned .journey__sticky { position: sticky; top: 84px; min-height: calc(100vh - 84px); display: flex; flex-direction: column; justify-content: center; padding: 40px 0; }
.journey.is-pinned .journey-stage { flex-grow: 1; }
.journey.is-pinned .journey-stage.is-active { flex-grow: 1.9; }
.journey.is-pinned .journey-stage:not(.is-active) .journey-stage__details { opacity: .35; }

@media (max-width: 960px) {
  .journey__stages { flex-direction: column; }
  .journey__rail { display: none; }
  .journey-stage { border-left: 4px solid rgba(255, 255, 255, .12); }
  .journey-stage.is-active { transform: none; border-left-color: var(--gold); }
}

/* ==========================================================================
   SHOWPIECE 3 — Licence Finder
   Questions/answers/results all in markup; data-tags on answers and
   data-when on results ("food+premises|drinks") drive matching.
   ========================================================================== */
.finder { display: flex; flex-wrap: wrap; gap: 0; background: var(--white); border-radius: calc(var(--radius-l) + 8px); box-shadow: var(--shadow-l); overflow: hidden; border: 1px solid var(--line); }
.finder__aside { flex: 0 1 340px; background: var(--navy); background-image: var(--weave); color: #c3cbf0; padding: 40px 34px; display: flex; flex-direction: column; gap: 26px; }
.finder__aside h2 { color: var(--white); font-size: clamp(1.7rem, 3vw, 2.3rem); }
.finder__aside h2 em { color: var(--gold); }
.finder__steps-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; counter-reset: fstep; }
.finder__steps-list li { counter-increment: fstep; display: flex; gap: 14px; align-items: center; padding: 10px 0; color: #8f9bd0; font-weight: 700; transition: color .3s; }
.finder__steps-list li::before { content: counter(fstep); width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .25); display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; flex: none; transition: all .3s; }
.finder__steps-list li.is-current { color: var(--white); }
.finder__steps-list li.is-current::before { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.finder__steps-list li.is-done { color: #d8defa; }
.finder__steps-list li.is-done::before { background: rgba(242, 194, 48, .2); border-color: var(--gold); color: var(--gold); }
.finder__main { flex: 1 1 480px; padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; min-height: 560px; }
.finder__progress { height: 6px; background: var(--sand-2); border-radius: 6px; overflow: hidden; margin-bottom: 36px; }
.finder__progress-bar { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, var(--lagoon), var(--lagoon-2)); border-radius: 6px; transition: width .6s var(--ease); }
.finder__form { display: flex; flex-direction: column; flex: 1; }
.finder-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.js .finder-step { display: none; }
.js .finder-step.is-current { display: block; animation: finderIn .6s var(--ease); }
@keyframes finderIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
.finder-step__question { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--navy); line-height: 1.15; padding: 0; margin-bottom: 8px; letter-spacing: -.02em; }
.finder-step__hint { color: var(--ink-2); margin-bottom: 28px; }
.finder-options { display: flex; flex-wrap: wrap; gap: 14px; }
.finder-option { flex: 1 1 200px; position: relative; cursor: pointer; }
.finder-option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.finder-option__card { display: flex; gap: 14px; align-items: flex-start; height: 100%; border: 1.5px solid var(--line-2); border-radius: var(--radius); padding: 18px; transition: border-color .2s, background-color .2s, transform .2s var(--ease), box-shadow .2s; }
.finder-option:hover .finder-option__card { border-color: var(--lagoon); transform: translateY(-2px); }
.finder-option input:focus-visible + .finder-option__card { outline: 3px solid var(--gold); outline-offset: 2px; }
.finder-option input:checked + .finder-option__card { border-color: var(--lagoon); background: var(--sky); box-shadow: inset 0 0 0 1px var(--lagoon); }
.finder-option__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--sand-2); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; flex: none; transition: all .2s; }
.finder-option input:checked + .finder-option__card .finder-option__icon { background: var(--lagoon); color: var(--white); }
.finder-option__icon svg { width: 22px; height: 22px; }
.finder-option__label { display: block; font-weight: 800; color: var(--navy); line-height: 1.3; }
.finder-option__desc { display: block; font-size: .86rem; color: var(--ink-2); margin-top: 3px; line-height: 1.4; }
.finder__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 32px; }
.finder-results { display: none; }
.finder-results.is-visible { display: block; animation: finderIn .6s var(--ease); }
.finder-results__title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.finder-results__list { display: flex; flex-direction: column; gap: 14px; margin: 24px 0 28px; }
.finder-result { display: flex; gap: 18px; align-items: flex-start; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--sand); }
.finder-result[hidden] { display: none; }
.finder-result .icon-box__icon { margin: 0; flex: none; width: 48px; height: 48px; }
.finder-result__title { font-size: 1.15rem; margin: 0 0 4px; }
.finder-result__text { margin: 0 0 8px; font-size: .93rem; color: var(--ink-2); }
.finder-result__links { display: flex; gap: 18px; flex-wrap: wrap; font-size: .9rem; }

/* ==========================================================================
   Application wizard / tracking / dashboards (functional prototype)
   ========================================================================== */
.wizard { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.wizard__nav { flex: 0 1 280px; position: sticky; top: 110px; }
.wizard__main { flex: 1 1 560px; min-width: 0; }
.steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; counter-reset: wstep; }
.steps li { counter-increment: wstep; display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: var(--radius); font-weight: 700; color: var(--ink-3); transition: background-color .3s, color .3s; }
.steps li::before { content: counter(wstep); width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; flex: none; background: var(--white); transition: all .3s; }
.steps li.is-current { background: var(--white); color: var(--navy); box-shadow: var(--shadow-s); }
.steps li.is-current::before { background: var(--lagoon); color: var(--white); border-color: var(--lagoon); }
.steps li.is-done { color: var(--ink-2); }
.steps li.is-done::before { content: "\2713"; background: var(--green-soft); color: var(--green); border-color: var(--green); }
.wizard-step { display: none; }
.wizard-step.is-current { display: block; animation: finderIn .5s var(--ease); }
.wizard-step__head { margin-bottom: 26px; }
.wizard-step__head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 6px; }
.wizard__actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.licence-choice { display: flex; flex-wrap: wrap; gap: 12px; }
.licence-choice .finder-option { flex: 1 1 230px; }

.dropzone { border: 2px dashed var(--line-2); border-radius: var(--radius-l); padding: 40px 24px; text-align: center; background: var(--sand); transition: border-color .2s, background-color .2s; cursor: pointer; position: relative; }
.dropzone.is-over { border-color: var(--lagoon); background: var(--sky); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .icon-box__icon { margin: 0 auto 14px; }
.dropzone strong { color: var(--navy); }
.file-list { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 10px; }
.file-item { display: flex; align-items: center; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.file-item__icon { width: 40px; height: 40px; border-radius: 10px; background: var(--sky); color: var(--lagoon); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.file-item__icon svg { width: 20px; height: 20px; }
.file-item__meta { flex: 1; min-width: 0; }
.file-item__name { font-weight: 700; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.file-item__size { font-size: .82rem; color: var(--ink-3); }
.file-item__bar { height: 4px; background: var(--sand-2); border-radius: 4px; overflow: hidden; margin-top: 6px; }
.file-item__bar i { display: block; height: 100%; width: 0; background: var(--green); transition: width 1s var(--ease); }
.file-item__remove { border: 0; background: transparent; cursor: pointer; color: var(--ink-3); padding: 6px; border-radius: 8px; }
.file-item__remove:hover { color: var(--coral); background: var(--coral-soft); }
.file-item__remove svg { width: 18px; height: 18px; }
.doc-checklist { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 8px; }
.doc-checklist li { display: flex; gap: 10px; align-items: center; font-size: .92rem; color: var(--ink-2); }
.doc-checklist li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; }

.review-block { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 14px; background: var(--sand); }
.review-block h3 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 800; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.review-block h3 button { font-size: .85rem; }
.review-block dl { display: flex; flex-wrap: wrap; margin: 0; }
.review-block dl > div { flex: 1 1 220px; padding: 8px 0; }
.review-block dt { font-size: .78rem; color: var(--ink-3); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.review-block dd { margin: 2px 0 0; font-weight: 600; color: var(--navy); word-break: break-word; }

.confirmation { text-align: center; padding: clamp(20px, 4vw, 40px) 0; }
.confirmation__seal { width: 110px; height: 110px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; animation: pop .7s var(--ease); }
.confirmation__seal svg { width: 52px; height: 52px; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.ref-code { display: inline-flex; align-items: center; gap: 12px; font-family: "Consolas", "SFMono-Regular", monospace; font-size: clamp(1.2rem, 3vw, 1.7rem); font-weight: 700; color: var(--navy); background: var(--gold-soft); border: 2px dashed var(--gold); border-radius: var(--radius); padding: 14px 22px; margin: 10px 0 24px; letter-spacing: .04em; }

/* Tracking */
.track-search { display: flex; gap: 12px; flex-wrap: wrap; }
.track-search .field { flex: 1 1 320px; }
.track-search .btn { align-self: flex-end; height: 52px; }
.demo-refs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; font-size: .88rem; color: var(--ink-2); }
.demo-refs button { border: 1px dashed var(--line-2); background: var(--white); border-radius: 8px; padding: 6px 10px; font-family: "Consolas", monospace; font-size: .85rem; cursor: pointer; color: var(--navy); }
.demo-refs button:hover { border-color: var(--lagoon); color: var(--lagoon); }
.track-result { display: none; margin-top: 36px; }
.track-result.is-visible { display: block; animation: finderIn .5s var(--ease); }
.track-summary { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.track-summary h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 6px 0 4px; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline__item { display: flex; gap: 20px; padding-bottom: 28px; position: relative; }
.timeline__item::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--line); }
.timeline__item:last-child::before { display: none; }
.timeline__dot { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--white); border: 2px solid var(--line-2); color: var(--ink-3); flex: none; position: relative; z-index: 1; }
.timeline__dot svg { width: 18px; height: 18px; }
.timeline__item.is-done .timeline__dot { background: var(--green); border-color: var(--green); color: var(--white); }
.timeline__item.is-done::before { background: var(--green); }
.timeline__item.is-current .timeline__dot { background: var(--gold); border-color: var(--gold); color: var(--navy); box-shadow: 0 0 0 6px var(--gold-soft); }
.timeline__item.is-flag .timeline__dot { background: var(--coral); border-color: var(--coral); color: var(--white); box-shadow: 0 0 0 6px var(--coral-soft); }
.timeline__body h3 { font-size: 1.15rem; margin: 8px 0 4px; font-family: var(--font-body); font-weight: 800; }
.timeline__body p { margin: 0; color: var(--ink-2); font-size: .94rem; }
.timeline__date { font-size: .82rem; color: var(--ink-3); font-weight: 700; }

/* App shell (account / staff) */
.app { display: flex; min-height: calc(100vh - 84px); background: var(--sand); }
.app__sidebar { flex: 0 0 260px; background: var(--navy); color: #aab4e0; padding: 28px 18px; display: flex; flex-direction: column; gap: 6px; }
.app__sidebar-title { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #6f7cb8; margin: 18px 12px 8px; }
.app__navlink { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; color: #d8defa; text-decoration: none; font-weight: 600; border: 0; background: transparent; width: 100%; text-align: left; cursor: pointer; font-size: .95rem; }
.app__navlink svg { width: 20px; height: 20px; flex: none; }
.app__navlink:hover { background: rgba(255, 255, 255, .06); color: var(--white); }
.app__navlink[aria-selected="true"] { background: var(--lagoon); color: var(--white); }
.app__navlink .badge { margin-left: auto; }
.app__main { flex: 1; min-width: 0; padding: clamp(20px, 3vw, 40px); }
.app__header { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.app__header h1, .app__header .app__title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0; font-family: var(--font-display); font-weight: 500; }
.app-panel[hidden] { display: none; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--coral); color: var(--white); font-size: .75rem; font-weight: 800; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 24px; }
.card + .card { margin-top: 20px; }
.card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card__head h2 { font-size: 1.3rem; margin: 0; font-family: var(--font-body); font-weight: 800; letter-spacing: 0; }
.kpis { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.kpi { flex: 1 1 150px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 20px 22px; }
.kpi__label { font-size: .8rem; font-weight: 700; color: var(--ink-3); margin: 0 0 8px; }
.kpi__value { font-family: var(--font-display); font-size: 2.2rem; color: var(--navy); line-height: 1; margin: 0; }
.kpi__trend { font-size: .82rem; font-weight: 700; color: var(--green); margin: 8px 0 0; }
.kpi__trend--down { color: var(--coral); }
.kpi--accent { background: var(--navy); border-color: var(--navy); }
.kpi--accent .kpi__value { color: var(--gold); }
.kpi--accent .kpi__label { color: #aab4e0; }

.list-rows { display: flex; flex-direction: column; }
.list-row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-row--head { font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding-top: 4px; padding-bottom: 10px; }
.list-row--click { cursor: pointer; border-radius: 10px; transition: background-color .2s; }
.list-row--click:hover, .list-row--click.is-selected { background: var(--sky); }
.list-row[hidden] { display: none; }
.lr-ref { flex: 0 0 150px; font-family: "Consolas", monospace; font-weight: 700; color: var(--navy); font-size: .9rem; }
.lr-main { flex: 1 1 180px; min-width: 0; }
.lr-main strong { display: block; color: var(--navy); }
.lr-main span { font-size: .86rem; color: var(--ink-3); }
.lr-cell { flex: 0 0 100px; font-size: .9rem; color: var(--ink-2); }
.lr-status { flex: 0 0 140px; }
.lr-action { flex: 0 0 auto; margin-left: auto; }
@media (max-width: 1500px) { .case-layout .lr-cell { display: none; } }
@media (max-width: 760px) { .list-row--head { display: none; } .lr-ref, .lr-cell, .lr-status { flex-basis: auto; } }

.notif { display: flex; gap: 14px; padding: 16px 4px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.notif:last-child { border-bottom: 0; }
.notif__icon { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--sky); color: var(--lagoon); }
.notif__icon svg { width: 20px; height: 20px; }
.notif__icon--gold { background: var(--gold-soft); color: #9a7300; }
.notif__icon--green { background: var(--green-soft); color: var(--green); }
.notif__icon--coral { background: var(--coral-soft); color: var(--coral); }
.notif__body { flex: 1; min-width: 0; }
.notif__body p { margin: 0; font-size: .94rem; color: var(--ink-2); }
.notif__body strong { color: var(--navy); }
.notif__time { font-size: .8rem; color: var(--ink-3); }
.notif.is-unread { background: linear-gradient(90deg, rgba(39, 71, 214, .06), transparent); }
.notif.is-unread .notif__body strong::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--lagoon); margin-left: 8px; vertical-align: middle; }

.progress-mini { height: 8px; background: var(--sand-2); border-radius: 8px; overflow: hidden; }
.progress-mini i { display: block; height: 100%; width: var(--v, 0%); background: var(--lagoon); border-radius: 8px; }

/* Staff case drawer */
.case-layout { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.case-layout > .card:first-child { flex: 1 1 520px; min-width: 0; margin: 0; }
.case-panel { flex: 0 1 400px; position: sticky; top: 100px; margin: 0 !important; }
.case-panel__empty { text-align: center; color: var(--ink-3); padding: 40px 10px; }
.case-panel__body[hidden], .case-panel__empty[hidden] { display: none; }
.case-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 10px 0 18px; font-size: .88rem; color: var(--ink-2); }
.case-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.case-meta svg { width: 16px; height: 16px; color: var(--lagoon); }
.case-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.case-actions .btn { flex: 1 1 140px; }
.case-log { list-style: none; padding: 0; margin: 0; font-size: .88rem; max-height: 260px; overflow: auto; }
.case-log li { padding: 10px 0; border-bottom: 1px dashed var(--line); color: var(--ink-2); }
.case-log li strong { color: var(--navy); }
.agency-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }

/* Bar chart built from flex (data in style --v) */
.bars { display: flex; align-items: flex-end; gap: 14px; height: 220px; padding-top: 10px; border-bottom: 1px solid var(--line); }
.bar { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 8px; }
.bar__fill { width: 100%; max-width: 46px; height: var(--v); background: linear-gradient(180deg, var(--lagoon-2), var(--lagoon)); border-radius: 8px 8px 0 0; position: relative; transform-origin: bottom; animation: grow 1s var(--ease) both; }
.bar--gold .bar__fill { background: linear-gradient(180deg, #ffd966, var(--gold)); }
.bar__value { font-size: .8rem; font-weight: 800; color: var(--navy); }
@keyframes grow { from { transform: scaleY(0); } }
.bar-labels { display: flex; gap: 14px; padding-top: 8px; }
.bar-labels span { flex: 1 1 0; text-align: center; font-size: .78rem; color: var(--ink-3); font-weight: 700; }
.hbars { display: flex; flex-direction: column; gap: 14px; }
.hbar__row { display: flex; justify-content: space-between; font-size: .9rem; margin-bottom: 6px; }
.hbar__row strong { color: var(--navy); }
.legend { display: flex; gap: 18px; font-size: .84rem; color: var(--ink-2); flex-wrap: wrap; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--lagoon); margin-right: 6px; vertical-align: -1px; }
.legend i.gold { background: var(--gold); }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tab { border: 0; background: transparent; padding: 12px 16px; font-weight: 700; color: var(--ink-3); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tab[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--gold); }

.demo-banner { background: var(--gold-soft); color: #6b5000; font-size: .86rem; text-align: center; padding: 8px 16px; font-weight: 600; }

@media (max-width: 900px) {
  .app { flex-direction: column; }
  .app__sidebar { flex: none; flex-direction: row; overflow-x: auto; padding: 10px; gap: 6px; }
  .app__sidebar-title { display: none; }
  .app__navlink { width: auto; white-space: nowrap; flex: none; }
  .wizard__nav { position: static; flex-basis: 100%; }
  .steps { flex-direction: row; overflow-x: auto; }
  .steps li { flex: none; font-size: .85rem; }
  .case-panel { position: static; flex-basis: 100%; }
  .sticky-card { position: static; }
}

/* Auth */
.auth { display: flex; min-height: calc(100vh - 84px); }
.auth__media { flex: 1 1 50%; position: relative; overflow: hidden; }
.auth__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 27, 77, .1), rgba(11, 27, 77, .85)); }
.auth__quote { position: absolute; left: 40px; right: 40px; bottom: 40px; z-index: 1; color: var(--white); }
.auth__quote h2 { color: var(--white); font-size: clamp(1.8rem, 3vw, 2.6rem); }
.auth__quote h2 em { color: var(--gold); }
.auth__form { flex: 1 1 50%; display: flex; align-items: center; justify-content: center; padding: 48px var(--gutter); background: var(--sand); }
.auth__card { width: 100%; max-width: 440px; }
@media (max-width: 860px) { .auth__media { display: none; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .hero-lead, .js .hero-cta, .js .hero-trust, .js .hero-mosaic .mosaic-tile { opacity: 1; transform: none; }
  .js .hero-headline .word__inner { transform: none; }
}
