/* =========================================================
   Protocolo 30 Dias — design system
   Mobile-first. Dark. Energia de treino.
   ========================================================= */
:root {
  --volt: #C6F135;
  --fire: #FF5A1F;
  --fire-soft: rgba(255, 90, 31, 0.14);
  --volt-soft: rgba(198, 241, 53, 0.14);

  --success: #2DD4A0;
  --danger: #FF4757;
  --warning: #FFB020;
  --info: #5B9DFF;

  --bg: #0A0C0F;
  --bg-card: #12151A;
  --bg-elevated: #1A1E25;
  --bg-input: #0E1116;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);

  --text: #F5F7FA;
  --text-muted: rgba(245, 247, 250, 0.62);
  --text-faded: rgba(245, 247, 250, 0.38);

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

  --radius-sm: 8px; --radius-md: 14px; --radius-lg: 20px; --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 10px rgba(0,0,0,.35);
  --shadow-md: 0 6px 24px rgba(0,0,0,.45);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.55);

  --t-fast: 140ms cubic-bezier(.4,0,.2,1);
  --t: 240ms cubic-bezier(.4,0,.2,1);
  --t-spring: 420ms cubic-bezier(.34,1.56,.64,1);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;

  --tabbar-h: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---------- Tipografia ---------- */
h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.18; }
h2 { font-size: 20px; font-weight: 750; letter-spacing: -.015em; }
h3 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.eyebrow {
  font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-faded);
}
.muted  { color: var(--text-muted); }
.faded  { color: var(--text-faded); }
.small  { font-size: 13px; }
.tiny   { font-size: 11px; }
.center { text-align: center; }
.volt   { color: var(--volt); }
.fire   { color: var(--fire); }

/* ---------- Estrutura ---------- */
.app {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + var(--space-xl));
}
.stack        { display: flex; flex-direction: column; gap: var(--space-md); }
.stack--sm    { gap: var(--space-sm); }
.stack--lg    { gap: var(--space-lg); }
.row          { display: flex; align-items: center; gap: var(--space-sm); }
.row--between { justify-content: space-between; }
.row--wrap    { flex-wrap: wrap; }
.grow         { flex: 1; min-width: 0; }
.section      { margin-top: var(--space-xl); }
.section__head{ display: flex; align-items: baseline; justify-content: space-between; margin-bottom: var(--space-md); }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: var(--space-sm);
  padding: 14px var(--space-md);
  background: rgba(10,12,15,.82);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.topbar__wrap { max-width: 620px; margin: 0 auto; width: 100%; display: flex; align-items: center; gap: var(--space-sm); }
.topbar__title { font-size: 17px; font-weight: 750; letter-spacing: -.01em; }
.topbar__back {
  width: 44px; height: 44px; display: grid; place-items: center; margin-left: -10px;
  border-radius: var(--radius-full); transition: background var(--t-fast);
}
.topbar__back:active { background: var(--bg-elevated); }

.logo { display: flex; align-items: center; gap: 9px; font-weight: 850; letter-spacing: -.02em; }
.logo__mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--fire), #FF8A3D);
  font-size: 15px; box-shadow: 0 4px 14px rgba(255,90,31,.35);
}

