:root {
  color-scheme: light;
  --ink: #181816;
  --ink-soft: #2b2b27;
  --muted: #6f6d65;
  --line: #e5e0d4;
  --paper: #f5f2e9;
  --surface: #fffdf8;
  --accent: #f05a32;
  --accent-dark: #d94720;
  --accent-soft: #fff0e9;
  --green: #277c53;
  --green-soft: #e4f4eb;
  --shadow: 0 24px 70px rgba(48, 39, 26, .11);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100%; margin: 0; overflow-x: clip; color: var(--ink); background: var(--paper); }
button, input, textarea { font: inherit; }
button { border: 0; cursor: pointer; }
button:focus-visible, a:focus-visible, textarea:focus-visible, input:focus-visible { outline: 3px solid rgba(240, 90, 50, .28); outline-offset: 3px; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.hidden { display: none !important; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }

/* Shell and header */
.portal-shell { width: min(1180px, 100%); min-height: 100vh; margin: 0 auto; padding: 0 28px 154px; }
.portal-header { display: flex; align-items: center; justify-content: space-between; min-height: 92px; border-bottom: 1px solid rgba(24, 24, 22, .08); }
.portal-brand { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; }
.portal-brand-mark { display: grid; place-items: center; width: 46px; height: 46px; color: white; background: var(--ink); border-radius: 14px; }
.portal-brand-mark svg { width: 23px; height: 23px; stroke: white; }
.portal-brand strong { display: block; font-size: 16px; font-weight: 900; letter-spacing: -.02em; }
.portal-brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.header-cta { display: inline-flex; gap: 13px; align-items: center; padding: 12px 17px; color: var(--ink); background: transparent; border: 1px solid rgba(24, 24, 22, .14); border-radius: 999px; font-size: 12px; font-weight: 850; transition: .2s ease; }
.header-cta:hover { color: white; background: var(--ink); border-color: var(--ink); transform: translateY(-1px); }
.header-cta span { font-size: 16px; line-height: 1; }

/* Hero */
.portal-hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(380px, .88fr); gap: clamp(48px, 7vw, 92px); align-items: center; min-height: 640px; padding: 72px 0 78px; }
.hero-copy h1 { max-width: 700px; margin: 0; font-size: clamp(44px, 5.15vw, 68px); line-height: .98; font-weight: 950; letter-spacing: -.065em; }
.hero-copy h1 em { color: var(--accent); font-style: normal; }
.portal-subtitle { max-width: 650px; margin: 26px 0 0; color: var(--muted); font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.primary-cta, .secondary-cta, .light-cta { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 52px; padding: 0 21px; border-radius: 13px; font-size: 13px; font-weight: 900; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.primary-cta { color: white; background: var(--accent); box-shadow: 0 14px 30px rgba(240, 90, 50, .22); }
.primary-cta:hover { background: var(--accent-dark); box-shadow: 0 17px 35px rgba(240, 90, 50, .3); transform: translateY(-2px); }
.primary-cta span, .light-cta span { font-size: 18px; line-height: 1; }
.secondary-cta { color: var(--ink); background: rgba(255, 255, 255, .6); border: 1px solid var(--line); }
.secondary-cta:hover { background: white; border-color: #ccc5b6; transform: translateY(-2px); }
.secondary-cta svg { width: 18px; height: 18px; }
.hero-note { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; color: #89877f; font-size: 11px; font-weight: 650; }
.hero-note > span { width: 7px; height: 7px; background: #39a96b; border-radius: 50%; box-shadow: 0 0 0 4px rgba(57, 169, 107, .12); }

.hero-chat-card { overflow: hidden; background: var(--surface); border: 1px solid rgba(24, 24, 22, .1); border-radius: 25px; box-shadow: var(--shadow); transform: rotate(1deg); }
.chat-card-head { display: flex; align-items: center; gap: 11px; padding: 18px 19px; border-bottom: 1px solid var(--line); background: white; }
.assistant-avatar { display: grid; place-items: center; width: 42px; height: 42px; color: white; background: var(--ink); border-radius: 13px; }
.assistant-avatar svg { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.chat-card-head > span:nth-child(2) { min-width: 0; flex: 1; }
.chat-card-head strong { display: block; font-size: 13px; }
.chat-card-head small { display: flex; align-items: center; gap: 6px; margin-top: 3px; color: var(--muted); font-size: 10px; }
.chat-card-head small i { width: 7px; height: 7px; background: #36a766; border-radius: 50%; }
.chat-card-badge { padding: 5px 7px; color: var(--accent-dark); background: var(--accent-soft); border-radius: 7px; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.chat-card-body { padding: 22px; background: linear-gradient(145deg, #fffdf8, #f7f2e8); }
.preview-message { max-width: 92%; padding: 15px 17px; color: #3d3b35; background: white; border: 1px solid var(--line); border-radius: 4px 17px 17px 17px; box-shadow: 0 8px 25px rgba(48, 39, 26, .05); font-size: 13px; line-height: 1.6; }
.preview-options { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 17px; }
.preview-options button { padding: 9px 12px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 999px; font-size: 10px; font-weight: 800; transition: .2s ease; }
.preview-options button:hover { color: var(--accent-dark); border-color: var(--accent); }
.preview-input { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; margin-top: 22px; padding: 0 9px 0 15px; color: #85827a; background: white; border: 1px solid var(--line); border-radius: 13px; text-align: left; font-size: 11px; }
.preview-input span { display: grid; place-items: center; width: 32px; height: 32px; color: white; background: var(--accent); border-radius: 9px; font-size: 16px; }

/* Value strip */
.value-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(24, 24, 22, .1); border-bottom: 1px solid rgba(24, 24, 22, .1); }
.value-strip div { padding: 25px 22px; border-right: 1px solid rgba(24, 24, 22, .1); }
.value-strip div:first-child { padding-left: 0; }
.value-strip div:last-child { border-right: 0; }
.value-strip strong { display: block; margin-bottom: 4px; font-size: 18px; font-weight: 900; letter-spacing: -.035em; }
.value-strip span { color: var(--muted); font-size: 10px; }

/* Shared content sections */
.content-section { padding: 112px 0; }
.section-heading { max-width: 720px; margin-bottom: 45px; }
.section-heading h2, .process-copy h2, .final-cta-section h2 { margin: 0; font-size: clamp(34px, 4vw, 50px); line-height: 1.08; font-weight: 930; letter-spacing: -.05em; }
.section-heading > p:last-child, .process-copy > p, .process-card > p, .final-cta-section > div > p:last-child { margin: 18px 0 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.solution-grid article { display: flex; min-height: 294px; flex-direction: column; padding: 27px; background: rgba(255, 253, 248, .72); border: 1px solid var(--line); border-radius: 18px; transition: .25s ease; }
.solution-grid article:hover { background: white; border-color: #d9d1c2; box-shadow: 0 18px 45px rgba(48, 39, 26, .08); transform: translateY(-4px); }
.solution-icon { display: grid; place-items: center; width: 44px; height: 44px; color: var(--accent); background: var(--accent-soft); border-radius: 12px; }
.solution-icon svg { width: 21px; height: 21px; }
.solution-grid h3 { margin: 21px 0 10px; font-size: 17px; font-weight: 900; letter-spacing: -.02em; }
.solution-grid p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.solution-grid button { display: flex; gap: 8px; align-items: center; align-self: flex-start; margin-top: auto; padding: 20px 0 0; color: var(--ink); background: transparent; font-size: 11px; font-weight: 900; }
.solution-grid button:hover { color: var(--accent-dark); }
.solution-grid button span { font-size: 15px; }

/* Process */
.process-section { display: grid; grid-template-columns: 1.18fr .82fr; gap: clamp(40px, 8vw, 100px); align-items: center; padding-right: clamp(30px, 5vw, 66px); padding-left: clamp(30px, 5vw, 66px); color: white; background: var(--ink); border-radius: 30px; }
.process-copy .eyebrow, .process-card .eyebrow { color: #ff8b6a; }
.process-copy > p { color: rgba(255, 255, 255, .6); }
.process-copy ul { display: grid; gap: 0; margin: 31px 0 0; padding: 0; list-style: none; }
.process-copy li { display: flex; gap: 17px; align-items: center; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.process-copy li > span { color: #ff8b6a; font-size: 10px; font-weight: 900; }
.process-copy li strong { display: block; font-size: 13px; }
.process-copy li small { display: block; margin-top: 4px; color: rgba(255, 255, 255, .53); font-size: 11px; line-height: 1.5; }
.process-card { padding: 31px; color: var(--ink); background: var(--surface); border-radius: 20px; box-shadow: 0 25px 60px rgba(0, 0, 0, .24); }
.process-card h3 { margin: 0; font-size: 27px; line-height: 1.12; letter-spacing: -.04em; }
.process-card .primary-cta { width: 100%; margin-top: 23px; }
.process-reassurance { margin-top: 14px; color: var(--muted); text-align: center; font-size: 10px; }
.process-reassurance span { color: var(--green); font-weight: 900; }

/* Channels and final CTA */
.channels-section { padding-bottom: 92px; }
.section-heading.compact { max-width: 620px; }
.channel-list { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(24, 24, 22, .14); }
.channel-list > div { padding: 24px 22px 10px 0; }
.channel-list span { color: var(--accent); font-size: 10px; font-weight: 900; }
.channel-list strong { display: block; margin-top: 26px; font-size: 15px; }
.channel-list p { margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.final-cta-section { display: flex; align-items: center; justify-content: space-between; gap: 45px; padding: 52px 58px; color: white; background: var(--accent); border-radius: 25px; }
.final-cta-section > div { max-width: 710px; }
.final-cta-section .eyebrow { color: rgba(255, 255, 255, .68); }
.final-cta-section h2 { font-size: clamp(30px, 3.4vw, 44px); }
.final-cta-section > div > p:last-child { color: rgba(255, 255, 255, .78); }
.light-cta { flex: 0 0 auto; color: var(--ink); background: white; box-shadow: 0 15px 30px rgba(126, 42, 18, .18); }
.light-cta:hover { background: var(--ink); color: white; transform: translateY(-2px); }

/* Chat */
.portal-chat { max-width: 780px; margin: 0 auto; padding: 32px 0 20px; }
.portal-messages { display: grid; gap: 14px; }
.portal-suggestions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 780px; margin: 0 auto; padding: 0 0 20px; }
.portal-suggestions button { padding: 10px 16px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 99px; font-size: 12px; font-weight: 800; }
.portal-suggestions button:hover { color: var(--accent-dark); border-color: var(--accent); }
.message { display: flex; gap: 10px; align-items: flex-end; max-width: 90%; }
.message.user { margin-left: auto; flex-direction: row-reverse; }
.message.assistant { margin-right: auto; }
.message-avatar { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; color: white; background: var(--ink); border-radius: 10px; font-size: 10px; font-weight: 900; }
.message.user .message-avatar { background: var(--accent); }
.message-body { padding: 13px 15px; border-radius: 16px; font-size: 13px; line-height: 1.55; }
.message.assistant .message-body { background: white; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.message.user .message-body { color: white; background: var(--accent); border-bottom-right-radius: 4px; }
.message-body p { margin: 0; }
.message-body p + p { margin-top: 8px; }
.message-body strong { font-weight: 800; }
.typing { display: flex; gap: 4px; padding: 14px 16px; }
.typing i { width: 6px; height: 6px; background: var(--muted); border-radius: 99px; animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 0%, 80%, 100% { transform: scale(.6); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }

/* Redirect and lead cards */
.portal-redirect-card { max-width: 780px; margin: 12px auto 20px; padding: 24px; background: white; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); text-align: center; }
.redirect-icon { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 14px; color: var(--green); background: var(--green-soft); border-radius: 14px; }
.redirect-icon svg { width: 24px; height: 24px; }
.portal-redirect-card h2 { margin: 6px 0 8px; font-size: 20px; font-weight: 900; }
.portal-redirect-card p { margin: 0; color: var(--muted); font-size: 13px; }
.redirect-button { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 12px 24px; color: white; background: var(--accent); border-radius: 12px; box-shadow: 0 10px 25px rgba(239, 90, 47, .2); font-size: 13px; font-weight: 900; text-decoration: none; }
.redirect-button:hover { background: var(--accent-dark); }
.portal-lead-form { max-width: 780px; margin: 12px auto 20px; padding: 24px; background: white; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.lead-form-body h2 { margin: 6px 0 8px; font-size: 20px; font-weight: 900; }
.lead-form-body > p { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.lead-form-body label { display: block; margin-bottom: 12px; }
.lead-form-body label span { display: block; margin-bottom: 5px; font-size: 11px; font-weight: 800; }
.lead-form-body label span em { color: var(--accent); font-style: normal; }
.lead-form-body input, .lead-form-body textarea { width: 100%; padding: 10px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; font-size: 13px; outline: 0; }
.lead-form-body input:focus, .lead-form-body textarea:focus { border-color: var(--accent); }
.lead-form-body textarea { min-height: 80px; resize: vertical; }
.primary-button { width: 100%; min-height: 49px; margin-top: 8px; color: white; background: var(--accent); border-radius: 12px; box-shadow: 0 10px 25px rgba(239, 90, 47, .2); font-size: 13px; font-weight: 900; }
.primary-button:hover { background: var(--accent-dark); }
.primary-button:disabled { cursor: not-allowed; opacity: .45; box-shadow: none; }
.lead-success { padding: 20px 0; text-align: center; }
.lead-success svg { width: 40px; height: 40px; margin-bottom: 10px; color: var(--green); stroke: var(--green); }
.lead-success strong { display: block; font-size: 16px; }
.lead-success p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }

/* Fixed chat composer */
.portal-composer { position: fixed; right: 0; bottom: 0; left: 0; z-index: 30; padding: 14px 20px 22px; background: linear-gradient(to top, rgba(245, 242, 233, 1) 58%, rgba(245, 242, 233, .82)); border-top: 1px solid rgba(224, 218, 204, .75); backdrop-filter: blur(16px); }
.portal-composer .composer { display: flex; gap: 8px; align-items: flex-end; max-width: 780px; margin: 0 auto; padding: 7px 8px; background: white; border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 12px 40px rgba(48, 39, 26, .09); }
.portal-composer textarea { flex: 1; min-height: 44px; max-height: 140px; overflow-y: hidden; padding: 11px 6px; background: transparent; border: 0; outline: 0; font-size: 13px; line-height: 1.45; resize: none; }
.mic-button, .send-button { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; color: var(--ink); background: var(--paper); border-radius: 12px; }
.mic-button:hover { color: var(--accent); }
.mic-button.listening { color: white; background: var(--accent); animation: pulse 1.5s infinite; }
.mic-button:disabled, .live-voice-button:disabled, .js-start-voice:disabled { cursor: not-allowed; opacity: .45; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .6; } }
.send-button { color: white; background: var(--accent); }
.send-button:hover { background: var(--accent-dark); }
.send-button svg { width: 18px; height: 18px; }
.voice-actions { max-width: 780px; margin: 9px auto 0; text-align: center; }
.live-voice-button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; color: var(--ink); background: rgba(255, 255, 255, .72); border: 1px solid var(--line); border-radius: 99px; font-size: 11px; font-weight: 800; }
.live-voice-button:hover { color: var(--accent-dark); border-color: var(--accent); }
.live-voice-button svg { width: 15px; height: 15px; }

/* Voice overlay */
.voice-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(23, 23, 20, .9); backdrop-filter: blur(10px); }
.voice-main { padding: 40px; color: white; text-align: center; }
#voice-close { position: fixed; top: 20px; right: 20px; width: 44px; height: 44px; color: rgba(255, 255, 255, .6); background: transparent; border-radius: 99px; font-size: 24px; }
#voice-close:hover { color: white; }
.voice-orb { position: relative; width: 120px; height: 120px; margin: 0 auto 28px; background: radial-gradient(circle, rgba(239, 90, 47, .25), rgba(239, 90, 47, 0) 70%); border-radius: 99px; }
.voice-orb span { position: absolute; inset: 20px; background: var(--accent); border-radius: 99px; }
.voice-orb i { position: absolute; inset: -10px; border: 1px solid rgba(239, 90, 47, .35); border-radius: 99px; animation: orbPulse 2.4s infinite; }
.voice-orb i:last-child { animation-delay: 1.2s; }
@keyframes orbPulse { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.voice-main .eyebrow { color: #ff8b68; }
.voice-main h2 { margin: 8px 0 6px; font-size: 22px; font-weight: 900; }
.voice-main > p { margin: 0; color: rgba(255, 255, 255, .65); font-size: 14px; }
.voice-levels { display: flex; gap: 5px; justify-content: center; margin-top: 28px; }
.voice-levels i { width: 4px; height: 18px; background: rgba(255, 255, 255, .25); border-radius: 99px; transition: height .08s; }

@media (max-width: 920px) {
  .portal-hero { grid-template-columns: 1fr; gap: 45px; min-height: auto; padding: 64px 0; }
  .hero-copy { max-width: 750px; }
  .hero-chat-card { width: min(520px, 100%); transform: none; }
  .solution-grid { grid-template-columns: repeat(2, 1fr); }
  .process-section { grid-template-columns: 1fr; }
  .process-card { max-width: 520px; }
  .channel-list { grid-template-columns: repeat(2, 1fr); }
  .final-cta-section { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
  .portal-shell { padding: 0 16px 150px; }
  .portal-header { min-height: 76px; }
  .portal-brand-mark { width: 40px; height: 40px; border-radius: 12px; }
  .portal-brand small { display: none; }
  .header-cta { padding: 10px 12px; font-size: 10px; }
  .header-cta span { display: none; }
  .portal-hero { padding: 48px 0 56px; }
  .hero-copy h1 { font-size: clamp(39px, 12vw, 54px); }
  .portal-subtitle { margin-top: 22px; font-size: 15px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .primary-cta, .secondary-cta { width: 100%; }
  .hero-note { align-items: flex-start; line-height: 1.5; }
  .hero-note > span { margin-top: 4px; flex: 0 0 7px; }
  .chat-card-body { padding: 17px; }
  .value-strip { grid-template-columns: repeat(2, 1fr); }
  .value-strip div { padding: 20px 14px; border-bottom: 1px solid rgba(24, 24, 22, .1); }
  .value-strip div:first-child { padding-left: 14px; }
  .value-strip div:nth-child(2) { border-right: 0; }
  .value-strip div:nth-child(n+3) { border-bottom: 0; }
  .content-section { padding: 78px 0; }
  .section-heading h2, .process-copy h2 { font-size: 34px; }
  .solution-grid { grid-template-columns: 1fr; }
  .solution-grid article { min-height: 260px; }
  .process-section { margin-right: -4px; margin-left: -4px; padding: 65px 22px; border-radius: 23px; }
  .process-card { padding: 24px; }
  .channel-list { grid-template-columns: 1fr; }
  .channel-list > div { padding: 22px 0; border-bottom: 1px solid rgba(24, 24, 22, .1); }
  .channel-list strong { margin-top: 12px; }
  .final-cta-section { padding: 38px 26px; }
  .light-cta { width: 100%; }
  .portal-composer { padding: 10px 10px 17px; }
  .portal-composer textarea { font-size: 12px; }
  .portal-chat { padding-top: 24px; }
  .message { max-width: 96%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
