:root {
  color-scheme: light;
  --coral: #ff9a8d;
  --coral-dark: #dc7165;
  --coral-soft: #ffe5df;
  --navy: #173b57;
  --navy-dark: #0d293f;
  --ink: #17252f;
  --muted: #65727a;
  --line: #dce2e3;
  --surface: #ffffff;
  --soft: #f4f7f6;
  --cream: #fff9f4;
  --success: #28785d;
  --danger: #a94343;
  --shadow: 0 18px 50px rgba(23, 59, 87, 0.11);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--soft); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--navy); letter-spacing: 0; }
p { color: var(--muted); line-height: 1.6; }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 780; font-size: 1.12rem; }
.brand-mark { width: 34px; height: 34px; flex: 0 0 34px; }
.brand-mark img { width: 100%; height: 100%; }
.brand-name { line-height: 1; }
.eyebrow { margin-bottom: 12px; color: var(--coral-dark); font-size: .76rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }

.button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 6px; padding: 9px 15px; cursor: pointer; font-weight: 720; transition: background-color .18s ease, color .18s ease, transform .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--navy); color: #fff; }
.button-primary:hover { background: var(--navy-dark); }
.button-light { background: #fff; color: var(--navy); }
.button-quiet { min-height: 32px; background: transparent; color: var(--muted); padding: 6px; }
.button-large { min-height: 48px; padding: 12px 20px; }
.icon-button { width: 40px; height: 40px; border: 0; background: transparent; color: var(--navy); cursor: pointer; }

/* Public website */
.site-body { background: var(--cream); }
.site-header { position: absolute; inset: 0 0 auto; z-index: 10; }
.site-nav { height: 82px; display: flex; align-items: center; justify-content: space-between; }
.site-links { display: flex; align-items: center; gap: 28px; color: var(--navy); font-size: .9rem; font-weight: 650; }
.site-links > a:not(.button):hover { color: var(--coral-dark); }
.menu-button { display: none; }
.hero-band { min-height: 760px; background: var(--cream); border-bottom: 1px solid #eadfd8; overflow: hidden; }
.hero { min-height: 760px; padding-top: 96px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(460px, .88fr); gap: 80px; align-items: center; }
.hero-copy { padding: 56px 0 72px; }
.hero h1 { margin: 0; font-size: clamp(4.5rem, 9vw, 7.6rem); line-height: .83; font-weight: 850; }
.hero-lede { margin: 25px 0 12px; color: var(--coral-dark); font-size: 1.8rem; font-weight: 720; line-height: 1.25; }
.hero-detail { max-width: 590px; font-size: 1.08rem; }
.hero-actions { margin-top: 30px; display: flex; align-items: center; gap: 24px; }
.text-link { color: var(--navy); font-weight: 720; }
.text-link span { margin-left: 6px; color: var(--coral-dark); }
.trust-line { margin-top: 58px; padding-top: 20px; display: flex; gap: 24px; border-top: 1px solid #eadfd8; color: var(--muted); font-size: .78rem; }
.trust-line span { display: flex; align-items: center; gap: 8px; }
.trust-line span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--coral); }

.call-scene { position: relative; padding: 22px; background: var(--navy); color: #fff; border: 1px solid #2c526e; border-radius: 8px; box-shadow: 24px 28px 0 var(--coral-soft), var(--shadow); }
.call-scene::before { content: "LIVE CALL"; position: absolute; top: -32px; right: 0; color: var(--navy); font-size: .67rem; font-weight: 800; letter-spacing: .12em; }
.call-scene-top { display: flex; align-items: center; gap: 8px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.13); color: #cedce5; font-size: .78rem; }
.call-scene-top time { margin-left: auto; font-variant-numeric: tabular-nums; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #62d9a3; box-shadow: 0 0 0 4px rgba(98,217,163,.12); }
.caller-row { padding: 26px 0; display: flex; align-items: center; gap: 13px; }
.caller-row > span:nth-child(2) { display: grid; gap: 3px; }
.caller-row small { color: #a9bdca; }
.caller-avatar { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--coral); color: var(--navy-dark); font-weight: 800; }
.signal-bars { margin-left: auto; height: 25px; display: flex; align-items: end; gap: 3px; }
.signal-bars i { width: 3px; background: var(--coral); }
.signal-bars i:nth-child(1) { height: 8px; }.signal-bars i:nth-child(2) { height: 14px; }.signal-bars i:nth-child(3) { height: 20px; }.signal-bars i:nth-child(4) { height: 25px; }
.conversation { display: grid; gap: 10px; }
.conversation p { margin: 0; padding: 12px 14px; background: rgba(255,255,255,.07); color: #eef4f7; border-radius: 5px; font-size: .83rem; }
.conversation span { display: block; margin-bottom: 3px; color: var(--coral); font-size: .67rem; font-weight: 800; text-transform: uppercase; }
.route-result { margin-top: 18px; padding: 14px; display: flex; align-items: center; gap: 12px; background: #fff; color: var(--navy); border-radius: 5px; }
.route-result > span:nth-child(2) { display: grid; gap: 2px; }
.route-result small { color: var(--muted); }
.route-icon { width: 32px; height: 32px; display: grid; place-items: center; background: var(--coral-soft); border-radius: 50%; font-size: 1.3rem; }
.route-state { margin-left: auto; color: var(--success); font-size: .73rem; font-weight: 780; text-transform: uppercase; }
.waveform { height: 64px; margin-top: 17px; display: flex; align-items: center; justify-content: center; gap: 5px; border-top: 1px solid rgba(255,255,255,.13); }
.waveform i { width: 3px; max-height: 42px; background: var(--coral); border-radius: 2px; opacity: .82; animation: wave 1.7s ease-in-out infinite alternate; }
.waveform i:nth-child(3n) { animation-delay: -.8s; }.waveform i:nth-child(4n) { animation-delay: -.35s; }
@keyframes wave { to { transform: scaleY(.42); opacity: .45; } }

.section-band { padding: 105px 0; background: #fff; }
.section-band:nth-of-type(even) { background: var(--soft); }
.section-intro { max-width: 570px; margin-bottom: 52px; }
.section-intro h2, .fit-layout h2, .cta-layout h2 { margin-bottom: 14px; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.07; }
.section-intro > p:last-child { font-size: 1.05rem; }
.capability-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.capability-grid article { min-height: 270px; padding: 27px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.capability-grid h3 { margin-top: 52px; font-size: 1.15rem; }
.feature-number { color: var(--coral-dark); font-size: .73rem; font-weight: 800; }
.workflow-band { background: var(--navy) !important; }
.workflow-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; }
.workflow-band h2, .workflow-band h3 { color: #fff; }
.workflow-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.18); }
.workflow-list li { padding: 23px 0; display: grid; grid-template-columns: 50px 1fr; border-bottom: 1px solid rgba(255,255,255,.18); }
.workflow-list li > span { color: var(--coral); font-size: .75rem; font-weight: 800; }
.workflow-list h3 { margin: 0 0 5px; font-size: 1.05rem; }
.workflow-list p { margin: 0; color: #aebfca; }
.fit-band { background: var(--cream) !important; }
.fit-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; align-items: start; }
.fit-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #decfc7; }
.fit-list span { padding: 18px 4px; border-bottom: 1px solid #decfc7; color: var(--navy); font-weight: 700; }
.fit-list span:nth-child(odd) { margin-right: 28px; }
.cta-band { padding: 82px 0; background: var(--coral); }
.cta-layout { display: flex; align-items: end; justify-content: space-between; gap: 50px; }
.cta-layout .eyebrow { color: var(--navy); }.cta-layout h2 { max-width: 700px; margin: 0; }
.site-footer { padding: 34px 0; background: var(--navy-dark); }
.footer-layout { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.site-footer .brand, .site-footer a { color: #fff; }.site-footer p { margin: 0; color: #aebfca; font-size: .85rem; }

/* Portal */
.topbar { height: 64px; padding: 0 24px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.topbar nav { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: .88rem; }
.topbar nav > a:hover { color: var(--navy); }
.topbar form { margin: 0; }
.page { max-width: 1080px; margin: 0 auto; padding: 38px 28px; }
.page-heading, .section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 25px; }
.page-heading h1, .section-heading h1 { margin: 0 0 5px; font-size: 1.6rem; }
.page-heading p, .section-heading p { margin: 0; }
.workspace { display: grid; grid-template-columns: 238px minmax(0,1fr); min-height: calc(100vh - 64px); }
.sidebar { background: var(--navy-dark); color: #e9f0f4; padding: 25px 14px; }
.sidebar-title { display: flex; flex-direction: column; padding: 0 10px 22px; }
.sidebar-title strong { font-size: .98rem; }.sidebar-title small { margin-top: 4px; color: #91a9b8; }
.sidebar nav { display: grid; gap: 3px; }
.sidebar .nav-group { padding: 14px 10px 4px; color: #7895a7; font-size: .68rem; font-weight: 760; text-transform: uppercase; }
.sidebar nav a { padding: 9px 10px; border-radius: 5px; color: #bdccd5; font-size: .88rem; }
.sidebar nav a:hover, .sidebar nav a.active { background: #234962; color: #fff; }
.sidebar nav a.active { box-shadow: inset 3px 0 var(--coral); }
.workspace-content { min-width: 0; padding: 36px; }
.section-panel { max-width: 1120px; margin: 0 auto; }
.editor-band { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.editor-band h2 { margin-bottom: 17px; font-size: 1rem; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 18px; }
.form-grid label { display: grid; gap: 6px; color: #3d4c55; font-size: .87rem; font-weight: 620; }
.form-grid .full, .form-actions { grid-column: 1/-1; }
input, select, textarea { width: 100%; border: 1px solid #c7d0d3; border-radius: 5px; background: #fff; color: var(--ink); padding: 9px 10px; outline: none; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(23,59,87,.11); }
.table-wrap { overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
table { width: 100%; border-collapse: collapse; min-width: 650px; }
th, td { text-align: left; padding: 11px 13px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); background: #f8faf9; font-size: .72rem; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
.record-list { border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.record-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.record-row:last-child { border-bottom: 0; }.record-row span:first-child { display: grid; gap: 3px; }.record-row small { color: var(--muted); }
.record-link:hover { background: #f8faf9; }.empty { padding: 18px; }.notice { color: var(--success); font-weight: 700; }
.alert { margin: 14px 0; padding: 10px; border: 1px solid #e2bcbc; border-radius: 5px; background: #fff1f1; color: var(--danger); }
.auth-layout { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--cream); }
.auth-layout::before { content: ""; position: fixed; inset: 0 50% 0 0; background: var(--navy); }
.auth-panel { position: relative; width: min(100%, 420px); margin-left: 38%; padding: 34px; background: #fff; border: 1px solid var(--line); border-radius: 7px; box-shadow: var(--shadow); }
.auth-panel .auth-brand { margin-bottom: 35px; }.auth-panel h1 { margin: 0 0 8px; font-size: 1.65rem; }.auth-intro { margin-bottom: 25px; }
.auth-panel form { display: grid; gap: 16px; }.auth-panel label { display: grid; gap: 7px; color: #3d4c55; font-size: .87rem; font-weight: 620; }.auth-panel .button { margin-top: 5px; }
.form-grid fieldset { margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 6px; }.form-grid legend { padding: 0 6px; color: #404841; font-size: .9rem; }
.checkbox-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 18px; }.checkbox-grid label { display: flex; align-items: center; gap: 8px; }.checkbox-grid input[type=checkbox] { width: auto; margin: 0; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr 390px; gap: 35px; }.hero h1 { font-size: 4.5rem; }.trust-line { flex-wrap: wrap; }
  .capability-grid { grid-template-columns: repeat(2,1fr); }.workflow-layout, .fit-layout { gap: 50px; }
}

@media (max-width: 720px) {
  .shell { width: min(100% - 32px, 1180px); }.site-nav { height: 70px; }.menu-button { display: grid; place-items: center; }.menu-icon, .menu-icon::before, .menu-icon::after { width: 20px; height: 2px; display: block; background: var(--navy); content: ""; }.menu-icon { position: relative; }.menu-icon::before { position: absolute; top: -6px; }.menu-icon::after { position: absolute; top: 6px; }
  .site-links { position: absolute; top: 62px; left: 16px; right: 16px; display: none; align-items: stretch; gap: 0; padding: 10px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }.site-links.is-open { display: grid; }.site-links > a { padding: 12px; }.site-links .button { margin-top: 5px; }
  .hero-band, .hero { min-height: 0; }.hero { padding: 115px 0 72px; display: block; }.hero-copy { padding: 0; }.hero h1 { font-size: 4rem; }.hero-lede { font-size: 1.45rem; }.hero-actions { align-items: flex-start; flex-direction: column; }.trust-line { margin: 38px 0 65px; display: grid; gap: 9px; }.call-scene { margin-right: 12px; box-shadow: 12px 14px 0 var(--coral-soft), var(--shadow); }
  .section-band { padding: 72px 0; }.section-intro { margin-bottom: 34px; }.capability-grid { grid-template-columns: 1fr; }.capability-grid article { min-height: 215px; }.capability-grid h3 { margin-top: 35px; }
  .workflow-layout, .fit-layout { display: block; }.workflow-layout .section-intro, .fit-layout > div:first-child { margin-bottom: 40px; }.fit-list { grid-template-columns: 1fr; }.fit-list span:nth-child(odd) { margin-right: 0; }
  .cta-layout, .footer-layout { align-items: flex-start; flex-direction: column; }.site-footer p { order: 3; }
  .topbar { padding: 0 14px; }.topbar nav > a, .topbar nav > span { display: none; }.workspace { display: block; }.sidebar { padding: 12px 10px; }.sidebar-title { padding-bottom: 10px; }.sidebar nav { display: flex; overflow: auto; }.sidebar nav a { white-space: nowrap; }.workspace-content, .page { padding: 24px 16px; }.form-grid { grid-template-columns: 1fr; }.section-heading { display: block; }.notice { display: block; margin-top: 8px; }.checkbox-grid { grid-template-columns: 1fr; }
  .auth-layout::before { inset: 0 0 62% 0; }.auth-panel { margin: 50px 0 0; padding: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }.waveform i { animation: none; }.button { transition: none; }
}
