@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,500;0,700;1,500&display=swap');


/* =====================================================================
   Essência — Design System
   Calculadora de Precificação para Estética
   
   Paleta: Rose-gold + dark mode sofisticado
   Universo: beleza, autoestima, cuidado, transformação
   ===================================================================== */

/* ─── Google Fonts ─── */

/* ─── CSS Reset ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ─── Design Tokens ─── */
:root {
  /* Backgrounds */
  --bg-app: #0F0B10;
  --bg-sidebar: #151017;
  --bg-card: rgba(30, 22, 28, 0.85);
  --bg-card-hover: rgba(40, 30, 38, 0.9);
  --bg-input: rgba(45, 33, 42, 0.6);
  --bg-input-focus: rgba(55, 40, 50, 0.8);
  --bg-modal-overlay: rgba(0, 0, 0, 0.6);

  /* Rose-gold palette */
  --rose-50: #FFF1F2;
  --rose-100: #FFE4E6;
  --rose-200: #FECDD3;
  --rose-300: #FDA4AF;
  --rose-400: #FB7185;
  --rose-500: #F43F5E;
  --rose-gold: #B76E79;
  --rose-gold-light: #D4A0A7;
  --rose-gold-dark: #8B4F57;
  --rose-gold-glow: rgba(183, 110, 121, 0.25);

  /* Accent colors */
  --gold: #D4A574;
  --gold-light: #E8C9A8;
  --gold-glow: rgba(212, 165, 116, 0.2);

  /* Semantic colors */
  --color-profit: #34D399;
  --color-profit-bg: rgba(52, 211, 153, 0.08);
  --color-profit-border: rgba(52, 211, 153, 0.25);
  --color-loss: #FB7185;
  --color-loss-bg: rgba(251, 113, 133, 0.08);
  --color-loss-border: rgba(251, 113, 133, 0.25);
  --color-warning: #FBBF24;
  --color-warning-bg: rgba(251, 191, 36, 0.08);
  --color-warning-border: rgba(251, 191, 36, 0.25);
  --color-info: #60A5FA;
  --color-info-bg: rgba(96, 165, 250, 0.08);
  --color-info-border: rgba(96, 165, 250, 0.25);

  /* Text */
  --text-primary: #F5EDF0;
  --text-secondary: #A89198;
  --text-muted: #6B5660;
  --text-inverse: #1A1118;

  /* Borders */
  --border-subtle: rgba(183, 110, 121, 0.12);
  --border-light: rgba(183, 110, 121, 0.2);
  --border-medium: rgba(183, 110, 121, 0.35);
  --border-active: rgba(183, 110, 121, 0.6);

  /* Gradients */
  --gradient-rose: linear-gradient(135deg, #B76E79 0%, #D4A574 100%);
  --gradient-rose-subtle: linear-gradient(135deg, rgba(183, 110, 121, 0.15) 0%, rgba(212, 165, 116, 0.08) 100%);
  --gradient-card: linear-gradient(145deg, rgba(30, 22, 28, 0.9) 0%, rgba(20, 15, 22, 0.95) 100%);
  --gradient-sidebar: linear-gradient(180deg, #151017 0%, #0F0B10 100%);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px rgba(183, 110, 121, 0.15);
  --shadow-glow-strong: 0 0 40px rgba(183, 110, 121, 0.25);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 999px;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Layout */
  --sidebar-width: 260px;
  --header-height: 0px;
}

/* ─── Base ─── */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-app);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

#root {
  min-height: 100vh;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-medium);
}

/* ─── Layout ─── */
.app-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  background: var(--gradient-sidebar);
  border-right: 1px solid var(--border-subtle);
  padding: var(--space-lg) 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 100;
  transition: transform var(--transition-base);
}

.sidebar-logo {
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-xl);
}

.sidebar-logo h1 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  background: var(--gradient-rose);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}

.sidebar-logo span {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-top: 2px;
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 var(--space-sm);
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 11px var(--space-md);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  transition: all var(--transition-fast);
  position: relative;
}

.sidebar-item:hover {
  color: var(--text-primary);
  background: rgba(183, 110, 121, 0.08);
}

.sidebar-item.active {
  color: var(--rose-gold-light);
  background: rgba(183, 110, 121, 0.12);
}

.sidebar-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--gradient-rose);
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
}

.sidebar-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.sidebar-footer p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: var(--space-xl) var(--space-2xl);
  min-height: 100vh;
}

/* ─── Page Header ─── */
.page-header {
  margin-bottom: var(--space-xl);
}

.page-header h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.page-header p {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 560px;
}

/* ─── Cards ─── */
.card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
}

.card:hover {
  border-color: var(--border-light);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.card-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ─── Glass Card (premium feel) ─── */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

/* ─── Stat Cards ─── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.stat-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: all var(--transition-base);
}

.stat-card:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow-glow);
}

.stat-card .stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-card .stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.stat-card .stat-value.profit {
  color: var(--color-profit);
}

.stat-card .stat-value.loss {
  color: var(--color-loss);
}

.stat-card .stat-value.rose {
  background: var(--gradient-rose);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card .stat-detail {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ─── Forms ─── */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.form-label .hint {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 11px;
}

.form-input,
.form-select {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--text-primary);
  transition: all var(--transition-fast);
  width: 100%;
  outline: none;
}

