/* Clearview Eastern: shared styles for the public site, investor portal and admin console.
   Palette from the live site (Nov 2026): navy, royal indigo, antique gold. Phone-first. */

:root {
  --navy: #0F172A;
  --navy-deep: #0B1120;
  --navy-line: #1E293B;
  --indigo: #1A025B;
  --gold: #C5A059;
  --gold-text: #7A5C24;          /* gold for small text on light backgrounds (contrast) */
  --gold-gradient: linear-gradient(135deg, #C5A059, #FDE68A, #C5A059);
  --cream: #FBF6EA;
  --cream-line: #E7D7B1;
  --paper: #FCFCFB;
  --mist: #F8FAFC;
  --mist-2: #F1F5F9;
  --line: #E2E8F0;
  --ink: #0F172A;
  --slate: #475569;
  --slate-2: #334155;
  --ok: #166534;   --ok-bg: #DCFCE7;
  --warn: #92400E; --warn-bg: #FEF3C7;
  --bad: #991B1B;  --bad-bg: #FEE2E2;
  --radius: 10px;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: Figtree, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.55; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--indigo); }
a:hover { color: var(--indigo); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h1, .display { font-family: var(--serif); font-weight: 400; letter-spacing: .2px; }
h2.serif, .serif { font-family: var(--serif); font-weight: 400; }
p { margin: 0; }
em.gold, .gold-word { font-family: var(--serif); font-style: italic; color: var(--gold); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.stack > * + * { margin-top: 16px; }
.muted { color: var(--slate); }
.small { font-size: 14px; }
.tiny { font-size: 12px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold-text); }
.on-dark .eyebrow, .eyebrow.on-dark { color: var(--gold); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Utility bar and header */
.utility { background: var(--navy-deep); color: var(--gold); font-size: 12px; letter-spacing: .4px; text-align: center; padding: 8px 16px; }
.site-header { background: var(--navy); border-bottom: 1px solid var(--navy-line); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 700; font-size: 18px; }
.brand:hover { color: #fff; }
.brand img { width: 40px; height: 40px; background: #fff; border-radius: 8px; padding: 2px; }
.site-nav { display: none; gap: 24px; font-weight: 500; font-size: 15px; }
.site-nav a { color: #fff; text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--gold); font-weight: 700; }
.header-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.menu-toggle { background: none; border: 1.5px solid #334155; color: #fff; border-radius: 8px; min-height: 44px; padding: 0 14px; font: inherit; font-weight: 600; }
.mobile-nav { width: 100%; display: none; flex-direction: column; gap: 4px; padding-bottom: 8px; }
.mobile-nav.open { display: flex; }
.mobile-nav a { color: #fff; text-decoration: none; padding: 10px 0; border-top: 1px solid var(--navy-line); }
@media (min-width: 960px) {
  .site-nav { display: flex; }
  .menu-toggle, .mobile-nav, .mobile-nav.open { display: none; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 8px; font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; }
.btn-gold { background: var(--gold-gradient); color: var(--navy); }
.btn-gold:hover { color: var(--navy); filter: brightness(1.04); }
.btn-outline-gold { border-color: var(--gold); color: var(--gold); background: transparent; font-weight: 600; }
.btn-outline-gold:hover { color: var(--gold); background: rgba(197,160,89,.08); }
.btn-primary { background: var(--indigo); color: #fff; }
.btn-primary:hover { color: #fff; filter: brightness(1.2); }
.btn-ghost { background: #fff; color: var(--indigo); border-color: var(--line); }
.btn-danger { background: #fff; color: var(--bad); border-color: #FCA5A5; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--indigo); font: inherit; text-decoration: underline; cursor: pointer; }

/* Sections */
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-dark { background: var(--navy); color: #fff; }
.section-dark .muted { color: #CBD5E1; }
.section-mist { background: var(--mist); }
.section-cream { background: var(--cream); }
.section h2 { font-family: var(--serif); font-weight: 400; font-size: 36px; }
@media (min-width: 768px) { .section { padding: 88px 0; } .section h2 { font-size: 44px; } }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin-bottom: 32px; }
.section-head p { font-size: 17px; color: var(--slate); }
.section-dark .section-head p { color: #CBD5E1; }
.rule-gold { width: 64px; height: 3px; background: var(--gold-gradient); border: 0; margin: 0; }

/* Hero */
.hero { color: #fff; background-color: var(--navy);
  background-image: linear-gradient(110deg, rgba(15,23,42,.97) 0%, rgba(26,2,91,.90) 52%, rgba(26,2,91,.45) 100%), url(/assets/img/hero-pura-vida.jpg);
  background-size: cover; background-position: center; }
.hero .wrap { display: grid; gap: 40px; padding-top: 64px; padding-bottom: 72px; align-items: center; }
.hero h1 { font-size: 46px; line-height: 1.05; }
.hero p.lead { font-size: 18px; color: #E2E8F0; max-width: 560px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.seal { width: 220px; height: 220px; justify-self: center; }
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.4fr 1fr; padding-top: 96px; padding-bottom: 104px; }
  .hero h1 { font-size: 72px; }
  .seal { width: 300px; height: 300px; }
}
.page-hero { background: var(--navy); color: #fff; }
.page-hero .wrap { padding-top: 56px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 14px; }
.page-hero h1 { font-size: 40px; }
.page-hero p { color: #CBD5E1; font-size: 18px; max-width: 720px; }
@media (min-width: 768px) { .page-hero h1 { font-size: 56px; } }

/* Big-number band */
.bignums { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.bignum strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1; color: var(--indigo); }
.section-dark .bignum strong { color: var(--gold); }
.bignum span { font-size: 14px; color: var(--slate); }
.section-dark .bignum span { color: #CBD5E1; }
@media (min-width: 768px) { .bignums { grid-template-columns: repeat(4, 1fr); } .bignum strong { font-size: 56px; } }
.footnote { font-size: 12px; color: var(--slate); margin-top: 20px; max-width: 900px; }
.section-dark .footnote { color: #94A3B8; }

/* Cards and grids */
.grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { font-size: 19px; }
.card-cream { background: var(--cream); border-color: var(--cream-line); }
.pillar { display: flex; flex-direction: column; gap: 10px; }
.pillar .num { font-family: var(--serif); font-size: 22px; color: var(--gold-text); }
.pillar svg { width: 44px; height: 44px; }

/* The Clearview Screen (7 gates) */
.gates { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .gates { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .gates { grid-template-columns: repeat(7, 1fr); } }
.gate { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.gate .g { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; color: var(--slate); }
.gate strong { font-size: 15px; }
.gate .n { font-family: var(--serif); font-size: 34px; line-height: 1.1; color: var(--indigo); }
.gate .l { font-size: 13px; color: var(--slate); }
.gate.close { background: var(--navy); border: 2px solid var(--gold); color: #fff; }
.gate.close .g, .gate.close .l { color: #CBD5E1; }
.gate.close .n { color: var(--gold); }
.counters { display: grid; gap: 24px; margin-top: 32px; }
@media (min-width: 768px) { .counters { grid-template-columns: repeat(3, 1fr); } }

/* Portfolio cards */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.holding { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.holding img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--mist-2); }
.holding img.contain { object-fit: contain; padding: 24px; background: #fff; }
.holding .body { padding: 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.holding h3 { font-size: 20px; text-transform: uppercase; letter-spacing: .6px; }
.holding .loc { font-size: 14px; color: var(--slate); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 16px; margin: 0; }
.facts div { display: flex; flex-direction: column; }
.facts dt { font-size: 12px; color: var(--slate); }
.facts dd { margin: 0; font-weight: 700; }
.holding .note { font-size: 14px; color: var(--slate-2); }
.holding .meta { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--cream); color: var(--gold-text); border: 1px solid var(--cream-line); }
.badge-ok { background: var(--ok-bg); color: var(--ok); border-color: #86EFAC; }
.badge-warn { background: var(--warn-bg); color: var(--warn); border-color: #FCD34D; }
.badge-bad { background: var(--bad-bg); color: var(--bad); border-color: #FCA5A5; }
.badge-muted { background: var(--mist-2); color: var(--slate); border-color: var(--line); }

/* Fit Check */
.fit { background: var(--navy); color: #fff; border-radius: 16px; padding: 28px; display: grid; gap: 24px; border: 1px solid var(--navy-line); }
@media (min-width: 900px) { .fit { grid-template-columns: 1.3fr 1fr; padding: 40px; } }
.fit fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.fit legend { font-weight: 700; margin-bottom: 10px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid #475569; background: transparent; color: #fff; font: inherit; cursor: pointer; }
.pill[aria-pressed="true"] { background: var(--gold-gradient); color: var(--navy); border-color: var(--gold); font-weight: 700; }
.fit-result { background: rgba(255,255,255,.04); border: 1px solid var(--navy-line); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.fit-score { font-family: var(--serif); font-size: 56px; line-height: 1; color: var(--gold); }

/* Steps I to IV */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: none; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { border-top: 3px solid var(--gold); padding-top: 14px; }
.steps .roman { font-family: var(--serif); font-size: 28px; color: var(--gold-text); }

/* Partner Circle */
.circle-tiers { display: grid; gap: 16px; }
@media (min-width: 900px) { .circle-tiers { grid-template-columns: repeat(3, 1fr); } }

/* CTA band */
.cta-band { background: var(--indigo); color: #fff; }
.cta-band .wrap { padding-top: 56px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.cta-band h2 { font-family: var(--serif); font-weight: 400; font-size: 36px; }
@media (min-width: 768px) { .cta-band h2 { font-size: 48px; } }

/* Footer */
.site-footer { background: var(--navy-deep); color: #CBD5E1; font-size: 14px; }
.site-footer .wrap { padding-top: 48px; padding-bottom: 40px; display: grid; gap: 28px; }
@media (min-width: 900px) { .site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; } }
.site-footer a { color: #E2E8F0; }
.site-footer h2 { font-family: var(--sans); font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.disclaimer { font-size: 12px; color: #94A3B8; border-top: 1px solid var(--navy-line); padding-top: 20px; line-height: 1.6; }

/* Forms */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-weight: 600; font-size: 15px; }
.field .hint { font-size: 13px; color: var(--slate); }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=password], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid #CBD5E1; border-radius: 8px; font: inherit; background: #fff; color: var(--ink); }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--indigo); outline: 3px solid rgba(26,2,91,.15); }
input[type=file] { font: inherit; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.row { display: grid; gap: 16px; }
@media (min-width: 640px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.alert { border-radius: 8px; padding: 12px 14px; font-size: 15px; border: 1px solid; }
.alert-ok { background: var(--ok-bg); color: var(--ok); border-color: #86EFAC; }
.alert-warn { background: var(--warn-bg); color: var(--warn); border-color: #FCD34D; }
.alert-bad { background: var(--bad-bg); color: var(--bad); border-color: #FCA5A5; }
.alert-info { background: var(--cream); color: var(--slate-2); border-color: var(--cream-line); }

/* Portal shell */
.app { min-height: 100vh; display: flex; flex-direction: column; background: var(--mist); }
.app-top { background: var(--navy); color: #fff; }
.app-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.app-top .who { font-size: 14px; color: #CBD5E1; display: none; }
@media (min-width: 720px) { .app-top .who { display: block; } }
.app-tabs { background: #fff; border-bottom: 1px solid var(--line); overflow-x: auto; }
.app-tabs .wrap { display: flex; gap: 4px; }
.app-tabs a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px; text-decoration: none; color: var(--slate-2); font-weight: 600; font-size: 15px; white-space: nowrap; border-bottom: 3px solid transparent; }
.app-tabs a[aria-current="page"] { color: var(--indigo); border-bottom-color: var(--gold); }
.app-main { flex: 1; padding: 28px 0 64px; }
.app-main h1 { font-size: 36px; margin-bottom: 8px; }
.app-main h2 { font-size: 20px; margin-bottom: 12px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.panel + .panel { margin-top: 16px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.stat .v { font-family: var(--serif); font-size: 32px; color: var(--indigo); line-height: 1.1; }
.stat .k { font-size: 13px; color: var(--slate); }

/* Progress (onboarding) */
.progress { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.progress li { height: 6px; border-radius: 999px; background: var(--line); }
.progress li.done { background: var(--indigo); }
.progress li.now { background: var(--gold); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.checklist .dot { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--mist-2); color: var(--slate); }
.checklist li.done .dot { background: var(--indigo); color: #fff; }
.checklist li.now { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.checklist li.now .dot { background: var(--gold-gradient); color: var(--navy); }
.checklist .t { font-weight: 700; }
.checklist .grow { flex: 1; display: grid; gap: 4px; }

/* Tables */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; font-size: 12px; letter-spacing: .6px; text-transform: uppercase; color: var(--slate); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--mist); }
table.data td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }

/* Login */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--navy);
  background-image: linear-gradient(160deg, rgba(15,23,42,.96), rgba(26,2,91,.92)), url(/assets/img/hero-pura-vida.jpg); background-size: cover; background-position: center; }
.auth .box { width: 100%; max-width: 440px; background: #fff; border-radius: 16px; padding: 28px; display: grid; gap: 18px; }
.auth .box h1 { font-size: 34px; }

dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; font-size: 15px; }
dl.kv dt { color: var(--slate); }
dl.kv dd { margin: 0; font-weight: 600; }
.wire { white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; background: var(--mist); border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.inline-form { display: inline; }
.actions-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hide-sm { display: none !important; }
@media (min-width: 640px) { .hide-sm { display: inline-flex !important; } }
.grid + .panel { margin-top: 16px; }
