/* LetraJá — BR letras diferentes
   Direction: mata atlântica ink + mango neon (not purple/cream-terracotta/copper clone) */

:root {
  --ink: #0b1c15;
  --ink-soft: #1f3a2e;
  --muted: #5a7266;
  --paper: #eef6f1;
  --paper-2: #ddeae3;
  --surface: #f5fbf7;
  --line: #c5d9ce;
  --accent: #ff6a00;
  --accent-2: #e85d04;
  --accent-soft: #ffe8d6;
  --ok: #166534;
  --ok-bg: #dcfce7;
  --white: #ffffff;
  --radius: 14px;
  --font-display: "Bricolage Grotesque", "Avenir Next", sans-serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --max: 1080px;
  --header-h: 60px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 90% 55% at 8% -12%, rgba(255, 106, 0, 0.16), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 0%, rgba(13, 148, 136, 0.10), transparent 50%),
    linear-gradient(180deg, #f3faf6 0%, var(--paper) 45%, var(--paper-2) 100%);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--accent-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 100;
  padding: 0.5rem 0.85rem;
  background: var(--ink);
  color: var(--white);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
}

.skip-link:focus {
  top: 0.75rem;
}

.breadcrumbs {
  padding: 0.65rem 0 0;
}

.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  color: var(--line);
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumbs a:hover {
  color: var(--accent-2);
}

.breadcrumbs [aria-current="page"] {
  color: var(--ink-soft);
  font-weight: 650;
}

a:hover {
  color: var(--ink);
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(247, 249, 251, 0.88);
  border-bottom: 1px solid var(--line);
  min-height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

.brand span {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  font: inherit;
  cursor: pointer;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--accent-2);
}

.hero-tool {
  padding: 1.75rem 0 1rem;
}

.tool-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.25rem;
  box-shadow: none;
}

.tool-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.tool-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.tool-lead {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  max-width: 52ch;
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
}

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

.btn--copy {
  border-radius: 8px;
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
}

.btn--copy.is-ok {
  background: var(--ok-bg);
  border-color: #86efac;
  color: var(--ok);
}

.btn--primary {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.btn--primary:hover {
  background: var(--ink-soft);
}

#sg-input {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 1.05rem;
  background: var(--white);
  color: var(--ink);
}

#sg-input:focus {
  outline: 2px solid rgba(255, 106, 0, 0.35);
  border-color: var(--accent);
}

.tool-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.65rem 0 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
}

.style-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem;
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 132px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.style-card:hover {
  border-color: #ffb37a;
  transform: translateY(-1px);
}

.style-card__name {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.style-card__preview {
  margin: 0;
  flex: 1;
  font-size: 1.15rem;
  line-height: 1.35;
  word-break: break-word;
  color: var(--ink);
}

.content {
  padding: 2rem 0 3rem;
}

.content h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.content h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin: 2rem 0 0.6rem;
}

.content h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.4rem;
}

.content p,
.content li {
  color: var(--ink-soft);
}

.content .lede {
  font-size: 1.05rem;
  max-width: 62ch;
}

.steps {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
}

.steps li {
  margin-bottom: 0.4rem;
}

.hub {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.hub a {
  display: block;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  text-decoration: none;
  color: var(--ink);
  font-weight: 650;
  transition: border-color 0.2s ease;
}

.hub a:hover {
  border-color: var(--accent);
}

.hub a span {
  display: block;
  margin-top: 0.25rem;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  text-align: left;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: var(--paper-2);
  color: var(--ink);
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  background: var(--white);
  margin-bottom: 0.55rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}

.faq details[open] summary {
  margin-bottom: 0.45rem;
}

.note {
  border-left: 3px solid var(--accent);
  padding: 0.65rem 0.9rem;
  background: var(--accent-soft);
  border-radius: 0 8px 8px 0;
  color: var(--ink-soft);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 2rem 0 1.5rem;
  margin-top: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.footer-col h3 {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-col a {
  display: block;
  color: var(--ink-soft);
  text-decoration: none;
  margin-bottom: 0.3rem;
  font-size: 0.92rem;
}

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 0.85rem;
  }

  .nav.is-open {
    display: flex;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

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

  .style-card {
    transition: none;
  }
}

.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.tool-shell { animation: riseIn 0.55s ease both; }
.style-card { animation: riseIn 0.45s ease both; }
.style-card:nth-child(2) { animation-delay: 0.04s; }
.style-card:nth-child(3) { animation-delay: 0.08s; }
.style-card:nth-child(4) { animation-delay: 0.12s; }
.brand { position: relative; }
.brand::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px; height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.brand:hover::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .tool-shell, .style-card { animation: none; }
}
