* { box-sizing: border-box; margin: 0; }
body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: #1a2333;
    background: #f4f7fb;
    line-height: 1.55;
}

.hero {
    background: linear-gradient(135deg, #0f2a5f 0%, #1656b8 60%, #1c86d6 100%);
    color: #fff;
    text-align: center;
    padding: 56px 20px 64px;
}
.brand { font-weight: 700; font-size: 1.15rem; opacity: .9; margin-bottom: 28px; }
.hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); margin-bottom: 14px; }
.hero em { font-style: normal; color: #ffd75e; }
.hero .sub { max-width: 620px; margin: 0 auto; font-size: 1.08rem; opacity: .92; }
.nowrap { white-space: nowrap; }

main { max-width: 720px; margin: -32px auto 40px; padding: 0 16px; }

.card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(15, 42, 95, .10);
    padding: 26px 24px;
    margin-bottom: 28px;
}
.card h2 { margin-bottom: 12px; font-size: 1.3rem; }

.start form { display: flex; gap: 10px; flex-wrap: wrap; }
#codeInput {
    flex: 1 1 180px;
    font-size: 1.15rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 12px 14px;
    border: 2px solid #c9d6ea;
    border-radius: 10px;
    font-family: ui-monospace, Menlo, Consolas, monospace;
}
#codeInput:focus { outline: none; border-color: #1656b8; }
#startBtn {
    flex: 1 1 220px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    background: #17924a;
    border: none;
    border-radius: 10px;
    padding: 12px 18px;
    cursor: pointer;
}
#startBtn:hover { background: #127a3d; }
#startBtn:disabled { background: #9ab; cursor: wait; }
.error { color: #c0392b; font-weight: 600; margin-top: 10px; min-height: 1.2em; }
.tiny { color: #6b7a90; font-size: .85rem; margin-top: 10px; }

.lessonbar { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.live { color: #17924a; font-weight: 700; }
.timeleft { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.05rem; color: #33445c; }
.banner {
    background: #fff5d8;
    border: 1px solid #eccb66;
    color: #7a5c00;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 12px;
    font-weight: 600;
}
.captions {
    min-height: 180px;
    max-height: 46vh;
    overflow-y: auto;
    background: #f7fafd;
    border: 1px solid #e1e9f4;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 14px;
}
.captions p { margin-bottom: 8px; }
.cap-user { color: #0f2a5f; }
.cap-user::first-line { font-weight: inherit; }
.cap-assistant { color: #333f52; }
.cap-note { color: #7a5c00; font-weight: 600; }
.hangup {
    background: #c0392b;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 1rem;
    cursor: pointer;
}
.hangup:hover { background: #a53125; }
.download {
    background: #fff;
    color: #1656b8;
    border: 2px solid #1656b8;
    border-radius: 10px;
    padding: 9px 18px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-left: 8px;
}
.download:hover { background: #eef4fc; }
.buy {
    background: #17924a;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: .92rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.buy:hover { background: #127a3d; }
.buy:disabled { background: #9ab; cursor: wait; }
.bigcode {
    display: block;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: clamp(1.4rem, 6vw, 2.2rem);
    letter-spacing: .1em;
    background: #f0f7f2;
    border: 2px dashed #17924a;
    border-radius: 12px;
    padding: 18px 10px;
    text-align: center;
    margin: 16px 0;
    user-select: all;
}

.perks { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-bottom: 28px; }
.perk {
    background: #fff;
    border-radius: 14px;
    padding: 20px 18px;
    box-shadow: 0 4px 16px rgba(15, 42, 95, .07);
}
.perk h3 { font-size: 1.02rem; margin-bottom: 8px; }
.perk p { font-size: .93rem; color: #44526a; }

.pricing .sub2 { color: #44526a; margin-bottom: 14px; }
.pricing table { width: 100%; border-collapse: collapse; }
.pricing th, .pricing td { text-align: left; padding: 9px 8px; border-bottom: 1px solid #e7edf6; }
.pricing th { color: #6b7a90; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.tag {
    background: #e8f5ee;
    color: #17924a;
    font-size: .75rem;
    font-weight: 700;
    border-radius: 6px;
    padding: 2px 7px;
    margin-left: 6px;
    white-space: nowrap;
}

footer { text-align: center; color: #6b7a90; font-size: .9rem; padding: 24px 16px 40px; }
footer a { color: #1656b8; }
a { color: #1656b8; }