.form-input:focus,
.form-select:focus {
  background: var(--bg-input-focus);
  border-color: var(--rose-gold);
  box-shadow: 0 0 0 3px var(--rose-gold-glow);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B5660' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-select option {
  background: #1E161C;
  color: var(--text-primary);
}

.input-prefix {
  position: relative;
}

.input-prefix .prefix {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  pointer-events: none;
}

.input-prefix .form-input {
  padding-left: 36px;
}

.input-suffix {
  position: relative;
}

.input-suffix .suffix {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  pointer-events: none;
}

.input-suffix .form-input {
  padding-right: 40px;
}

.form-help {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-sans);
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--gradient-rose);
  color: white;
  box-shadow: 0 4px 12px rgba(183, 110, 121, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(183, 110, 121, 0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(183, 110, 121, 0.1);
  color: var(--rose-gold-light);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: rgba(183, 110, 121, 0.18);
  border-color: var(--border-medium);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 12px;
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(183, 110, 121, 0.08);
}

.btn-danger {
  background: rgba(251, 113, 133, 0.1);
  color: var(--color-loss);
  border: 1px solid var(--color-loss-border);
}

.btn-danger:hover {
  background: rgba(251, 113, 133, 0.18);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

.btn-sm svg {
  width: 16px;
  height: 16px;
}

/* ─── Tables ─── */
.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: left;
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--border-subtle);
}

tbody td {
  padding: var(--space-md);
  font-size: 14px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

tbody tr {
  transition: background var(--transition-fast);
}

tbody tr:hover {
  background: rgba(183, 110, 121, 0.04);
}

tbody tr:last-child td {
  border-bottom: none;
}

.table-actions {
  display: flex;
  gap: var(--space-xs);
  justify-content: flex-end;
}

/* ─── Alerts / Banners ─── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.5;
}

.alert svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.alert-profit {
  background: var(--color-profit-bg);
  border: 1px solid var(--color-profit-border);
  color: var(--color-profit);
}

.alert-loss {
  background: var(--color-loss-bg);
  border: 1px solid var(--color-loss-border);
  color: var(--color-loss);
}

.alert-warning {
  background: var(--color-warning-bg);
  border: 1px solid var(--color-warning-border);
  color: var(--color-warning);
}

.alert-info {
  background: var(--color-info-bg);
  border: 1px solid var(--color-info-border);
  color: var(--color-info);
}

/* ─── Price Breakdown ─── */
.breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.breakdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14px;
}

.breakdown-item:last-child {
  border-bottom: none;
}

.breakdown-item .label {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.breakdown-item .label .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.breakdown-item .value {
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.breakdown-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  margin-top: var(--space-sm);
  border-top: 2px solid var(--border-medium);
  font-size: 16px;
  font-weight: 700;
}

.breakdown-total .value {
  font-size: 22px;
  background: var(--gradient-rose);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Price Comparison ─── */
.price-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-lg);
  align-items: center;
  padding: var(--space-lg);
}

.price-box {
  text-align: center;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
}

.price-box.current {
  background: var(--color-loss-bg);
  border: 1px solid var(--color-loss-border);
}

.price-box.calculated {
  background: var(--color-profit-bg);
  border: 1px solid var(--color-profit-border);
}

.price-box .price-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-sm);
}

.price-box.current .price-label {
  color: var(--color-loss);
}

.price-box.calculated .price-label {
  color: var(--color-profit);
}

.price-box .price-value {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}

.price-box.current .price-value {
  color: var(--color-loss);
}

.price-box.calculated .price-value {
  color: var(--color-profit);
}

.price-arrow {
  font-size: 24px;
  color: var(--text-muted);
}

/* ─── Tags / Badges ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.badge-profit {
  background: var(--color-profit-bg);
  color: var(--color-profit);
  border: 1px solid var(--color-profit-border);
}

.badge-loss {
  background: var(--color-loss-bg);
  color: var(--color-loss);
  border: 1px solid var(--color-loss-border);
}

.badge-neutral {
  background: rgba(183, 110, 121, 0.08);
  color: var(--rose-gold-light);
  border: 1px solid var(--border-light);
}

/* ─── Empty State ─── */
.empty-state {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  color: var(--text-muted);
}

.empty-state svg {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-md);
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

.empty-state p {
  font-size: 13px;
  max-width: 300px;
  margin: 0 auto var(--space-lg);
}

/* ─── Modal ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-modal-overlay);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  animation: fadeIn var(--transition-fast);
  padding: var(--space-lg);
}

.modal {
  background: #1E161C;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  width: 100%;
  max-width: 500px;
  max-height: 85vh;
  overflow-y: auto;
  animation: slideUp var(--transition-base);
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
}

.modal-footer {
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-subtle);
}

/* ─── Separator ─── */
.separator {
  height: 1px;
  background: var(--border-subtle);
  margin: var(--space-lg) 0;
}

/* ─── Animations ─── */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

.animated-fade-in {
  animation: fadeIn var(--transition-base) ease-out;
}

.animated-slide-up {
  animation: slideUp var(--transition-base) ease-out;
}

