:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --text: #142033;
  --muted: #64748b;
  --line: #dce6f2;
  --blue: #1769e0;
  --blue-dark: #0b48a3;
  --blue-soft: #e9f2ff;
  --green: #1f8f4d;
  --green-soft: #eaf8ee;
  --red-soft: #fff0f0;
  --red-text: #b65353;
  --yellow-soft: #fff8e6;
  --gray-soft: #eef2f7;
  --shadow: 0 18px 45px rgba(15, 35, 72, .12);
  --radius: 22px;
  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(--bg); color: var(--text); min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
.boot-shell { min-height: 100vh; }
.brand-row, .brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: linear-gradient(145deg, var(--blue), #00b28f); color: #fff; font-weight: 1000; box-shadow: 0 12px 30px rgba(23, 105, 224, .25); }
.brand span, .brand-row span { display: block; font-size: 13px; color: var(--muted); font-weight: 700; }
.brand strong, .brand-row strong { display: block; line-height: 1.05; }
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.94); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 16px; padding: 12px 22px; }
.topbar.home { position: sticky; }
.top-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.top-nav a, .top-nav button, .sidebar a { padding: 10px 12px; border-radius: 13px; border: 0; background: transparent; color: var(--muted); font-weight: 850; }
.top-nav a.active, .top-nav button.active, .sidebar a.active { background: var(--blue-soft); color: var(--blue-dark); }
.user-pill { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; font-weight: 800; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.hero { padding: 64px 0 34px; background: radial-gradient(circle at 10% 15%, #dff0ff 0, transparent 38%), radial-gradient(circle at 85% 5%, #dff9ee 0, transparent 34%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); line-height: .98; margin: 0 0 16px; letter-spacing: -.04em; }
.hero p { color: var(--muted); font-size: 18px; line-height: 1.6; margin: 0 0 22px; }
.hero-card { background: rgba(255,255,255,.86); border: 1px solid var(--line); border-radius: 32px; padding: 22px; box-shadow: var(--shadow); }
.mock-phone { background: #0f172a; border-radius: 32px; padding: 18px; color: white; box-shadow: inset 0 0 0 8px rgba(255,255,255,.06); }
.mock-screen { background: #fff; color: var(--text); border-radius: 24px; padding: 18px; min-height: 360px; display: grid; gap: 12px; }
.mock-line { height: 12px; border-radius: 99px; background: #e7edf6; }
.mock-line.big { height: 30px; background: linear-gradient(90deg, var(--blue-soft), var(--green-soft)); }
.mock-budget { border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: grid; gap: 8px; }
.section { padding: 42px 0; }
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 18px; }
.section-title h2 { margin: 0; font-size: clamp(28px, 4vw, 42px); }
.section-title p { margin: 7px 0 0; color: var(--muted); }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.card, .public-card, .login-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.card.flat { box-shadow: none; }
.card h3 { margin-top: 0; }
.card p { color: var(--muted); line-height: 1.55; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; padding: 12px 16px; font-weight: 900; line-height: 1; min-height: 44px; transition: .16s ease; }
.btn.primary { background: var(--blue); color: #fff; box-shadow: 0 12px 24px rgba(23, 105, 224, .22); }
.btn.primary:hover { background: var(--blue-dark); }
.btn.secondary { background: #fff; color: var(--blue-dark); border: 1px solid var(--line); }
.btn.ghost { background: transparent; color: var(--muted); }
.btn.danger { background: var(--red-soft); color: var(--red-text); }
.btn.success { background: var(--green); color: #fff; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.button-row { display: flex; gap: 10px; flex-wrap: wrap; }
label { display: grid; gap: 7px; font-weight: 850; color: var(--text); }
input, textarea, select { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 12px 13px; outline: none; color: var(--text); }
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(23,105,224,.12); }
.form-grid { display: grid; gap: 14px; }
.form-grid.two { grid-template-columns: repeat(2, 1fr); }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }
.form-note { color: var(--muted); font-size: 13px; }
.form-message { min-height: 22px; color: var(--muted); }
.form-message.error { color: #b42318; }
.form-message.success { color: var(--green); }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at top left, #ddebff, transparent 35%), radial-gradient(circle at bottom right, #dff8ec, transparent 35%), var(--bg); }
.login-card { width: min(480px, 100%); }
.login-card h1 { margin-bottom: 6px; }
.app-required-box, .upgrade-callout, .notice-box { border-radius: 18px; padding: 15px; background: #edf6ff; border: 1px solid #cbe2ff; color: var(--blue-dark); }
.upgrade-callout { background: var(--yellow-soft); border-color: #ffe0a3; color: #8a5300; }
.notice-box.warn { background: #fff8e6; border-color: #ffe0a3; color: #8a5300; }
.notice-box.danger { background: var(--red-soft); border-color: #ffd1d1; color: var(--red-text); }
.app-shell { display: grid; grid-template-columns: 270px 1fr; min-height: calc(100vh - 73px); }
.sidebar { border-right: 1px solid var(--line); padding: 18px; background: rgba(255,255,255,.65); display: flex; flex-direction: column; gap: 5px; }
.sidebar-group-title { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; font-weight: 1000; margin: 12px 8px 4px; }
.sidebar-note { margin-top: auto; background: var(--green-soft); color: var(--green); border-radius: 16px; padding: 14px; font-weight: 850; font-size: 13px; }
.content { padding: 26px; max-width: 1280px; width: 100%; }
.page-title, .hero-panel, .quote-head, .public-header, .modal-header, .modal-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.page-title { align-items: end; margin-bottom: 18px; }
.page-title h1, .hero-panel h1 { margin: 0; }
.page-title p, .hero-panel p { margin: 6px 0 0; color: var(--muted); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.metric-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 20px; box-shadow: 0 10px 28px rgba(15,35,72,.08); }
.metric-card span { color: var(--muted); font-size: 13px; font-weight: 800; }
.metric-card strong { display: block; font-size: 32px; margin: 5px 0; }
.metric-card small { color: var(--muted); }
.list-grid, .sent-list, .timeline { display: grid; gap: 14px; }
.item-card, .client-card, .sent-card, .ticket-card, .notification-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: 0 8px 24px rgba(15,35,72,.07); }
.client-card, .item-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.item-card h3, .client-card h3, .sent-card h3 { margin: 0 0 4px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.premium-badge, .status-badge, .mini-badge, .role-badge { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 950; }
.premium-ok, .role-master { background: var(--green-soft); color: var(--green); }
.premium-locked, .role-user { background: #fff0d8; color: #a15c00; }
.status-published { background: var(--blue-soft); color: var(--blue-dark); }
.status-accepted { background: var(--green-soft); color: var(--green); }
.status-change_requested { background: var(--red-soft); color: var(--red-text); }
.status-deleted, .status-archived { background: var(--gray-soft); color: var(--muted); }
.status-pending { background: #fff8e6; color: #a15c00; }
.controls-card { margin-bottom: 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 999px; padding: 9px 13px; cursor: pointer; font-weight: 900; }
.chip.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.segmented { display: inline-flex; flex-wrap: wrap; background: #f1f5fb; padding: 5px; border-radius: 16px; gap: 4px; }
.segmented label { display: inline-flex; grid-template-columns: auto auto; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; cursor: pointer; }
.segmented input, .check-line input { width: auto; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 13px; }
.editor-table input { padding: 9px 10px; border-radius: 10px; min-width: 88px; }
.editor-table [name="descricao"] { min-width: 240px; }
.is-paid td, .is-paid { color: var(--muted); text-decoration: line-through; }
.check-line { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }
.subtotal-line, .public-total { display: flex; justify-content: flex-end; align-items: center; gap: 20px; font-size: 18px; padding-top: 16px; }
.subtotal-line strong, .public-total strong { font-size: 28px; color: var(--blue-dark); }
.sticky-actions { position: sticky; bottom: 0; background: rgba(245,248,255,.94); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 20px; padding: 15px; display: flex; gap: 10px; flex-wrap: wrap; }
.sent-card.accepted { background: var(--green-soft); border-color: #bee8cb; }
.sent-card.change_requested { background: var(--red-soft); border-color: #ffd1d1; }
.sent-card.deleted { background: var(--gray-soft); opacity: .86; }
.sent-meta { color: var(--muted); display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; }
.public-page { min-height: 100vh; padding: 22px; max-width: 1040px; margin: 0 auto; }
.public-header { margin-bottom: 18px; }
.public-card { box-shadow: var(--shadow); }
.quote-head { border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 18px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.info-grid > div { border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: #f8fbff; display: grid; gap: 5px; }
.info-grid small { color: var(--muted); }
.public-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.observations { margin-top: 20px; padding: 16px; background: #f8fbff; border-radius: 18px; }
.state { display: grid; place-items: center; min-height: 50vh; text-align: center; padding: 30px; }
.spinner { width: 42px; height: 42px; border: 4px solid #dce8ff; border-top-color: var(--blue); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(18,32,51,.42); display: grid; place-items: center; padding: 16px; }
.modal { width: min(620px, 100%); background: #fff; border-radius: 24px; box-shadow: var(--shadow); padding: 20px; max-height: 92vh; overflow: auto; }
.toast { position: fixed; right: 18px; bottom: 18px; z-index: 200; background: var(--text); color: #fff; padding: 14px 16px; border-radius: 16px; box-shadow: var(--shadow); max-width: 380px; }
.toast-error { background: #b42318; }
.toast-success { background: var(--green); }
.footer { border-top: 1px solid var(--line); padding: 30px 0; color: var(--muted); }
.code-block { white-space: pre-wrap; overflow-x: auto; background: #0f172a; color: #e2e8f0; border-radius: 14px; padding: 14px; font-size: 13px; line-height: 1.45; }
code { background: #eef4ff; color: #0f4cab; border-radius: 6px; padding: 2px 5px; }
.diagnostic-page { min-height: 100vh; padding: 24px; max-width: 960px; margin: 0 auto; }
.diagnostic-ok { border-color: #bee8cb; background: #f5fff7; }
@media (max-width: 980px) {
  .hero-grid, .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .content { padding: 16px; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .form-grid.two, .form-grid.three, .info-grid { grid-template-columns: 1fr; }
  .topbar { flex-wrap: wrap; padding: 12px 14px; }
  .top-nav { order: 3; width: 100%; overflow-x: auto; margin-left: 0; }
  .top-nav a, .top-nav button { white-space: nowrap; }
}
@media (max-width: 560px) {
  .metrics-grid { grid-template-columns: 1fr; }
  .container { width: min(100% - 20px, 1180px); }
  .hero { padding-top: 36px; }
  .button-row .btn, .public-actions .btn { width: 100%; }
  .login-card { padding: 20px; }
  th, td { padding: 10px 8px; }
}
@media print {
  body { background: white; }
  .no-print, .topbar, .sidebar, .sticky-actions, .public-actions, .modal-backdrop, .toast, .footer { display: none !important; }
  .public-page, .content { padding: 0; max-width: none; }
  .public-card, .card { box-shadow: none; border: 0; border-radius: 0; }
  th, td { border-color: #ddd; }
}


/* v6/v7 - paginas publicas de privacidade e exclusao */
.privacy-page { min-height: 100vh; background: radial-gradient(circle at top left, #e7f0ff, transparent 30%), var(--bg); }
.privacy-hero { padding: 54px 0 28px; }
.privacy-hero h1 { font-size: clamp(32px, 5vw, 56px); margin: 0 0 10px; letter-spacing: -.04em; }
.privacy-hero p { max-width: 860px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.privacy-layout { display: grid; grid-template-columns: 280px 1fr; gap: 22px; align-items: start; padding-bottom: 46px; }
.privacy-toc { position: sticky; top: 88px; background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 22px; padding: 16px; box-shadow: 0 10px 28px rgba(15,35,72,.08); }
.privacy-toc a { display: block; padding: 8px 10px; border-radius: 10px; color: var(--muted); font-weight: 800; }
.privacy-toc a:hover { background: var(--blue-soft); color: var(--blue-dark); }
.privacy-doc { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 4vw, 42px); box-shadow: var(--shadow); }
.privacy-doc h2 { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--blue-dark); }
.privacy-doc h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.privacy-doc p, .privacy-doc li { line-height: 1.72; color: #334155; }
.privacy-links { display: grid; gap: 12px; margin: 20px 0; }
.privacy-link-card { display: block; border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: #f8fbff; text-decoration: none; }
.privacy-link-card strong { display: block; color: var(--blue-dark); }
.privacy-link-card span { color: var(--muted); }
.privacy-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.privacy-meta span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; color: var(--muted); font-weight: 900; }
@media (max-width: 900px) { .privacy-layout { grid-template-columns: 1fr; } .privacy-toc { position: static; } }


/* v7 - pagina publica de exclusao de conta e dados */
.deletion-page .privacy-doc h2 { color: var(--red-text); }
.deletion-form { margin-top: 8px; }
.deletion-confirm { align-items: start; line-height: 1.5; }
.step-list { counter-reset: step; list-style: none; padding-left: 0; display: grid; gap: 12px; }
.step-list li { position: relative; padding: 14px 14px 14px 58px; border: 1px solid var(--line); border-radius: 18px; background: #fbfdff; }
.step-list li::before { counter-increment: step; content: counter(step); position: absolute; left: 14px; top: 14px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 12px; background: var(--blue); color: white; font-weight: 1000; }
.deletion-page .btn.danger { background: #b65353; color: #fff; }
.deletion-page .btn.danger:hover { background: #9f3f3f; }

/* v12 - formulario publico de teste fechado */
.privacy-layout.single-column { grid-template-columns: 1fr; width: min(1040px, calc(100% - 32px)); margin: 0 auto; padding-top: 28px; }
.closed-test-doc h1 { font-size: clamp(30px, 5vw, 52px); margin: 0 0 12px; letter-spacing: -.035em; color: var(--blue-dark); }
.closed-test-form fieldset { border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: grid; gap: 9px; background: #fbfdff; }
.closed-test-form legend { padding: 0 8px; font-weight: 1000; color: var(--blue-dark); }
.closed-test-form .option { display: flex; grid-template-columns: auto 1fr; flex-direction: row; align-items: flex-start; gap: 9px; font-weight: 750; color: var(--text); line-height: 1.45; }
.closed-test-form .option input { width: auto; margin-top: 3px; }
.closed-test-form .card.flat { background: #fff; border-color: var(--line); }
.closed-test-page .sticky-actions { justify-content: flex-start; }
@media (max-width: 700px) { .privacy-layout.single-column { width: min(100% - 20px, 1040px); } }


/* v12 - assets, mockups e upload no formulário público */
.brand-logo img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 14px; }
.hero-image { width: 100%; max-height: 420px; object-fit: contain; border-radius: 28px; display: block; background: rgba(255,255,255,.82); box-shadow: 0 22px 60px rgba(15, 23, 42, .18); }
.mockup-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; align-items: start; }
.mockup-shot { border-radius: 28px; background: #fff; padding: 10px; border: 1px solid rgba(15, 23, 42, .08); box-shadow: 0 18px 45px rgba(15, 23, 42, .08); }
.mockup-shot img { width: 100%; display: block; border-radius: 22px; }
.upload-hint { margin: 8px 0 12px; font-size: .92rem; color: var(--muted); }
.selected-files { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.file-chip { border-radius: 999px; background: #eef6ff; color: #155197; padding: 7px 10px; font-size: .86rem; border: 1px solid #d9eaff; }
.subtle-info { background: linear-gradient(135deg, #f8fbff, #f1f8f3); border: 1px solid #dbeafe; }
.closed-test-form input[type="file"] { padding: 12px; background: #f8fafc; border: 1px dashed #9db9d9; }
.btn.large { padding: 15px 22px; font-size: 1rem; }

/* v14/v15 - home download, contact, not found and master panels */
.app-download-section { background: linear-gradient(135deg, #f8fbff, #edf8f1); }
.app-download-card h2 { margin-top: 12px; }
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.store-button { display: inline-flex; flex-direction: column; justify-content: center; min-width: 190px; min-height: 64px; padding: 12px 18px; border-radius: 18px; border: 1px solid var(--line); background: #0f172a; color: #fff; box-shadow: 0 12px 28px rgba(15, 23, 42, .12); text-align: left; font-weight: 900; }
.store-button span { font-size: 12px; opacity: .82; }
.store-button strong { font-size: 20px; line-height: 1.1; }
.store-button.disabled, .store-button:disabled { background: #e9eef7; color: #7b8797; cursor: not-allowed; box-shadow: none; }
.contact-section { background: #fff; }
.not-found-state .card { max-width: 720px; }
.state-actions { justify-content: center; }
.master-list details { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.master-detail-card { display: grid; gap: 12px; }
.compact-grid { gap: 8px; }
.attachment-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.attachment-chip { display: inline-flex; flex-direction: column; gap: 2px; border: 1px solid #dbeafe; background: #f4f8ff; color: var(--blue-dark); padding: 9px 11px; border-radius: 14px; font-weight: 900; }
.attachment-chip span { color: var(--muted); font-size: 12px; font-weight: 700; }
.attachment-chip.disabled { color: var(--muted); background: #f5f7fb; }
.status-new { background: #fff8e6; color: #a15c00; }
.status-analyzed, .status-answered, .status-closed { background: var(--green-soft); color: var(--green); }
.status-archived { background: var(--gray-soft); color: var(--muted); }
@media (max-width: 620px) { .store-button { width: 100%; } }


/* v15 - official store badges and localization helpers */
.store-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 18px; }
.store-badge-link { display: inline-flex; align-items: center; justify-content: center; min-height: 70px; padding: 14px; border-radius: 16px; text-decoration: none; }
.google-play-badge img { height: 56px; width: auto; max-width: 100%; display: block; }
.app-store-badge { position: relative; gap: 10px; flex-direction: column; border: 1px dashed var(--line); background: #f5f7fb; color: var(--muted); cursor: not-allowed; }
.app-store-badge img { height: 48px; width: auto; opacity: .45; display: block; }
.app-store-badge small { font-size: 12px; font-weight: 900; text-align: center; max-width: 220px; }
.store-legal { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
@media (max-width: 620px) { .store-badge-link, .google-play-badge img, .app-store-badge img { max-width: 100%; } }

/* v19 - marketing home based on store-style layout */
body { background: #f7fbff; }
.marketing-topbar { min-height: 74px; padding: 16px min(8vw, 110px); box-shadow: 0 10px 28px rgba(14, 50, 102, .06); }
.marketing-brand .brand-logo { width: 62px; height: 36px; background: transparent; box-shadow: none; border-radius: 0; }
.marketing-brand .brand-logo img { width: 62px; height: 36px; object-fit: contain; border-radius: 0; }
.marketing-brand strong { color: #09245b; font-size: 18px; letter-spacing: -.01em; }
.marketing-nav { gap: 18px; }
.marketing-nav a:not(.btn) { color: #0f2f6e; font-size: 13px; padding: 9px 4px; border-radius: 0; }
.marketing-nav a:not(.btn):hover { color: var(--blue); }
.nav-login-button { min-width: 78px; border-radius: 9px; }
.marketing-home { background: #f8fbff; }
.home-hero-v19 { overflow: hidden; padding: 58px 0 18px; background: radial-gradient(circle at 9% 15%, rgba(51, 133, 255, .15), transparent 30%), linear-gradient(180deg, #eff7ff 0%, #ffffff 90%); }
.hero-v19-grid { display: grid; grid-template-columns: 1fr 1.22fr; gap: clamp(26px, 5vw, 72px); align-items: center; }
.hero-v19-copy h1 { margin: 0 0 20px; max-width: 650px; color: #071e57; font-size: clamp(42px, 6vw, 76px); line-height: 1.03; letter-spacing: -.055em; }
.hero-v19-copy h1 span { color: #20bb45; display: inline-block; }
.hero-v19-copy p { max-width: 640px; margin: 0 0 26px; color: #315077; font-size: clamp(17px, 1.6vw, 22px); line-height: 1.48; }
.hero-v19-actions .btn { min-width: 156px; border-radius: 11px; min-height: 48px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; color: #16417f; font-weight: 950; }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, .72); border: 1px solid rgba(23, 105, 224, .1); box-shadow: 0 8px 22px rgba(15, 35, 72, .06); }
.hero-devices { position: relative; min-height: clamp(420px, 42vw, 620px); display: flex; align-items: center; justify-content: center; }
.laptop-frame { width: min(720px, 95%); height: clamp(310px, 33vw, 455px); border: 12px solid #0c101a; border-radius: 20px 20px 10px 10px; background: #fff; box-shadow: 0 28px 70px rgba(10, 24, 48, .28); overflow: hidden; }
.laptop-frame::after { content: ''; position: absolute; width: min(720px, 95%); height: 16px; background: #1e293b; border-radius: 0 0 18px 18px; bottom: 48px; left: 50%; transform: translateX(-50%); }
.laptop-topbar { height: 26px; background: #f8fafc; border-bottom: 1px solid #e6edf5; }
.laptop-content { display: grid; grid-template-columns: 154px 1fr; height: calc(100% - 26px); background: #fbfdff; }
.laptop-content aside { padding: 24px 18px; border-right: 1px solid #e6edf5; display: grid; align-content: start; gap: 16px; color: #607086; font-size: 13px; font-weight: 850; }
.laptop-content aside strong { color: #0d2d72; font-size: 22px; }
.laptop-content section { padding: 28px; display: grid; align-content: start; gap: 16px; }
.laptop-row.search { width: 82%; height: 36px; border-radius: 12px; background: #f1f5fa; }
.budget-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; border-radius: 16px; background: #fff; border: 1px solid #e6edf5; padding: 18px; color: #0e2f69; box-shadow: 0 8px 20px rgba(14, 50, 102, .05); }
.budget-row strong { display: block; font-size: 15px; }
.budget-row span { color: #0e6b34; font-weight: 1000; }
.budget-row.pending span { color: #ae6b00; }
.budget-row.rejected span { color: #b42318; }
.hero-phone-frame { position: absolute; right: -6px; bottom: 20px; width: clamp(150px, 18vw, 238px); padding: 10px; border-radius: 34px;}
.hero-phone-frame img { width: 100%; border-radius: 26px; aspect-ratio: 9/16; object-fit: cover; object-position: top; }
.download-strip { margin-top: 24px; background: rgba(255, 255, 255, .78); backdrop-filter: blur(12px); border: 1px solid #dce6f2; border-radius: 18px; min-height: 112px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 18px 28px; box-shadow: 0 18px 45px rgba(15, 35, 72, .08); }
.download-strip-icon { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 18px; background: #eef6ff; color: var(--blue); font-size: 34px; }
.download-strip strong { color: #0d2d72; font-size: 20px; }
.download-strip p { margin: 5px 0 0; color: #315077; line-height: 1.45; }
.store-badges.compact { margin-top: 0; justify-content: flex-end; }
.store-badges.compact .store-badge-link { min-height: 74px; padding: 14px; }
.store-badges.compact .google-play-badge img { height: 50px; }
.store-badges.compact .app-store-badge img { height: 50px; opacity: .45; }
.marketing-section { background: #fff; }
.section-title.centered { display: block; text-align: center; margin-bottom: 28px; }
.section-title.centered h2 { color: #0c2b68; font-size: clamp(28px, 3.4vw, 42px); }
.section-title.centered p { color: #547091; font-size: 16px; }
.features-v19-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; justify-content: center; }
.feature-card { min-height: 200px; background: #fff; border: 1px solid #dfe9f6; border-radius: 18px; padding: 24px; text-align: center; box-shadow: 0 12px 32px rgba(15, 35, 72, .06); }
.feature-icon { width: 62px; height: 62px; display: grid; place-items: center; margin: 0 auto 16px; border-radius: 999px; background: linear-gradient(145deg, #e6f4ff, #e9fbed); font-size: 28px; }
.feature-card h3 { margin: 0 0 12px; color: #0d2d72; font-size: 16px; line-height: 1.25; }
.feature-card p { margin: 0; color: #5d7595; font-size: 14px; line-height: 1.52; }
.features-v19-grid .feature-card:nth-child(n+5) { transform: translateX(56%); }
.app-preview-section { background: linear-gradient(180deg, #fff 0%, #f8fbff 100%); }
.phone-showcase-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; align-items: start; }
.phone-showcase-card { display: grid; gap: 16px; text-align: center; }
.phone-copy h3 { margin: 0 0 8px; color: #09245b; font-size: 18px; line-height: 1.18; }
.phone-copy p { margin: 0; color: #58718e; font-size: 14px; line-height: 1.35; }
.phone-frame { background: #0c101a; border-radius: 32px; padding: 9px; box-shadow: 0 20px 45px rgba(10, 24, 48, .22); }
.phone-frame img { width: 100%; border-radius: 24px; aspect-ratio: 9/16; object-fit: cover; object-position: top; }
.plans-section { background: #f8fbff; }
.plan-card { border: 1px solid #dfe9f6; background: #fff; border-radius: 22px; padding: 24px; box-shadow: 0 14px 34px rgba(15, 35, 72, .07); }
.plan-card h3 { margin: 0 0 10px; color: #0d2d72; font-size: 28px; }
.plan-card p { margin: 0; color: #58718e; line-height: 1.55; }
.plan-card.highlighted { border-color: rgba(23,105,224,.38); box-shadow: 0 20px 42px rgba(23, 105, 224, .13); }
.cta-section { background: #fff; }
.cta-card-v19 { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 26px; background: linear-gradient(135deg, #f1f7ff, #ecf9f0); border: 1px solid #dce6f2; border-radius: 22px; padding: 32px 44px; }
.cta-illustration { width: 104px; height: 104px; display: grid; place-items: center; border-radius: 24px; background: #fff; font-size: 54px; box-shadow: 0 12px 30px rgba(15, 35, 72, .08); }
.cta-card-v19 h2 { margin: 0 0 10px; color: #0c2b68; font-size: clamp(25px, 3vw, 40px); line-height: 1.12; }
.cta-card-v19 p { margin: 0; color: #476584; font-size: 16px; line-height: 1.55; }
.cta-actions { display: grid; gap: 12px; min-width: 260px; }
.forms-section { background: #f8fbff; }
.contact-section-v19 { padding: 58px 0 0; background: #fff; border-top: 1px solid #dce6f2; }
.footer-grid-v19 { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.25fr; gap: 42px; }
.footer-grid-v19 h3 { margin: 0 0 14px; color: #0c2b68; }
.footer-grid-v19 a { display: block; color: #315b96; font-weight: 800; margin: 8px 0; }
.footer-grid-v19 p { color: #58718e; line-height: 1.55; }
.footer-brand img { width: 86px; height: auto; margin-bottom: 12px; }
.centered-legal { text-align: center; padding: 18px 16px 0; }
.footer-copy { margin-top: 28px; text-align: center; color: #58718e; border-top: 1px solid #dce6f2; padding: 18px 0 26px; font-weight: 750; }
@media (max-width: 1100px) {
  .hero-v19-grid { grid-template-columns: 1fr; }
  .hero-devices { min-height: 480px; }
  .phone-showcase-grid { grid-template-columns: repeat(3, 1fr); }
  .features-v19-grid { grid-template-columns: repeat(2, 1fr); }
  .features-v19-grid .feature-card:nth-child(n+5) { transform: none; }
  .download-strip { grid-template-columns: auto 1fr; }
  .download-strip .store-badges { grid-column: 1 / -1; justify-content: flex-start; }
  .footer-grid-v19 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .marketing-topbar { padding: 14px; }
  .marketing-nav { gap: 10px; }
  .home-hero-v19 { padding-top: 34px; }
  .hero-v19-copy h1 { font-size: clamp(36px, 12vw, 56px); }
  .hero-devices { min-height: 390px; }
  .laptop-frame { width: 100%; height: 280px; border-width: 8px; }
  .laptop-content { grid-template-columns: 110px 1fr; }
  .laptop-content aside { padding: 16px 12px; font-size: 11px; }
  .laptop-content section { padding: 16px; }
  .budget-row { padding: 11px; font-size: 12px; }
  .hero-phone-frame { width: 142px; right: 8px; }
  .download-strip { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 20px; }
  .store-badges.compact { justify-content: center; }
  .features-v19-grid, .phone-showcase-grid, .footer-grid-v19 { grid-template-columns: 1fr; }
  .phone-showcase-card { max-width: 320px; margin: 0 auto; }
  .cta-card-v19 { grid-template-columns: 1fr; text-align: center; padding: 26px; }
  .cta-illustration { margin: 0 auto; }
  .cta-actions { min-width: 0; }
}


/* v19 - app store showcase screenshots in the home */
.store-screenshot-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 30px);
  align-items: start;
}
.store-screenshot-card {
  margin: 0;
  border-radius: 30px;
  background: #ffffff;
  border: 1px solid rgba(176, 202, 235, .8);
  box-shadow: 0 24px 52px rgba(10, 39, 89, .12);
  overflow: hidden;
  transform: translateY(0);
  transition: transform .18s ease, box-shadow .18s ease;
}
.store-screenshot-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 68px rgba(10, 39, 89, .18);
}
.store-screenshot-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 941 / 1672;
  object-fit: cover;
  background: #f3f8ff;
}
@media (max-width: 1100px) {
  .store-screenshot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .store-screenshot-grid { grid-template-columns: 1fr; }
  .store-screenshot-card { max-width: 360px; margin: 0 auto; }
}

/* v20 login and brand refinements */
.login-card-v20 { width: min(640px, 100%); padding: 28px 34px; border-radius: 30px; }
.login-brand-row { margin-bottom: 18px; align-items: center; }
.login-brand-row .brand-logo { width: 84px; height: 84px; border-radius: 22px; background: #f8fbff; box-shadow: 0 12px 24px rgba(15,35,72,.10); padding: 10px; }
.login-card-v20 h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.02; letter-spacing: -.03em; margin: 0 0 20px; color: #0c2554; }
.login-form-v20 { gap: 18px; }
.login-form-v20 label { gap: 10px; font-size: 16px; }
.input-shell { display: grid; grid-template-columns: 28px 1fr 28px; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 18px; background: #fff; padding: 0 16px; min-height: 62px; }
.input-shell:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(23,105,224,.12); }
.input-shell input { border: 0; padding: 0; min-height: 58px; box-shadow: none !important; background: transparent; }
.input-shell input:focus { box-shadow: none; }
.input-icon, .password-toggle { color: #7a889f; display: inline-flex; align-items: center; justify-content: center; }
.password-toggle { border: 0; background: transparent; padding: 0; width: 28px; height: 28px; font-size: 18px; cursor: pointer; }
.login-submit { min-height: 58px; font-size: 20px; border-radius: 18px; }
.login-info-box, .login-callout-box { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 14px; padding: 18px; }
.info-badge { width: 42px; height: 42px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; border: 1px solid currentColor; }
.login-info-box a { color: var(--blue); font-weight: 900; text-decoration: underline; }
.login-footer-links { text-align: center; font-size: 15px; margin: 24px 0 0; }
.login-footer-links a { color: var(--text); }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 14px; }
@media (max-width: 680px) {
  .login-card-v20 { padding: 22px; }
  .login-brand-row .brand-logo { width: 64px; height: 64px; }
  .login-card-v20 h1 { font-size: 32px; }
  .login-info-box, .login-callout-box { grid-template-columns: 1fr; }
}
