/* SEI Fácil — landing page
   Direction: an official SEI process document that completes itself.
   Ink on paper, hairline form rules, institutional green = "concluído",
   monospace for every protocol number and datum. */

:root {
  --paper: #fbfaf7;
  --surface: #ffffff;
  --ink: #1a2730;
  --ink-2: #54616b;
  --ink-3: #8a949b;
  --rule: #e4e0d6;
  --rule-strong: #d2ccbe;
  --seal: #2d87aa;
  --seal-dark: #1f6178;
  --seal-tint: #e7f1f6;
  --stamp: #a83a2c;
  --stamp-tint: #f4e7e3;

  --maxw: 1240px;
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  /* Small-caps labels and numbers (formerly monospace) — now Inter to keep the
     friendly tone; the uppercase letter-spacing carries the "label" feel. */
  --font-mono: 'Inter', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--seal-dark);
}

.shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- NAV ---------- */
.nav {
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.1) blur(6px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
  color: var(--ink-2);
  transition: color .18s ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--seal-dark);
}

.brand {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -.01em;
}

.brand .mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: block;
  object-fit: contain;
}

.brand b {
  color: var(--seal-dark);
  font-weight: 800;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
  border-radius: 4px;
  padding: 11px 20px;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.btn-primary {
  background: var(--seal);
  color: #fff;
}

.btn-primary:hover {
  background: var(--seal-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule-strong);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.nav .btn {
  padding: 9px 18px;
  font-size: .88rem;
}

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--seal);
  outline-offset: 2px;
}

/* ---------- HERO ---------- */
.hero {
  padding: 84px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 5vw, 3.7rem);
  line-height: 1.04;
  letter-spacing: -.025em;
  margin: 18px 0 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--seal-dark);
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--ink-2);
  max-width: 30em;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-note {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: .76rem;
  color: var(--ink-3);
  letter-spacing: .01em;
}

/* ---------- HERO FIGURE (signature) ---------- */
.hero-figure {
  margin: 0;
  display: flex;
  justify-content: center;
}

.hero-figure img {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 16px;
  box-shadow: 18px 18px 36px rgba(26, 39, 48, .22);
  animation: figureIn .7s cubic-bezier(.2, .7, .2, 1) both;
}

@keyframes figureIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- LEDGER (time comparison) ---------- */
.ledger {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
  padding: 44px 0;
}

.ledger-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  margin-bottom: 28px;
}

.ledger-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.ledger-caption {
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--ink-3);
}

/* Donut comparison — one ring: teal = time with SEI Fácil, rest = time saved.
   The full circle represents the ~7 min a process takes by hand. */
.donut {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 6vw, 56px);
  flex-wrap: wrap;
  padding: 8px 0;
}

.ring {
  --size: 255px;
  --hole: 156px;
  --teal-inset: 18px;                              /* how far the teal arc is recessed from the rim */
  --teal-outer: calc(var(--size) / 2 - var(--teal-inset));
  --saved: #3ec46d;
  position: relative;
  width: var(--size);
  height: var(--size);
  display: grid;
  place-items: center;
  flex: none;
}

.ring::before,
.ring::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

/* Glossy sheen across the band — top-left light source for the 3D feel */
.gloss {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(26, 39, 48, .18) calc(var(--hole) / 2 - 1px),
      rgba(26, 39, 48, 0) calc(var(--hole) / 2 + 6px)),
    linear-gradient(150deg,
      rgba(255, 255, 255, .6),
      rgba(255, 255, 255, 0) 48%,
      rgba(26, 39, 48, .14));
  -webkit-mask: radial-gradient(circle, transparent calc(var(--hole) / 2 - .5px), #000 calc(var(--hole) / 2));
  mask: radial-gradient(circle, transparent calc(var(--hole) / 2 - .5px), #000 calc(var(--hole) / 2));
}

/* Saved slice (green) — full-thickness band, so it reads larger */
.ring::before {
  background: conic-gradient(transparent 0 calc(var(--pct) * 1%), var(--saved) 0);
  -webkit-mask: radial-gradient(circle, transparent calc(var(--hole) / 2 - .5px), #000 calc(var(--hole) / 2));
  mask: radial-gradient(circle, transparent calc(var(--hole) / 2 - .5px), #000 calc(var(--hole) / 2));
}

/* Time-with-SEI slice (teal) — thinner, recessed band */
.ring::after {
  background: conic-gradient(var(--seal) 0 calc(var(--pct) * 1%), transparent 0);
  -webkit-mask: radial-gradient(circle,
      transparent calc(var(--hole) / 2 - .5px),
      #000 calc(var(--hole) / 2),
      #000 calc(var(--teal-outer) - .5px),
      transparent var(--teal-outer));
  mask: radial-gradient(circle,
      transparent calc(var(--hole) / 2 - .5px),
      #000 calc(var(--hole) / 2),
      #000 calc(var(--teal-outer) - .5px),
      transparent var(--teal-outer));
}

.hole {
  position: relative;
  z-index: 1;
  text-align: center;
  line-height: 1.05;
}

.d-big {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.1rem;
  letter-spacing: -.03em;
  color: var(--seal-dark);
}

.d-small {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lg {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-size: .96rem;
  color: var(--ink-2);
}

.lg b {
  font-weight: 700;
  color: var(--ink);
}

.lg::before {
  content: '';
  width: 11px;
  height: 11px;
  border-radius: 3px;
  flex: none;
  transform: translateY(1px);
}

.lg-auto::before {
  background: var(--seal);
}

.lg-saved::before {
  background: #3ec46d;
}

.lg-total {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--ink-3);
}

/* ---------- PROBLEM ---------- */
.problem {
  padding: 80px 0;
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.problem h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 14px 0 14px;
}

.problem p {
  color: var(--ink-2);
  max-width: 30em;
}

.pains {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.pains li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  font-size: .98rem;
}

.pains li:last-child {
  border-bottom: 1px solid var(--rule);
}

.pains .idx {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--stamp);
  border: 1px solid color-mix(in srgb, var(--stamp) 35%, transparent);
  border-radius: 3px;
  width: 24px;
  height: 22px;
  display: grid;
  place-items: center;
  margin-top: 1px;
}

/* ---------- FLOW (tramitação timeline) ---------- */
.flow {
  background: var(--surface);
  border-top: 1px solid var(--rule);
  padding: 80px 0;
}

.flow-head {
  max-width: 34em;
  margin-bottom: 48px;
}

.flow-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  letter-spacing: -.02em;
  line-height: 1.15;
  margin-top: 14px;
}

.timeline {
  display: grid;
  gap: 0;
  border-left: 2px solid var(--rule);
  margin-left: 18px;
}

.tl-step {
  position: relative;
  padding: 0 0 36px 36px;
}

.tl-step:last-child {
  padding-bottom: 0;
}

.tl-step .node {
  position: absolute;
  left: -19px;
  top: -2px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--seal);
  color: var(--seal-dark);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: .82rem;
  display: grid;
  place-items: center;
}

