@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Playfair+Display:wght@400;500;600;700;800&display=swap");

:root {
  --black: #111111;
  --accent: #30a8d4;
  --cobalt: #2545a8;
  --white: #ffffff;
  --gray: #f5f5f5;
  --gray-mid: #e0e0e0;
  --muted: #666666;
  --warm: #f6f3e7;
  --title: "Playfair Display", Georgia, serif;
  --body: "DM Sans", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  color: var(--black);
  background: var(--white);
  font-family: var(--body);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
img, svg { display: block; max-width: 100%; }
.site-shell { width: min(100%, 56rem); margin: 0 auto; }
.skip-link { position: fixed; left: .75rem; top: -5rem; z-index: 100; background: var(--black); color: white; padding: .65rem 1rem; border-radius: .4rem; }
.skip-link:focus { top: .75rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-nav { position: fixed; inset: 0 0 auto; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid #e5e7eb; }
.nav-inner { width: min(100%, 56rem); height: 5rem; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.wordmark { font-family: var(--title); font-size: 1.875rem; font-weight: 600; letter-spacing: .025em; text-decoration: none; }
.desktop-nav { display: flex; align-items: center; gap: 1.65rem; }
.desktop-nav > a, .mobile-nav a { color: #4b5563; text-decoration: none; transition: color .15s ease, opacity .15s ease; }
.desktop-nav > a:hover, .desktop-nav > a:focus-visible, .mobile-nav a:hover, .mobile-nav a:focus-visible { color: #000; }
.language-cta { min-height: 2.45rem; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .48rem .8rem; border: 1.5px solid var(--accent); border-radius: .5rem; background: rgba(48,168,212,.09); color: var(--black); font-size: .82rem; font-weight: 700; text-decoration: none; transition: background .15s ease, color .15s ease, transform .15s ease; }
.language-cta:hover, .language-cta:focus-visible { background: var(--accent); color: var(--white); transform: translateY(-1px); }
.language-cta-mobile { width: 100%; margin-top: .25rem; }
.menu-toggle { display: none; flex-direction: column; gap: .36rem; padding: .35rem; border: 0; background: transparent; }
.menu-toggle span { width: 1.25rem; height: 1px; background: var(--black); transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(.43rem) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-.43rem) rotate(-45deg); }
.mobile-nav { width: min(100%, 56rem); margin: 0 auto; padding: 1rem 1.5rem; border-top: 1px solid #e5e7eb; display: flex; flex-direction: column; gap: .8rem; background: white; }
.mobile-nav[hidden] { display: none; }

h1, h2, .wordmark { font-family: var(--title); }
h1, h2 { font-weight: 800; line-height: 1.12; }
h1 { margin: 0 0 1.5rem; font-size: clamp(2.5rem, 5vw, 3.75rem); }
h2 { margin: 0 0 1.75rem; font-size: clamp(1.85rem, 3vw, 2.25rem); }
h3 { margin: 0; }
p { margin: 0; }
.hero { min-height: 640px; padding: 9rem 1.5rem 5rem; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-copy { max-width: 32rem; margin: 0 auto 3rem; color: #4b5563; }
.hero-animate { animation: fade-up 1s cubic-bezier(.22,1,.36,1) both; }
.delay-1 { animation-delay: .2s; }
.delay-2 { animation-delay: .3s; }
.delay-3 { animation-delay: .4s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

.section { padding: 5rem 1.5rem; border-top: 1px solid #e5e7eb; }
.eyebrow { margin-bottom: .55rem; color: var(--accent); font-size: .85rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.fade-in { opacity: 0; transition: opacity 1.2s cubic-bezier(.22,1,.36,1); }
.fade-in.visible { opacity: 1; }
.button { min-height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .66rem 1.25rem; border-radius: .5rem; border: 1.5px solid transparent; font-size: .9rem; font-weight: 500; text-decoration: none; transition: opacity .15s ease, transform .15s ease, box-shadow .15s ease; }
.button:hover:not(:disabled), .button:focus-visible { opacity: .84; }
.button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid rgba(48,168,212,.32); outline-offset: 3px; }
.button:disabled { opacity: .32; }
.button-accent { padding: 1rem 2rem; background: var(--accent); color: white; }
.button-dark { background: var(--black); color: white; }
.button-outline { background: transparent; border-color: var(--black); color: var(--black); }

.example-card, .role-builder { background: var(--gray); border-radius: .75rem; }
.example-card { min-height: 188px; padding: 1.25rem; margin-bottom: 1.5rem; }
#example-content { opacity: 1; transition: opacity .4s ease; }
#example-content.switching { opacity: 0; }
.example-kicker { margin-bottom: .75rem; color: var(--muted); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.example-roles { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }
.role-tag { padding: .25rem .75rem; border: 1px solid var(--gray-mid); border-radius: .375rem; color: var(--muted); font-size: .85rem; }
.role-tag.highlight { color: white; background: var(--accent); border-color: var(--accent); font-weight: 500; }
.example-transfer { color: #333; }
.example-transfer span { margin-right: .4rem; color: var(--accent); }
.example-credit { margin-top: .5rem; color: var(--muted); font-size: .85rem; }
.role-builder { padding: 2rem; }
.instructions { margin-bottom: .75rem; color: var(--muted); font-style: italic; }
.role-entry { display: flex; gap: .5rem; margin-bottom: 1rem; }
.role-entry input, .signup-form input { width: 100%; min-width: 0; padding: .75rem 1rem; border: 1px solid var(--gray-mid); border-radius: .5rem; color: var(--black); background: white; }
.role-entry input:disabled { background: var(--gray); }
.role-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.role-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .75rem; border: 1px solid currentColor; border-radius: 999px; font-size: .85rem; color: var(--black); }
.role-chip button { padding: 0; border: 0; background: transparent; opacity: .55; line-height: 1; }
.role-chip button:hover, .role-chip button:focus-visible { opacity: 1; }
.map-heading { margin: 0 0 .5rem; font-family: var(--title); font-size: 1.25rem; font-weight: 600; letter-spacing: .025em; }
.map-stage { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.map-stage-inner { width: 100%; margin: 0 auto; }
.empty-map { width: 260px; height: 260px; margin: 2rem auto; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--gray-mid); border-radius: 50%; color: var(--muted); font-size: .75rem; }
.role-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.status-message { color: var(--muted); font-size: .75rem; }
.role-ring { transform-box: fill-box; transform-origin: center; animation: ring-grow .5s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes ring-grow { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

blockquote { margin: 0; }
#conceito > blockquote { margin-bottom: 2.5rem; padding: 1.25rem 1.5rem; border-left: 4px solid var(--accent); border-radius: .5rem; background: rgba(79,70,229,.08); font-family: var(--title); font-size: clamp(1rem, 2vw, 1.125rem); font-style: italic; line-height: 1.625; }
.concept-copy { margin-bottom: 3rem; color: #333; }
.concept-copy p + p { margin-top: 1rem; }
.testimonial-grid { min-height: 280px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; opacity: 1; transition: opacity .6s ease; }
.testimonial-grid.switching { opacity: 0; }
.testimonial-card { min-height: 120px; padding: 1.25rem; border-radius: .75rem; background: var(--gray); }
.testimonial-card blockquote { margin-bottom: .75rem; color: var(--cobalt); font-family: Candara, var(--body); font-style: italic; font-size: 1rem; line-height: 1.45; }
.testimonial-card cite { color: var(--accent); font-size: .75rem; font-style: normal; font-weight: 500; }
.carousel-dots { margin-top: 1.5rem; display: flex; justify-content: center; gap: .5rem; }
.carousel-dots button { width: .5rem; height: .5rem; padding: 0; border: 0; border-radius: 999px; background: var(--gray-mid); transition: width .3s ease, background .3s ease; }
.carousel-dots button.active { width: 1.25rem; background: var(--accent); }

.book-layout { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 2.25rem; align-items: start; }
.book-cover-wrap { min-width: 220px; }
.book-cover { width: 220px; height: auto; border-radius: .5rem; box-shadow: 0 12px 30px rgba(17,17,17,.12); }
.book-copy h2 { margin-bottom: .2rem; }
.book-subtitle { margin-bottom: .25rem; font-family: var(--title); font-size: 1.15rem; }
.author { margin-bottom: .15rem; font-size: .9rem; }
.author a { color: var(--muted); }
.publisher { color: var(--muted); font-size: .9rem; }
.publisher a { color: var(--black); font-weight: 700; text-underline-offset: .2em; }
.purchase-callout { margin: 1.35rem 0 1.6rem; padding: 1rem 1.1rem; border: 1px solid rgba(48,168,212,.4); border-radius: .75rem; background: rgba(48,168,212,.09); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.purchase-callout > span { max-width: 13rem; font-family: Candara, var(--body); line-height: 1.35; }
.purchase-callout .button { flex: 0 0 auto; box-shadow: 0 8px 18px rgba(48,168,212,.18); }
.book-quote { color: #333; font-family: Candara, var(--body); font-style: italic; line-height: 1.6; }
.quote-source { margin-top: .7rem; color: var(--muted); font-size: .9rem; }
.book-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.text-link { color: var(--muted); font-size: .86rem; text-underline-offset: .2em; }

.community-section { padding-top: 5rem; padding-bottom: 5rem; }
.community-panel { padding: 2rem; border-radius: 1rem; background: var(--accent); }
.community-panel > h2 { margin-bottom: 1rem; color: white; }
.community-intro { margin-bottom: 2rem; color: rgba(255,255,255,.88); }
.community-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.signup-card { padding: 1.25rem; border-radius: .75rem; background: white; }
.signup-card h3 { margin-bottom: .25rem; font-size: 1rem; font-weight: 500; }
.signup-card > p { min-height: 4.6rem; margin-bottom: 1rem; color: var(--muted); font-size: .86rem; }
.signup-form { display: grid; gap: .5rem; }
.signup-form .button { width: 100%; }
.form-status { min-height: 1.2rem; font-size: .75rem; }
.form-status.error { color: #b42318; }
.form-status.success { color: #176b45; }

.site-footer { padding: 2rem 1.5rem; border-top: 1px solid #f3f4f6; display: flex; justify-content: space-between; gap: 1.5rem; font-size: .78rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1.25rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { opacity: .6; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-width: 767px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: flex; }
  .section { padding-top: 4rem; padding-bottom: 4rem; }
  .testimonial-grid, .community-grid { grid-template-columns: 1fr; }
  .testimonial-grid { min-height: 610px; }
  .book-layout { grid-template-columns: 1fr; }
  .book-cover { margin: 0 auto; }
  .book-copy { text-align: left; }
  .purchase-callout { align-items: stretch; flex-direction: column; }
  .purchase-callout > span { max-width: none; }
  .site-footer { flex-direction: column; align-items: center; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 520px) {
  .role-builder { padding: 1.4rem; }
  .role-entry { flex-direction: column; }
  .role-entry .button { width: 100%; }
  .wordmark { font-size: 1.55rem; }
  .hero { min-height: 610px; }
}
