/* ===================================================================
   Valuation Factory — tokens
   =================================================================== */

:root {
  --ink: #212234;
  --ink-deep: #1a1b28;
  --ink-raised: #2a2b40;
  --paper: #ffffff;
  --mute: #9fa2b8;
  --steel: #9bb0cc;
  --steel-hover: #b4c2d6;
  --hair: #474a66;

  --gutter: max(20px, env(safe-area-inset-left));
  --gutter-r: max(20px, env(safe-area-inset-right));
  --max-w: 72rem;

  --font: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

/* ===================================================================
   Reset / base
   =================================================================== */

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ===================================================================
   Type scale — mobile-first
   =================================================================== */

.display {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.h2 {
  margin: 0 0 1.25rem;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}

.lead {
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--mute);
  max-width: 42ch;
}

.body {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--mute);
  max-width: 62ch;
  overflow-wrap: anywhere;
}

.body:last-child {
  margin-bottom: 0;
}

.body--todo {
  color: var(--steel);
  font-style: italic;
}

.meta {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--mute);
  margin: 0;
}

@media (min-width: 48rem) {
  .display { font-size: 3.5rem; }
  .h2 { font-size: 2.5rem; }
  .h3 { font-size: 1.5rem; }
  .lead { font-size: 1.25rem; }
}

@media (min-width: 72rem) {
  .display { font-size: 5rem; }
}

/* ===================================================================
   Layout shell
   =================================================================== */

.site-header,
.section,
.site-footer {
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}

.site-header,
main,
.site-footer {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

@media (min-width: 48rem) {
  .section {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
  }
}

/* ===================================================================
   Header / footer
   =================================================================== */

.site-header {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.brand {
  display: inline-flex;
  /* padding + equal negative margin: grows the tap target to 48px
     without shifting the logo's visual position (see verification). */
  padding: 10px 12px;
  margin: -10px -12px;
  text-decoration: none;
  border-radius: 4px;
}

.brand__logo,
.footer__logo {
  height: 28px;
  width: auto;
}

.site-footer {
  padding-top: 2.5rem;
  padding-bottom: max(2.5rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

@media (min-width: 48rem) {
  .site-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ===================================================================
   Buttons
   =================================================================== */

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0.875rem 1.5rem;
  background: var(--steel);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 3px;
  transition: background-color 0.15s ease;
}

.btn-primary:active {
  background: var(--steel-hover);
}

@media (hover: hover) {
  .btn-primary:hover {
    background: var(--steel-hover);
  }
}

@media (min-width: 48rem) {
  .btn-primary {
    width: auto;
    display: inline-flex;
  }
}

/* ===================================================================
   Bracket (SVG structure)
   =================================================================== */

.bracket {
  display: block;
  width: 40px;
  height: auto;
  overflow: visible;
  margin-bottom: 0;
}

.bracket path {
  fill: none;
  stroke: var(--paper);
  stroke-width: 3;
  stroke-linecap: round;
}

@media (min-width: 48rem) {
  .bracket {
    width: 56px;
  }
  .bracket path {
    stroke-width: 2.5;
  }
}

/* draw-on animation, played once on load */
.bracket--open path,
.bracket--close path {
  stroke-dasharray: 480;
  stroke-dashoffset: 480;
  animation: draw-bracket 1.1s 0.15s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes draw-bracket {
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bracket--open path,
  .bracket--close path {
    animation: none;
    stroke-dashoffset: 0;
  }
}

/* ===================================================================
   Hero
   =================================================================== */

.hero {
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  min-height: 70svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  padding-left: 1.25rem;
  border-left: 1px solid var(--paper);
}

.hero__content .display,
.hero__content .lead {
  align-self: stretch;
}

.hero__content .btn-primary {
  margin-top: 0.5rem;
}

@media (min-width: 48rem) {
  .hero {
    padding-top: 4rem;
    padding-bottom: 5rem;
  }
  .hero__content {
    gap: 2rem;
    padding-left: 2rem;
  }
}

/* ===================================================================
   Especificação (pilares)
   =================================================================== */

.specsheet {
  margin: 0;
  border-top: 1px solid var(--hair);
}

.specsheet__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--hair);
}

.specsheet__row dt {
  font-weight: 600;
  color: var(--paper);
}

.specsheet__row dd {
  margin: 0;
  color: var(--mute);
  max-width: 62ch;
}

@media (min-width: 48rem) {
  .specsheet__row {
    grid-template-columns: 14rem 1fr;
    gap: 2rem;
    padding: 1.75rem 0;
  }
}

/* ===================================================================
   Como funciona (steps)
   =================================================================== */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.steps__item {
  display: flex;
  gap: 1rem;
}

.steps__number {
  flex: none;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hair);
  border-radius: 50%;
  font-weight: 600;
  color: var(--steel);
}

.steps__text {
  min-width: 0;
}

@media (min-width: 48rem) {
  .steps {
    gap: 2.5rem;
  }
}

/* ===================================================================
   FAQ
   =================================================================== */

.faq-item {
  border-bottom: 1px solid var(--hair);
}

.faq-item:first-of-type {
  border-top: 1px solid var(--hair);
}

.faq-item summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0.875rem 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.75rem;
  flex: none;
  color: var(--steel);
}

.faq-item[open] summary::before {
  content: "\2212";
}

.faq-item .body {
  padding-bottom: 1.25rem;
}

/* ===================================================================
   CTA final
   =================================================================== */

.section--cta-final {
  padding-top: 2rem;
}

.cta-final__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  padding-left: 1.25rem;
  border-left: 1px solid var(--paper);
}

.cta-final__content .h2,
.cta-final__content .lead {
  align-self: stretch;
}

.cta-final__content .btn-primary {
  margin-top: 0.25rem;
}

@media (min-width: 48rem) {
  .cta-final__content {
    padding-left: 2rem;
  }
}
