/* =========================================================
   Seu Atestado Online - site fictício (exercício de front-end)
   Design original. Não representa serviço real.
   ========================================================= */

:root {
  --brand-900: #0b3d3a;
  --brand-700: #0f766e;
  --brand-600: #0d9488;
  --brand-500: #14b8a6;
  --brand-400: #2dd4bf;
  --brand-100: #ccfbf1;
  --brand-50:  #f0fdfa;

  --accent-500: #6366f1;
  --accent-400: #818cf8;

  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-300: #cbd5e1;
  --ink-100: #e2e8f0;

  --bg:       #ffffff;
  --bg-soft:  #f8fafc;
  --bg-tint:  #f0fdfa;

  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 6px 18px rgba(15, 23, 42, .08);
  --shadow-lg: 0 20px 45px rgba(15, 23, 42, .12);

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --maxw: 1180px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: var(--brand-700); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--ink-900);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.35rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--soft { background: var(--bg-soft); }
.section--tint { background: linear-gradient(180deg, var(--bg-tint), #ffffff); }
.section--dark {
  background: radial-gradient(1200px 600px at 80% -10%, #12504b 0, transparent 60%), var(--brand-900);
  color: #d3e7e4;
}
.section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: .75rem;
}
.section--dark .eyebrow { color: var(--brand-400); }

.lead { font-size: 1.15rem; color: var(--ink-500); max-width: 60ch; }
.section--dark .lead { color: #a9cfca; }

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* ---------- Demo banner ---------- */
.demo-banner {
  background: repeating-linear-gradient(45deg, #fef3c7, #fef3c7 12px, #fde68a 12px, #fde68a 24px);
  color: #78350f;
  font-size: .82rem;
  font-weight: 600;
  text-align: center;
  padding: 8px 16px;
  border-bottom: 1px solid #f59e0b;
}
.demo-banner strong { color: #7c2d12; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: .95rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  box-shadow: 0 10px 20px rgba(13, 148, 136, .28);
}
.btn--primary:hover { box-shadow: 0 14px 26px rgba(13, 148, 136, .38); }
.btn--ghost {
  background: #fff;
  color: var(--brand-700);
  border-color: var(--ink-100);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { border-color: var(--brand-400); color: var(--brand-700); }
.btn--light {
  background: #fff;
  color: var(--brand-700);
}
.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.4);
}
.btn--lg { padding: 1.1rem 2rem; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--ink-100);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink-900);
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand__logo {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-700));
  display: grid; place-items: center;
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.brand__logo svg { width: 22px; height: 22px; }
.brand span b { color: var(--brand-600); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav__links a {
  color: var(--ink-700);
  font-weight: 500;
  font-size: .95rem;
}
.nav__links a:hover { color: var(--brand-700); text-decoration: none; }
.nav__cta { display: flex; align-items: center; gap: .75rem; }

.nav__toggle {
  display: none;
  background: none; border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  color: var(--ink-900);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 340px at 88% 8%, var(--brand-100) 0, transparent 60%),
    radial-gradient(600px 300px at 5% 90%, #eef2ff 0, transparent 55%),
    #fff;
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(3.5rem, 7vw, 6rem);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 3rem;
  align-items: center;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #fff;
  border: 1px solid var(--brand-100);
  color: var(--brand-700);
  font-weight: 600;
  font-size: .85rem;
  padding: .45rem .9rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
}
.hero__badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(20,184,166,.2);
}
.hero p.lead { margin-bottom: 1.75rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__trust {
  display: flex;
  gap: 1.75rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.hero__trust div { display: flex; flex-direction: column; }
.hero__trust b { font-size: 1.5rem; color: var(--ink-900); }
.hero__trust span { font-size: .85rem; color: var(--ink-500); }

/* Hero visual: mock certificate card */
.hero__art { position: relative; }
.mock-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  border: 1px solid var(--ink-100);
  position: relative;
  z-index: 2;
}
.mock-card__head {
  display: flex; align-items: center; gap: .75rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--ink-100);
  margin-bottom: 1rem;
}
.mock-card__logo {
  width: 42px; height: 42px; border-radius: 11px;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-700));
  display: grid; place-items: center; color: #fff;
}
.mock-card__logo svg { width: 22px; height: 22px; }
.mock-card__title { font-weight: 700; color: var(--ink-900); }
.mock-card__sub { font-size: .78rem; color: var(--ink-500); }
.mock-line { height: 10px; border-radius: 6px; background: var(--ink-100); margin: .55rem 0; }
.mock-line.w-90 { width: 90%; }
.mock-line.w-70 { width: 70%; }
.mock-line.w-50 { width: 50%; }
.mock-card__stamp {
  margin-top: 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
}
.mock-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 600; font-size: .8rem;
  padding: .4rem .75rem; border-radius: var(--radius-pill);
  border: 1px solid var(--brand-100);
}
.mock-seal {
  width: 60px; height: 60px; border-radius: 50%;
  border: 2px dashed var(--brand-400);
  display: grid; place-items: center;
  color: var(--brand-600); font-size: .6rem; font-weight: 700;
  text-align: center; transform: rotate(-8deg);
}
.hero__art::before {
  content: "";
  position: absolute; inset: auto -30px -30px auto;
  width: 180px; height: 180px;
  background: radial-gradient(circle, var(--accent-400), transparent 70%);
  opacity: .25; filter: blur(10px); z-index: 1;
}

