:root {
  --navy: #13294b;
  --navy-deep: #0b1d38;
  --teal: #14a39a;
  --teal-soft: #d6f1ee;
  --amber: #f4a62a;
  --amber-deep: #d98a0f;
  --ink: #1c2a3f;
  --muted: #56677d;
  --mist: #eef4f6;
  --line: #d8e2e8;
  --white: #ffffff;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img, svg { max-width: 100%; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--teal); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); font-weight: 750; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: 66ch; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--white); padding: .5rem 1rem; z-index: 99; }

/* Header */
.site-header { background: var(--navy-deep); color: var(--white); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--white); text-decoration: none; font-family: var(--display); font-weight: 750; font-size: 1.2rem; }
.brand:hover { color: var(--white); }
.brand svg { width: 34px; height: 34px; flex: none; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a { color: #cfdbe8; text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); }
.nav-toggle { display: none; background: none; border: 2px solid #3a5278; color: var(--white); border-radius: 8px; padding: .4rem .7rem; font: inherit; font-weight: 600; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 1rem/1 var(--body);
  padding: .95rem 1.4rem; border-radius: 999px; border: 0; cursor: pointer;
  text-decoration: none; background: var(--amber); color: var(--navy-deep);
}
.btn:hover { background: var(--amber-deep); color: var(--navy-deep); }
.btn-quiet { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px #4b6488; }
.btn-quiet:hover { background: #1d3760; color: var(--white); }
.btn-small { padding: .65rem 1rem; font-size: .95rem; }
.nav .btn { color: var(--navy-deep); }

/* Hero */
.hero { background: var(--navy-deep); color: var(--white); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 2rem; padding: 4.5rem 0 5rem; }
.hero p.lead { font-size: 1.25rem; color: #d3deea; max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 1.4rem; }
.counter { display: inline-flex; align-items: baseline; gap: .5rem; color: #d3deea; font-size: 1rem; }
.counter strong { font-family: var(--display); font-size: 1.6rem; color: var(--amber); }

.orbit { width: 100%; max-width: 470px; justify-self: center; overflow: visible; }
.orbit .path { fill: none; stroke: #2c4a75; stroke-width: 2; stroke-dasharray: 3 9; }
.orbit .core { fill: none; stroke: var(--white); stroke-width: 26; }
.orbit .check { fill: none; stroke: var(--amber); stroke-width: 20; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 160; stroke-dashoffset: 0; }
.orbit .dot { fill: var(--teal); transform-box: fill-box; transform-origin: center; }
.orbit text { fill: #b9c9dc; font: 600 17px var(--body); }

@media (prefers-reduced-motion: no-preference) {
  .orbit .dot { animation: pop .5s cubic-bezier(.3,1.6,.5,1) both; }
  .orbit .dot:nth-of-type(2) { animation-delay: .15s; }
  .orbit .dot:nth-of-type(3) { animation-delay: .3s; }
  .orbit .dot:nth-of-type(4) { animation-delay: .45s; }
  .orbit .dot:nth-of-type(5) { animation-delay: .6s; }
  .orbit .dot:nth-of-type(6) { animation-delay: .75s; }
  .orbit .dot:nth-of-type(7) { animation-delay: .9s; }
  .orbit text { animation: fade .6s 1s both; }
  .orbit .check { animation: draw .7s 1.25s cubic-bezier(.6,0,.2,1) both; }
}
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw { from { stroke-dashoffset: 160; } to { stroke-dashoffset: 0; } }

/* Sections */
section { padding: 5rem 0; }
.band { background: var(--mist); }
.intro { max-width: 60ch; margin-bottom: 2.5rem; }
.intro p { color: var(--muted); font-size: 1.15rem; }

/* Steps (a real sequence) */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-top: 3.4rem; }
.steps li::before {
  content: counter(s); position: absolute; top: 0; left: 0;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: var(--white); font: 800 1.1rem var(--display);
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 1.25rem; left: 3.2rem; right: -1.3rem;
  border-top: 2px dashed var(--line);
}
.steps p { color: var(--muted); margin: 0; }

/* Areas list */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.area { padding: 1.6rem 1.6rem 1.6rem 0; border-bottom: 1px solid var(--line); }
.area h3 { display: flex; align-items: center; gap: .6rem; }
.area h3::before { content: ""; width: .8rem; height: .8rem; border-radius: 50%; background: var(--teal); flex: none; }
.area p { color: var(--muted); margin: 0; font-size: 1rem; }

/* Proof split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding: 0 0 1rem 2.2rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2rem; width: 1.3rem; height: 1.3rem;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6.5' fill='none' stroke='%23d98a0f' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.plan { border: 2px solid var(--line); border-radius: 18px; padding: 1.8rem; background: var(--white); display: flex; flex-direction: column; }
.plan.featured { border-color: var(--navy); box-shadow: 0 18px 40px -24px rgba(19,41,75,.55); }
.plan .tag { align-self: flex-start; background: var(--teal-soft); color: #0b6c66; font-weight: 700; font-size: .85rem; padding: .3rem .7rem; border-radius: 999px; margin-bottom: 1rem; }
.price { font-family: var(--display); font-size: 2.6rem; font-weight: 800; line-height: 1; margin: .2rem 0 .3rem; }
.price small { font-size: 1rem; font-weight: 600; color: var(--muted); font-family: var(--body); }
.was { color: var(--muted); font-size: .98rem; }
.was s { text-decoration-thickness: 2px; text-decoration-color: #c0392b; }
.plan ul { padding-left: 1.1rem; margin: 1.2rem 0 1.6rem; color: var(--ink); }
.plan ul li { margin-bottom: .4rem; }
.plan .btn { margin-top: auto; }
.plan .btn.alt { background: var(--navy); color: var(--white); }
.plan .btn.alt:hover { background: var(--navy-deep); }
.fine { color: var(--muted); font-size: .95rem; margin-top: 1.5rem; }
.founding { margin-top: 2rem; padding: 1.4rem 1.6rem; border-left: 6px solid var(--amber); background: #fff7e8; border-radius: 0 12px 12px 0; }
.founding p { margin: 0; }

/* Table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: left; padding: .9rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--display); font-size: 1.05rem; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 700 1.4rem/1 var(--display); color: var(--teal); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .8rem 0 0; color: var(--muted); }

/* Form */
.reserve { background: var(--navy); color: var(--white); }
.reserve .split { align-items: center; }
.reserve p { color: #d3deea; }
form.card { background: var(--white); color: var(--ink); border-radius: 20px; padding: 2rem; }
.field { margin-bottom: 1.1rem; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: .35rem; }
.field .hint { font-weight: 500; color: var(--muted); }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; font: inherit; padding: .8rem .9rem; border: 2px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink);
}
input:focus, select:focus, textarea:focus { border-color: var(--teal); outline: none; }
textarea { min-height: 90px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0 0 1.1rem; }
.stars { display: inline-flex; flex-direction: row-reverse; gap: .2rem; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { font-size: 1.7rem; line-height: 1; color: #c7d3dc; cursor: pointer; margin: 0; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: var(--amber); }
.stars input:focus-visible + label { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
.hp { position: absolute; left: -9999px; }
.form-msg { margin: 1rem 0 0; font-weight: 600; min-height: 1.5em; }
.form-msg.ok { color: #0b6c66; }
.form-msg.err { color: #b3261e; }
form .btn { width: 100%; }

/* Page header (inner pages) */
.page-head { background: var(--navy-deep); color: var(--white); padding: 4rem 0 3.5rem; }
.page-head p { color: #d3deea; font-size: 1.2rem; }
.prose { padding: 4rem 0; }
.prose h2 { font-size: 1.6rem; margin-top: 2.2rem; }
.prose ul { max-width: 66ch; }
.prose li { margin-bottom: .5rem; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #a9bad0; padding: 3rem 0 2rem; font-size: .97rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer a { color: #d3deea; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer .legal { max-width: none; grid-column: 1 / -1; border-top: 1px solid #22395d; padding-top: 1.5rem; margin-top: 1rem; }
.site-footer .brand { margin-bottom: .8rem; }

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .orbit { max-width: 340px; order: -1; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li::after { display: none; }
  .areas, .plans { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--navy-deep); flex-direction: column; align-items: flex-start; padding: 1rem 1.25rem 1.5rem; border-top: 1px solid #22395d; }
  .nav.open { display: flex; }
}
@media (max-width: 560px) {
  section { padding: 3.5rem 0; }
  .steps { grid-template-columns: 1fr; }
  .hero .wrap { padding: 2.5rem 0 3.5rem; }
  form.card { padding: 1.4rem; }
}

/* ---------- Member area (Part 2) ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.mt { margin-top: 2rem; }
.alt-btn { background: var(--navy); color: var(--white); }
.alt-btn:hover { background: var(--navy-deep); color: var(--white); }
.nav button.btn { color: var(--navy-deep); }
.auth { align-items: start; }
.auth form.card { border: 2px solid var(--line); }
.auth h2 { font-size: 1.7rem; }
.app-head { padding: 3rem 0 2.5rem; }

.score-grid { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: 3rem; align-items: start; }
.score-card { background: var(--white); border-radius: 20px; padding: 1.8rem; border: 2px solid var(--line); }
.score-card h2 { font-size: 1.6rem; }
.ring-wrap { position: relative; width: 220px; max-width: 100%; margin: .5rem auto 1rem; }
.ring { width: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--mist); stroke-width: 18; }
.ring-fg { fill: none; stroke: var(--teal); stroke-width: 18; stroke-linecap: round; transition: stroke-dashoffset .9s ease; }
.ring-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-num strong { font: 800 3.4rem/1 var(--display); color: var(--navy); }
.ring-num span { color: var(--muted); font-size: .9rem; }
.history { display: flex; align-items: flex-end; gap: 4px; height: 48px; margin-top: 1rem; }
.history span { flex: 1; background: var(--amber); border-radius: 3px 3px 0 0; min-height: 4px; }
.bars { display: grid; gap: .8rem; }
.bar { display: grid; grid-template-columns: 6.5rem 1fr 2.2rem; align-items: center; gap: .8rem; }
.bar .track { height: 12px; background: var(--white); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.bar .fill { height: 100%; background: var(--teal); border-radius: 999px; }
.bar b { text-align: right; font-family: var(--display); }
.fixes { padding-left: 1.3rem; margin: 0; }
.fixes li { margin-bottom: .9rem; }
.fixes li div { margin-bottom: .15rem; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--teal); }

.questions { list-style: none; counter-reset: q; padding: 0; margin: 0 0 1.5rem; max-width: 760px; }
.questions li { counter-increment: q; border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.questions legend { font-weight: 700; font-size: 1.08rem; margin-bottom: .7rem; }
.questions legend::before { content: counter(q) ". "; color: var(--teal); }
.choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choices label { border: 2px solid var(--line); border-radius: 999px; padding: .5rem 1rem; cursor: pointer; font-weight: 600; font-size: .97rem; }
.choices label:hover { border-color: var(--teal); }
.choices input:checked + label { background: var(--navy); border-color: var(--navy); color: var(--white); }
.choices input:focus-visible + label { outline: 3px solid var(--amber); outline-offset: 2px; }
form.finder .btn { width: auto; min-width: 220px; }

.chat { background: var(--white); border: 2px solid var(--line); border-radius: 20px; padding: 1.4rem; max-height: 560px; overflow-y: auto; display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1rem; }
.msg { max-width: 85%; border-radius: 16px; padding: .9rem 1.1rem; }
.msg p { margin: 0 0 .6rem; } .msg p:last-child { margin-bottom: 0; }
.msg ol, .msg ul { margin: 0 0 .6rem; padding-left: 1.3rem; }
.msg.q { align-self: flex-end; background: var(--navy); color: var(--white); border-bottom-right-radius: 4px; }
.msg.a { align-self: flex-start; background: var(--mist); border-bottom-left-radius: 4px; }
.links { display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0 .4rem; }
.links a { background: var(--white); border: 2px solid var(--line); border-radius: 999px; padding: .35rem .85rem; font-weight: 700; font-size: .92rem; text-decoration: none; }
.links a:hover { border-color: var(--teal); }
.rate { display: flex; align-items: center; gap: .4rem; font-size: .9rem; }
.rate button { background: var(--white); border: 2px solid var(--line); border-radius: 8px; padding: .15rem .45rem; cursor: pointer; font-size: 1rem; }
.rate button[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-soft); }
.ask textarea { min-height: 96px; }
.ask-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: .8rem; flex-wrap: wrap; }
.check { display: flex; gap: .6rem; align-items: center; margin: 0 0 1.2rem; font-weight: 600; }
.check input { width: 1.2rem; height: 1.2rem; accent-color: var(--teal); }
td.device { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: .9rem; }

@media (max-width: 900px) {
  .score-grid { grid-template-columns: 1fr; }
  .msg { max-width: 100%; }
  .nav button.btn { margin-top: .3rem; }
}

/* ---------- My Expert chat and Vault (Part 3) ---------- */
.ex, .vault { display: grid; grid-template-columns: 240px 1fr; gap: 1.5rem; align-items: start; }
.ex-side, .v-side { background: var(--white); border: 2px solid var(--line); border-radius: 18px; padding: 1rem; }
.ex-side .btn { width: 100%; margin-bottom: .8rem; }
.ex-list, .v-folders { list-style: none; padding: 0; margin: 0; max-height: 460px; overflow-y: auto; }
.ex-list li { display: flex; align-items: center; gap: .2rem; }
.ex-list button[data-open-chat], .v-folders button { flex: 1; text-align: left; background: none; border: 0; padding: .55rem .6rem; border-radius: 10px; font: inherit; font-size: .95rem; cursor: pointer; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; }
.ex-list button[aria-current], .v-folders button[aria-current] { background: var(--teal-soft); font-weight: 700; }
.ex-list button:hover, .v-folders button:hover { background: var(--mist); }
.ex-list .del { background: none; border: 0; color: var(--muted); font-size: 1.2rem; cursor: pointer; padding: 0 .4rem; }
.ex-thread { background: var(--white); border: 2px solid var(--line); border-radius: 18px; padding: 1.2rem; height: 520px; overflow-y: auto; display: flex; flex-direction: column; gap: 1rem; }
.atts { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .4rem; }
.att { font-size: .85rem; background: rgba(255,255,255,.15); padding: .15rem .5rem; border-radius: 999px; }
.ex-compose { background: var(--white); border: 2px solid var(--line); border-radius: 18px; padding: 1rem; margin-top: 1rem; }
.ex-compose textarea { min-height: 80px; }
.ex-row { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; margin-top: .7rem; }
.ex-tools { display: flex; flex-wrap: wrap; gap: .4rem; }
.tool-btn { display: inline-flex; align-items: center; gap: .3rem; background: var(--mist); border: 2px solid var(--line); border-radius: 999px; padding: .4rem .8rem; font: 600 .92rem var(--body); cursor: pointer; color: var(--ink); }
.tool-btn:hover, .tool-btn[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-soft); }
.ex-meter { margin: .6rem 0 0; font-size: .92rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .5rem; }
.chip { background: var(--mist); border-radius: 999px; padding: .25rem .4rem .25rem .7rem; font-size: .9rem; }
.chip button { background: none; border: 0; cursor: pointer; font-size: 1rem; color: var(--muted); }
.snap { border-bottom: 1px solid var(--line); padding-bottom: .8rem; margin-bottom: .8rem; }
.snap h3 { margin-bottom: .8rem; }
.tools { display: flex; flex-wrap: wrap; gap: .4rem .9rem; }
.tools label { display: inline-flex; align-items: center; gap: .35rem; font-weight: 500; margin: 0; }
.tools input { accent-color: var(--teal); width: 1.1rem; height: 1.1rem; }
.v-meter { margin-top: 1rem; }
.v-meter .track { height: 10px; background: var(--mist); border-radius: 999px; overflow: hidden; }
.v-meter .fill { height: 100%; background: var(--amber); width: 0; }
.v-meter p { font-size: .88rem; margin: .4rem 0 0; }
.v-bar { display: flex; gap: .8rem; align-items: center; margin-bottom: .8rem; }
.v-bar input[type="search"] { flex: 1; font: inherit; padding: .7rem .9rem; border: 2px solid var(--line); border-radius: 10px; }
.v-table td a { font-weight: 600; }
.v-table select { padding: .35rem .5rem; font-size: .92rem; }
.v-actions { white-space: nowrap; }
.v-actions a, .v-actions button { background: none; border: 0; cursor: pointer; font-size: 1.05rem; padding: .2rem .35rem; text-decoration: none; }
dialog.picker { border: 0; border-radius: 18px; padding: 1.5rem; max-width: 480px; width: 92vw; }
dialog.picker::backdrop { background: rgba(11,29,56,.55); }
dialog.picker ul { list-style: none; padding: 0; max-height: 50vh; overflow-y: auto; }
dialog.picker li button { width: 100%; text-align: left; background: var(--mist); border: 0; border-radius: 10px; padding: .7rem; margin-bottom: .4rem; font: inherit; cursor: pointer; }
@media (max-width: 900px) {
  .ex, .vault { grid-template-columns: 1fr; }
  .ex-list, .v-folders { max-height: 180px; }
  .ex-thread { height: 60vh; }
}
.ex-compose .btn { width: auto; min-width: 140px; }
