/* Layout idea: a blue azulejo-tile header with moving pattern and floating cards, then calm white utility pages with one saffron highlight per screen. */
:root {
  --bg: #f4f6f3;
  --surface: #ffffff;
  --ink: #15202b;
  --muted: #54626f;
  --line: #dce2e6;
  --brand: #0b4f6c;
  --brand-deep: #083a50;
  --brand-ink: #ffffff;
  --accent: #e7a21a;
  --accent-soft: #fdf0d0;
  --ok: #1d7a4b;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f161d; --surface: #17212a; --ink: #e8edf1; --muted: #9aa8b4; --line: #2a3845;
    --brand: #5fb4d6; --brand-deep: #0a2433; --brand-ink: #0c1a22; --accent: #f0b43a; --accent-soft: #3a2f12; --ok: #5fcf93;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f161d; --surface: #17212a; --ink: #e8edf1; --muted: #9aa8b4; --line: #2a3845;
  --brand: #5fb4d6; --brand-deep: #0a2433; --brand-ink: #0c1a22; --accent: #f0b43a; --accent-soft: #3a2f12; --ok: #5fcf93;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.6; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; text-wrap: balance; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; }
h2 { font-size: 1.55rem; font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--brand); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }

/* demo strip */
.demo { background: var(--accent-soft); border-bottom: 1px solid var(--line); font-size: .88rem; padding: 9px 0; }
.demo p { margin: 0; max-width: none; }

