/* Desastre — desastre.app shared styles */
:root {
  --bg: #FAF5EE;
  --bg-card: #FFFFFF;
  --bg-deep: #211A12;
  --ink: #241C12;
  --ink-soft: #6B5F4F;
  --line: #E9DFD2;
  --accent: #E8622C;
  --accent-deep: #C94E1D;
  --accent-soft: #FBEADF;
  --radius: 14px;
  --shadow: 0 2px 6px rgba(36, 28, 18, .06), 0 18px 44px rgba(36, 28, 18, .10);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: var(--mono);
  font-size: .86em;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: .1em .35em;
  white-space: nowrap;
}
pre { overflow-x: auto; background: var(--bg-deep); color: #F3E9DC; border-radius: var(--radius); padding: 18px 22px; margin: 18px 0; }
pre code { background: none; border: none; color: inherit; padding: 0; white-space: pre; }

/* ---------- Nav ---------- */
.nav {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 0;
}
.nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--ink); }
.nav .brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav .links { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 500; }
.nav .links a { color: var(--ink-soft); }
.nav .links a:hover { color: var(--ink); text-decoration: none; }
.btn {
  display: inline-block; background: var(--accent); color: #fff !important;
  font-weight: 650; padding: 12px 22px; border-radius: 999px;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--accent-deep); text-decoration: none; transform: translateY(-1px); }
.btn.small { padding: 8px 16px; font-size: 14.5px; }
.btn.ghost { background: transparent; color: var(--accent-deep) !important; border: 1.5px solid var(--accent); }
.btn.ghost:hover { background: var(--accent-soft); }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 30px; text-align: center; }
.hero .eyebrow {
  display: inline-block; font-size: 13.5px; font-weight: 650; letter-spacing: .04em;
  text-transform: uppercase; color: var(--accent-deep);
  background: var(--accent-soft); border: 1px solid #F3CDB6;
  padding: 5px 14px; border-radius: 999px; margin-bottom: 22px;
}
h1 { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.08; letter-spacing: -.022em; font-weight: 800; }
.hero p.sub { font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-soft); max-width: 680px; margin: 22px auto 0; }
.hero .cta-row { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; align-items: center; }
.hero .price-note { font-size: 14px; color: var(--ink-soft); margin-top: 14px; }
.hero-shot { margin: 52px auto 0; max-width: 75%; }
@media (max-width: 640px) { .hero-shot { max-width: 100%; } }
.hero-shot img, .shot img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line);
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.alt { background: #F3ECE1; }
.kicker { font-size: 13.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 10px; }
h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.018em; line-height: 1.15; font-weight: 750; margin-bottom: 14px; }
.lede { color: var(--ink-soft); max-width: 640px; font-size: 18px; }

/* Tools strip */
.tools-grid { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 10px; }
.tools-grid span {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 16px; font-size: 14.5px; font-weight: 550; color: var(--ink);
}

/* Screenshots */
.shots { margin-top: 44px; display: grid; gap: 56px; }
.shot { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.shot:nth-child(even) .shot-copy { order: 2; }
.shot h3 { font-size: 24px; letter-spacing: -.015em; margin-bottom: 10px; }
.shot p { color: var(--ink-soft); }
@media (max-width: 800px) { .shot { grid-template-columns: 1fr; } .shot:nth-child(even) .shot-copy { order: 0; } }

/* How it works */
.steps { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; }
.step .num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 750; margin-bottom: 16px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 15.5px; color: var(--ink-soft); }

/* Guides grid */
.guides-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 800px) { .guides-grid { grid-template-columns: 1fr; } }
.guide-card {
  display: block; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 26px; color: var(--ink);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.guide-card:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.guide-card h3 { font-size: 17.5px; line-height: 1.35; margin-bottom: 6px; }
.guide-card p { font-size: 14.5px; color: var(--ink-soft); }
.guide-card .more { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 650; color: var(--accent-deep); }

/* FAQ */
.faq { margin-top: 36px; max-width: 780px; }
.faq details { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 24px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 17px; padding: 18px 0; list-style: none; position: relative; padding-right: 34px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 14px; font-size: 24px; font-weight: 400; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; color: var(--ink-soft); font-size: 16px; }

/* Lightbox */
.shot img, .hero-shot img { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(36, 28, 18, .82);
  display: flex; align-items: center; justify-content: center;
  padding: 4vh 4vw; cursor: zoom-out;
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.lightbox .close {
  position: absolute; top: 18px; right: 24px;
  background: none; border: none; color: #F6EEE2; font-size: 34px;
  line-height: 1; cursor: pointer; padding: 6px;
}

/* Final CTA */
.cta-final { background: var(--bg-deep); color: #F6EEE2; text-align: center; border-radius: 24px; padding: 72px 32px; margin: 0 24px; }
.cta-final h2 { color: #fff; }
.cta-final p { color: #C9BBA6; max-width: 560px; margin: 12px auto 30px; }
.cta-final .price-note { font-size: 14px; color: #A5977F; margin-top: 14px; }

/* Footer */
footer { padding: 56px 0 40px; font-size: 14.5px; color: var(--ink-soft); }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 800px) { footer .cols { grid-template-columns: 1fr 1fr; } }
footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink); margin-bottom: 12px; }
footer ul { list-style: none; }
footer li { margin-bottom: 8px; }
footer a { color: var(--ink-soft); }
footer a:hover { color: var(--ink); }
footer .fineprint { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Guide pages ---------- */
.article { max-width: 780px; margin: 0 auto; padding: 40px 24px 72px; }
.article .breadcrumb { font-size: 14px; color: var(--ink-soft); margin-bottom: 26px; }
.article h1 { font-size: clamp(30px, 4.4vw, 44px); margin-bottom: 18px; }
.article .quick-answer {
  background: var(--accent-soft); border: 1px solid #F3CDB6; border-radius: var(--radius);
  padding: 20px 24px; margin: 26px 0; font-size: 17px;
}
.article .quick-answer strong { color: var(--accent-deep); }
.article h2 { font-size: 26px; margin: 44px 0 14px; }
.article h3 { font-size: 20px; margin: 30px 0 10px; }
.article p { margin: 14px 0; }
.article ul, .article ol { margin: 14px 0 14px 26px; }
.article li { margin-bottom: 8px; }
.article table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; display: block; overflow-x: auto; }
.article th, .article td { text-align: left; padding: 10px 14px; border: 1px solid var(--line); vertical-align: top; }
.article th { background: #F3ECE1; font-weight: 650; white-space: nowrap; }
.article td code { white-space: nowrap; }
.article .app-cta {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; margin: 40px 0; display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
}
.article .app-cta img.icon { width: 64px; height: 64px; border-radius: 14px; flex-shrink: 0; }
.article .app-cta .body { flex: 1; min-width: 240px; }
.article .app-cta h3 { margin: 0 0 6px; font-size: 18px; }
.article .app-cta p { margin: 0 0 14px; font-size: 15px; color: var(--ink-soft); }
.article .shot-inline img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); margin: 20px 0; }
.related { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.related h2 { font-size: 20px; margin: 0 0 16px; }
.related ul { list-style: none; margin-left: 0; }
.related li { margin-bottom: 10px; }