/* ─── Utility Classes ─── */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.text-rose {
  background: var(--gradient-rose);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-profit { color: var(--color-profit); }
.text-loss { color: var(--color-loss); }
.text-warning { color: var(--color-warning); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

.font-display { font-family: var(--font-display); }
.font-mono { font-variant-numeric: tabular-nums; }

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    padding: var(--space-lg);
  }

  .mobile-header {
    display: flex !important;
  }
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .price-comparison {
    grid-template-columns: 1fr;
  }

  .price-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }
}

/* ─── Mobile Header (hidden on desktop) ─── */
.mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--space-lg);
}

.mobile-header h1 {
  font-family: var(--font-display);
  font-size: 22px;
  background: var(--gradient-rose);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hamburger {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: var(--space-sm);
}

/* ─── Item selector (for composing services) ─── */
.item-selector {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.item-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.item-row .item-name {
  flex: 1;
  font-size: 14px;
}

.item-row .item-cost {
  font-size: 13px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  min-width: 80px;
  text-align: right;
}

.item-row .item-qty {
  width: 60px;
}

.item-row .item-qty .form-input {
  padding: 6px 8px;
  text-align: center;
  font-size: 13px;
}

/* ─── Progress indicator ─── */
.progress-bar {
  height: 4px;
  background: var(--bg-input);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar .fill {
  height: 100%;
  background: var(--gradient-rose);
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}

/* ─── Disclaimer ─── */
.disclaimer {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: rgba(251, 191, 36, 0.05);
  border: 1px solid var(--color-warning-border);
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.disclaimer strong {
  color: var(--color-warning);
}
/* ═══════════════════════════════════════════════════════════════════════════
   ESSÊNCIA — Camada de layout, responsividade e componentes novos
   Carregada depois de index.css: o design system (cores, tipografia, botões)
   continua vindo de lá; aqui ficam a estrutura da tela e os componentes que
   nasceram junto com a camada de ensino.
   ═══════════════════════════════════════════════════════════════════════════

   ─── ESTRATÉGIA RESPONSIVA ─────────────────────────────────────────────────

   A esteticista usa isto no celular, entre atendimentos, quase sempre em pé.
   O celular é o caso principal, não a adaptação.

     base       telefone (a partir de 320px) — tudo em coluna
     ≥ 700px    formulários em duas colunas
     ≥ 900px    listas viram tabela; a informação cabe lado a lado
     ≥ 1024px   menu lateral fixo; a barra superior desaparece

   Três regras que valem em toda a folha:
     · alvo de toque nunca menor que 44px
     · input com fonte de 16px (abaixo disso o iOS dá zoom sozinho no foco)
     · nada de rolagem horizontal — quando não cabe, muda de forma
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --topbar-height: 60px;
  --touch-target: 44px;
  --space-2xl: 40px;
}

/* ─────────────────────────────────────────────────────────────────────────
   LAYOUT
   ───────────────────────────────────────────────────────────────────────── */

body {
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

.app-layout {
  display: block;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Barra superior — some no desktop */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  height: var(--topbar-height);
  padding: 0 var(--space-sm);
  padding-top: env(safe-area-inset-top);
  background: rgba(15, 11, 16, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.topbar-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--touch-target);
  height: var(--touch-target);
  border: none;
  background: none;
  color: var(--text-primary);
  cursor: pointer;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.topbar-menu:active {
  background: rgba(183, 110, 121, 0.15);
}

.topbar-title {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.topbar-title strong {
  font-family: var(--font-display);
  font-size: 19px;
  background: var(--gradient-rose);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.topbar-title span {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
}

/* Menu lateral — gaveta no celular, coluna fixa no desktop */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  width: min(280px, 85vw);
  padding: var(--space-lg) 0 calc(var(--space-lg) + env(safe-area-inset-bottom));
  background: var(--gradient-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform var(--transition-base);
  overflow-y: auto;
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar-nav {
  gap: 2px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-height: var(--touch-target);
  padding: 10px var(--space-md);
}

.sidebar-step {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}

.sidebar-item.active .sidebar-step {
  background: var(--gradient-rose);
  border-color: transparent;
  color: var(--text-inverse);
}

.sidebar-label {
  flex: 1;
  min-width: 0;
}

.sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.main-content {
  margin-left: 0;
  padding: var(--space-md) var(--space-md) var(--space-2xl);
  padding-bottom: calc(var(--space-2xl) + env(safe-area-inset-bottom));
  min-height: auto;
}

.page {
  max-width: 980px;
  margin: 0 auto;
}

.page-header h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(22px, 5.5vw, 28px);
  flex-wrap: wrap;
}

.page-header h2 svg {
  color: var(--rose-gold);
  flex-shrink: 0;
}

.page-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--space-lg);
}

.page-actions .btn {
  width: 100%;
  justify-content: center;
}

.card {
  margin-bottom: var(--space-md);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-md);
}

.card-title svg {
  color: var(--rose-gold);
  flex-shrink: 0;
}

.card-lead {
  font-size: 13px;
  color: var(--text-secondary);
  margin: -8px 0 var(--space-md);
}

.card-header {
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.card-summary {
  font-size: 13px;
  color: var(--text-secondary);
}

.card-summary strong {
  color: var(--rose-gold-light);
}

.toolbar {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.toolbar-field {
  flex: 1;
  min-width: 0;
}

/* ─────────────────────────────────────────────────────────────────────────
   FORMULÁRIOS
   ───────────────────────────────────────────────────────────────────────── */

.form-grid {
  grid-template-columns: 1fr;
}

.form-input,
.form-select {
  /* 16px trava o zoom automático do iOS ao focar o campo */
  font-size: 16px;
  min-height: var(--touch-target);
}

.form-label {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-sm);
}

.form-label-text {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.field-consequence {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--rose-gold-light);
}

.field-consequence em {
  color: var(--color-warning);
  font-style: normal;
}

.nudge {
  padding: 10px var(--space-md);
  border-left: 3px solid var(--color-warning);
  background: var(--color-warning-bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.result-strip {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: var(--gradient-rose-subtle);
  border: 1px solid var(--border-light);
}

.result-strip > span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
}

.result-strip strong {
  font-size: 20px;
  color: var(--rose-gold-light);
  font-variant-numeric: tabular-nums;
}

.result-strip em {
  font-style: normal;
  font-size: 12px;
  color: var(--text-muted);
  margin-left: auto;
}

/* Interruptor sim/não */
.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: var(--touch-target);
  padding: 0 14px 0 6px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: var(--bg-input);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 14px;
  align-self: flex-start;
}

.switch-thumb {
  width: 30px;
  height: 18px;
  border-radius: var(--radius-full);
  background: var(--border-medium);
  position: relative;
  transition: background var(--transition-fast);
}

.switch-thumb::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-primary);
  transition: transform var(--transition-fast);
}

.switch.on {
  border-color: var(--border-active);
  color: var(--rose-gold-light);
}

.switch.on .switch-thumb {
  background: var(--rose-gold);
}

.switch.on .switch-thumb::after {
  transform: translateX(12px);
}

/* Escolha do modo de entrada de custo */
.mode-picker {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

.mode-option {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: var(--touch-target);
  padding: 10px var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-input);
  color: var(--text-secondary);
  cursor: pointer;
  text-align: left;
}

.mode-option strong {
  font-size: 14px;
  color: var(--text-primary);
}

.mode-option small {
  font-size: 12px;
  color: var(--text-muted);
}

.mode-option.active {
  border-color: var(--border-active);
  background: var(--gradient-rose-subtle);
}

.mode-option.active strong {
  color: var(--rose-gold-light);
}

/* ─────────────────────────────────────────────────────────────────────────
   BOTÕES DE ÍCONE
   ───────────────────────────────────────────────────────────────────────── */

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--touch-target);
  height: var(--touch-target);
  border: none;
  border-radius: var(--radius-md);
  background: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  background: rgba(183, 110, 121, 0.12);
  color: var(--text-primary);
}

.icon-btn-danger:hover,
.icon-btn-danger:focus-visible {
  background: var(--color-loss-bg);
  color: var(--color-loss);
}

.mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-input);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.mode-toggle.on {
  border-color: var(--border-light);
  color: var(--rose-gold-light);
}

.mode-toggle.compact span {
  display: none;
}

/* ─────────────────────────────────────────────────────────────────────────
   LISTAS EDITÁVEIS  —  cartões no celular, tabela no desktop
   ───────────────────────────────────────────────────────────────────────── */

.data-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin: 0;
  padding: 0;
}

