/* TalkEng — mobile-only styles. Desktop viewports just get a centered phone-width column. */
:root {
    --navy: #0d2b4e;
    --navy-dark: #081b33;
    --teal: #14a3a3;
    --teal-light: #e6f7f7;
    --bg: #f6f9fb;
    --card: #ffffff;
    --text: #16283b;
    --text-muted: #5b7186;
    --danger: #d64545;
    --gold: #e0a800;
    --radius: 16px;
    --shadow: 0 4px 20px rgba(13, 43, 78, 0.08);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-tap-highlight-color: transparent;
}

.shell {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    position: relative;
}

.topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: var(--navy);
    color: #fff;
}
.topbar img { height: 32px; }
.topbar .brand { font-weight: 700; font-size: 18px; letter-spacing: 0.3px; }
.topbar .spacer { flex: 1; }

.content { flex: 1; padding: 20px; padding-bottom: 100px; }

h1 { font-size: 26px; margin: 8px 0; }
h2 { font-size: 19px; margin: 24px 0 10px; }
p.lead { color: var(--text-muted); font-size: 15px; line-height: 1.5; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 15px 20px;
    border-radius: 12px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:active { background: #0d8484; }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-google { background: #fff; color: #16283b; border: 1.5px solid #d8e0e6; }
.btn-google img { height: 18px; }

.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
    margin-bottom: 16px;
}

.badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--teal-light);
    color: var(--teal);
}

.plan-card { position: relative; border: 2px solid transparent; }
.plan-card.recommended { border-color: var(--teal); }
.plan-card .ribbon {
    position: absolute; top: -10px; right: 16px;
    background: var(--gold); color: #fff; font-size: 11px; font-weight: 700;
    padding: 3px 10px; border-radius: 999px;
}
.plan-name { font-size: 20px; font-weight: 700; margin: 0 0 4px; }
.plan-minutes { color: var(--text-muted); font-size: 14px; margin-bottom: 12px; }
.cycle-toggle { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.cycle-pill {
    flex: 1; min-width: 70px; text-align: center; padding: 8px 4px; border-radius: 10px;
    border: 1px solid #d8e0e6; font-size: 12px; font-weight: 600; color: var(--text-muted); cursor: pointer;
}
.cycle-pill.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.plan-price { font-size: 24px; font-weight: 800; color: var(--navy); }
.plan-price small { font-size: 13px; font-weight: 500; color: var(--text-muted); }

.record-wrap { display: flex; flex-direction: column; align-items: center; margin: 30px 0; }
.mic-btn {
    width: 96px; height: 96px; border-radius: 50%; border: none;
    background: var(--teal); color: #fff; font-size: 34px;
    box-shadow: 0 6px 24px rgba(20,163,163,0.4);
    display: flex; align-items: center; justify-content: center;
}
.mic-btn.recording { background: var(--danger); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%{ box-shadow: 0 0 0 0 rgba(214,69,69,.5);} 70%{ box-shadow: 0 0 0 22px rgba(214,69,69,0);} 100%{ box-shadow: 0 0 0 0 rgba(214,69,69,0);} }
.timer { margin-top: 12px; font-size: 15px; color: var(--text-muted); font-variant-numeric: tabular-nums; }

.usage-ring-label { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 6px; }

.score-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.score-tile { background: var(--teal-light); border-radius: 12px; padding: 12px; text-align: center; }
.score-tile .num { font-size: 22px; font-weight: 800; color: var(--navy); }
.score-tile .lbl { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .4px; }
.band-pill {
    display: inline-block; margin-top: 10px; background: var(--navy); color: #fff;
    padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 14px;
}

.tabbar {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 480px; background: #fff; border-top: 1px solid #e5ebf0;
    display: flex; padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
}
.tabbar a { flex: 1; text-align: center; font-size: 11px; color: var(--text-muted); text-decoration: none; }
.tabbar a.active { color: var(--teal); font-weight: 700; }
.tabbar .icon { font-size: 20px; display: block; }

.exam-chip {
    display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid #d8e0e6;
    font-size: 13px; margin: 3px; cursor: pointer;
}
.exam-chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }

footer.legal { text-align: center; font-size: 11px; color: var(--text-muted); padding: 24px 20px; }
