/* ============================================================
   Postaí — site público
   Editorial, paper + ink, roxo Postaí como marca.
   Mobile-first.
   ============================================================ */

:root {
  --font-display: "Instrument Serif", "Times New Roman", Georgia, serif;
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  --font-mono: "Geist Mono", "SFMono-Regular", Consolas, ui-monospace, monospace;

  --paper:       #FAF8F3;
  --paper-warm:  #F2F0EB;
  --paper-sunk:  #E8E6E1;
  --ink-0:       #0A0A0A;
  --ink-2:       #2B2B2B;
  --ink-3:       #4A4A4A;
  --ink-4:       #7A7A7A;
  --ink-5:       #A8A8A8;
  --ink-7:       #E8E6E1;
  --line:        rgba(10,10,10,0.10);

  --brand:        #4A2A6B;
  --brand-deep:   #2A1840;
  --brand-soft:   #EDE5F2;
  --on-brand:     #FAF8F3;

  --r-2: 8px;
  --r-3: 14px;
  --r-pill: 999px;

  --shadow-1: 0 1px 2px rgba(10,10,10,0.04), 0 1px 1px rgba(10,10,10,0.03);
  --shadow-2: 0 6px 22px rgba(10,10,10,0.08);
  --shadow-lg: 0 28px 80px -28px rgba(10,10,10,0.32);

  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 140ms;
}

* { box-sizing: border-box; }

html { background: var(--paper); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--brand-soft); color: var(--ink-0); }

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

a { color: var(--ink-0); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

p { margin: 0 0 0.6em; }
ul, ol { margin: 0; padding: 0; }

/* ---------- Tipografia ---------- */

.h-display {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 6vw, 4.2rem);
  line-height: 1.03;
  letter-spacing: -0.025em;
  color: var(--ink-0);
}

.h-display em {
  font-style: italic;
  color: var(--brand);
}

.h-section {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink-0);
}

.h-section em {
  font-style: italic;
  color: var(--brand);
}

.lede {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 52ch;
}

.lede strong { color: var(--ink-0); font-weight: 600; }

.section-lede {
  font-size: 0.98rem;
  color: var(--ink-3);
  max-width: 56ch;
  margin: 0 auto 28px;
}

.examples .section-lede,
.for-whom .section-lede { text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-4);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.2px;
  background: currentColor;
  opacity: 0.7;
}

.eyebrow.centered {
  display: flex;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow.light { color: rgba(250,248,243,0.78); }

.micro {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--ink-4);
}

.h-display.light, .lede.light { color: var(--paper); }
.lede.light { color: rgba(250,248,243,0.82); }
.h-display.light em { color: #C4A3D6; }

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250,248,243,0.88);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  padding-bottom: 1px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--brand);
  line-height: 1;
}
.brand-name em { font-style: italic; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-4);
}
.nav-link:hover { color: var(--ink-0); text-decoration: none; }

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}

.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(0.5px); }
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.btn-lg {
  min-height: 48px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 500;
}

.btn-primary {
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: inset 0 0 0 1px var(--brand);
}
.btn-primary:hover {
  background: var(--brand-deep);
  box-shadow: inset 0 0 0 1px var(--brand-deep), var(--shadow-2);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-0);
  box-shadow: inset 0 0 0 1px var(--ink-0);
}
.btn-ghost:hover {
  background: var(--ink-0);
  color: var(--paper);
}

.btn-paper {
  background: var(--paper);
  color: var(--brand-deep);
  box-shadow: inset 0 0 0 1px var(--paper);
  font-weight: 600;
}
.btn-paper:hover {
  background: #fff;
  box-shadow: inset 0 0 0 1px #fff, var(--shadow-2);
}

/* ---------- Hero ---------- */

.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(28px, 5vw, 60px); }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 6vw, 56px);
  align-items: center;
}

.hero-copy { max-width: 720px; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

/* ---------- Como funciona ---------- */

.how {
  padding: clamp(40px, 7vw, 80px) 0;
  border-top: 1px solid var(--line);
}

.how .eyebrow { margin-bottom: 14px; }
.how .h-section { text-align: center; margin-bottom: 40px; }

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin-bottom: 10px;
}