/* Floating pill on hero art */
.floaty {
  position: absolute;
  background: #fff;
  border: 1px solid var(--ink-100);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius);
  padding: .7rem .9rem;
  display: flex; align-items: center; gap: .6rem;
  font-size: .85rem; font-weight: 600; color: var(--ink-900);
  z-index: 3;
}
.floaty svg { width: 20px; height: 20px; color: var(--brand-600); }
.floaty--tl { top: -18px; left: -22px; }
.floaty--br { bottom: 24px; right: -26px; }

/* ---------- Logos / trust row ---------- */
.trustbar { border-top: 1px solid var(--ink-100); border-bottom: 1px solid var(--ink-100); background: #fff; }
.trustbar__inner { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; justify-content: center; padding: 1.5rem 0; }
.trustbar__inner span { color: var(--ink-500); font-weight: 600; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.trustbar__item { display: flex; align-items: center; gap: .5rem; color: var(--ink-700); font-weight: 700; }
.trustbar__item svg { width: 22px; height: 22px; color: var(--brand-600); }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-100); }
.card__icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--brand-50);
  display: grid; place-items: center;
  color: var(--brand-600);
  margin-bottom: 1rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .35rem; }
.card p { margin: 0; color: var(--ink-500); font-size: .95rem; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.step { position: relative; padding-top: 1rem; }
.step__num {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 1.1rem; margin-bottom: 1rem;
  box-shadow: 0 8px 16px rgba(13,148,136,.25);
}
.step h3 { font-size: 1.1rem; }
.step p { color: var(--ink-500); font-size: .95rem; margin: 0; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.plan {
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.plan--featured {
  border: 2px solid var(--brand-500);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}
.plan__tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff; font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .35rem .9rem; border-radius: var(--radius-pill);
}
.plan h3 { font-size: 1.25rem; }
.plan__desc { color: var(--ink-500); font-size: .9rem; min-height: 40px; }
.plan__price { display: flex; align-items: baseline; gap: .3rem; margin: 1rem 0 .25rem; }
.plan__price .cur { font-size: 1.1rem; font-weight: 700; color: var(--ink-700); }
.plan__price .val { font-size: 2.6rem; font-weight: 800; color: var(--ink-900); letter-spacing: -0.03em; }
.plan__price .per { color: var(--ink-500); font-size: .9rem; }
.plan ul { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; gap: .7rem; }
.plan li { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; color: var(--ink-700); }
.plan li svg { width: 20px; height: 20px; color: var(--brand-500); flex: none; margin-top: 1px; }
.plan li.muted { color: var(--ink-300); }
.plan li.muted svg { color: var(--ink-300); }
.plan .btn { margin-top: auto; }

/* ---------- Testimonials ---------- */
.quote {
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.quote__stars { color: #f59e0b; margin-bottom: .75rem; letter-spacing: 2px; }
.quote p { font-size: 1rem; color: var(--ink-700); }
.quote__who { display: flex; align-items: center; gap: .75rem; margin-top: 1rem; }
.quote__avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-400), var(--brand-500));
  color: #fff; display: grid; place-items: center; font-weight: 700;
}
.quote__who b { color: var(--ink-900); font-size: .92rem; display: block; }
.quote__who span { color: var(--ink-500); font-size: .82rem; }

/* ---------- FAQ / accordion ---------- */
.accordion { max-width: 780px; margin-inline: auto; }
.acc {
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  margin-bottom: .85rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.acc__q {
  width: 100%; text-align: left;
  background: none; border: 0; cursor: pointer;
  padding: 1.15rem 1.35rem;
  font-size: 1.02rem; font-weight: 600; color: var(--ink-900);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.acc__q .chev { transition: transform .25s ease; color: var(--brand-600); flex: none; }
.acc__q svg { width: 20px; height: 20px; }
.acc.open .acc__q .chev { transform: rotate(180deg); }
.acc__a {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
  color: var(--ink-500);
}
.acc__a > div { padding: 0 1.35rem 1.25rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: radial-gradient(900px 400px at 80% 0%, #12504b 0, transparent 60%), var(--brand-900);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  color: #d3e7e4;
}
.cta-band h2 { color: #fff; }
.cta-band .btn { margin-top: 1rem; }

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 600; color: var(--ink-900); margin-bottom: .4rem; font-size: .92rem; }
.field .hint { font-size: .8rem; color: var(--ink-500); margin-top: .3rem; }
.input, .select, .textarea {
  width: 100%;
  padding: .8rem .95rem;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--ink-900);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand-400);
  box-shadow: 0 0 0 3px rgba(20,184,166,.15);
}
.textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.radio-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.radio-card {
  position: relative;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-sm);
  padding: .9rem;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.radio-card input { position: absolute; opacity: 0; }
.radio-card b { display: block; color: var(--ink-900); font-size: .95rem; }
.radio-card span { font-size: .82rem; color: var(--ink-500); }
.radio-card:has(input:checked) { border-color: var(--brand-500); background: var(--brand-50); box-shadow: 0 0 0 2px rgba(20,184,166,.2); }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center; justify-content: center;
  padding: 20px; z-index: 100;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 460px; width: 100%;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: pop .2s ease;
}
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal__icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--brand-50); color: var(--brand-600);
  display: grid; place-items: center; margin: 0 auto 1rem;
}
.modal__icon svg { width: 34px; height: 34px; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background:
    radial-gradient(600px 280px at 85% -20%, var(--brand-100) 0, transparent 60%),
    var(--bg-soft);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-bottom: 1px solid var(--ink-100);
}
.breadcrumb { font-size: .85rem; color: var(--ink-500); margin-bottom: .75rem; }
.breadcrumb a { color: var(--brand-700); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-900);
  color: #94a3b8;
  padding: 3.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.site-footer a { color: #94a3b8; display: block; padding: .3rem 0; font-size: .92rem; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-brand { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 800; font-size: 1.15rem; margin-bottom: 1rem; }
.footer-brand .brand__logo { width: 34px; height: 34px; }
.footer-note { max-width: 34ch; font-size: .9rem; color: #94a3b8; }
.footer-bottom {
  border-top: 1px solid #1e293b;
  margin-top: 2.5rem; padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  flex-wrap: wrap;
  font-size: .85rem;
}
.footer-disclaimer {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-top: 2rem;
  font-size: .85rem;
  color: #cbd5e1;
}
.footer-disclaimer strong { color: #fbbf24; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.hidden { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 440px; margin-inline: auto; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav__links, .nav__cta .btn--ghost { display: none; }
  .nav__toggle { display: grid; place-items: center; }
  .nav.open .nav__links {
    display: flex; position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    background: #fff; border-bottom: 1px solid var(--ink-100);
    padding: 1rem 20px; gap: 1rem; box-shadow: var(--shadow-md);
  }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .plan--featured { transform: none; }
  .steps { grid-template-columns: 1fr; }
  .field-row, .radio-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero__trust { gap: 1.25rem; }
}
