/* Candeia landing: page CSS. The system is landing/system.css (tasteskill); this file holds the
   brand's own face, the flat grounds the owner asked for, and what sits inside the visuals: the
   app's real screens rebuilt as HTML (Agora, the day, goals, reminders, account). */

@font-face {
  font-family: "Urbanist";
  src: url("../fonts/urbanist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Urbanist";
  src: url("../fonts/urbanist-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------------------------------------------------------------- brand tokens */
:root {
  color-scheme: light;
  --card: #FFFFFF;
  /* the panels stand on flat brand colour, never a mesh (owner: flat grounds) */
  --ground-bg: #E9E4D8; --ground-surface: #F4F1EA; --ground-ink: #2A2A26; --ground-muted: #62655A; --ground-accent: #4F6238;
  /* the app's own palette, inside the screens */
  --a-bg: #F4F1EA; --a-surface: #FFFFFF; --a-surface-2: #E9E4D8; --a-text: #2A2A26; --a-muted: #62655A; --a-line: #E2DCCF;
  --a-accent: #4F6238; --a-accent-text: #FFFFFF; --a-accent-soft: #E4E8DA; --a-salvia: #93A27A; --a-madeira: #A67C52;
  --a-warn: #8A5D00; --a-warn-soft: #FCF1D6; --a-sol: #F7C968;
  --a-tint-manha: #FCEFCB; --a-ink-manha: #A86F00; --a-tint-tarde: #F2E4D4; --a-ink-tarde: #8A6236;
  --a-tint-noite: #E6EADC; --a-ink-noite: #4F6238; --a-event-soft: #F1E6D9; --a-event: #8A6236;
  --a-now: linear-gradient(150deg, #3A6F48, #4F6238 60%);
  --a-shadow: 0 1px 2px rgb(42 42 38 / 0.04), 0 10px 28px rgb(42 42 38 / 0.06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --card: #1F211C;
    --ground-bg: #2A2D25; --ground-surface: #1F211C; --ground-ink: #ECEAE2; --ground-muted: #A9AC9C; --ground-accent: #B3C28F;
    --a-bg: #161814; --a-surface: #1F211C; --a-surface-2: #2A2D25; --a-text: #ECEAE2; --a-muted: #A9AC9C; --a-line: #30332B;
    --a-accent: #B3C28F; --a-accent-text: #1A1F12; --a-accent-soft: #2B3122;
    --a-warn: #F7C968; --a-warn-soft: #3A3018;
    --a-tint-manha: #3A3018; --a-ink-manha: #F7C968; --a-tint-tarde: #33291E; --a-ink-tarde: #D8B48C;
    --a-tint-noite: #2B3122; --a-ink-noite: #B3C28F; --a-event-soft: #33291E; --a-event: #D8B48C;
    --a-shadow: none;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --card: #1F211C;
  --ground-bg: #2A2D25; --ground-surface: #1F211C; --ground-ink: #ECEAE2; --ground-muted: #A9AC9C; --ground-accent: #B3C28F;
  --a-bg: #161814; --a-surface: #1F211C; --a-surface-2: #2A2D25; --a-text: #ECEAE2; --a-muted: #A9AC9C; --a-line: #30332B;
  --a-accent: #B3C28F; --a-accent-text: #1A1F12; --a-accent-soft: #2B3122;
  --a-warn: #F7C968; --a-warn-soft: #3A3018;
  --a-tint-manha: #3A3018; --a-ink-manha: #F7C968; --a-tint-tarde: #33291E; --a-ink-tarde: #D8B48C;
  --a-tint-noite: #2B3122; --a-ink-noite: #B3C28F; --a-event-soft: #33291E; --a-event: #D8B48C;
  --a-shadow: none;
}
.ground-surface { --card: var(--p-bg); }

/* text people read: Urbanist at 500 (brand), headings 600 to 700 */
body { font-weight: 500; }
.t-card, h4, .card > h3 { font-weight: 600; }
.panel:not([data-fx], .panel--device) { background-image: none !important; background-color: var(--ground-bg) !important; }
.panel::before { display: none; }

/* the skip link: first in the header's .wrap, out of the flow until focused */
.skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; left: var(--s-4); top: var(--s-3); width: auto; height: auto; clip-path: none; z-index: 60; padding: var(--s-2) var(--s-4); background: var(--bg); border-radius: var(--r-sm); }
.nav__logo img { width: 28px; height: 28px; }
.footer .nav__logo img { width: 32px; height: 32px; }
.credits > summary::after { content: "Créditos"; }
.credits[open] > summary::after { content: "Fechar"; }

/* ---------------------------------------------------------------- the app's pieces (inside .ui) */
.cd-app { font-family: var(--font-text); font-weight: 500; color: var(--a-text); line-height: 1.4; }
.cd-app p { margin: 0; }
.cd-ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cd-ico--sun { width: 30px; height: 30px; color: #E9A93A; stroke-width: 1.6; }
.cd-ico--muted { color: var(--a-muted); }
.cd-ico--heart { width: 16px; height: 16px; color: #C0563F; fill: #C0563F; vertical-align: -2px; }
.cd-eyebrow { font-size: 12px; font-weight: 600; color: var(--a-muted); margin: 0; }
.cd-eyebrow--warn { color: var(--a-warn); }

.cd-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--a-line); background: var(--a-surface); color: var(--a-text); font-size: 14px; font-weight: 600; white-space: nowrap; }
.cd-btn--primary { background: var(--a-accent); border: 0; color: var(--a-accent-text); }
.cd-btn--line { background: var(--a-surface); }
.cd-btn--white { background: #FFFFFF; border-color: #FFFFFF; color: #4F6238; min-height: 46px; padding: 0 26px; font-size: 15px; }
.cd-btn--ghost { background: transparent; border-color: rgb(255 255 255 / 0.5); color: #FFFFFF; min-height: 46px; }
.cd-btn--block { width: 100%; }

.cd-hello { display: flex; align-items: center; gap: 10px; }
.cd-hello strong { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.cd-hello span { display: block; color: var(--a-muted); font-size: 12px; line-height: 1.35; }

.cd-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.cd-day { display: grid; justify-items: center; gap: 1px; padding: 5px 0 6px; border: 1px solid var(--a-line); border-radius: 12px; background: var(--a-surface); }
.cd-day i { font-style: normal; font-size: 10px; color: var(--a-muted); }
.cd-day b { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cd-day.is-on { background: var(--a-accent); border-color: var(--a-accent); color: var(--a-accent-text); }
.cd-day.is-on i { color: inherit; opacity: .85; }

/* the Agora card: filled musgo, white words, the logo faint in its corner (as in the app) */
.cd-now { position: relative; overflow: hidden; display: grid; gap: 8px; justify-items: start; padding: 20px 16px 16px; border-radius: 22px;
  background: var(--a-now); color: #FFFFFF; box-shadow: 0 16px 36px rgb(42 42 38 / 0.18); }

.cd-now > * { position: relative; z-index: 1; }
.cd-now__title { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.cd-now__ctx { font-size: 14px; opacity: .85; margin-top: -4px; }
.cd-now__anchor { font-size: 15px; color: rgb(255 255 255 / 0.85); }
.cd-dots { display: inline-flex; gap: 4px; }
.cd-dots i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; }
.cd-dots i.on { background: currentColor; }
.cd-now__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.cd-now__other { font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; opacity: .9; }
.cd-now--wide { padding: 26px 22px 22px; gap: 10px; }
.cd-now--wide .cd-now__title { font-size: 44px; }
.cd-now--wide .cd-now__ctx { font-size: 16px; }

.cd-next { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--a-surface); border: 1px solid var(--a-line); color: var(--a-text); }
.cd-next__time { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 16px; color: var(--a-accent); min-width: 3em; }
.cd-next__body { display: grid; gap: 1px; min-width: 0; }
.cd-next__body strong { font-size: 14px; font-weight: 600; }
.cd-next__body span { font-size: 12px; color: var(--a-muted); }

.cd-tabs { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  padding: 6px 6px 14px; background: var(--a-surface); border-top: 1px solid var(--a-line); }
.cd-tabs > span { display: grid; justify-items: center; gap: 2px; font-size: 10px; font-weight: 600; color: var(--a-muted); }
.cd-tabs > span.is-on { color: var(--a-accent); }
.cd-tabs .cd-ico { width: 20px; height: 20px; }
.cd-plus { justify-self: center; display: grid !important; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--a-accent); color: var(--a-accent-text) !important; font-size: 26px !important; font-weight: 400 !important; line-height: 1; }
.cd-plus--sm { width: 34px; height: 34px; font-size: 22px !important; }

.cd-period { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex: none; }
.cd-period .cd-ico { width: 18px; height: 18px; }
.cd-period--manha { background: var(--a-tint-manha); color: var(--a-ink-manha); }
.cd-period--tarde { background: var(--a-tint-tarde); color: var(--a-ink-tarde); }
.cd-period--noite { background: var(--a-tint-noite); color: var(--a-ink-noite); }
.cd-period--event { background: var(--a-event-soft); color: var(--a-event); }
.cd-period--task { background: var(--a-accent-soft); color: var(--a-accent); }

.cd-field { display: block; padding: 10px 12px; border: 1.5px solid var(--a-line); border-radius: 14px; background: var(--a-surface); font-size: 14px; color: var(--a-text); }
.cd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cd-chip { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--a-line); background: var(--a-surface); font-size: 13px; font-variant-numeric: tabular-nums; }
.cd-chip.is-on { background: var(--a-accent); border: 0; padding: 0 13.5px; color: var(--a-accent-text); }

/* a sheet: one screen of the app's builder, on its own ground */
.cd-sheet { display: grid; gap: 10px; padding: 18px 16px 24px; border-radius: 18px; background: var(--a-bg); border: 1px solid var(--a-line); box-shadow: var(--a-shadow); }
.cd-habit { font-size: 12px; font-weight: 600; color: var(--a-muted); }
.cd-q { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.cd-option { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 16px; border: 1.5px solid var(--a-line); background: var(--a-surface); }
.cd-option strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.cd-option span > span { display: block; font-size: 12px; color: var(--a-muted); }
.cd-option.is-on { border-color: var(--a-accent); background: var(--a-accent-soft); }

.cd-cel { justify-items: center; text-align: center; }
.cd-cel__art { width: 170px; height: auto; }
.cd-cel__title { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.cd-cel__item { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; width: 100%; padding: 10px 12px; text-align: left; border-radius: 16px; background: var(--a-surface-2); }
.cd-cel__item strong { display: block; font-size: 14px; font-weight: 600; }
.cd-cel__item span > span { display: block; font-size: 12px; color: var(--a-muted); }

/* ---------------------------------------------------------------- hero: the phone */
.cd-hero-frame { padding: 0; }
.cd-phone-slot { position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end; padding-right: 64px; }
.device { position: relative; flex: none; width: 280px; height: min(570px, calc(100% - 48px)); padding: 8px; border-radius: 40px; background: #1E201B;
  box-shadow: 0 1px 2px rgb(0 0 0 / .2), 0 24px 48px -16px rgb(42 42 38 / .35); }
.device__screen { position: relative; height: 100%; overflow: hidden; border-radius: 32px; background: var(--a-bg); display: flex; flex-direction: column; gap: 12px; padding: 0 12px 84px; }
.cd-status { display: flex; justify-content: space-between; align-items: center; height: 30px; padding: 0 12px; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; flex: none; }
.cd-status__dots { display: inline-flex; gap: 3px; }
.cd-status__dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.device .cd-hello, .device .cd-week { flex: none; }
.cd-hero-frame > .cd-float { position: absolute; }
.cd-float { left: 24px; bottom: 24px; width: 268px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 18px; background: var(--a-surface); border: 1px solid var(--a-line); color: var(--a-text); }
@media (max-width: 1279px) { .cd-float { display: none; } .cd-phone-slot { justify-content: center; padding-right: 0; } }
@media (max-width: 1023px) {
  .cd-phone-slot { align-items: flex-start; padding-top: 32px; }
  .device { height: 570px; }
}
@media (max-width: 639px) {
  .cd-phone-slot { padding-top: 20px; }
  .device .cd-status, .device .cd-hello, .device .cd-week { display: none; }
  .device__screen { padding-top: 12px; }
}

/* ---------------------------------------------------------------- Agora: the desktop app window */
.cd-head-row { margin-bottom: var(--s-7); }
.cd-head-row__text { display: grid; gap: var(--s-4); }
.cd-head-row__text p { font-size: var(--t-lead); line-height: 1.5; max-width: 60ch; }
.cd-window { display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; overflow: hidden; background: var(--a-bg); border: 1px solid var(--a-line); border-radius: 20px; box-shadow: var(--a-shadow); }
.cd-window__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 10px 18px; border-bottom: 1px solid var(--a-line); background: var(--a-surface); }
.cd-window__brand { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; color: var(--a-accent); }
.cd-window__bar > .cd-ico { justify-self: end; }
.cd-pills { display: inline-flex; align-items: center; gap: 4px; }
.cd-pills > span:not(.cd-plus) { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--a-muted); }
.cd-pills > span.is-on { background: var(--a-accent-soft); color: var(--a-accent); }
.cd-pills .cd-ico { width: 17px; height: 17px; }
.cd-window__body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; padding: 22px 24px 0; min-height: 0; }
.cd-pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 14px; }
.cd-pane > * { flex: none; }
.cd-pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--a-bg)); pointer-events: none; }
.cd-capture { display: grid; gap: 8px; padding: 14px 16px; border-radius: 18px; background: var(--a-surface); border: 1px solid var(--a-line); }
.cd-capture__label { font-size: 14px; font-weight: 700; }
.cd-capture__row { display: flex; gap: 8px; }
.cd-capture__row .cd-field { flex: 1; min-width: 0; padding: 9px 12px; }
.cd-pane--day { padding: 16px 16px 0; border-radius: 20px 20px 0 0; background: var(--a-surface); border: 1px solid var(--a-line); border-bottom: 0; }
.cd-pane__title { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.cd-pane__title span { font-size: 13px; font-weight: 500; color: var(--a-muted); letter-spacing: 0; margin-left: 6px; }
.cd-day-list { display: grid; gap: 4px; }
.cd-day-list li { display: grid; grid-template-columns: 42px 34px 1fr; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 14px; }
.cd-day-list li.is-now { background: var(--a-accent-soft); }
.cd-t { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--a-muted); }
.cd-day-list li.is-now .cd-t { color: var(--a-accent); }
.cd-day-list strong { display: block; font-size: 14px; font-weight: 600; }
.cd-day-list span > span { display: block; font-size: 12px; color: var(--a-muted); }
@media (min-width: 1024px) and (max-width: 1279px) { .cd-window__body { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } .cd-now--wide .cd-now__title { font-size: 38px; } }
@media (max-width: 1023px) {
  .cd-window__bar { grid-template-columns: auto 1fr; }
  .cd-window__bar > .cd-ico { display: none; }
  .cd-pills { justify-self: end; }
  .cd-window__body { grid-template-columns: minmax(0, 1fr); }
  .cd-pane--day { display: none; }
}
@media (max-width: 639px) {
  .cd-window__brand { display: none; }
  .cd-window__bar { grid-template-columns: 1fr; padding: 8px 10px; }
  .cd-pills { justify-self: center; }
  .cd-pills > span:not(.cd-plus) { padding: 6px 8px; font-size: 11px; gap: 4px; }
  .cd-pills .cd-ico { display: none; }
  .cd-window__body { padding: 14px 14px 0; }
  .cd-now--wide .cd-now__title { font-size: 32px; }
  .cd-pane--now .cd-hello { display: none; }
}

/* ---------------------------------------------------------------- Metas: the goal as a plant */
.cd-facts { display: grid; gap: var(--s-3); }
.cd-facts li { padding-top: var(--s-3); border-top: 1px solid var(--line); font-size: var(--t-body); }
.cd-goal-slot { --ax: 40px; --ay: 40px; width: 350px; }
@media (min-width: 1024px) { .cd-goal-frame { --ratio: 0px; height: min(var(--ly-fit), 720px); } }
#passos .panel { --p-h: 360px; }
.cd-goal { display: grid; gap: 10px; padding: 18px; border-radius: 22px; background: var(--a-surface); border: 1px solid var(--a-line); box-shadow: var(--a-shadow); }
.cd-goal__head { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; }
.cd-goal__head p { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.cd-goal__art { width: 96px; height: auto; }
.cd-hint { display: grid; gap: 10px; justify-items: start; padding: 12px 14px; border-radius: 16px; background: var(--a-accent-soft); font-size: 14px; }
.cd-parts { display: grid; gap: 6px; }
.cd-parts li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--a-bg); font-size: 14px; }
.cd-parts strong { font-weight: 600; }
.cd-mark { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--a-salvia); justify-self: center; }
.cd-mark--flower { width: 16px; height: 16px; border: 0; background: radial-gradient(circle, #F2B043 0 30%, #FFFAF0 32% 100%); box-shadow: inset 0 0 0 1px #E6D3A6; }
.cd-rate-slot { width: 264px; }
.cd-rate { display: grid; gap: 8px; padding: 16px; border-radius: 18px; background: var(--a-bg); border: 1px solid var(--a-line); box-shadow: 0 12px 30px rgb(42 42 38 / 0.14); }
.cd-rate__q { font-size: 14px; font-weight: 600; }
@media (min-width: 1024px) and (max-width: 1279px) { .cd-goal-slot { --ax: 32px; --ay: 32px; } }
@media (max-width: 1023px) { .cd-goal-slot { --ax: max(24px, calc(50% - 190px)); } }

/* ---------------------------------------------------------------- Lembretes */
#lembretes .panel { --p-h: 380px; }
.cd-fit > .ui { width: 100%; max-width: var(--fit-max, 100%); margin-inline: auto; }
.cd-notif { display: grid; gap: 4px; padding: 14px 16px; border-radius: 22px; background: var(--a-surface); border: 1px solid var(--a-line); box-shadow: 0 12px 30px rgb(42 42 38 / 0.10); color: var(--a-text); font-weight: 500; }
.cd-notif + .cd-notif { margin-top: 10px; }
.cd-notif__head { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--a-muted); }
.cd-notif__head img { width: 20px; height: 20px; border-radius: 6px; }
.cd-notif__when { margin-left: auto; }
.cd-notif__title { font-size: 15px; font-weight: 700; }
.cd-notif__body { font-size: 14px; }
.cd-notif__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.cd-notif__actions span { display: grid; place-items: center; min-height: 36px; border-radius: 12px; background: var(--a-surface-2); font-size: 13px; font-weight: 600; }
.cd-notif--old { opacity: .7; }
.cd-struggle { display: grid; gap: 10px; padding: 18px; border-radius: 22px; background: var(--a-warn-soft); border: 1px solid color-mix(in srgb, var(--a-sol) 55%, transparent); font-size: 15px; }

/* ---------------------------------------------------------------- Dados */
.cd-data-frame { min-height: 260px; }
.cd-data-slot { --w: 560px; --ay: 40px; width: min(560px, calc(100% - 48px)); }
.cd-account { display: grid; gap: 16px; padding: 22px; border-radius: 22px; background: var(--a-surface); border: 1px solid var(--a-line); box-shadow: var(--a-shadow); }
.cd-account__head { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.cd-account__title { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.cd-account__sub { font-size: 13px; color: var(--a-muted); }
.cd-drive-tile { --tile: 48px; }
.cd-drive-tile img { width: 28px; height: auto; }
.cd-howto { display: grid; gap: 8px; }
.cd-howto li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; padding: 10px 12px; border-radius: 14px; background: var(--a-bg); font-size: 14px; }
.cd-howto .cd-ico { width: 18px; height: 18px; color: var(--a-accent); margin-top: 1px; }
.cd-data-facts { margin-top: var(--s-7); }
.cd-data-facts > div { display: grid; gap: var(--s-2); align-content: start; padding-top: var(--s-4); border-top: 1px solid var(--line); }
.cd-data-facts p { font-size: var(--t-body); }
.cd-data-facts a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
@media (max-width: 639px) {
  .cd-account__head { grid-template-columns: auto 1fr; }
  .cd-account__head .cd-btn { display: none; }
  .cd-data-facts { margin-top: var(--s-6); row-gap: var(--s-4); }
}
.cd-menu-drive { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 8px; font-size: 14px; font-weight: 600; }
.cd-menu-drive img { width: 40px; height: auto; }

/* ---------------------------------------------------------------- Perguntas */
.cd-notice { color: var(--ink); }
.cd-photo { position: relative; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 3 / 2; background: var(--surface); }
.cd-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 40% 55%; }

/* ---------------------------------------------------------------- fixes from the checks */
/* the hero's h1 line box on the picture's top line */
.hero.hero--split .hero__text.hero-copy > h1:first-child { text-box: none; }
/* the goal and its three taps side by side, never one over the other */
.cd-goal-slot { --ax: 32px; width: 320px; }
.cd-rate-slot { width: 248px; }
@media (max-width: 1023px) { .cd-rate-slot { display: none; } }
/* the data frame is the band's own ground: no box of its own across the section */
.cd-data-frame { background: transparent; border: 0; }
.cd-data-slot { --w: 560px; }
@media (max-width: 1023px) { .frame > .stage > .at-rise.cd-data-slot { --ax: 0px; --ax-sm: 0px; width: 100%; } }
.stage > .cd-fit { --ax: 32px; }
@media (min-width: 1280px) { .cd-phone-slot { padding-right: 24px; } }
.frame > .stage > .at-rise.cd-goal-slot { --ax: 32px; }
@media (max-width: 1023px) { .frame > .stage > .at-rise.cd-goal-slot { --ax: calc(50% - 160px); } }
/* the photograph fills the question column's foot */
@media (min-width: 1024px) { #perguntas .cd-photo { flex: 1 1 auto; aspect-ratio: auto; min-height: 260px; } }
#perguntas .cd-photo { display: block; }
/* the Agora window holds whole lines: the greeting goes where the window is short */
@media (min-width: 1024px) and (max-width: 1279px) { .cd-pane--now .cd-hello, .cd-now__anchor, .cd-pane--now .cd-next { display: none; } }
@media (min-width: 640px) and (max-width: 1023px) and (min-height: 1100px) {
  #agora .ui.cd-window { height: auto; }
  .cd-window__body { grid-template-rows: auto auto; padding-bottom: 22px; }
  .cd-pane--day { display: flex; border-bottom: 1px solid var(--a-line); border-radius: 20px; padding-bottom: 8px; }
  .cd-pane--day::after { display: none; }
  .cd-day-list li:nth-child(n + 4) { display: none; }
}
/* tablet (640 to 1023): every stacked section on its screens */
@media (min-width: 640px) and (max-width: 1023px) {
  #passos, #perguntas { --h: 2; }
  #agora .cd-window { flex: none; height: clamp(420px, calc(100svh - 540px), 720px); }
  .cd-goal-frame { --ratio: 52%; }
  #lembretes .panel { --p-h: clamp(300px, calc(100svh - 620px), 560px); }
}
/* phone */
@media (max-width: 639px) {
  #passos .panel { --p-h: 260px; }
  #lembretes .panel { --p-h: 280px; }
  .cd-data-frame { min-height: 220px; }
}

/* tablet: the steps' panels and the question photograph take what two screens leave */
@media (min-width: 640px) and (max-width: 1023px) {
  #passos .panel { --p-h: clamp(300px, calc((200svh - 762px) / 3), 520px); }
  #perguntas .cd-photo { aspect-ratio: auto; height: clamp(320px, calc(200svh - 1300px), 720px); }
  .cd-now--wide { max-width: 560px; }
}
@media (max-width: 639px) {
  #lembretes .panel { --p-h: 420px; }
  #perguntas .cd-photo { aspect-ratio: 3 / 5; }
  .cd-goal-frame { --ratio: 75%; }
  .cd-window__body { padding: 14px 18px 0; }
}
/* tablet: the questions as two screens, the heading and the photograph on the first, the answers on the second */
@media (min-width: 640px) and (max-width: 1023px) {
  #passos .panel { --p-h: clamp(300px, calc((200svh - 800px) / 3), 520px); }
  #perguntas > .wrap.grid { grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); row-gap: calc(var(--padt) + var(--padb)); align-content: stretch; }
  #perguntas .split-col { display: flex; flex-direction: column; gap: var(--s-5); min-height: 0; height: 100%; }
  #perguntas .cd-photo { flex: 1 1 0; min-height: 0; height: auto; aspect-ratio: auto; }
  #perguntas .faq { align-self: start; }
}
@media (max-width: 639px) { #lembretes .panel { --p-h: 560px; } }
@media (min-width: 640px) and (max-width: 1023px) { #perguntas .split-col > .cd-notice { display: none; } #perguntas .faq__notice { display: block; } }
.faq__notice { display: none; margin-bottom: var(--s-5); }
.cd-struggle__later { font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; justify-self: start; }

/* Telas baixas (janela pequena, navegador do editor, celular deitado) ou estreitas: a seção cresce
   com o conteúdo em vez de passar por cima da próxima. Em telas normais, fica uma tela por seção. */
@media (max-width: 639px), (max-height: 760px) {
  main > :is(section, .section):not(.hero, .section--hero), footer.closing {
    display: flex; flex-direction: column;
    height: auto !important;
    min-height: calc(var(--hm, var(--h, 1)) * 100svh);
  }
  main > :is(section, .section):not(.hero, .section--hero) > :is(.wrap, .container), footer.closing > .wrap { flex: 1 0 auto; height: auto !important; min-height: 0; }
  main > :is(section, .section) > .wrap > .fill, .group > .fill { min-height: 260px; }
  /* a primeira tela também cresce, e o celular desenhado ganha uma altura própria */
  main > :is(.hero, .section--hero) { height: auto !important; min-height: 100svh; }
  main > :is(.hero, .section--hero) > .wrap { height: auto !important; }
  main > :is(.hero, .section--hero) .hero__media { height: clamp(320px, 62svh, 560px); min-height: 320px; }
}

/* o "Depois" dentro do celular da primeira tela */
.cd-next--phone { margin: 10px 12px 0; padding: 10px 12px; }
.cd-next--phone .cd-next__body span { font-size: 0.78em; }
/* screens per width (layout-v4 section 2) */
@media (max-width: 639px) { #passos, #lembretes, #perguntas { --hm: 2; } .cd-data-frame { min-height: 160px; } }
@media (min-width: 1024px) and (max-width: 1279px) { #passos, #perguntas { --h: 2; } }
@media (min-width: 1024px) { #lembretes .panel { --p-h: clamp(260px, calc(100svh - 440px), 380px); } }
@media (min-width: 640px) and (max-width: 1023px) { .cd-goal-frame { --ratio: 0px; height: clamp(340px, calc(100svh - 660px), 640px); } }

/* ---------------------------------------------------------------- telas reais do app (nov/2026)
   As ilustrações feitas à mão deram lugar a fotos da tela de verdade, sobre o céu da hora do app. */
.cd-sky { background: linear-gradient(180deg, #E4EDF7 0%, #ECEEF3 38%, #F6E7E1 70%, #FBDFCF 100%); border-color: transparent; }
.cd-sky--tarde { background: linear-gradient(180deg, #FFF5DA 0%, #FEEBBE 40%, #FADB9E 72%, #F5CB86 100%); }

/* hero: o celular com a tela Agora */
.shot-device { width: 268px; height: 566px; padding: 7px; border-radius: 44px; background: #1F2B3A;
  box-shadow: 0 1px 2px rgb(31 43 58 / .25), 0 28px 56px -18px rgb(31 43 58 / .38); }
.shot-device__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 37px; }
@media (max-width: 639px) { .shot-device { width: 240px; height: 506px; } }

/* os cartões dos passos e do "o que facilita": a tela recortada, saindo do painel */
.shot-panel { --p-h: 360px; background: linear-gradient(180deg, #E4EDF7 0%, #F6E7E1 70%, #FBDFCF 100%) !important; }
.shot-panel .stage > .shot-panel__img { left: 50%; top: 28px; transform: translateX(-50%); width: min(78%, 300px); height: auto;
  border-radius: 22px 22px 0 0; box-shadow: 0 1px 2px rgb(31 43 58 / .12), 0 16px 32px -14px rgb(31 43 58 / .3); }
.shot-panel--top .stage > .shot-panel__img { width: min(86%, 340px); border-radius: 18px 18px 0 0; }

/* Agora no computador: uma janela de navegador simples */
.shot-window { display: flex; flex-direction: column; min-height: 0; border-radius: 18px; overflow: hidden; background: #FFFFFF; border: 1px solid color-mix(in oklab, var(--p-ink) 10%, transparent);
  box-shadow: 0 1px 2px rgb(31 43 58 / .08), 0 30px 60px -28px rgb(31 43 58 / .35); }
.shot-window__bar { flex: none; display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: #F2F3F6; border-bottom: 1px solid #E3E6EC; }
.shot-window__bar i { width: 11px; height: 11px; border-radius: 50%; background: #D6DAE2; }
.shot-window__bar span { margin-left: 12px; padding: 3px 14px; border-radius: 999px; background: #FFFFFF; color: #5E6676; font-size: 12px; }
.shot-window img { display: block; width: 100%; flex: 1 1 auto; min-height: 0; height: 100%; object-fit: cover; object-position: 50% 100%; }
#agora .shot-window { height: clamp(380px, calc(100svh - 360px), 620px); }
@media (max-width: 1023px) { #agora .shot-window { height: auto; } #agora .shot-window img { height: auto; object-fit: contain; } }

/* metas: o cartão da meta sobre o céu da tarde */
.shot-frame { padding: clamp(20px, 4vw, 48px); }
.shot-frame .shot-card { display: block; width: min(100%, 380px); height: auto; border-radius: 22px;
  box-shadow: 0 1px 2px rgb(31 43 58 / .1), 0 24px 48px -20px rgb(31 43 58 / .35); }
/* celular e tablet: o bloco do topo cresce até caber o aparelho inteiro */
@media (max-width: 1023px) {
  main > .hero .hero__media.cd-hero-frame { height: 622px !important; min-height: 622px; flex: none; }
  .cd-hero-frame .cd-phone-slot { padding: 0; justify-content: center; align-items: center; }
}
@media (max-width: 639px) {
  main > .hero .hero__media.cd-hero-frame { height: 556px !important; min-height: 556px; }
}

/* tablet e janelas estreitas e altas (ex.: navegador do editor): o celular desenhado tem altura fixa,
   então a primeira tela cresce com ele em vez de deixar a próxima seção subir por cima */
@media (max-width: 1023px) {
  main > :is(.hero, .section--hero) { height: auto !important; min-height: 100svh; }
  main > :is(.hero, .section--hero) > .wrap { height: auto !important; }
}