.data-list-head {
  display: none;
}

.data-list-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px var(--space-sm);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-input);
}

.data-list-row .col {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.data-list-row .col-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-muted);
}

.data-list-row .col-value {
  font-size: 14px;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.data-list-row .col-first .col-value {
  font-weight: 600;
}

.col-value-strong {
  color: var(--rose-gold-light) !important;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.col-value-formula {
  font-size: 12.5px !important;
  color: var(--text-muted) !important;
  font-variant-numeric: tabular-nums;
}

.data-list-row .col-currency .col-value,
.data-list-row .col-percent .col-value,
.data-list-row .col-number .col-value {
  font-variant-numeric: tabular-nums;
}

.data-list-row .col-actions {
  grid-row: 1 / span 2;
  grid-column: 2;
  flex-direction: row;
  align-items: flex-start;
  gap: 2px;
}

.data-list-note {
  grid-column: 1 / -1;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-muted);
  padding-top: 6px;
  border-top: 1px dashed var(--border-subtle);
}

.tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: var(--radius-full);
  background: rgba(183, 110, 121, 0.12);
  border: 1px solid var(--border-subtle);
  font-size: 11.5px;
  color: var(--rose-gold-light);
}

/* ─────────────────────────────────────────────────────────────────────────
   CAMADA 2 — o popover do (i)
   No celular vira uma folha que sobe pela base: popover ancorado em 360px de
   largura fica ilegível, e a leitura acontece com o polegar.
   ───────────────────────────────────────────────────────────────────────── */

.field-info {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.field-info-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin: -6px;
  border: none;
  border-radius: 50%;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.field-info-trigger:hover,
.field-info-trigger.active {
  color: var(--rose-gold-light);
  background: rgba(183, 110, 121, 0.14);
}

.field-info-scrim {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.55);
}