.steps h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: -0.015em;
  color: var(--ink-0);
}

.steps p {
  margin: 0;
  color: var(--ink-3);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 38ch;
}

@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

/* ---------- Exemplos ---------- */

.examples {
  padding: clamp(40px, 7vw, 88px) 0;
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.examples .h-section,
.examples .eyebrow { text-align: center; }
.examples .h-section { margin-bottom: 10px; }

.examples-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 28px;
}

.example {
  margin: 0;
  background: var(--paper);
  border-radius: var(--r-3);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
.example img { width: 100%; height: auto; display: block; }
.example:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }

@media (min-width: 640px) { .examples-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (min-width: 1000px) { .examples-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }

/* ---------- Para quem ---------- */

.for-whom { padding: clamp(40px, 7vw, 80px) 0; text-align: center; }
.for-whom .h-section { margin-bottom: 22px; }

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 760px;
  margin: 0 auto;
}

.chips li {
  padding: 7px 13px;
  border-radius: var(--r-pill);
  background: var(--paper-warm);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--line);
}

/* ---------- Planos ---------- */

.plans {
  padding: clamp(48px, 8vw, 96px) 0;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.plans .eyebrow,
.plans .h-section { text-align: center; }
.plans .h-section { margin-bottom: 10px; }

.plans-lede {
  text-align: center;
  margin: 0 auto 36px;
  max-width: 56ch;
}

.plans-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
}

@media (min-width: 760px) {
  .plans-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: 18px;
  padding: 28px 26px;
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1);
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}

.plan:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-2);
}

.plan-featured {
  background:
    linear-gradient(180deg, rgba(74, 42, 107, 0.06), rgba(74, 42, 107, 0) 60%),
    var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--brand), var(--shadow-2);
  transform: translateY(-4px);
}

.plan-featured:hover {
  transform: translateY(-6px);
  box-shadow: inset 0 0 0 1.5px var(--brand), var(--shadow-lg);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.plan-head { margin-bottom: 14px; }

.plan-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.65rem;
  letter-spacing: -0.02em;
  color: var(--ink-0);
}

.plan-tag {
  margin: 4px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 4px 0 14px;
}
.plan-price strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.6rem;
  letter-spacing: -0.02em;
  color: var(--ink-0);
  line-height: 1;
}
.plan-price span {
  color: var(--ink-4);
  font-size: 0.95rem;
}

.plan-desc {
  margin: 0 0 18px;
  color: var(--ink-3);
  font-size: 0.95rem;
  line-height: 1.55;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 10px;
}

.plan-features li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.45;
}

.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 1.5px var(--brand);
}

.plan-cta {
  margin-top: auto;
  width: 100%;
}

.plan-fine {
  margin: 12px 0 0;
  font-size: 11.5px;
  color: var(--ink-4);
  line-height: 1.45;
  text-align: center;
}

/* ---------- CTA final ---------- */

.cta-final { padding: clamp(48px, 8vw, 96px) 0; }

.cta-box {
  background: var(--brand-deep);
  color: var(--paper);
  border-radius: 24px;
  padding: clamp(36px, 6vw, 64px) clamp(28px, 5vw, 56px);
  text-align: center;
}

.cta-box .h-display { margin: 6px auto 14px; max-width: 18ch; }
.cta-box .lede { margin: 0 auto 26px; max-width: 50ch; }
.cta-box .btn-paper { display: inline-flex; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-meta {
  font-size: 12.5px;
  color: var(--ink-4);
  text-align: center;
  flex: 1;
  min-width: 160px;
}

/* ---------- Responsivo extra ---------- */

@media (max-width: 520px) {
  .header-row { min-height: 58px; }
  .nav-link { display: none; }                 /* em telas estreitas o header fica só com marca + CTA */
  .btn-lg { width: 100%; }
  .hero-ctas .btn { flex: 1; }
  .footer-row { justify-content: center; text-align: center; }
}
