@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/outfit-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/outfit-latin-ext.woff2') format('woff2');
}

:root {
  --bg: #f8f9fa;
  --surface: #ffffff;
  --surface-soft: #f2f5ef;
  --ink: #171b18;
  --muted: #4e5650;
  --line: #dce2dc;
  --brand: #147a32;
  --brand-deep: #073f1b;
  --brand-soft: #eaf5ec;
  --brand-line: #b9dabe;
  --warning-bg: #fff6df;
  --warning-line: #a46700;
  --warning-ink: #5e3b00;
  --error: #9b2c2c;
  --focus: #a53b30;
  --shadow: 0 1px 2px rgba(15, 27, 34, 0.04),
    0 14px 42px rgba(15, 27, 34, 0.08);
  --radius: 22px;
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Outfit', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.wrap {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  color: #fff;
  background: var(--ink);
  border-radius: 10px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: rgba(248, 249, 250, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-content {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(15, 27, 34, 0.16);
}

.header-label {
  padding: 6px 11px;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero {
  padding: clamp(54px, 8vw, 88px) 0 42px;
  background:
    radial-gradient(
      700px 360px at 84% 0%,
      rgba(20, 122, 50, 0.12),
      transparent 65%
    ),
    var(--bg);
}

.hero-content {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h1 {
  max-width: 18ch;
  margin-right: auto;
  margin-bottom: 0;
  margin-left: auto;
  font-size: clamp(38px, 5.4vw, 58px);
}

.hero-copy {
  max-width: 62ch;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

.updated-copy {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.safety-note {
  max-width: 650px;
  margin: 26px auto 0;
  padding: 16px 18px;
  display: grid;
  gap: 3px;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  border-radius: 14px;
}

.tool-section,
.result-section,
.explanation-section,
.faq-section {
  padding: clamp(46px, 6vw, 72px) 0;
}

.tool-section {
  padding-top: 18px;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 20px;
  align-items: start;
}

.planner-card,
.privacy-card,
.result-card,
.explanation-grid article,
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.planner-card {
  padding: clamp(24px, 4vw, 40px);
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

fieldset:focus-visible {
  border-radius: 14px;
}

legend,
.time-field > label,
.days-field > label {
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
}

.field-help {
  margin: 8px 0 0;
  color: var(--muted);
}

.interval-options {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.interval-options label {
  min-height: 58px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  font-weight: 800;
}

.interval-options label:has(input:checked) {
  color: var(--brand-deep);
  background: var(--brand-soft);
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}

.interval-options input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--brand-deep);
}

.time-field,
.days-field {
  margin-top: 30px;
}

.time-field > label,
.days-field > label {
  display: block;
}

input[type='time'],
input[type='number'] {
  width: min(100%, 260px);
  min-height: 54px;
  margin-top: 12px;
  padding: 10px 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #909890;
  border-radius: 12px;
}

[aria-invalid='true'] {
  border-color: var(--error);
}

.form-error {
  margin: 18px 0 0;
  color: var(--error);
  font-weight: 800;
}

.button {
  min-height: 48px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.button.primary {
  color: #fff;
  background: var(--brand);
}

.button.primary:hover {
  background: var(--brand-deep);
}

.button.secondary {
  color: var(--brand-deep);
  background: var(--brand-soft);
  border-color: var(--brand-line);
}

.button.secondary:hover {
  border-color: var(--brand);
}

.calculate {
  width: 100%;
  margin-top: 24px;
}

.scope-copy {
  margin: 24px 0 0;
  padding-top: 20px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.privacy-card {
  padding: 26px;
  box-shadow: none;
}

.privacy-card h2 {
  margin-bottom: 12px;
  font-size: 25px;
}

.privacy-card p {
  color: var(--muted);
}

.privacy-card a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--brand-deep);
  font-weight: 800;
}

.result-section {
  background: var(--surface-soft);
}

.result-card {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 42px);
}

.result-card > h2 {
  margin-bottom: 10px;
  font-size: clamp(28px, 4vw, 38px);
}

.print-only {
  display: none;
}

.result-summary {
  color: var(--muted);
  font-size: 17px;
}

.schedule-list {
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  list-style: none;
}

.schedule-list li {
  min-height: 94px;
  padding: 16px;
  display: grid;
  align-content: center;
  gap: 2px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.schedule-list strong {
  font-size: 25px;
  font-variant-numeric: tabular-nums;
}

.schedule-list span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.night-warning {
  margin: 22px 0 0;
  padding: 16px 18px;
  color: var(--warning-ink);
  background: var(--warning-bg);
  border: 1px solid var(--warning-line);
  border-radius: 12px;
  font-weight: 700;
}

.result-disclaimer {
  margin-top: 22px;
  padding: 17px 18px;
  display: grid;
  gap: 3px;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  border-radius: 12px;
}

.result-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.share-note,
.storage-note,
.browser-note,
.checklist-summary,
.checklist-end {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.action-status {
  min-height: 24px;
  margin: 8px 0 0;
  color: var(--brand-deep);
  font-weight: 700;
}

.weekly-checklist {
  margin-top: 38px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.checklist-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.checklist-heading h3 {
  margin-bottom: 0;
  font-size: 24px;
}

.checklist-summary {
  margin-bottom: 0;
  font-size: 16px;
}

.checklist-end {
  max-width: 68ch;
  margin-bottom: 0;
  color: var(--ink);
  font-weight: 700;
}

.text-button {
  min-height: 44px;
  padding: 7px 4px;
  color: var(--error);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.table-scroll {
  margin-top: 20px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  min-width: 82px;
  padding: 13px 12px;
  color: var(--ink);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

th:first-child {
  min-width: 112px;
  text-align: left;
}

td:last-child {
  text-align: left;
}

tr:last-child th,
tr:last-child td {
  border-bottom: 0;
}

tr th:last-child,
tr td:last-child {
  border-right: 0;
}

thead th {
  background: var(--surface-soft);
  font-size: 14px;
}

.marcacao {
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--brand-deep);
}

.day-schedule {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.check-item {
  min-height: 44px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.check-item time {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.tick-cta {
  margin-top: 34px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: #fff;
  background: #10130f;
  border-radius: 16px;
}

.tick-cta .eyebrow {
  color: #8ee0a7;
}

.tick-cta h3 {
  margin-bottom: 7px;
  font-size: 23px;
}

.tick-cta p:not(.eyebrow) {
  max-width: 54ch;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
}

.tick-cta .store-actions {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.tick-cta .button.secondary {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.42);
}

.tick-cta .button.secondary:hover {
  border-color: #fff;
}

.tick-cta .button:focus-visible {
  outline-color: #fff;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 26px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 38px);
}

.explanation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.explanation-grid article {
  padding: 23px;
  box-shadow: none;
}

.explanation-grid h3 {
  margin-bottom: 9px;
  font-size: 20px;
}

.explanation-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.faq-section {
  padding-top: 22px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 18px 20px;
  box-shadow: none;
}

.faq-list summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 800;
}

.faq-list p {
  margin: 10px 0 0;
  color: var(--muted);
}

.site-footer {
  padding: 34px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.footer-content p {
  margin: 8px 0 0;
}

.footer-content nav {
  display: grid;
  justify-content: end;
  gap: 8px;
}

.footer-content nav a {
  min-height: 32px;
  color: var(--brand-deep);
  font-weight: 800;
}

.footer-disclaimer {
  grid-column: 1 / -1;
  font-size: 13px;
}

.campo-copia {
  position: fixed;
  left: -9999px;
}

@media (max-width: 820px) {
  .tool-layout,
  .explanation-grid {
    grid-template-columns: 1fr;
  }

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

  .checklist-heading,
  .tick-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .tick-cta .store-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(100% - 36px, var(--max));
  }

  .interval-options,
  .schedule-list,
  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-content nav {
    justify-content: start;
  }

  .result-actions .button,
  .tick-cta .button {
    width: 100%;
  }

  .tick-cta .store-actions {
    width: 100%;
  }

  table {
    min-width: 0;
    table-layout: fixed;
  }

  th:first-child {
    width: 74px;
    min-width: 0;
  }

  th,
  td {
    padding: 10px 8px;
  }

  .day-schedule {
    gap: 6px;
  }

  .check-item {
    padding: 7px 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (forced-colors: active) {
  .button,
  .interval-options label,
  .safety-note,
  .result-disclaimer,
  .night-warning {
    border: 2px solid ButtonText;
  }
}

@media print {
  @page {
    margin: 14mm;
  }

  body {
    color: #000;
    background: #fff;
    font-family: system-ui, sans-serif;
    font-size: 10pt;
  }

  .site-header,
  .hero,
  .tool-section,
  .result-actions,
  .share-note,
  .action-status,
  .browser-note,
  .tick-cta,
  .explanation-section,
  .faq-section,
  .site-footer,
  .text-button {
    display: none !important;
  }

  .result-section {
    padding: 0;
    background: #fff;
  }

  .wrap {
    width: 100%;
  }

  .result-card {
    max-width: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .print-only {
    display: block;
  }

  .print-identification {
    margin: 12px 0 18px;
    padding: 10px 0;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
  }

  .print-identification p {
    margin: 4px 0;
  }

  .schedule-list {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

  .schedule-list li,
  .result-disclaimer,
  .night-warning {
    color: #000;
    background: #fff;
    border: 1px solid #000;
    break-inside: avoid;
  }

  .schedule-list span,
  .result-summary {
    color: #000;
  }

  .weekly-checklist {
    margin-top: 20px;
    padding-top: 18px;
    border-color: #000;
    break-before: auto;
  }

  .table-scroll {
    overflow: visible;
    border-color: #000;
  }

  table {
    min-width: 0;
  }

  th,
  td {
    min-width: 0;
    padding: 7px;
    color: #000;
    border-color: #000;
  }

  thead th {
    background: #fff;
  }

  thead {
    display: table-header-group;
  }

  tr {
    break-inside: avoid;
  }

  .day-schedule {
    gap: 5px;
  }

  .check-item {
    min-height: 0;
    padding: 4px 6px;
    color: #000;
    background: #fff;
    border-color: #000;
  }

  .marcacao {
    width: 16px;
    height: 16px;
    appearance: none;
    border: 1.5px solid #000;
    border-radius: 2px;
  }

  .marcacao:checked::after {
    content: '✓';
    display: block;
    color: #000;
    font-size: 14px;
    font-weight: 800;
    line-height: 12px;
    text-align: center;
  }
}