.field-info-panel {
  position: fixed;
  z-index: 201;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 80dvh;
  overflow-y: auto;
  padding: var(--space-sm) var(--space-lg) calc(var(--space-lg) + env(safe-area-inset-bottom));
  background: #1c141b;
  border: 1px solid var(--border-light);
  border-bottom: none;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: var(--shadow-lg);
  animation: sheet-up 220ms ease;
}

/*
 * Sobe pouco, de propósito.
 *
 * A versão óbvia é partir de translateY(100%) — a folha entra deslizando de
 * fora da tela. O risco é que ela DEPENDE da animação rodar até o fim para
 * ficar visível: com a aba em segundo plano (a usuária troca de app e volta) o
 * navegador congela a animação no quadro zero e o painel fica fora da tela.
 *
 * Partindo de 28px o estado congelado é praticamente o estado final, e o
 * movimento continua legível como uma folha subindo.
 */
@keyframes sheet-up {
  from {
    transform: translateY(28px);
    /* nunca parte de 0: congelada no quadro inicial, a folha ainda é legível */
    opacity: 0.35;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.field-info-grab {
  width: 38px;
  height: 4px;
  margin: 0 auto var(--space-sm);
  border-radius: var(--radius-full);
  background: var(--border-medium);
}

.field-info-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.field-info-head h4 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--rose-gold-light);
}

.field-info-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: var(--bg-input);
  color: var(--text-secondary);
  cursor: pointer;
}

.field-info-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.field-info-body section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-info-tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.field-info-body p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.field-info-danger {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-loss);
  background: var(--color-loss-bg);
}

.field-info-danger .field-info-tag {
  color: var(--color-loss);
}

.field-info-danger p {
  color: var(--text-primary);
}

/* ─────────────────────────────────────────────────────────────────────────
   CAMADA 3 — o guia da etapa
   ───────────────────────────────────────────────────────────────────────── */

.section-guide {
  margin-bottom: var(--space-md);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(96, 165, 250, 0.04);
  overflow: hidden;
}

.section-guide-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: var(--touch-target);
  padding: 10px var(--space-md);
  border: none;
  background: none;
  color: var(--color-info);
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.section-guide-trigger svg:first-child {
  flex-shrink: 0;
}

.section-guide-trigger span {
  flex: 1;
}

.section-guide-chevron {
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.section-guide.open .section-guide-chevron {
  transform: rotate(180deg);
}

.section-guide-body {
  padding: 0 var(--space-md) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.section-guide-body p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.section-guide-example {
  margin-top: 4px;
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border-subtle);
}

.section-guide-example-label {
  display: block;
  margin-bottom: 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-guide-example-line {
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

/* ─────────────────────────────────────────────────────────────────────────
   CUSTO POR HORA — o número âncora
   ───────────────────────────────────────────────────────────────────────── */

.hourly-card {
  margin-bottom: var(--space-md);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  background: var(--gradient-rose-subtle);
}

.hourly-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.hourly-card-head svg {
  color: var(--rose-gold);
}

.hourly-card-value {
  font-family: var(--font-display);
  font-size: clamp(34px, 9vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--rose-gold-light);
  font-variant-numeric: tabular-nums;
  margin: 4px 0 var(--space-md);
}

.hourly-card-value small {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 4px;
}

.hourly-bar {
  display: flex;
  height: 10px;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--bg-input);
}

.hourly-bar-seg {
  height: 100%;
  transition: width var(--transition-base);
}

.seg-fixed {
  background: #60a5fa;
}

.seg-labor {
  background: #34d399;
}

.seg-das {
  background: #fbbf24;
}

.hourly-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px var(--space-md);
  margin-top: 10px;
}

.hourly-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.hourly-legend strong {
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.hourly-legend .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hourly-card-foot {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.hourly-card-foot strong {
  color: var(--rose-gold-light);
}

/* ─────────────────────────────────────────────────────────────────────────
   PREÇO EM DESTAQUE E PREÇO AO VIVO
   ───────────────────────────────────────────────────────────────────────── */

.headline-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: var(--space-md);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-active);
  background: var(--gradient-rose-subtle);
  box-shadow: var(--shadow-glow);
}

.headline-price-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.headline-price-value {
  font-family: var(--font-display);
  font-size: clamp(40px, 12vw, 58px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--rose-gold-light);
  font-variant-numeric: tabular-nums;
}

.headline-price-detail {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.live-price {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  flex-wrap: wrap;
  padding: 10px var(--space-lg);
  background: rgba(28, 20, 27, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
}

.live-price-label {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.live-price-value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--rose-gold-light);
  font-variant-numeric: tabular-nums;
}

.live-price-detail {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 12px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

/* ─────────────────────────────────────────────────────────────────────────
   "O QUE A CONTA HABITUAL NÃO MOSTRA"
   ───────────────────────────────────────────────────────────────────────── */

.reveal-card,
.impact-card {
  margin-bottom: var(--space-md);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--gradient-card);
}

.reveal-head,
.impact-head {
  display: flex;
  gap: 10px;
  margin-bottom: var(--space-lg);
}

.reveal-head svg,
.impact-head svg {
  color: var(--rose-gold);
  flex-shrink: 0;
  margin-top: 3px;
}

.reveal-head h3,
.impact-head h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
}

.reveal-head p,
.impact-head p {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.reveal-ladder {
  display: flex;
  flex-direction: column;
}

.reveal-step {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 11px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.reveal-step-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  color: var(--text-primary);
}

.reveal-step-label em {
  font-style: normal;
  font-size: 11.5px;
  color: var(--text-muted);
}

.reveal-step-value {
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--text-primary);
}

.reveal-step-minus .reveal-step-value {
  color: var(--text-secondary);
}

.reveal-step-apparent {
  border-bottom: 2px solid var(--border-medium);
}

.reveal-step-apparent .reveal-step-value {
  font-size: 19px;
  font-weight: 700;
  color: var(--color-profit);
}

.reveal-divider {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) 0 6px;
}

