:root { --bg:#f6f7fb; --card:#fff; --text:#18212f; --muted:#667085; --line:#e5e7eb; --brand:#0f6da8; --brand2:#18a899; --danger:#b42318; --success:#027a48; }
* { box-sizing: border-box; }
body { margin:0; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background:var(--bg); color:var(--text); }
a { color:var(--brand); text-decoration:none; }
a:hover { text-decoration:underline; }
.topbar { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:10px 24px; background:#fff; color:var(--text); border-bottom:1px solid var(--line); box-shadow:0 8px 24px rgba(15,23,42,.05); }
.topbar a { color:#14558a; margin-left:14px; font-weight:700; }
.topbar nav { display:flex; align-items:center; gap:2px; flex-wrap:wrap; }
.brand { display:flex; align-items:center; font-weight:800; font-size:18px; margin-left:0 !important; }
.site-logo { display:block; height:46px; width:auto; max-width:300px; object-fit:contain; }
.container { max-width:1180px; margin:0 auto; padding:28px 18px 60px; }
.footer { padding:22px; color:var(--muted); text-align:center; font-size:13px; }
.hero { background:linear-gradient(135deg, #eff6ff, #ffffff); border:1px solid var(--line); border-radius:18px; padding:40px; }
.hero h1 { font-size:42px; max-width:800px; margin:0 0 10px; }
.hero p { max-width:760px; font-size:18px; color:var(--muted); }
.card { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:20px; margin-bottom:18px; box-shadow:0 8px 24px rgba(15,23,42,.04); }
.narrow { max-width:520px; margin-left:auto; margin-right:auto; }
.grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.grid.two { grid-template-columns:repeat(2,minmax(0,1fr)); }
.plans { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.price { font-size:28px; font-weight:800; margin:6px 0; }
.toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px; }
.button, button.button { display:inline-block; border:0; border-radius:10px; padding:10px 14px; background:var(--brand); color:white; cursor:pointer; font-weight:700; line-height:1.2; }
.button:hover { text-decoration:none; filter:brightness(.95); }
.button.secondary { background:#e0e7ff; color:#1e3a8a; }
.button.danger { background:#fee4e2; color:var(--danger); }
.link { background:none; border:0; color:var(--brand); cursor:pointer; padding:0; }
label { display:block; margin:12px 0; font-weight:650; }
label.check { display:flex; align-items:flex-start; gap:8px; font-weight:500; }
input, textarea, select { width:100%; margin-top:6px; border:1px solid #cfd4dc; border-radius:10px; padding:10px 12px; font:inherit; background:#fff; }
textarea { resize:vertical; }
.table-wrap { overflow-x:auto; }
.table { width:100%; border-collapse:collapse; }
.table th, .table td { padding:10px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
.table th { color:#344054; background:#f9fafb; font-size:13px; }
.table textarea { min-width:260px; }
.actions { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.inline { display:inline; }
.badge { display:inline-block; padding:4px 8px; border-radius:999px; background:#f2f4f7; color:#344054; font-size:12px; }
.flash { padding:12px 14px; border-radius:10px; margin-bottom:16px; }
.flash.success { background:#ecfdf3; color:var(--success); border:1px solid #abefc6; }
.flash.error { background:#fef3f2; color:var(--danger); border:1px solid #fecdca; }
.notice { background:#fffaeb; border:1px solid #fedf89; padding:14px; border-radius:12px; margin-bottom:18px; }
.muted { color:var(--muted); }
.mt { margin-top:12px; }
.ai-box { display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin:12px 0; }
@media (max-width: 800px) { .topbar { display:block; } .topbar nav { margin-top:10px; } .site-logo { height:40px; max-width:240px; } .grid, .grid.two, .plans { grid-template-columns:1fr; } .hero h1 { font-size:32px; } .toolbar { display:block; } }
.small-text { font-size: 13px; }
.logo-upload-box { border: 1px dashed var(--line); border-radius: 12px; padding: 14px; margin: 14px 0; background: #fcfcfd; }
.logo-preview { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.logo-preview img { max-width: 180px; max-height: 90px; border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: #fff; object-fit: contain; }

.auto-resize { overflow:hidden; resize:none; min-height:70px; }
.fixed-note { min-height:86px; background:#fcfcfd; }

/* Speech-to-text controls for quote introduction */
.speech-tools {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: -6px 0 8px;
}
.speech-status {
    font-size: 0.92rem;
}
.speech-help {
    margin-top: -2px;
}
.speech-button.is-listening {
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18);
}

/* Text-to-speech controls */
.tts-tools {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: -2px 0 8px;
}
.tts-tools.compact {
    margin: 0;
}
.tts-status {
    font-size: 0.92rem;
}
.tts-button.is-reading {
    box-shadow: 0 0 0 3px rgba(15, 109, 168, 0.16);
}
.section-heading-with-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 18px;
    margin-bottom: 8px;
}
.section-heading-with-actions h2 {
    margin: 0;
}
@media (max-width: 800px) {
    .section-heading-with-actions {
        display: block;
    }
    .section-heading-with-actions .tts-tools {
        margin-top: 8px;
    }
}