.tl-step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  margin-bottom: 6px;
}

.tl-step p {
  color: var(--ink-2);
  font-size: .95rem;
  max-width: 40em;
}

.tl-step .tag {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  padding: 3px 9px;
}

.flow-more {
  margin: 36px 0 0;
  padding-left: 54px;
  color: var(--ink-2);
  font-size: 1rem;
}

.flow-more a {
  color: var(--seal-dark);
  font-weight: 600;
  text-decoration: none;
}

.flow-more a:hover {
  text-decoration: underline;
}

@media (max-width: 560px) {
  .flow-more {
    padding-left: 0;
  }
}

/* ---------- FOOTER ---------- */
.site-foot {
  background: var(--seal);
  padding: 28px 0;
}

.site-foot .shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.site-foot p {
  font-family: var(--font-mono);
  font-size: .76rem;
  color: rgba(255, 255, 255, .75);
}

.site-foot a {
  color: #fff;
  text-decoration: none;
}

.site-foot a:hover {
  text-decoration: underline;
}

/* ---------- DOCUMENT PAGES (privacy, manual, …) ----------
   Shared long-form layout used by secondary pages. Page-specific
   extras live in each page's own stylesheet. */

/* Brand acts as a home link on document pages (a plain span on the landing) */
.brand {
  text-decoration: none;
}

/* Narrower reading column than the landing page */
.doc-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-head {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--rule);
}

.page-head h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -.025em;
  line-height: 1.05;
  margin: 12px 0 10px;
}

.page-head .page-sub {
  color: var(--ink-3);
  font-size: .9rem;
}

/* Tinted callout */
.callout {
  background: var(--seal-tint);
  border: 1px solid color-mix(in srgb, var(--seal) 22%, transparent);
  border-left: 3px solid var(--seal);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 32px 0;
  color: var(--ink-2);
  font-size: .95rem;
  line-height: 1.6;
}

.callout strong {
  color: var(--seal-dark);
}

/* Sections, separated by hairline rules */
.block {
  padding: 30px 0;
  border-top: 1px solid var(--rule);
}

.block h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -.01em;
  color: var(--ink);
  margin-bottom: 12px;
}

.block h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  margin: 18px 0 4px;
}

.block p {
  color: var(--ink-2);
  font-size: .98rem;
  margin-bottom: 10px;
}

.block p:last-child {
  margin-bottom: 0;
}

.block ul {
  list-style: none;
  margin: 10px 0 0;
}

.block li {
  position: relative;
  padding: 6px 0 6px 22px;
  color: var(--ink-2);
  font-size: .98rem;
}

.block li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 15px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--seal);
}

/* Inline code / technical tokens stay monospace */
code {
  font-family: ui-monospace, 'Cascadia Code', 'Consolas', monospace;
  font-size: .85em;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--seal-dark);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .hero-grid,
  .problem-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero {
    padding: 56px 0 48px;
  }
}

@media (max-width: 560px) {
  .shell,
  .nav-inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .nav .brand-cta-label {
    display: none;
  }

  .nav-actions {
    gap: 14px;
  }

  .nav-link {
    font-size: .85rem;
  }

  .page-head {
    padding: 36px 0 24px;
  }
}

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

  .hero-figure img {
    animation: none;
  }

  * {
    transition-duration: .001ms !important;
  }
}