.reveal-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-loss-border);
}

.reveal-divider span {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--color-loss);
}

.reveal-step-hidden {
  background: var(--color-loss-bg);
  margin: 0 calc(var(--space-md) * -1);
  padding-left: var(--space-md);
  padding-right: var(--space-md);
  border-bottom-color: transparent;
}

.reveal-step-hidden .reveal-step-value {
  color: var(--color-loss);
}

.reveal-step-final {
  margin-top: var(--space-sm);
  padding: var(--space-md);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.25);
}

.reveal-step-final .reveal-step-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--rose-gold-light);
}

.reveal-step-final.is-loss .reveal-step-value {
  color: var(--color-loss);
}

.reveal-verdict {
  display: flex;
  gap: 10px;
  margin-top: var(--space-lg);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-warning-border);
  background: var(--color-warning-bg);
}

.reveal-verdict.is-loss {
  border-color: var(--color-loss-border);
  background: var(--color-loss-bg);
}

.reveal-verdict svg {
  color: var(--color-warning);
  flex-shrink: 0;
  margin-top: 2px;
}

.reveal-verdict.is-loss svg {
  color: var(--color-loss);
}

.reveal-verdict strong {
  display: block;
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.reveal-verdict p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.reveal-verdict p strong {
  display: inline;
  font-size: inherit;
  color: var(--color-warning);
}

.reveal-verdict-fix {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-subtle);
}

.reveal-verdict-fix strong {
  color: var(--rose-gold-light) !important;
}

/* ─────────────────────────────────────────────────────────────────────────
   "E SE EU TIRAR ESSE CUSTO?"
   ───────────────────────────────────────────────────────────────────────── */

.impact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-lg);
}

.impact-chip {
  min-height: 38px;
  padding: 0 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.impact-chip.active {
  border-color: var(--border-active);
  background: var(--gradient-rose-subtle);
  color: var(--rose-gold-light);
  font-weight: 600;
}

.impact-prices {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-sm);
}

.impact-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: rgba(0, 0, 0, 0.2);
  text-align: center;
}

.impact-price-label {
  font-size: 10.5px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.impact-price-value {
  font-family: var(--font-display);
  font-size: clamp(20px, 5.5vw, 26px);
  font-weight: 700;
  color: var(--rose-gold-light);
  font-variant-numeric: tabular-nums;
}

.impact-price.is-wrong {
  border-color: var(--color-loss-border);
  background: var(--color-loss-bg);
}

.impact-price.is-wrong .impact-price-value {
  color: var(--color-loss);
}

.impact-arrow {
  color: var(--text-muted);
}

.impact-verdict {
  display: flex;
  gap: 10px;
  margin-top: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-loss-border);
  background: var(--color-loss-bg);
}

.impact-verdict svg {
  color: var(--color-loss);
  flex-shrink: 0;
  margin-top: 2px;
}

.impact-verdict p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.impact-verdict p + p {
  margin-top: 8px;
}

.impact-verdict strong {
  color: var(--text-primary);
}

.impact-verdict-money strong {
  color: var(--color-loss);
}

/* ─────────────────────────────────────────────────────────────────────────
   SERVIÇOS
   ───────────────────────────────────────────────────────────────────────── */

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.service-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--gradient-card);
  overflow: hidden;
}

.service-card-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  width: 100%;
  padding: var(--space-lg);
  border: none;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.service-card-info h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.service-card-info p {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.service-card-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}

.service-card-price-value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--rose-gold-light);
  font-variant-numeric: tabular-nums;
}

.service-card-price-detail {
  font-size: 11.5px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.service-card-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: var(--touch-target);
  border: none;
  border-top: 1px solid var(--border-subtle);
  background: rgba(183, 110, 121, 0.06);
  color: var(--rose-gold-light);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.item-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.item-group-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.item-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-height: var(--touch-target);
  flex-wrap: wrap;
  opacity: 0.72;
}

.item-row.selected {
  opacity: 1;
  border-color: var(--border-active);
  background: var(--gradient-rose-subtle);
}

.item-check {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.item-check input[type='checkbox'] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: var(--rose-gold);
}

.item-row .item-name {
  font-size: 14px;
  overflow-wrap: anywhere;
}

.item-row .item-qty {
  width: 68px;
  min-height: 36px;
  padding: 4px 8px;
  text-align: center;
  font-size: 15px;
}

/* ─────────────────────────────────────────────────────────────────────────
   RESULTADO
   ───────────────────────────────────────────────────────────────────────── */

.stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.stat-card .stat-value {
  font-size: clamp(20px, 5.5vw, 26px);
  overflow-wrap: anywhere;
}

.stat-card .stat-value.warning {
  color: var(--color-warning);
}

