/* Drya — account screens (Figma "Web — Código", "Web — Códigos de recuperação",
 * "Web — Primeiro acesso") and the public pages built in the same style
 * (Preços, Teste grátis). Light, one centred card, dashboard tokens.
 */

:root {
  --bg: #f5f8f9;
  --card: #ffffff;
  --border: #e4ebef;
  --ink: #16242b;
  --mid: #65777f;
  --faint: #93a3ab;
  --accent: #0e9e96;
  --accent-hover: #0b8780;
  --accent-soft: #e5f5f3;
  --error: #b3261e;
  --error-soft: #fbeceb;
  --radius-card: 14px;
  --radius-control: 9px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

button { font: inherit; cursor: pointer; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- page shell ---------------------------------------------------------- */

.shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  gap: clamp(28px, 3.5vh, 44px);
}

/* Above the card on the code and first-access pages: 34px read as a speck on
   a large screen (Monica, 2026-09-28: "Drya logo is tiny"). It scales with the
   screen, up to 88px; the public header keeps its own size (.top .wordmark). */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: .1em;
  color: var(--ink);
  font-size: clamp(56px, 4.6vw, 88px);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.wordmark:hover { text-decoration: none; }
.wordmark__accent { color: var(--accent); }
.wordmark__dot { width: .2em; height: .2em; flex: none; border-radius: 50%; background: var(--accent); }

.card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 30px 32px 28px;
}
.card--wide { max-width: 640px; }

.card h1 { margin: 0 0 6px; font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.lead { margin: 0 0 22px; color: var(--mid); font-size: 13.5px; line-height: 1.45; }

/* ---- controls ------------------------------------------------------------ */

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 13px; font-weight: 500; }
.field input, .field select {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input[aria-invalid='true'] { border-color: var(--error); }
.hint { margin: -6px 0 14px; color: var(--mid); font-size: 12.5px; }

.code {
  display: flex;
  gap: 8px;
  margin: 4px 0 18px;
}
.code input {
  width: 52px;
  height: 58px;
  text-align: center;
  font: inherit;
  font-size: 22px;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  color: var(--ink);
  background: #fff;
}
.code input:focus { outline: none; border: 2px solid var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-control);
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn:disabled { opacity: .6; cursor: default; }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--border); }
.btn--ghost:hover { background: var(--bg); }
.btn + .btn { margin-top: 12px; }

.error {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: var(--radius-control);
  background: var(--error-soft);
  color: var(--error);
  font-size: 13.5px;
}
.ok {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: var(--radius-control);
  background: var(--accent-soft);
  color: #0b6e68;
  font-size: 13.5px;
}

.links { margin: 18px 0 0; font-size: 13px; display: flex; flex-direction: column; gap: 12px; }
.back { color: var(--mid); }

.small { color: var(--faint); font-size: 12px; margin: 16px 0 0; }

/* ---- first access -------------------------------------------------------- */

.steps { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.step { display: grid; grid-template-columns: 22px 1fr; gap: 4px 12px; }
.step__n {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-size: 11.5px; font-weight: 600;
  display: grid; place-items: center; margin-top: 1px;
}
.step h2 { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.step .field { margin-bottom: 6px; }
.step .hint { margin: 0; }
.qr { display: flex; gap: 16px; align-items: center; }
.qr__img {
  width: 116px; height: 116px; flex: none;
  border: 1px solid var(--border); border-radius: 10px; padding: 6px; background: #fff;
}
.qr__img svg { width: 100%; height: 100%; display: block; }
.qr p { margin: 0 0 8px; color: var(--mid); font-size: 12.5px; line-height: 1.45; }
.secret { font-family: ui-monospace, Consolas, monospace; font-size: 13px; letter-spacing: .05em; word-break: break-all; color: var(--ink); }

/* ---- recovery codes ------------------------------------------------------ */

.codes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  padding: 16px 14px;
  margin: 0 0 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 14px;
  letter-spacing: .06em;
  list-style: none;
}

/* ---- public header/footer (Preços, Teste grátis) -------------------------- */

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
}
.top .wordmark { font-size: 26px; }
.top nav { display: flex; gap: 20px; align-items: center; font-size: 14px; }
/* Design review 2026-09-28: the public header (Preços, Teste grátis) widens with
   the page to 1,360px and the wordmark scales with the screen; it was 26px on a
   1,920px screen, lost in the corner. */
.top { max-width: 1360px; padding: clamp(18px, 2.2vw, 28px) clamp(20px, 3vw, 48px); }
.top .wordmark { font-size: clamp(32px, 2.6vw, 48px); gap: .1em; }
.top .wordmark__dot { width: .2em; height: .2em; }
.top nav { gap: clamp(16px, 1.6vw, 28px); font-size: clamp(14px, 1vw, 17px); }
.top nav .pill { padding: .6em 1.2em; }
.top nav a { color: var(--ink); }
.top nav a[aria-current='page'] { color: var(--accent); font-weight: 600; }
.top nav .pill { background: var(--accent); color: #fff; padding: 8px 16px; border-radius: 999px; font-weight: 600; }
.top nav .pill:hover { background: var(--accent-hover); text-decoration: none; }
.top nav .pill[aria-current='page'] { color: #fff; }

.foot {
  padding: 22px 32px;
  color: var(--faint);
  font-size: 12.5px;
  text-align: center;
}

@media (max-width: 560px) {
  .card { padding: 24px 20px; }
  .code input { width: 44px; height: 52px; }
  .qr { flex-direction: column; align-items: flex-start; }
  .top { padding: 16px; }
  .top nav { gap: 12px; }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

.consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 18px; font-size: 13px; color: var(--mid); line-height: 1.45; }
.consent input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }

/* `hidden` always wins over a display rule. */
[hidden] { display: none !important; }

.note {
  margin: 0 0 18px; padding: 12px 14px;
  background: var(--accent-soft); border-radius: var(--radius-control);
  color: #0b4f4b; font-size: 13.5px; line-height: 1.5;
}

/* Alexa linking consent (alexa-vincular.html): the box beside its sentence. */
.check { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 14px; font-size: 14px; line-height: 1.4; cursor: pointer; }
.check input { margin-top: 2px; flex: none; width: 18px; height: 18px; }