/* header + hero */
.top { background: var(--brand-deep); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.top::before { content: ""; position: absolute; inset: -60px; z-index: -1; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%2373b7d3' stroke-width='1.2' opacity='.55'%3E%3Cpath d='M36 6c8 8 8 16 0 24-8-8-8-16 0-24zM36 42c8 8 8 16 0 24-8-8-8-16 0-24zM6 36c8-8 16-8 24 0-8 8-16 8-24 0zM42 36c8-8 16-8 24 0-8 8-16 8-24 0z'/%3E%3Ccircle cx='36' cy='36' r='3' fill='%23e7a21a' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 72px 72px; }
@media (prefers-reduced-motion: no-preference) { .top::before { animation: drift 38s linear infinite; } @keyframes drift { to { transform: translate(72px, 72px); } } }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 16px; padding-bottom: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.55rem; color: #fff; text-decoration: none; letter-spacing: -.02em; }
.logo svg { width: 38px; height: 38px; flex: none; }
.logo b { color: var(--accent); font-weight: 800; }
nav { display: flex; flex-wrap: wrap; gap: 4px; }
nav a { color: #fff; text-decoration: none; padding: 8px 13px; border-radius: 8px; font-weight: 500; font-size: .95rem; transition: background .15s; }
nav a:hover { background: rgba(255,255,255,.16); }
nav a[aria-current="page"] { background: rgba(255,255,255,.24); }
.hero { padding: 28px 0 70px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { color: #d3e6ef; font-size: 1.1rem; }
.stats { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 8px; }
.stat b { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; line-height: 1; }
.stat span { font-size: .85rem; color: #b6d3e1; }
.float { position: relative; height: 290px; }
.fcard { position: absolute; background: var(--surface); color: var(--ink); border-radius: 14px; padding: 14px 18px; box-shadow: 0 14px 34px rgba(0,0,0,.28); }
.fcard small { display: block; color: var(--muted); font-size: .78rem; }
.fcard strong { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.fcard.a { top: 0; left: 4%; }
.fcard.b { top: 84px; right: 0; }
.fcard.c { bottom: 0; left: 12%; }
.fcard .st { color: var(--accent); letter-spacing: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .fcard.a { animation: bob 6s ease-in-out infinite; }
  .fcard.b { animation: bob 7s ease-in-out -2s infinite; }
  .fcard.c { animation: bob 5.5s ease-in-out -4s infinite; }
  @keyframes bob { 50% { transform: translateY(-10px); } }
}
.pagehead { padding: 8px 0 34px; }
.pagehead h1 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.3rem); margin-bottom: .25em; }
.pagehead p { color: #d3e6ef; margin: 0; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; padding-bottom: 50px; } .float { display: none; } }

main { padding: 0 0 56px; }
.view { display: none; }
.view.on { display: block; }
@media (prefers-reduced-motion: no-preference) { .view.on > * { animation: rise .35s ease-out both; } .view.on > *:nth-child(2) { animation-delay: .04s; } .view.on > *:nth-child(3) { animation-delay: .08s; } @keyframes rise { from { transform: translateY(8px); } to { transform: none; } } }

.searchbox { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-top: -44px; position: relative; box-shadow: 0 10px 30px rgba(8,58,80,.16); display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; }
@media (max-width: 720px) { .searchbox { grid-template-columns: 1fr; } }
.sec { margin-top: 38px; }
.lead { font-size: 1.1rem; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 16px; margin: 18px 0 8px; }
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; transition: transform .18s, border-color .18s, box-shadow .18s; }
a.tool:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: 0 10px 22px rgba(8,58,80,.12); }
.tool h3 { margin: 0; }
.tool p { margin: 0; color: var(--muted); font-size: .95rem; }
.ico { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--brand); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; }
.tag { align-self: flex-start; font-size: .74rem; font-weight: 600; padding: 2px 9px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.tag.live { background: var(--ok); border-color: var(--ok); color: var(--surface); }
.tool.soon { opacity: .72; }
.cities { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.cities a { background: var(--surface); border: 1px solid var(--line); padding: 8px 16px; border-radius: 99px; text-decoration: none; font-weight: 500; transition: background .15s, color .15s; }
.cities a:hover { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-bottom: 20px; }
.how { border-left: 4px solid var(--accent); background: var(--surface); padding: 12px 18px; margin: 26px 0 22px; border-radius: 0 10px 10px 0; border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how p { margin: 0 0 .35em; font-size: .96rem; }
.how p:last-child { margin: 0; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
.hint { color: var(--muted); font-size: .9rem; font-weight: 400; }
input[type=text], input[type=email], input[type=date], select { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 8px; }
.money { display: flex; align-items: center; gap: 8px; }
.money input { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.money span { font-weight: 600; color: var(--muted); white-space: nowrap; }
.btn, button.btn { font: inherit; font-weight: 600; background: var(--accent); color: #1b1405; border: 0; border-radius: 10px; padding: 11px 22px; cursor: pointer; text-decoration: none; display: inline-block; transition: transform .15s, filter .15s; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn.alt { background: var(--brand); color: var(--brand-ink); }
.radios { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.radios label { font-weight: 500; display: flex; gap: 8px; align-items: center; margin: 0; }
.result { display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 14px; margin-top: 18px; }
.res { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--bg); }
.res .k { font-size: .85rem; color: var(--muted); }
.res .v { font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.res.key { background: var(--accent-soft); border-color: var(--accent); }
.res .s { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.msg { color: var(--muted); margin-top: 12px; }
.pick { margin-top: 20px; }
.pick input[type=range] { width: 100%; accent-color: var(--brand); }
.pick .ends { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .93rem; font-variant-numeric: tabular-nums; }
th, td { padding: 9px 12px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child, th:nth-child(2), td:nth-child(2) { text-align: left; }
th { background: var(--bg); font-weight: 600; font-size: .85rem; }
tr.cur td { background: var(--accent-soft); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
.source { font-size: .87rem; color: var(--muted); max-width: none; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }

/* deadlines */
.dl { display: grid; gap: 12px; margin-top: 16px; }
.dl .it { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.dl .it.next { border-color: var(--accent); background: var(--accent-soft); }
.dl .q { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; }
.dl .when { font-weight: 600; }
.dl .left { font-size: .9rem; color: var(--muted); }
.pill { font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--brand); color: var(--brand-ink); }

/* advisors */
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 14px; }
.advisors { display: grid; gap: 14px; }
.adv { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: grid; grid-template-columns: 56px 1fr auto; gap: 6px 16px; align-items: start; transition: border-color .18s, box-shadow .18s; }
.adv:hover { border-color: var(--brand); box-shadow: 0 8px 20px rgba(8,58,80,.1); }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; }
.adv h3 { margin: 0 0 2px; }
.adv .role { color: var(--muted); font-size: .93rem; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { font-size: .8rem; padding: 2px 10px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); }
.rate { text-align: right; min-width: 120px; }
.rate .num { font-family: var(--font-display); font-weight: 800; font-size: 1.55rem; font-variant-numeric: tabular-nums; }
.rate .stars { color: var(--accent); letter-spacing: 2px; }
.rate .cnt { font-size: .82rem; color: var(--muted); }
.adv .go { grid-column: 2 / 4; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.adv .price { font-size: .92rem; color: var(--muted); }
.example { font-size: .75rem; color: var(--muted); border: 1px dashed var(--line); border-radius: 6px; padding: 1px 8px; }
@media (max-width: 520px) { .adv { grid-template-columns: 48px 1fr; } .avatar { width: 48px; height: 48px; } .rate { grid-column: 1 / 3; text-align: left; display: flex; gap: 10px; align-items: baseline; } .adv .go { grid-column: 1 / 3; } }

ol.steps { padding-left: 1.2em; max-width: 68ch; }
ol.steps li { margin-bottom: .9em; padding-left: .3em; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; padding: 12px 0; list-style-position: outside; }
details[open] summary { color: var(--brand); }
details p { margin: 0 0 14px; color: var(--muted); }
.alert { background: var(--brand-deep); color: #fff; border-radius: 16px; padding: 26px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; align-items: center; }
.alert h2 { color: #fff; margin-bottom: .25em; }
.alert p { color: #d3e6ef; margin: 0; }
.alert form { display: grid; gap: 10px; }
.alert .msg { color: #d3e6ef; margin: 0; }
@media (max-width: 720px) { .alert { grid-template-columns: 1fr; } }
footer.site { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--muted); font-size: .88rem; }
footer.site .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; margin-bottom: 18px; }
footer.site h4 { margin: 0 0 8px; color: var(--ink); font-family: var(--font-display); }
footer.site a { display: block; color: var(--muted); text-decoration: none; padding: 2px 0; }
footer.site a:hover { color: var(--brand); text-decoration: underline; }
footer.site p { max-width: none; margin: 0 0 .5em; }

/* Additions for the multi-page site */
.logo-img { background: #fff; border-radius: 10px; padding: 5px 10px; height: 46px; width: auto; display: block; }
.crumbs { font-size: .88rem; color: var(--muted); margin: 22px 0 6px; }
.crumbs a { color: var(--muted); }
.crumbs span { color: var(--ink); font-weight: 600; }
main > .how:first-child, main > .searchbox:first-child { margin-top: 16px; }
.source ul { margin: 0 0 1em; padding-left: 1.2em; }
.source li { margin-bottom: .2em; }
.source p { margin: 0 0 .4em; max-width: none; }
.alertform input[type=email] { background: #fff; color: #15202b; }
.top header.site nav a { white-space: nowrap; }
.sec + .sec { margin-top: 38px; }

.cookie-bar{position:fixed;left:12px;right:12px;bottom:12px;z-index:60;max-width:640px;margin:0 auto;background:#fff;border:1px solid #d9dee7;border-radius:12px;box-shadow:0 8px 30px rgba(0,0,0,.15);padding:14px 16px;display:flex;gap:14px;align-items:center;flex-wrap:wrap;font-size:.92rem}
.cookie-bar p{margin:0;flex:1 1 260px}
.cookie-bar button{font:inherit;padding:8px 14px;border-radius:8px;border:1px solid #c5ccd8;background:#fff;cursor:pointer;margin-left:6px}
.cookie-bar button.ok{background:#0b5fff;color:#fff;border-color:#0b5fff}
