:root {
    color-scheme: light;
    --ink: #14213d;
    --muted: #5c6680;
    --paper: #f5f1e8;
    --card: #fffdf8;
    --line: #d9d3c7;
    --accent: #ff5c35;
    --accent-dark: #dc3f1b;
    --blue: #2d5bff;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, input { font: inherit; }
[hidden] { display: none !important; }

.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.nav { min-height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); font-size: 20px; font-weight: 850; letter-spacing: -0.04em; text-decoration: none; }
.brand span { color: var(--accent); }
.source-link { color: var(--ink); font-size: 14px; font-weight: 700; text-underline-offset: 5px; }

.hero { max-width: 790px; padding: 104px 0 96px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--blue); font-size: 12px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow span { width: 28px; height: 2px; background: currentColor; }
h1 { margin: 22px 0; max-width: 750px; font-size: clamp(52px, 8vw, 92px); line-height: .92; letter-spacing: -.065em; }
.lede { max-width: 650px; margin: 0 0 42px; color: var(--muted); font-size: clamp(18px, 2.2vw, 23px); line-height: 1.55; }

.role-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 650px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: 0 12px 35px rgba(20, 33, 61, .06); }
.role-card div:first-child { display: grid; gap: 4px; }
.label { color: var(--muted); font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.role-card strong { font-size: 20px; }
.role-card small { color: var(--muted); }
.audio-mark { display: flex; align-items: center; gap: 4px; height: 32px; }
.audio-mark i { display: block; width: 3px; border-radius: 4px; background: var(--accent); }
.audio-mark i:nth-child(1), .audio-mark i:nth-child(5) { height: 10px; }
.audio-mark i:nth-child(2), .audio-mark i:nth-child(4) { height: 22px; }
.audio-mark i:nth-child(3) { height: 32px; }

.name-field { display: grid; gap: 9px; max-width: 650px; margin-top: 28px; color: var(--ink); font-size: 14px; font-weight: 750; }
.name-field small { color: var(--muted); font-weight: 500; }
.name-field input { width: 100%; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); outline: none; }
.name-field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(45, 91, 255, .12); }
.start-button { display: flex; align-items: center; justify-content: space-between; width: min(100%, 650px); margin-top: 14px; padding: 19px 22px; border: 0; border-radius: 12px; background: var(--accent); color: white; font-weight: 850; cursor: pointer; box-shadow: 0 10px 22px rgba(255, 92, 53, .25); transition: transform .15s, background .15s; }
.start-button:hover { background: var(--accent-dark); transform: translateY(-1px); }
.start-button:focus-visible, .back-button:focus-visible { outline: 3px solid rgba(45, 91, 255, .4); outline-offset: 3px; }
.privacy { max-width: 650px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.notice { max-width: 650px; padding: 16px 18px; border: 1px solid #e2a821; border-radius: 12px; background: #fff8df; }

.interview { min-height: 720px; padding: 54px 0 110px; }
.back-button { margin-bottom: 72px; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 14px; font-weight: 750; cursor: pointer; }
.interview-heading { display: flex; justify-content: space-between; gap: 30px; }
.interview-heading h2 { margin: 16px 0 10px; font-size: clamp(38px, 5vw, 64px); letter-spacing: -.05em; }
.interview-heading p { max-width: 650px; color: var(--muted); font-size: 18px; line-height: 1.55; }
.live-pill { align-self: flex-start; padding: 9px 13px; border: 1px solid #97d7af; border-radius: 99px; background: #eaf9ef; color: #19713d; font-size: 12px; font-weight: 800; white-space: nowrap; }
.widget-card { min-height: 300px; margin-top: 36px; padding: 30px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); box-shadow: 0 18px 60px rgba(20, 33, 61, .08); }
.widget-card elevenlabs-convai { display: block; width: 100%; min-height: 240px; --el-accent: var(--accent); }

.architecture { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.architecture > div { padding: 44px 34px 60px 0; }
.architecture > div + div { padding-left: 34px; border-left: 1px solid var(--line); }
.section-number { color: var(--accent); font-size: 12px; font-weight: 850; }
.architecture h2 { margin: 28px 0 12px; font-size: 22px; letter-spacing: -.03em; }
.architecture p { margin: 0; color: var(--muted); line-height: 1.6; }

@media (max-width: 760px) {
    .shell { width: min(100% - 28px, 1180px); }
    .nav { min-height: 70px; }
    .hero { padding: 74px 0; }
    h1 { font-size: clamp(48px, 17vw, 72px); }
    .interview-heading { display: block; }
    .live-pill { display: inline-block; }
    .widget-card { padding: 14px; }
    .architecture { grid-template-columns: 1fr; }
    .architecture > div, .architecture > div + div { padding: 34px 0; border-left: 0; }
    .architecture > div + div { border-top: 1px solid var(--line); }
}


.provider-choice { max-width: 650px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 28px 0 0; padding: 0; border: 0; }
.provider-choice legend { margin-bottom: 12px; font-size: 14px; font-weight: 750; }
.provider-option { display: flex; align-items: flex-start; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; }
.provider-option:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(45, 91, 255, .12); }
.provider-option:focus-within { outline: 2px solid var(--blue); outline-offset: 3px; }
.provider-option input { margin-top: 4px; accent-color: var(--blue); }
.provider-option strong, .provider-option small { display: block; }
.provider-option small { margin-top: 6px; color: var(--muted); line-height: 1.5; }
.provider-option.unavailable { opacity: .6; cursor: default; }
button:disabled { cursor: wait; opacity: .6; transform: none; }
.video-room { display: block; width: 100%; height: min(75vh, 720px); min-height: 480px; border: 0; border-radius: 12px; background: #14213d; }
#roomLink { display: inline-block; margin-top: 20px; }
#startError, #callError { margin-top: 18px; }
@media (max-width: 560px) { .provider-choice { grid-template-columns: 1fr; } .video-room { min-height: 520px; } }
