/* CORVALANE — sleek corporate. Navy #042356 + gold #c9a227. */
:root {
  --navy: #042356;
  --navy-2: #063079;
  --navy-deep: #021636;
  --gold: #c9a227;
  --gold-2: #e8c95a;
  --ink: #101623;
  --paper: #f7f5ef;
  --card: #ffffff;
  --line: #e3ddcb;
  --muted: #5b6472;
  --radius: 14px;
  --header-h: 64px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  overflow-x: hidden;
}
body.bar-open { padding-bottom: 76px; }
img { max-width: 100%; }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); text-align: center; }
section { padding: 64px 20px; max-width: 1240px; margin: 0 auto; }
.hidden { display: none !important; }
.btn {
  font: inherit; font-weight: 600; cursor: pointer; border-radius: 999px;
  border: 1.5px solid transparent; padding: 9px 20px; font-size: .95rem;
  transition: transform .12s ease, box-shadow .12s ease, background .12s;
  text-decoration: none; display: inline-block; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: linear-gradient(160deg, var(--gold-2), var(--gold)); color: #231a02; box-shadow: 0 4px 14px rgba(201,162,39,.35); }
.btn-gold:hover { box-shadow: 0 6px 20px rgba(201,162,39,.5); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: rgba(4,35,86,.06); }
.btn-ghost { background: transparent; color: inherit; }
.btn-lg { padding: 13px 28px; font-size: 1.02rem; }
.btn-sm { padding: 6px 14px; font-size: .85rem; }
.btn-block { width: 100%; }

/* Top utility bar — scrolls away */
.topbar {
  background: var(--navy-deep); color: #d9e2f2; font-size: .82rem;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 6px 18px; flex-wrap: wrap;
}
.topbar-tag { letter-spacing: .02em; }
.lang-wrap { display: inline-flex; align-items: center; gap: 6px; color: #d9e2f2; }
.globe-ic { width: 16px; height: 16px; }
#langSelect {
  background: var(--navy); color: #fff; border: 1px solid #2c4a7d; border-radius: 8px;
  padding: 4px 8px; font: inherit; font-size: .82rem; max-width: 170px;
}

/* Header — slim, sticky, logo never shrinks */
.site-header {
  position: sticky; top: 0; z-index: 60; height: var(--header-h);
  background: var(--navy); color: #fff; display: flex; align-items: center;
  gap: 22px; padding: 0 20px; box-shadow: 0 2px 14px rgba(2,22,54,.35);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: #fff; flex: 0 0 auto; }
.logo-mark { height: 44px; width: auto; display: block; }
.logo-mark-sm { height: 52px; }
.logo-anim { position: relative; display: inline-block; overflow: hidden; border-radius: 4px; }
.logo-anim::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,236,170,.45) 50%, transparent 70%);
  transform: translateX(-120%); animation: sheen 3.6s ease-in-out infinite;
}
@keyframes sheen { 0%,55% { transform: translateX(-120%);} 85%,100% { transform: translateX(120%);} }
.wordmark { font-family: "Fraunces", Georgia, serif; font-weight: 700; letter-spacing: .22em; font-size: 1.06rem; }
.main-nav { display: flex; gap: 20px; margin-inline-start: 10px; }
.main-nav a { color: #cfdaf0; text-decoration: none; font-weight: 500; font-size: .94rem; }
.main-nav a:hover { color: #fff; }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.header-actions .btn-ghost { color: #cfdaf0; }
.account-chip { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }

/* Hero */
.hero {
  max-width: none; padding: 72px 20px 84px;
  background: radial-gradient(1100px 500px at 15% -10%, var(--navy-2), var(--navy) 55%, var(--navy-deep));
  color: #eef2fb;
}
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; }
.hero-inner { max-width: 640px; margin-inline-start: max(0px, calc((100vw - 1240px) / 2)); }
.kicker { color: var(--gold-2); letter-spacing: .3em; font-size: .74rem; font-weight: 700; margin: 0 0 14px; }
.hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); color: #fff; }
.hero-sub { font-size: clamp(1rem, 2vw, 1.2rem); color: #c6d3ea; max-width: 34em; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 34px; }
.hero .btn-outline { border-color: #9db4dd; color: #eaf0fc; }
.hero .btn-outline:hover { background: rgba(255,255,255,.08); }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 1.7rem; color: var(--gold-2); font-family: "Fraunces", serif; }
.stat span { font-size: .82rem; color: #aebfdc; }
.hero-team { max-width: 430px; width: 100%; justify-self: center; }
.hero-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(201,162,39,.4); border-radius: 18px;
  padding: 18px; backdrop-filter: blur(4px); box-shadow: 0 24px 50px rgba(0,0,0,.35);
}
.hero-card-head { font-size: .72rem; letter-spacing: .18em; color: #b9c8e4; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-gold { background: var(--gold-2); box-shadow: 0 0 10px var(--gold-2); }
.hero-emp { display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,.05); border-radius: 12px; padding: 9px 12px; margin-bottom: 9px; }
.hero-emp .he-text { min-width: 0; }
.hero-emp .he-name { font-weight: 700; color: #fff; font-size: .94rem; }
.hero-emp .he-line { font-size: .8rem; color: #b9c8e4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-bar-mock { display: flex; justify-content: space-between; align-items: center; background: #fff; color: #8a93a3; border-radius: 999px; padding: 9px 16px; font-size: .86rem; margin-top: 12px; }
.mock-send { color: var(--gold); font-weight: 800; }

/* Avatars */
.avatar { border-radius: 50%; flex: 0 0 auto; display: block; }
.avatar-lg { width: 76px; height: 76px; }
.avatar-md { width: 46px; height: 46px; }
.avatar-sm { width: 34px; height: 34px; }

/* Featured */
.featured-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 28px; }
.feature-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; gap: 18px; box-shadow: 0 10px 26px rgba(4,35,86,.07); }
.feature-body h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 1.3rem; }
.feature-body .price { color: var(--navy); font-family: "Inter", sans-serif; font-weight: 800; }
.feature-body p { color: var(--muted); margin: 0 0 16px; }