/* ---------- Tabbar ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding-bottom: var(--safe-b);
  background: rgba(12,14,18,.92);
  backdrop-filter: blur(20px) saturate(140%);
  border-top: 1px solid var(--border);
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  height: var(--tabbar-h); color: var(--text-faded);
  font-size: 10.5px; font-weight: 650; letter-spacing: .01em;
  transition: color var(--t-fast); position: relative; -webkit-tap-highlight-color: transparent;
}
.tab svg { width: 23px; height: 23px; stroke-width: 1.9; transition: transform var(--t-spring); }
.tab:active svg { transform: scale(.86); }
.tab.is-active { color: var(--text); }
.tab.is-active svg { stroke: var(--fire); }
.tab.is-active::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--fire);
}
.tab--record .tab__fab {
  width: 46px; height: 46px; margin-top: -14px; border-radius: var(--radius-full);
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--fire), #FF8A3D);
  box-shadow: 0 6px 20px rgba(255,90,31,.45);
  transition: transform var(--t-spring);
}
.tab--record:active .tab__fab { transform: scale(.9); }
.tab--record .tab__fab svg { stroke: #0A0C0F; width: 24px; height: 24px; stroke-width: 2.3; }
.tab__badge {
  position: absolute; top: 9px; right: calc(50% - 20px);
  min-width: 17px; height: 17px; padding: 0 5px; border-radius: var(--radius-full);
  background: var(--fire); color: #0A0C0F; font-size: 10px; font-weight: 850;
  display: grid; place-items: center; border: 2px solid var(--bg);
}

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}
.card--flush   { padding: 0; overflow: hidden; }
.card--tappable{ transition: transform var(--t-fast), border-color var(--t-fast); display: block; }
.card--tappable:active { transform: scale(.985); border-color: var(--border-strong); }
.card--hero {
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(255,90,31,.16), transparent 60%),
    radial-gradient(90% 80% at 0% 100%, rgba(198,241,53,.10), transparent 60%),
    var(--bg-card);
  border-color: rgba(255,90,31,.22);
}
.card--done {
  border-color: rgba(45,212,160,.35);
  background: linear-gradient(180deg, rgba(45,212,160,.09), transparent 55%), var(--bg-card);
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 20px; border: 1px solid transparent; border-radius: var(--radius-full);
  font-size: 15px; font-weight: 700; letter-spacing: -.01em;
  cursor: pointer; transition: transform var(--t-fast), background var(--t-fast), opacity var(--t-fast);
  -webkit-tap-highlight-color: transparent; text-align: center;
}
.btn:active { transform: scale(.965); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn svg { width: 19px; height: 19px; stroke-width: 2.1; }
.btn--primary { background: linear-gradient(135deg, var(--fire), #FF7A3D); color: #0A0C0F; box-shadow: 0 6px 20px rgba(255,90,31,.32); }
.btn--volt    { background: var(--volt); color: #0A0C0F; box-shadow: 0 6px 20px rgba(198,241,53,.25); }
.btn--ghost   { background: var(--bg-elevated); color: var(--text); border-color: var(--border); }
.btn--quiet   { background: transparent; color: var(--text-muted); border-color: var(--border); }
.btn--danger  { background: transparent; color: var(--danger); border-color: rgba(255,71,87,.35); }
.btn--block   { width: 100%; }
.btn--lg      { padding: 17px 24px; font-size: 16.5px; }
.btn--sm      { padding: 8px 14px; font-size: 13px; }

/* ---------- Formulários ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field__label { font-size: 13px; font-weight: 650; color: var(--text-muted); }
.field__hint  { font-size: 12px; color: var(--text-faded); }
.input, .textarea, .select {
  width: 100%; padding: 14px 15px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-md); font-size: 16px; /* 16px evita zoom no iOS */
  transition: border-color var(--t-fast), background var(--t-fast);
}
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--fire); background: var(--bg-elevated);
}
.textarea { resize: vertical; min-height: 92px; line-height: 1.55; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F5F7FA' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 17px; padding-right: 42px; }

/* ---------- Avatar ---------- */
.avatar {
  width: 40px; height: 40px; border-radius: var(--radius-full); flex-shrink: 0;
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
  background: linear-gradient(135deg, #2A303A, #1A1E25); color: var(--text);
  border: 1px solid var(--border); overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--sm { width: 30px; height: 30px; font-size: 11px; }
.avatar--lg { width: 68px; height: 68px; font-size: 22px; }
.avatar--coach { border-color: var(--fire); box-shadow: 0 0 0 2px rgba(255,90,31,.2); }

/* ---------- Chips / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: var(--radius-full);
  background: var(--bg-elevated); border: 1px solid var(--border);
  font-size: 12px; font-weight: 650; white-space: nowrap;
}
.chip--fire    { background: var(--fire-soft); border-color: rgba(255,90,31,.3); color: #FFB894; }
.chip--volt    { background: var(--volt-soft); border-color: rgba(198,241,53,.3); color: var(--volt); }
.chip--success { background: rgba(45,212,160,.13); border-color: rgba(45,212,160,.3); color: var(--success); }
.chip--warning { background: rgba(255,176,32,.13); border-color: rgba(255,176,32,.3); color: var(--warning); }
.chip--muted   { color: var(--text-muted); }

.scroller { display: flex; gap: var(--space-sm); overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { flex-shrink: 0; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-sm); }
.stat {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 13px 10px; text-align: center;
}
.stat__value { font-size: 22px; font-weight: 850; letter-spacing: -.03em; line-height: 1.1; }
.stat__label { font-size: 10.5px; font-weight: 650; color: var(--text-faded); text-transform: uppercase; letter-spacing: .07em; margin-top: 3px; }

/* ---------- Barra de progresso ---------- */
.progress { height: 8px; border-radius: var(--radius-full); background: var(--bg-input); overflow: hidden; }
.progress__fill {
  height: 100%; border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--fire), var(--volt));
  transition: width var(--t-spring);
}

/* ---------- Grid da jornada ---------- */
.journey { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
.jday {
  aspect-ratio: 1; border-radius: var(--radius-md);
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  font-size: 15px; font-weight: 750; color: var(--text-muted);
  transition: transform var(--t-fast), border-color var(--t-fast);
  position: relative;
}
.jday:active { transform: scale(.93); }
.jday__kind { font-size: 11px; line-height: 1; }
.jday--done { background: linear-gradient(160deg, rgba(45,212,160,.2), rgba(45,212,160,.05)); border-color: rgba(45,212,160,.45); color: var(--success); }
.jday--today { border-color: var(--fire); box-shadow: 0 0 0 2px rgba(255,90,31,.22); color: var(--text); }
.jday--rest { background: rgba(91,157,255,.07); border-color: rgba(91,157,255,.22); }
.jday--future { opacity: .55; }
.jday__check { position: absolute; top: 3px; right: 4px; font-size: 9px; }

/* ---------- Lista de exercícios ---------- */
.exercise {
  display: flex; align-items: center; gap: 12px; padding: 11px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.exercise:active { transform: scale(.985); border-color: var(--border-strong); }
.exercise__thumb {
  width: 74px; height: 50px; border-radius: var(--radius-sm); flex-shrink: 0;
  background: #000 center/cover no-repeat; position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.exercise__play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(0,0,0,.35);
}
.exercise__play svg { width: 22px; height: 22px; fill: #fff; stroke: none; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); }
.exercise__name { font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; }
.exercise__reps { font-size: 12.5px; color: var(--fire); font-weight: 700; margin-top: 1px; }

/* ---------- Player ---------- */
.video-wrap {
  position: relative; width: 100%; background: #000;
  border-radius: var(--radius-md); overflow: hidden;
}
.video-wrap--16x9 { aspect-ratio: 16 / 9; }
.video-wrap--9x16 { aspect-ratio: 9 / 16; max-height: 72dvh; margin: 0 auto; }
.video-wrap iframe, .video-wrap video { width: 100%; height: 100%; border: 0; object-fit: contain; }

/* ---------- Feed ---------- */
.post__head { display: flex; align-items: center; gap: 10px; padding: 13px var(--space-md) 11px; }
.post__name { font-size: 14.5px; font-weight: 750; letter-spacing: -.01em; }
.post__meta { font-size: 12px; color: var(--text-faded); }
.post__body { padding: 0 var(--space-md) 12px; font-size: 14.5px; line-height: 1.55; }
.post__actions { display: flex; align-items: center; gap: 6px; padding: 11px var(--space-md); border-top: 1px solid var(--border); }
.react-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: var(--radius-full);
  background: var(--bg-elevated); border: 1px solid var(--border);
  font-size: 13px; font-weight: 650; cursor: pointer;
  transition: transform var(--t-spring), background var(--t-fast), border-color var(--t-fast);
}
.react-btn:active { transform: scale(.9); }
.react-btn.is-on { background: var(--fire-soft); border-color: rgba(255,90,31,.4); color: #FFB894; }
.react-btn__emoji { font-size: 15px; line-height: 1; }

/* ---------- Comentários ---------- */
.comment { display: flex; gap: 10px; padding: 11px 0; border-top: 1px solid var(--border); }
.comment__bubble { background: var(--bg-elevated); border-radius: var(--radius-md); padding: 9px 12px; font-size: 14px; line-height: 1.5; }
.comment--coach .comment__bubble {
  background: linear-gradient(135deg, rgba(255,90,31,.13), rgba(255,90,31,.05));
  border: 1px solid rgba(255,90,31,.28);
}
.comment__ts {
  display: inline-flex; align-items: center; gap: 3px; margin-bottom: 4px;
  padding: 2px 7px; border-radius: var(--radius-full);
  background: rgba(255,90,31,.18); color: #FFB894;
  font-size: 11px; font-weight: 750; font-variant-numeric: tabular-nums; cursor: pointer;
}
.composer {
  position: sticky; bottom: calc(var(--tabbar-h) + var(--safe-b)); z-index: 40;
  display: flex; gap: 8px; align-items: flex-end;
  padding: 10px 0; background: linear-gradient(180deg, transparent, var(--bg) 22%);
}

/* ---------- Nota / avaliação ---------- */
.score-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.score-btn {
  aspect-ratio: 1; display: grid; place-items: center;
  border-radius: var(--radius-md); border: 1px solid var(--border);
  background: var(--bg-elevated); font-weight: 800; font-size: 16px; cursor: pointer;
  transition: transform var(--t-fast), background var(--t-fast);
}
.score-btn:active { transform: scale(.9); }
.score-btn.is-on { background: var(--fire); color: #0A0C0F; border-color: var(--fire); }
.evaluation-card {
  background: linear-gradient(150deg, rgba(255,90,31,.14), rgba(198,241,53,.06)), var(--bg-card);
  border: 1px solid rgba(255,90,31,.3); border-radius: var(--radius-lg); padding: var(--space-md);
}
.score-ring {
  width: 58px; height: 58px; border-radius: var(--radius-full); flex-shrink: 0;
  display: grid; place-items: center; font-size: 19px; font-weight: 850;
  background: var(--bg); border: 3px solid var(--fire); color: var(--volt);
}

/* ---------- Effort picker ---------- */
.effort { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.effort__opt {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 11px 4px;
  border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--bg-elevated);
  cursor: pointer; transition: transform var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.effort__opt:active { transform: scale(.93); }
.effort__opt.is-on { border-color: var(--fire); background: var(--fire-soft); }
.effort__emoji { font-size: 21px; line-height: 1; }
.effort__text { font-size: 9.5px; font-weight: 650; color: var(--text-faded); text-align: center; line-height: 1.25; }
.effort__opt.is-on .effort__text { color: var(--text); }

/* ---------- Gravador ---------- */
.recorder { background: #000; border-radius: var(--radius-lg); overflow: hidden; position: relative; aspect-ratio: 9/16; max-height: 62dvh; margin: 0 auto; }
.recorder video { width: 100%; height: 100%; object-fit: cover; }
.recorder__overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: var(--space-md); pointer-events: none; }
.recorder__timer {
  align-self: center; padding: 5px 13px; border-radius: var(--radius-full);
  background: rgba(0,0,0,.6); font-variant-numeric: tabular-nums; font-weight: 750; font-size: 14px;
  display: flex; align-items: center; gap: 7px;
}
.recorder__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--danger); animation: pulse 1.1s infinite; }
.recorder__controls { display: flex; align-items: center; justify-content: center; gap: var(--space-lg); pointer-events: auto; }
.rec-btn {
  width: 68px; height: 68px; border-radius: 50%; border: 4px solid rgba(255,255,255,.85);
  background: var(--danger); cursor: pointer; transition: all var(--t-spring);
  display: grid; place-items: center;
}
.rec-btn.is-recording { border-radius: var(--radius-md); width: 58px; height: 58px; background: #fff; }
.rec-btn:active { transform: scale(.9); }
.icon-btn {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); cursor: pointer;
  backdrop-filter: blur(8px); transition: transform var(--t-fast);
}
.icon-btn:active { transform: scale(.88); }
.icon-btn svg { width: 21px; height: 21px; stroke: #fff; }

@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .25 } }

/* ---------- Flash ---------- */
.flash-zone { position: fixed; top: 14px; left: 0; right: 0; z-index: 300; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 var(--space-md); pointer-events: none; }
.flash {
  pointer-events: auto; max-width: 560px; width: 100%;
  padding: 13px 16px; border-radius: var(--radius-md);
  background: var(--bg-elevated); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 650;
  display: flex; align-items: center; gap: 10px;
  animation: slideDown var(--t-spring);
}
.flash--notice { border-color: rgba(45,212,160,.45); }
.flash--alert  { border-color: rgba(255,71,87,.45); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }

/* ---------- Vazio ---------- */
.empty { text-align: center; padding: var(--space-2xl) var(--space-md); }
.empty__icon { font-size: 40px; margin-bottom: var(--space-sm); opacity: .8; }
.empty__title { font-size: 16px; font-weight: 750; margin-bottom: 5px; }
.empty__text { font-size: 14px; color: var(--text-muted); max-width: 300px; margin: 0 auto var(--space-md); line-height: 1.55; }

/* ---------- Segmented ---------- */
.segmented { display: flex; gap: 3px; padding: 3px; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-full); }
.segmented__item { flex: 1; text-align: center; padding: 8px 10px; border-radius: var(--radius-full); font-size: 13px; font-weight: 700; color: var(--text-muted); transition: background var(--t-fast), color var(--t-fast); }
.segmented__item.is-on { background: var(--bg-elevated); color: var(--text); box-shadow: var(--shadow-sm); }

/* ---------- Ranking ---------- */
.rank-row { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: var(--radius-md); background: var(--bg-card); border: 1px solid var(--border); }
.rank-row--me { border-color: var(--fire); background: linear-gradient(135deg, rgba(255,90,31,.1), transparent), var(--bg-card); }
.rank-pos { width: 27px; text-align: center; font-weight: 850; font-size: 15px; color: var(--text-faded); font-variant-numeric: tabular-nums; }
.rank-pos--1 { color: #FFD700; } .rank-pos--2 { color: #C0C8D4; } .rank-pos--3 { color: #CD7F32; }

/* ---------- Badges ---------- */
.badge-tile { width: 78px; text-align: center; }
.badge-tile__icon {
  width: 56px; height: 56px; margin: 0 auto 6px; border-radius: var(--radius-md);
  display: grid; place-items: center; font-size: 25px;
  background: var(--bg-elevated); border: 1px solid var(--border);
}
.badge-tile--earned .badge-tile__icon { background: linear-gradient(140deg, var(--fire-soft), var(--volt-soft)); border-color: rgba(255,90,31,.35); }
.badge-tile--locked { opacity: .32; }
.badge-tile__label { font-size: 10.5px; font-weight: 650; line-height: 1.3; color: var(--text-muted); }

/* ---------- Landing ---------- */
.hero { padding: var(--space-2xl) 0 var(--space-xl); text-align: center; }
.hero h1 { font-size: 34px; margin-bottom: var(--space-md); }
.hero__kicker { font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--fire); margin-bottom: var(--space-sm); }
.hero__sub { font-size: 16px; color: var(--text-muted); max-width: 420px; margin: 0 auto var(--space-lg); line-height: 1.6; }
.feature { display: flex; gap: 13px; align-items: flex-start; }
.feature__icon { width: 40px; height: 40px; border-radius: var(--radius-md); display: grid; place-items: center; font-size: 19px; background: var(--bg-elevated); border: 1px solid var(--border); flex-shrink: 0; }

/* ---------- Utilidades ---------- */
.divider { height: 1px; background: var(--border); }
.hidden { display: none !important; }
.tabular { font-variant-numeric: tabular-nums; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

@media (min-width: 720px) {
  .app { padding-bottom: var(--space-2xl); }
  .tabbar {
    top: 72px; bottom: auto; left: 50%; transform: translateX(-50%);
    width: min(620px, 100%); border-radius: var(--radius-full);
    border: 1px solid var(--border); grid-template-columns: repeat(5, 1fr);
    position: static; margin: 0 auto var(--space-lg); background: var(--bg-card);
  }
  .composer { bottom: 0; }
  h1 { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Ajustes de acessibilidade e alvo de toque ---------- */
/* Notas 1–10: mantém a leitura linear, mas garante alvo vertical de 44px. */
.score-grid[data-field] .score-btn { aspect-ratio: auto; min-height: 44px; }

/* Dias que ainda não chegaram: esmaece a moldura, nunca o número. */
.jday--future {
  opacity: 1;
  background: var(--bg-card);
  border-color: rgba(255, 255, 255, .06);
  color: rgba(245, 247, 250, .75);
}
.jday--future .jday__kind { opacity: .55; }

/* Interruptor de verdade no lugar do emoji decorativo. */
.switch {
  width: 46px; height: 27px; border-radius: var(--radius-full); flex-shrink: 0;
  background: var(--bg-input); border: 1px solid var(--border);
  display: flex; align-items: center; padding: 2px;
  transition: background var(--t), border-color var(--t);
}
.switch__knob {
  width: 21px; height: 21px; border-radius: 50%; background: var(--text-faded);
  transition: transform var(--t-spring), background var(--t);
}
.switch[aria-checked="true"] { background: var(--fire-soft); border-color: rgba(255, 90, 31, .5); }
.switch[aria-checked="true"] .switch__knob { transform: translateX(19px); background: var(--fire); }

/* O composer divide a linha com "marcar" e "Enviar": em tela estreita o campo
   precisa poder encolher, senão o placeholder quebra e fica cortado. */
.composer .textarea { min-width: 0; }
.composer form > .stack { min-width: 0; }
@media (max-width: 400px) {
  .composer .btn--sm { padding: 12px 10px; font-size: 12.5px; }
}
