/* ═══════════ Identity layer: calm, safe base + one warm action colour ═══════════ */
body { background: var(--cream); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--gold-soft); }
.site-header { background: rgba(11,42,60,.97); backdrop-filter: blur(8px); border-bottom: 0; }
.brand { color: #fff; font-family: var(--serif); font-weight: 800; letter-spacing: -.02em; }
.brand-mark { background: var(--gold); border-radius: 10px 10px 10px 3px; }

/* hero: light and human, with the interactive sentence as the one bold element */
.hero2 { position: relative; overflow: hidden; background: linear-gradient(180deg, #E3F4F1 0%, var(--cream) 100%); padding: 56px 0 72px; }
.hero2-photo { position: absolute; inset: 0 0 0 52%; background-size: cover; background-position: 18% 35%; border-bottom-left-radius: 220px; }
.hero2-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #E8F6F3 0%, rgba(232,246,243,.35) 30%, rgba(11,42,60,.05) 100%); border-bottom-left-radius: inherit; }
.hero2-grid { position: relative; display: grid; gap: 30px; }
.hero2-copy { max-width: 600px; }
.hero-kicker { display: inline-block; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .88rem; font-weight: 600; color: var(--lagoon); margin-bottom: 18px; }
.hero2 h1 { font-size: clamp(2.2rem, 4.6vw, 3.7rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; }
.hero2 .lead { font-size: 1.18rem; color: #33505e; max-width: 540px; }

.madlib { background: var(--navy); color: #fff; border-radius: 28px 28px 28px 8px; padding: 30px 32px; max-width: 760px; box-shadow: 0 30px 70px rgba(11,42,60,.28); }
/* the "I need help to [ … ] in [ … ]" picker: each blank is a real button that opens a list */
.ml-line { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.ml-words { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.ml-pick { position: relative; flex: 1 1 320px; min-width: 0; }
.ml-pick-place { flex: 0 1 280px; }
.ml-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; cursor: pointer;
  background: rgba(255,255,255,.08); border: 2px dashed rgba(255,178,63,.75); border-radius: 14px; padding: 12px 16px;
  font: 700 clamp(1.05rem, 2vw, 1.35rem)/1.25 var(--serif); color: var(--gold); letter-spacing: -.01em; transition: background .15s, border-color .15s; }
.ml-btn:hover, .ml-btn[aria-expanded=true] { background: rgba(255,178,63,.14); border-style: solid; }
.ml-val { min-width: 0; overflow-wrap: anywhere; }
.ml-val.is-empty { color: #ffe0a8; font-weight: 600; }
.ml-caret { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--navy); display: grid; place-items: center; font-size: .9rem; transition: transform .2s; }
.ml-btn[aria-expanded=true] .ml-caret { transform: rotate(180deg); }
.ml-menu { position: absolute; z-index: 40; top: calc(100% + 8px); left: 0; right: 0; min-width: 260px; background: #fff; color: var(--ink); border-radius: 16px; box-shadow: 0 24px 60px rgba(11,42,60,.35); padding: 10px; animation: fadein .15s; }
.ml-search { width: 100%; margin-bottom: 8px; border-radius: 10px; }
.ml-menu ul { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; overscroll-behavior: contain; }
.ml-menu li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-size: .98rem; }
.ml-menu li:hover, .ml-menu li:focus, .ml-menu li.active { background: var(--gold-soft); outline: none; }
.ml-menu li[aria-selected=true] { background: #E3F4F1; font-weight: 700; }
.ml-menu li small { color: var(--muted); font-weight: 600; white-space: nowrap; }
.ml-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.ml-pick-place .ml-menu li { grid-template-columns: 1fr; }
.ml-hint { color: #a9c1ca; font-size: .9rem; margin: 2px 0 16px; }
.ml-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.ml-quick button { background: var(--cream); border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 12px; font: 600 .88rem var(--sans); color: var(--navy); cursor: pointer; }
.ml-quick button:hover { border-color: var(--gold); background: var(--gold-soft); }
.ml-result.is-empty { grid-template-columns: 1fr; }
.ml-result { display: grid; grid-template-columns: 1fr auto; gap: 20px; background: #fff; color: var(--ink); border-radius: 18px; padding: 20px 22px; border-left: 8px solid var(--c); transition: border-color .3s; }
.ml-doc { display: grid; gap: 4px; }
.ml-label { font-size: .85rem; color: var(--muted); font-weight: 600; }
.ml-doc b { font-family: var(--serif); font-size: 1.35rem; color: var(--navy); letter-spacing: -.01em; }
.ml-doc span[data-ml=summary] { color: var(--muted); font-size: .95rem; }
.ml-note { font-size: .85rem; color: var(--lagoon-deep); background: var(--gold-soft); border-radius: 10px; padding: 6px 10px; margin-top: 6px; }
.ml-price { text-align: right; display: flex; flex-direction: column; justify-content: center; min-width: 130px; }
.ml-price small { color: var(--muted); font-weight: 600; }
.ml-price b { font-family: var(--serif); font-size: 2.8rem; line-height: 1; color: var(--navy); letter-spacing: -.03em; }
.ml-price span { color: var(--lagoon); font-weight: 600; font-size: .9rem; margin-top: 4px; }
.ml-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 20px; }
.ml-link { color: #cde3ea; font-weight: 600; }
.ml-flash { animation: mlflash .45s ease-out; }
@keyframes mlflash { from { transform: scale(.97); opacity: .4; } }

.safe-band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 30px 0; }
.safe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.safe-grid > div { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; }
.safe-ic { grid-row: span 2; width: 48px; height: 48px; border-radius: 16px 16px 16px 4px; background: var(--gold-soft); display: grid; place-items: center; font-size: 1.4rem; }
.safe-grid h3 { font-family: var(--sans); font-size: 1.02rem; margin: 2px 0; letter-spacing: 0; }
.safe-grid p { margin: 0; color: var(--muted); font-size: .93rem; }

/* document shelf */
.shelf-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.shelf-head h2 { margin: 0 0 4px; }
.shelf-head p { margin: 0; }
.shelf-search { position: relative; width: min(380px, 100%); }
.shelf-search input { border-radius: 999px; padding: 12px 18px; border: 2px solid var(--line); }
.shelf-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: thin; }
.shelf-tab { flex: none; display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 9px 16px; font: 600 .92rem var(--sans); color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.shelf-tab span { background: var(--cream); border-radius: 999px; padding: 0 8px; font-size: .78rem; color: var(--muted); }
.shelf-tab:hover { border-color: var(--c); }
.shelf-tab.on { background: var(--c); border-color: var(--c); color: #fff; }
.shelf-tab.on span { background: rgba(255,255,255,.25); color: #fff; }
.shelf-tab[data-tab=popular].on, .shelf-tab[data-tab=popular].on span { color: var(--navy); }
.shelf-grid, .doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); gap: 22px; margin: 10px 0 24px; }
.shelf-grid .doc.hide { display: none; }
.shelf-more { text-align: center; }

/* a service rendered as the document itself */
.doc { position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: #fff; padding: 22px 22px 18px 26px; min-height: 290px;
  border-radius: 4px; box-shadow: 0 1px 0 var(--line), 0 10px 26px rgba(11,42,60,.08);
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%);
  transition: transform .22s ease, box-shadow .22s ease; }
.doc::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--c); }
.doc::after { content: ''; position: absolute; top: 0; right: 0; width: 34px; height: 34px; background: linear-gradient(225deg, transparent 50%, color-mix(in srgb, var(--c) 22%, #fff) 50%); }
.doc:hover, .doc:focus-visible { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 1px 0 var(--line), 0 24px 44px rgba(11,42,60,.16); }
.doc-area { font-size: .8rem; font-weight: 700; color: var(--c); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-right: 28px; }
.doc-hot { background: var(--blush); color: #B4431A; border-radius: 999px; padding: 1px 8px; font-size: .72rem; }
.doc h3 { font-family: var(--serif); font-size: 1.22rem; line-height: 1.15; margin: 10px 0 8px; letter-spacing: -.02em; }
.doc-open { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: .82rem; color: #6d8490; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 8px; }
.doc p { flex: 1; font-size: .88rem; color: var(--muted); margin: 0 0 12px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.doc-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.doc-time { font-size: .82rem; font-weight: 600; color: var(--lagoon); }
.doc-seal { width: 76px; height: 76px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-content: center; text-align: center; font-family: var(--serif); font-weight: 800; font-size: 1.15rem; line-height: 1;
  transform: rotate(-10deg); box-shadow: inset 0 0 0 3px rgba(255,255,255,.35), 0 6px 14px color-mix(in srgb, var(--c) 40%, transparent); transition: transform .25s ease; flex: none; }
.doc-seal small { font-family: var(--sans); font-weight: 600; font-size: .66rem; opacity: .9; margin-bottom: 2px; }
.doc:hover .doc-seal { transform: rotate(0) scale(1.08); }
.doc-cta { max-height: 0; overflow: hidden; opacity: 0; font-weight: 700; color: var(--navy); background: var(--gold); border-radius: 10px; text-align: center; transition: max-height .22s ease, opacity .22s ease, margin .22s ease, padding .22s ease; }
.doc:hover .doc-cta, .doc:focus-visible .doc-cta { max-height: 48px; opacity: 1; margin-top: 12px; padding: 9px; }
@media (hover: none) { .doc-cta { max-height: 48px; opacity: 1; margin-top: 12px; padding: 9px; } }

/* photo + process */
.photo-split { display: grid; grid-template-columns: 1fr 1fr; background: var(--navy); color: #d9e7ec; }
.ps-photo { background-size: cover; background-position: center; min-height: 460px; }
.ps-body { padding: 60px clamp(24px, 5vw, 70px); }
.ps-body h2 { color: #fff; }
.flow { list-style: none; counter-reset: f; padding: 0; margin: 24px 0 28px; display: grid; gap: 18px; }
.flow li { counter-increment: f; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; }
.flow li::before { content: counter(f); grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--gold); color: var(--gold); display: grid; place-items: center; font-family: var(--serif); font-weight: 800; }
.flow b { color: #fff; font-size: 1.05rem; }
.flow span { color: #a9c1ca; font-size: .95rem; }

/* testimonials */
.testimonials { position: relative; background-size: cover; background-position: center; padding: 80px 0; isolation: isolate; }
.testimonials::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(11,42,60,.94), rgba(14,124,123,.86)); z-index: -1; }
.testimonials h2 { color: #fff; }
.t-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 1fr); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 2px 16px; scrollbar-width: none; scroll-behavior: smooth; }
.t-track::-webkit-scrollbar { display: none; }
.t-card { scroll-snap-align: start; background: #fff; border-radius: 22px 22px 22px 6px; padding: 24px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.t-stars { color: var(--gold); font-size: 1.2rem; letter-spacing: 2px; }
.t-outcome { margin: 0; font-weight: 700; color: var(--lagoon-deep); background: var(--gold-soft); border-radius: 8px; padding: 4px 10px; align-self: flex-start; font-size: .88rem; }
.t-card blockquote { margin: 0; font-size: 1.02rem; line-height: 1.6; flex: 1; }
.t-card figcaption { display: flex; gap: 12px; align-items: center; font-size: .88rem; color: var(--muted); }
.t-card figcaption b { display: block; color: var(--ink); }
.t-card figcaption em { font-style: normal; display: block; color: var(--lagoon); font-weight: 600; }
.t-av { width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-weight: 800; flex: none; }
.t-sample { font-size: .72rem; color: #a15c00; background: var(--amber-soft); border-radius: 6px; padding: 3px 8px; align-self: flex-start; }
.t-nav { display: flex; gap: 8px; justify-content: flex-end; }
.t-nav button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); background: transparent; color: #fff; font-size: 1.4rem; cursor: pointer; }
.t-nav button:hover { background: #fff; color: var(--navy); }
.t-disclaimer { color: rgba(255,255,255,.65); font-size: .8rem; margin-top: 10px; }

/* packages (light) */
.pkg-grid .pkg { background: #fff; border: 2px solid var(--line); border-radius: 22px 22px 22px 6px; }
.pkg-grid .pkg h3 { color: var(--navy); }
.pkg-grid .pkg-tag { color: var(--lagoon); }
.pkg-grid .pkg-standard { border-color: var(--gold); box-shadow: 0 16px 40px rgba(255,178,63,.25); }

.cta-photo { position: relative; background-size: cover; background-position: center; padding: 70px 0; color: #fff; isolation: isolate; }
.cta-photo::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,42,60,.95) 30%, rgba(11,42,60,.6)); z-index: -1; }
.cta-photo h2 { color: #fff; }
.cta-photo p { color: #cfe0e6; margin: 0; }

.eyebrow { color: var(--lagoon); font-size: .9rem; }
.page-head { background: linear-gradient(180deg, #E3F4F1, var(--cream)); }
.notice { background: #E3F4F1; border-color: #bfe3dc; color: var(--lagoon-deep); }
.cw-launcher { border-radius: 999px 999px 999px 8px; }
.cw-head { background: linear-gradient(120deg, var(--navy), var(--lagoon-deep)); }
.summary-card { background: linear-gradient(160deg, var(--navy), #0f3a50); }
.tier { border-radius: 22px 22px 22px 6px; }

/* bottom-left activity pop-ups (real, anonymised orders only) */
.sp-pop { position: fixed; left: 20px; bottom: 20px; z-index: 880; display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 18px 18px 18px 4px; padding: 12px 36px 12px 12px; max-width: 340px;
  box-shadow: 0 16px 40px rgba(11,42,60,.22); border-left: 5px solid var(--lagoon); transform: translateY(160%); transition: transform .45s cubic-bezier(.2,.9,.3,1.2); font-size: .88rem; }
.sp-pop.show { transform: none; }
.sp-pop .sp-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--gold-soft); display: grid; place-items: center; font-size: 1.3rem; flex: none; }
.sp-pop b { display: block; color: var(--ink); }
.sp-pop small { color: var(--muted); }
.sp-pop button { position: absolute; top: 6px; right: 8px; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1rem; }

@media (max-width: 980px) {
  .hero2-photo { inset: 0; border-radius: 0; opacity: .18; }
  .safe-grid, .photo-split { grid-template-columns: 1fr; }
  .ps-photo { min-height: 240px; }
  .ml-result { grid-template-columns: 1fr; }
  .ml-price { text-align: left; }
}
@media (max-width: 600px) {
  .madlib { padding: 22px 18px; border-radius: 20px 20px 20px 6px; }
  .sp-pop { left: 10px; right: 90px; bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .doc:hover { transform: none; }
}

/* hidden must always win over component display rules */
[hidden] { display: none !important; }
.sp-pop { visibility: hidden; transform: translateY(calc(100% + 140px)); transition: transform .45s cubic-bezier(.2,.9,.3,1.2), visibility 0s linear .45s; }
.sp-pop.show { visibility: visible; transform: none; transition: transform .45s cubic-bezier(.2,.9,.3,1.2), visibility 0s; }
.hero2 { padding-top: 40px; }
.hero2 h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); }
.msg .who { display: block; }

/* picker: areas of law */
.ml-cats { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 2px 10px; margin-bottom: 4px; }
.ml-cat { flex: none; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font: 600 .84rem var(--sans); color: var(--ink); cursor: pointer; white-space: nowrap; }
.ml-cat:hover { border-color: var(--c, var(--navy)); }
.ml-cat.on { background: var(--c, var(--navy)); border-color: var(--c, var(--navy)); color: #fff; }
.ml-menu li.ml-group { display: block; position: sticky; top: 0; z-index: 1; background: #fff; cursor: default; padding: 12px 12px 6px; font: 700 .82rem var(--sans); color: var(--c); border-bottom: 2px solid color-mix(in srgb, var(--c) 25%, #fff); border-radius: 0; }
.ml-menu li.ml-group:hover { background: #fff; }
.ml-menu li.ml-ask { color: var(--lagoon-deep); font-weight: 600; font-size: .92rem; }
.ml-menu li.ml-ask small { color: var(--lagoon); }
.ml-quick button { display: inline-flex; align-items: center; gap: 6px; }
.ml-quick button:hover { border-color: var(--c, var(--gold)); background: color-mix(in srgb, var(--c, var(--gold)) 10%, #fff); }
.ml-menu ul { max-height: 360px; }

/* service page: photo + CTA column */
.svc-side { display: grid; gap: 0; }
.svc-photo { height: 190px; border-radius: 22px 22px 0 0; background-size: cover; background-position: center; }
.svc-side .svc-cta-card { border-top-left-radius: 0; border-top-right-radius: 0; border-top: 0; }

/* sample document preview */
.sample-grid { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 56px; align-items: start; }
.sample-fig { margin: 0; position: sticky; top: 90px; }
.sample-paper { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.sample-paper::before, .sample-paper::after { content: ''; position: absolute; inset: 0; background: #fff; border-radius: 4px; box-shadow: 0 6px 18px rgba(11,42,60,.12); }
.sample-paper::before { transform: rotate(-4deg) translate(-8px, 8px); }
.sample-paper::after { transform: rotate(2.5deg) translate(6px, 4px); }
.sample-paper img { position: relative; z-index: 1; display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 22px 50px rgba(11,42,60,.22); transition: transform .25s ease; }
.sample-paper:hover img { transform: translateY(-4px) rotate(-.5deg); }
.sample-zoom { position: absolute; z-index: 2; right: 14px; bottom: 14px; background: var(--navy); color: #fff; font: 600 .82rem var(--sans); padding: 7px 12px; border-radius: 999px; }
.sample-fig figcaption { margin-top: 18px; font-size: .86rem; color: var(--muted); text-align: center; }
.receive-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 22px; }
.receive-meta span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .86rem; font-weight: 600; color: var(--navy); }
.zoom-modal .modal { width: min(820px, 96vw); padding: 14px; }
.zoom-modal img { width: 100%; height: auto; display: block; border-radius: 6px; }

/* human trust block */
.photo-split.human { background: #0f3a50; }
.ps-lead { color: #cfe0e6; font-size: 1.05rem; max-width: 560px; }
.trust-list { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.trust-list li { border-left: 3px solid var(--gold); padding-left: 12px; }
.trust-list b { display: block; color: #fff; }
.trust-list span { color: #a9c1ca; font-size: .92rem; }

/* category photo banners on listing pages */
.group-banner { position: relative; isolation: isolate; border-radius: 22px 22px 22px 6px; overflow: hidden; background-size: cover; background-position: center; padding: 34px 30px; margin-bottom: 18px; min-height: 150px; display: flex; flex-direction: column; justify-content: flex-end; }
.group-banner::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11,42,60,.92) 0%, rgba(11,42,60,.7) 45%, color-mix(in srgb, var(--c) 35%, transparent) 100%); }
.group-banner h2 { color: #fff; margin: 0 0 4px; }
.group-banner p { color: #d9e7ec; margin: 0; max-width: 560px; }

@media (max-width: 980px) {
  .sample-grid { grid-template-columns: 1fr; gap: 30px; }
  .sample-fig { position: static; max-width: 380px; margin: 0 auto; }
  .trust-list { grid-template-columns: 1fr; }
}
.sp-pop .sp-link { color: inherit; text-decoration: none; }
.sp-pop .sp-link:hover b { text-decoration: underline; }