/* How */
.how { background: #fff; max-width: none; }
.how > * { max-width: 1240px; margin-inline: auto; }
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 26px; }
.how-step { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--paper); }
.how-num { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--gold-2); align-items: center; justify-content: center; font-weight: 800; margin-bottom: 10px; }
.how-step h3 { font-size: 1.08rem; }
.how-step p { color: var(--muted); margin: 0; font-size: .94rem; }

/* Roster */
.roster-head { text-align: center; }
.roster-sub { color: var(--muted); }
.roster-tools { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; margin: 18px 0 14px; }
#rosterSearch { font: inherit; padding: 11px 16px; border-radius: 999px; border: 1.5px solid var(--line); width: min(420px, 90vw); background: #fff; }
.roster-count { color: var(--muted); font-size: .9rem; }
.dept-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 26px; }
.chip { font: inherit; font-size: .86rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.roster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 16px; }
.role-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.role-card.beyond-card { border-color: var(--gold); background: linear-gradient(170deg, #fffdf4, #fff); }
.role-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.role-name { font-weight: 700; font-size: 1.02rem; }
.role-dept { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.role-price { font-weight: 800; color: var(--navy); white-space: nowrap; }
.role-price small { color: var(--muted); font-weight: 600; }
.role-blurb { color: var(--muted); font-size: .9rem; margin: 0; flex: 1; }
.role-card .btn { align-self: flex-start; }
.custom-card { border: 1.5px dashed var(--gold); background: #fffdf4; }

/* Pricing */
.pricing { background: #fff; max-width: none; }
.pricing > * { max-width: 1240px; margin-inline: auto; }
.pricing-sub { text-align: center; color: var(--muted); max-width: 46em; }
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 28px; }
.tier { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--paper); text-align: center; display: flex; flex-direction: column; gap: 6px; }
.tier-free { border-color: var(--gold); box-shadow: 0 12px 30px rgba(201,162,39,.18); }
.tier h3 { font-size: 1.25rem; margin: 0; }
.tier-price { font-size: 2rem; font-weight: 800; color: var(--navy); margin: 2px 0; }
.tier-tasks { margin: 0; color: var(--ink); }
.tier-note { color: var(--muted); font-size: .9rem; flex: 1; }

/* Bar intro */
.bar-intro { max-width: none; background: linear-gradient(160deg, var(--navy), var(--navy-deep)); color: #e8eef9; text-align: center; }
.bar-intro h2 { color: #fff; }
.bar-intro p { max-width: 44em; margin: 0 auto 24px; color: #c6d3ea; }

/* Team */
.team-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 22px; }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; gap: 14px; }
.team-info { min-width: 0; flex: 1; }
.team-info .t-name { font-weight: 800; }
.team-info .t-role { color: var(--navy); font-weight: 600; font-size: .9rem; }
.team-info .t-meta { color: var(--muted); font-size: .84rem; }
.team-info .t-cost { font-weight: 700; margin-top: 4px; }
.demo-badge { background: var(--gold); color: #231a02; font-size: .68rem; font-weight: 800; border-radius: 6px; padding: 2px 6px; letter-spacing: .06em; vertical-align: 2px; }
.team-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 20px; }
.team-total-line { font-size: 1.05rem; margin: 0; }
.fineprint { color: var(--muted); font-size: .84rem; }
button.link-danger { background: none; border: none; color: #b03a2e; font: inherit; font-size: .82rem; cursor: pointer; padding: 0; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #c6d3ea; padding: 38px 20px 90px; }
.footer-inner { max-width: 1240px; margin: 0 auto; display: flex; justify-content: space-between; gap: 22px; flex-wrap: wrap; align-items: center; }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-name { font-family: "Fraunces", serif; letter-spacing: .22em; color: #fff; margin: 0; font-weight: 700; }
.footer-tag { margin: 2px 0 0; font-size: .9rem; }
.footer-links { display: flex; gap: 20px; align-items: center; }
.footer-links a { color: #c6d3ea; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.fb-slot { display: inline-flex; align-items: center; gap: 7px; color: #8fa3c8; }
.fb-ic { width: 20px; height: 20px; }
.fb-soon { font-size: .8rem; }
.footer-credit { text-align: center; margin: 26px 0 4px; font-size: .92rem; }
.footer-credit a { color: var(--gold-2); font-weight: 700; text-decoration: none; }
.footer-fine { text-align: center; font-size: .78rem; color: #7e90b5; margin: 0; }

/* Modals */
.modal { position: fixed; inset: 0; background: rgba(2,16,40,.62); display: flex; align-items: flex-start; justify-content: center; padding: 26px 14px; z-index: 100; overflow-y: auto; }
.modal-card { background: #fff; border-radius: 18px; padding: 26px; width: min(460px, 100%); position: relative; box-shadow: 0 30px 70px rgba(0,0,0,.4); }
.modal-wide { width: min(640px, 100%); }
.modal-x { position: absolute; top: 10px; inset-inline-end: 14px; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--muted); line-height: 1; }
.modal-card h3 { font-size: 1.35rem; }
.modal-card label { display: block; font-weight: 600; font-size: .9rem; margin: 12px 0; }
.modal-card input[type="text"], .modal-card input[type="email"], .modal-card input[type="password"], .modal-card select {
  display: block; width: 100%; margin-top: 5px; font: inherit; padding: 10px 12px;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
}
.form-error { color: #b03a2e; font-size: .88rem; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.auth-tab { font: inherit; font-weight: 700; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; }
.auth-tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.join-done { color: #1e7a46; font-weight: 600; }

/* Hire wizard */
.hw-progress { display: flex; gap: 5px; margin: 14px 0 18px; flex-wrap: wrap; }
.hw-dot { flex: 1; min-width: 52px; text-align: center; font-size: .68rem; font-weight: 700; letter-spacing: .04em; color: var(--muted); padding-top: 7px; border-top: 4px solid var(--line); text-transform: uppercase; }
.hw-dot.on { color: var(--navy); border-top-color: var(--gold); }
.hw-body { min-height: 300px; }
.hw-body h4 { margin: 0 0 12px; font-size: 1.05rem; }
.hw-role-list { max-height: 300px; overflow-y: auto; border: 1.5px solid var(--line); border-radius: 12px; }
.hw-role-group { padding: 8px 12px 2px; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hw-role { display: flex; justify-content: space-between; width: 100%; text-align: start; background: none; border: none; font: inherit; padding: 9px 12px; cursor: pointer; border-radius: 8px; }
.hw-role:hover { background: #f2efe4; }
.hw-role.sel { background: var(--navy); color: #fff; }
.hw-role .hw-role-price { font-weight: 800; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.choice { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; background: #fff; font: inherit; text-align: start; }
.choice.sel { border-color: var(--gold); background: #fffdf2; box-shadow: 0 0 0 2px var(--gold) inset; }
.choice .c-name { font-weight: 700; display: block; }
.choice .c-blurb { color: var(--muted); font-size: .82rem; }
.face-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.face-opt { border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 6px; background: #fff; cursor: pointer; display: flex; justify-content: center; }
.face-opt.sel { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold) inset; background: #fffdf2; }
.lang-rows { display: flex; flex-direction: column; gap: 8px; }
.lang-row { display: flex; gap: 8px; align-items: center; }
.lang-row select { flex: 1; margin-top: 0 !important; }
.lang-del { background: none; border: none; color: #b03a2e; font-size: 1.15rem; cursor: pointer; }
.toggle-row { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 14px; cursor: pointer; }
.toggle-row input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--gold); }
.review-box { border: 1.5px solid var(--line); border-radius: 12px; padding: 16px; background: var(--paper); }
.review-box .r-line { display: flex; justify-content: space-between; padding: 4px 0; font-size: .95rem; }
.review-box .r-line.total { border-top: 1.5px solid var(--line); margin-top: 8px; padding-top: 10px; font-weight: 800; }
.hw-foot { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.hw-total { margin-inline-start: auto; text-align: end; }
.hw-total span { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hw-total strong { font-size: 1.3rem; color: var(--navy); }
.listen-btn { font: inherit; font-size: .8rem; font-weight: 700; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 12px; cursor: pointer; margin-top: 6px; }

/* The Bar */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--navy-deep); color: #e8eef9; box-shadow: 0 -8px 30px rgba(0,0,0,.4); }
.bar-main { display: flex; align-items: center; gap: 10px; padding: 10px 14px; max-width: 1240px; margin: 0 auto; }
.bar-toggle { background: var(--navy-2); color: var(--gold-2); border: 1px solid #2c4a7d; border-radius: 10px; width: 34px; height: 38px; cursor: pointer; flex: 0 0 auto; }
.bar-active { display: flex; align-items: center; gap: 9px; min-width: 0; }
.bar-active .ba-name { font-weight: 700; color: #fff; font-size: .92rem; white-space: nowrap; }
.bar-active .ba-role { font-size: .74rem; color: #9db4dd; white-space: nowrap; }
.bar-chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px; scrollbar-width: none; }
.bar-chips::-webkit-scrollbar { display: none; }
.bar-chip { border: 2px solid transparent; border-radius: 50%; padding: 0; background: none; cursor: pointer; flex: 0 0 auto; opacity: .65; }
.bar-chip.on { border-color: var(--gold); opacity: 1; }
.bar-meter { font-size: .76rem; color: #9db4dd; white-space: nowrap; }
.bar-form { display: flex; gap: 8px; flex: 1; min-width: 120px; }
.bar-form input { flex: 1; font: inherit; border-radius: 999px; border: 1.5px solid #2c4a7d; background: #fff; padding: 9px 16px; min-width: 0; }
.bar-mic { background: var(--navy-2); border: 1px solid #2c4a7d; border-radius: 50%; width: 40px; height: 40px; cursor: pointer; flex: 0 0 auto; font-size: 1rem; }
.bar-mic.rec { background: #b03a2e; }
.bar-panel { border-top: 1px solid #2c4a7d; max-width: 1240px; margin: 0 auto; padding: 10px 14px 0; }
.bar-panel-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: #fff; font-size: .9rem; }
.speak-toggle { font-size: .8rem; color: #9db4dd; font-weight: 500; display: inline-flex; gap: 6px; align-items: center; }
.bar-msgs { max-height: 46vh; overflow-y: auto; padding: 12px 2px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 14px; font-size: .93rem; white-space: pre-wrap; }
.msg.user { align-self: flex-end; background: var(--gold); color: #231a02; border-bottom-right-radius: 4px; }
.msg.emp { align-self: flex-start; background: #12294f; color: #e8eef9; border-bottom-left-radius: 4px; }
.msg .msg-who { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 3px; }
.msg.user .msg-who { color: #6b5510; }

/* Toast */
.toast { position: fixed; bottom: 96px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 11px 22px; border-radius: 999px; font-weight: 600; z-index: 200; box-shadow: 0 14px 34px rgba(0,0,0,.35); max-width: 92vw; text-align: center; }

/* Responsive — four formats */
@media (max-width: 1080px) {
  .how-grid, .tiers { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; }
  .hero-team { order: -1; max-width: 520px; }
}
@media (max-width: 820px) {
  .featured-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  section { padding: 46px 16px; }
  .bar-active .ba-role { display: none; }
}
@media (max-width: 560px) {
  .how-grid, .tiers { grid-template-columns: 1fr; }
  .wordmark { font-size: .92rem; letter-spacing: .16em; }
  .header-actions .btn { padding: 7px 13px; font-size: .86rem; }
  .hero-stats { gap: 20px; }
  .bar-chips { display: none; }
  .bar-meter { display: none; }
  .face-grid { grid-template-columns: repeat(3, 1fr); }
  .topbar-tag { display: none; }
  .topbar { justify-content: flex-end; }
}
[dir="rtl"] .hero-inner { margin-inline-start: 0; }