.breakdown-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.formula-strip {
  display: flex;
  gap: 8px;
  margin-top: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-info-border);
  background: var(--color-info-bg);
  font-size: 13px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.formula-strip svg {
  color: var(--color-info);
  flex-shrink: 0;
  margin-top: 2px;
}

.formula-strip strong {
  color: var(--rose-gold-light);
}

.formula-strip em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 11.5px;
  color: var(--text-muted);
}

.price-comparison {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  align-items: center;
  margin-bottom: var(--space-md);
}

.price-arrow {
  justify-self: center;
  transform: rotate(90deg);
}

.alert {
  align-items: flex-start;
}

/* ─────────────────────────────────────────────────────────────────────────
   MODAIS  —  tela cheia no celular
   ───────────────────────────────────────────────────────────────────────── */

.modal-overlay {
  padding: 0;
  align-items: flex-end;
}

.modal {
  width: 100%;
  max-width: none;
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow: hidden;
  animation: sheet-up 240ms ease;
}

.modal-header {
  padding: var(--space-md) var(--space-lg);
  margin: 0;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-lg);
}

.modal-footer {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: 0;
  padding: var(--space-md) var(--space-lg);
  padding-bottom: calc(var(--space-md) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.modal-footer .btn {
  flex: 1;
  justify-content: center;
  min-height: var(--touch-target);
}

.modal-footer-start {
  flex: 0 0 auto !important;
  margin-right: auto;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ≥ 700px — formulários em duas colunas
   ═══════════════════════════════════════════════════════════════════════════ */

@media (min-width: 700px) {
  .main-content {
    padding: var(--space-lg);
  }

  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-grid .full-width {
    grid-column: 1 / -1;
  }

  .mode-picker {
    grid-template-columns: repeat(3, 1fr);
  }

  .toolbar {
    flex-direction: row;
    align-items: flex-end;
  }

  .page-actions .btn {
    width: auto;
  }

  .price-comparison {
    grid-template-columns: 1fr auto 1fr;
  }

  .price-arrow {
    transform: none;
  }

  .modal-overlay {
    align-items: center;
    padding: var(--space-lg);
  }

  .modal {
    max-width: 560px;
    max-height: 86dvh;
    border-radius: var(--radius-lg);
    animation: none;
  }

  .modal-wide {
    max-width: 680px;
  }

  .modal-footer .btn {
    flex: 0 0 auto;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ≥ 900px — as listas viram tabela
   ═══════════════════════════════════════════════════════════════════════════ */

@media (min-width: 900px) {
  .data-list {
    gap: 0;
  }

  .data-list-head,
  .data-list-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    align-items: center;
    gap: var(--space-md);
    padding: 10px var(--space-md);
    border: none;
    border-bottom: 1px solid var(--border-subtle);
    border-radius: 0;
    background: none;
  }

  .data-list-products .data-list-head,
  .data-list-products .data-list-row {
    grid-template-columns: 1.6fr 0.9fr 1.3fr 0.9fr auto;
  }

  .data-list-head {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom-color: var(--border-light);
  }

  .data-list-row:hover {
    background: rgba(183, 110, 121, 0.05);
  }

  .data-list-row .col-label {
    display: none;
  }

  .data-list-row .col-actions {
    grid-row: auto;
    grid-column: auto;
    justify-content: flex-end;
  }

  .data-list-row .col-currency,
  .data-list-row .col-percent,
  .data-list-row .col-number,
  .data-list-row .col-derived,
  .data-list-head .col-currency,
  .data-list-head .col-percent,
  .data-list-head .col-number,
  .data-list-head .col-derived {
    text-align: right;
    align-items: flex-end;
  }

  .breakdown-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* No desktop o (i) volta a ser popover ancorado ao campo */
  .field-info-scrim {
    background: transparent;
  }

  .field-info-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: auto;
    right: 0;
    bottom: auto;
    width: 340px;
    max-height: 440px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-lg) var(--space-lg);
    animation: pop-in 160ms ease;
  }

  .field-info-grab {
    display: none;
  }

  @keyframes pop-in {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ≥ 1024px — menu lateral fixo, sem barra superior
   ═══════════════════════════════════════════════════════════════════════════ */

@media (min-width: 1024px) {
  .app-layout {
    display: flex;
  }

  .topbar {
    display: none;
  }

  .sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    width: var(--sidebar-width);
    transform: none;
    flex-shrink: 0;
  }

  .scrim {
    display: none;
  }

  .main-content {
    flex: 1;
    min-width: 0;
    margin-left: 0;
    padding: var(--space-xl) var(--space-2xl);
  }

  .mode-toggle.compact span {
    display: inline;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Telas muito estreitas (≤ 360px)
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 360px) {
  .main-content {
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
  }

  .card,
  .hourly-card,
  .reveal-card,
  .impact-card,
  .headline-price {
    padding: var(--space-md);
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .impact-prices {
    grid-template-columns: 1fr;
  }

  .impact-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Acessibilidade
   ═══════════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 2px solid var(--rose-gold);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

@media print {
  .topbar,
  .sidebar,
  .scrim,
  .impact-card,
  .section-guide,
  .page-actions {
    display: none !important;
  }

  .main-content {
    padding: 0;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   SELO DE REFERÊNCIA
   Substitui a repetição da mesma frase em cada linha da lista: o selo marca
   a origem do número e o aviso completo aparece uma vez, no topo.
   ───────────────────────────────────────────────────────────────────────── */

.ref-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-info-border);
  background: var(--color-info-bg);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--color-info);
  vertical-align: middle;
  white-space: nowrap;
}

.reference-notice {
  margin-bottom: var(--space-sm);
  padding: 8px var(--space-md);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-info);
  background: var(--color-info-bg);
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* Área de toque do (i): 44px de alvo sem crescer visualmente */
.field-info-trigger::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--touch-target);
  height: var(--touch-target);
  transform: translate(-50%, -50%);
}

.field-info-trigger {
  position: relative;
}

/* ═══════════════════════════════════════════════════════════════════════════
   COMO USAR
   ═══════════════════════════════════════════════════════════════════════════ */

.sidebar-item-help {
  color: var(--rose-gold-light);
}

.sidebar-divider {
  display: block;
  height: 1px;
  margin: var(--space-sm) var(--space-md);
  background: var(--border-subtle);
}

/* ─── O caminho curto: o bloco que impede a desistência ─── */

.quickstart {
  margin-bottom: var(--space-lg);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-active);
  background: var(--gradient-rose-subtle);
  box-shadow: var(--shadow-glow);
}

.quickstart-head {
  display: flex;
  gap: 10px;
  margin-bottom: var(--space-lg);
}

.quickstart-head svg {
  color: var(--rose-gold);
  flex-shrink: 0;
  margin-top: 3px;
}

.quickstart-head h3 {
  font-family: var(--font-display);
  font-size: clamp(19px, 5vw, 23px);
  font-weight: 700;
  color: var(--text-primary);
}

.quickstart-head p {
  margin-top: 5px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.quickstart-head strong {
  color: var(--rose-gold-light);
}

.quickstart-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin: 0;
  padding: 0;
}

.quickstart-step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  width: 100%;
  min-height: var(--touch-target);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.22);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quickstart-step:hover,
.quickstart-step:focus-visible {
  border-color: var(--border-active);
  background: rgba(0, 0, 0, 0.32);
}

.quickstart-step > svg {
  color: var(--text-muted);
  flex-shrink: 0;
  margin-top: 3px;
}

.quickstart-step-n {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--gradient-rose);
  color: var(--text-inverse);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.quickstart-step-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.quickstart-step-body strong {
  font-size: 15px;
  color: var(--text-primary);
}

.quickstart-step-body em {
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  color: var(--rose-gold-light);
  margin-left: 6px;
}

.quickstart-step-body span {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.quickstart-cta {
  width: 100%;
  justify-content: center;
  margin-top: var(--space-lg);
}

/* ─── Seções do manual ─── */

.manual-section {
  margin-bottom: var(--space-xl);
}

.manual-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: clamp(18px, 4.6vw, 21px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.manual-section-title svg {
  color: var(--rose-gold);
  flex-shrink: 0;
}

.manual-section-lead {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.inline-check {
  color: var(--color-profit);
  vertical-align: -2px;
}

/* ─── Mapa das etapas ─── */

.step-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

.step-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--gradient-card);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.step-card:hover,
.step-card:focus-visible {
  border-color: var(--border-medium);
  transform: translateY(-1px);
}

.step-card.is-essential {
  border-left: 3px solid var(--color-profit);
}

.step-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.step-card-n {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}

.step-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.step-card-flag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.step-card-flag.is-essential {
  border-color: var(--color-profit-border);
  background: var(--color-profit-bg);
  color: var(--color-profit);
}

.step-card-what {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.step-card-why {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-muted);
  padding-top: 6px;
  border-top: 1px dashed var(--border-subtle);
}

/* ─── Perguntas com resposta escondida ─── */

.qa-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.qa-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-input);
  overflow: hidden;
}

.qa-item.open {
  border-color: var(--border-light);
}

.qa-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  width: 100%;
  min-height: var(--touch-target);
  padding: 10px var(--space-md);
  border: none;
  background: none;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.qa-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.qa-item.open .qa-chevron {
  transform: rotate(180deg);
  color: var(--rose-gold-light);
}

.qa-body {
  padding: 0 var(--space-md) var(--space-md);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ─── Erros que custam caro ─── */

.mistake-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.mistake {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-warning-border);
  border-left-width: 3px;
  background: var(--color-warning-bg);
}

.mistake h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.mistake p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.mistake-cost {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--color-warning-border);
  color: var(--color-warning) !important;
  font-weight: 500;
}

/* ─── Como ler o resultado ─── */

.reading-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

.reading-item {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--gradient-card);
}

.reading-item h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--rose-gold-light);
  margin-bottom: 5px;
}

.reading-item p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-secondary);
}

@media (min-width: 700px) {
  .quickstart-cta {
    width: auto;
  }
}

@media (min-width: 900px) {
  .step-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reading-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .mistake-list {
    gap: var(--space-md);
  }
}

.step-card.is-read {
  border-left: 3px solid var(--rose-gold);
}

.step-card-flag.is-read {
  border-color: var(--border-light);
  background: var(--gradient-rose-subtle);
  color: var(--rose-gold-light);
}
