/* =========================================================
   FLOWBERRY TRAVEL — EDITORIAL REDESIGN
   Monocle × Kinfolk × adventurer soul
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;0,900;1,400;1,700&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --ink:          #16181D;
  --ink-soft:     #2A2D35;
  --paper:        #F6F2EB;
  --paper-dark:   #EFE8DD;
  --rule:         #D8CEBF;
  --muted:        #6E6659;

  --berry:        #A8321C;
  --berry-bright: #C83A1E;
  --ochre:        #C8963E;
  --sky:          #4A6A8A;
  --forest:       #3F5947;

  --white:        #FFFFFF;
  --shadow:       0 20px 60px -20px rgba(22, 24, 29, 0.25);

  --serif:   'Playfair Display', Georgia, serif;
  --sans:    'Inter', -apple-system, sans-serif;
  --mono:    'JetBrains Mono', 'Courier New', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image:
    url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

/* TYPOGRAPHY */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--berry);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.eyebrow::before {
  content: '';
  width: 2rem;
  height: 1px;
  background: var(--berry);
}

/* NAV */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.2rem 3vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(246, 242, 235, 0.82);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, padding 0.3s;
}

nav.scrolled {
  border-bottom-color: var(--rule);
  padding: 0.8rem 3vw;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.logo-img { height: 38px; width: auto; }

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.25s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--berry);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(.5,0,.2,1);
}

.nav-links a:hover { color: var(--berry); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

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

.lang-sel { position: relative; }

.lang-btn {
  background: transparent;
  border: 1px solid var(--rule);
  padding: 0.5rem 0.85rem;
  border-radius: 100px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.2s;
}

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

.flag-icon {
  width: 20px;
  height: 14px;
  display: inline-block;
  background-size: cover;
  background-position: center;
  border-radius: 2px;
}

.flag-pt { background-image: url('https://flagcdn.com/w40/pt.png'); }
.flag-en { background-image: url('https://flagcdn.com/w40/gb.png'); }
.flag-es { background-image: url('https://flagcdn.com/w40/es.png'); }
.flag-ru { background-image: url('https://flagcdn.com/w40/ru.png'); }
.flag-br { background-image: url('https://flagcdn.com/w40/br.png'); }
.flag-fr { background-image: url('https://flagcdn.com/w40/fr.png'); }

.lang-drop {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 0.4rem;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.25s;
  box-shadow: var(--shadow);
}

.lang-sel.open .lang-drop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-opt {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  border-radius: 5px;
  text-align: left;
  transition: background 0.2s;
}

.lang-opt:hover { background: var(--paper-dark); }
.lang-opt.active {
  background: var(--ink);
  color: var(--paper);
}

.nav-cta {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--paper);
  padding: 0.65rem 1.3rem;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.25s;
  border: 1px solid var(--ink);
}

.nav-cta:hover {
  background: var(--berry);
  border-color: var(--berry);
}

.hamburger { display: none; }

/* HERO */

.hero {
  min-height: 100vh;
  padding: 120px 3vw 60px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4vw;
  align-items: center;
  position: relative;
  max-width: 1600px;
  margin: 0 auto;
}

.hero-text { position: relative; z-index: 3; }

.hero-meta {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  flex-wrap: wrap;
}

.hero-meta > span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-meta .dot {
  width: 4px;
  height: 4px;
  background: var(--berry);
  border-radius: 50%;
}

.hero-text h1 {
  font-size: clamp(3.2rem, 8.5vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-text h1 .accent {
  font-style: italic;
  font-weight: 400;
  color: var(--berry);
  position: relative;
  display: inline-block;
}

.hero-text h1 .accent::after {
  content: '';
  position: absolute;
  bottom: 0.15em;
  left: 0;
  right: 0;
  height: 0.08em;
  background: var(--berry);
  opacity: 0.25;
}

.hero-text .lead {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 4rem;
}

.btn {
  padding: 0.95rem 1.8rem;
  border-radius: 0;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(.5,0,.2,1);
  position: relative;
}

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

.btn-primary::after {
  content: '→';
  transition: transform 0.3s;
}

.btn-primary:hover {
  background: var(--berry);
  color: var(--paper);
}

.btn-primary:hover::after { transform: translateX(6px); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 0.5rem 0;
}

.btn-secondary:hover {
  color: var(--berry);
  border-bottom-color: var(--berry);
}

.hero-stats {
  display: flex;
  gap: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
}

.stat-number {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
  font-feature-settings: 'lnum';
}

.stat-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.4rem;
}

.hero-image {
  position: relative;
  z-index: 2;
  aspect-ratio: 4/5;
  max-height: 80vh;
}

.hero-globe {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  touch-action: none;
}

.hero-globe canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  cursor: grab;
  touch-action: none;
}

.hero-globe canvas:active { cursor: grabbing; }

.hero-edition {
  position: absolute;
  top: 110px;
  right: 3vw;
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--muted);
  text-transform: uppercase;
  z-index: 4;
}

/* SECTIONS */

section { padding: 8rem 3vw; position: relative; }

.section-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: end;
  max-width: 1400px;
  margin: 0 auto 5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}

.section-header > div:first-child .eyebrow { margin-bottom: 1rem; }

.section-header h2 {
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 400;
}

.section-header h2 em,
.section-header h2 span {
  font-style: italic;
  color: var(--berry);
}

.section-header p {
  max-width: 500px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
  justify-self: end;
  text-align: left;
}

/* SOBRE */

#sobre {
  background: var(--paper);
  padding: 10rem 3vw;
}

.about-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 6rem;
  align-items: start;
  position: relative;
}

.about-image {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--paper-dark);
  overflow: hidden;
}

.about-image-main {
  width: 100%;
  height: 100%;
  position: relative;
}

.about-image-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
  filter: contrast(1.05) saturate(0.9);
  border-radius: 0 !important;
}

.about-badge {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: var(--ink);
  color: var(--paper);
  padding: 1.4rem 1.6rem;
  z-index: 2;
  border-radius: 0;
}

.about-badge .number {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 400;
  color: var(--ochre);
  line-height: 1;
  font-style: italic;
}

.about-badge div:last-child {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 0.3rem;
  color: var(--paper);
}

.about-caption {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--paper);
  padding: 0.35rem 0.7rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-text { padding-top: 2rem; }

.about-text .eyebrow { margin-bottom: 1.5rem; }

.about-text h3 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 2rem;
  line-height: 1.05;
  font-weight: 400;
}

.about-text h3 span {
  font-style: italic;
  color: var(--berry);
}

.about-text p {
  margin-bottom: 1.3rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 540px;
}

.about-text p:first-of-type::first-letter {
  font-family: var(--serif);
  float: left;
  font-size: 4.5rem;
  line-height: 0.85;
  padding-right: 0.8rem;
  padding-top: 0.4rem;
  color: var(--berry);
  font-weight: 400;
  font-style: italic;
}

.about-slogan {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--ink);
  margin: 2.5rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  line-height: 1.4;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
  margin-top: 2.5rem;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--rule);
}

.about-feature-icon {
  width: 32px;
  height: 32px;
  background: transparent !important;
  border-radius: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.about-feature-icon img {
  width: 24px !important;
  height: auto;
  border-radius: 2px;
}

.about-feature > div:last-child {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.about-social {
  display: flex;
  gap: 0.8rem;
  margin-top: 2.5rem;
}

.about-social a {
  width: 40px;
  height: 40px;
  background: var(--paper-dark);
  border: 1px solid var(--rule);
  border-radius: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  text-decoration: none;
  transition: all 0.25s;
}

.about-social a:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  transform: translateY(-2px);
}

/* MISSAO */

#missao {
  padding: 10rem 3vw;
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

#missao::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top left, rgba(168, 50, 28, 0.15), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(200, 150, 62, 0.08), transparent 50%);
  pointer-events: none;
}

.mission-wrap { position: relative; max-width: 1400px; margin: 0 auto; }

.mission-heading {
  max-width: 850px;
  margin-bottom: 6rem;
}

.mission-heading .eyebrow {
  color: var(--ochre);
  margin-bottom: 1.5rem;
}

.mission-heading .eyebrow::before { background: var(--ochre); }

.mission-heading h2 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1.02;
  margin-bottom: 1.5rem;
  font-weight: 400;
  color: var(--paper);
  letter-spacing: -0.025em;
}

.mission-heading h2 em,
.mission-heading h2 span {
  font-style: italic;
  color: var(--berry-bright) !important;
  background: none !important;
  -webkit-text-fill-color: var(--berry-bright) !important;
}

.mission-heading > p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  color: rgba(246, 242, 235, 0.7);
  line-height: 1.4;
}

.mission-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 6rem;
}

.mission-body p {
  color: rgba(246, 242, 235, 0.75);
  font-size: 1rem;
  line-height: 1.7;
  position: relative;
  padding-top: 1.8rem;
}

.mission-body p::before {
  content: attr(data-num);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.2rem;
  color: var(--ochre);
  line-height: 1;
  font-weight: 400;
}

.mission-photos-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(246, 242, 235, 0.15);
  flex-wrap: wrap;
  gap: 1rem;
}

.mission-photos-heading h3 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--paper);
  font-style: italic;
}

.mission-photos-heading .counter {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ochre);
}

.mission-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}

.country-card {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #111;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(.5,0,.2,1);
  min-width: 0;
  border-radius: 0;
  padding: 0;
  height: auto;
}

.country-card:hover {
  transform: translateY(-6px);
}

.country-card .slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out, transform 6s linear;
}

.country-card .slide-bg.active {
  opacity: 1;
  transform: scale(1.05);
}

.country-card .slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(22, 24, 29, 0) 30%,
    rgba(22, 24, 29, 0.35) 55%,
    rgba(22, 24, 29, 0.92) 100%);
  z-index: 2;
  transition: background 0.4s;
}

.country-card:hover .slide-overlay {
  background: linear-gradient(180deg,
    rgba(22, 24, 29, 0.1) 0%,
    rgba(22, 24, 29, 0.4) 40%,
    rgba(22, 24, 29, 0.95) 100%);
}

.country-card .slide-content {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 3;
  color: var(--paper);
}

.country-card .slide-content .flag-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.country-card .slide-content .flag-row img {
  width: 22px !important;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.country-card .slide-content .flag-row .country-code {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ochre);
}

.country-card .slide-content h4 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--paper);
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.country-card .slide-content p {
  font-size: 0.78rem;
  color: rgba(246, 242, 235, 0.75);
  line-height: 1.35;
  font-family: var(--sans);
}

.country-card .year-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--paper);
  background: rgba(22, 24, 29, 0.55);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(246, 242, 235, 0.2);
}

.country-card.specialist {
  border: 1px solid var(--ochre);
}

.country-card .specialist-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--ochre);
  padding: 0.35rem 0.6rem;
}

.mission-soon {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(246, 242, 235, 0.12);
  color: rgba(246, 242, 235, 0.5);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}

/* EBOOKS */

#ebooks {
  padding: 10rem 3vw;
  background: var(--paper);
}

.free-ebook-banner {
  max-width: 1400px;
  margin: 0 auto 6rem;
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 0;
  box-shadow: none;
}

.free-ebook-banner::before {
  content: none;
}

.free-ebook-inner {
  display: grid;
  grid-template-columns: 280px 1fr 1fr;
  gap: 3rem;
  padding: 3rem;
  align-items: center;
}

.free-ebook-visual { position: relative; }

.free-ebook-cover-img {
  width: 100%;
  display: block;
  box-shadow: 20px 30px 60px rgba(0,0,0,0.35);
  transform: rotate(-3deg);
  transition: transform 0.5s cubic-bezier(.5,0,.2,1);
  border-radius: 2px;
}

.free-ebook-cover-img:hover {
  transform: rotate(0deg) scale(1.03);
}

.free-ebook-info .eyebrow {
  color: var(--ochre);
  margin-bottom: 1rem;
}

.free-ebook-info .eyebrow::before { background: var(--ochre); }

.free-ebook-info h3 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  color: var(--paper);
  margin-bottom: 1rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.free-ebook-info h3 span {
  font-style: italic;
  color: var(--berry-bright);
}

.free-ebook-info p {
  color: rgba(246, 242, 235, 0.75);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.free-ebook-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.free-ebook-tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(246, 242, 235, 0.2);
  color: rgba(246, 242, 235, 0.75);
  background: transparent;
}

.free-ebook-form-container h4 {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--paper);
  margin-bottom: 0.5rem;
  font-weight: 400;
  line-height: 1.1;
}

.free-ebook-form-container h4 span {
  font-style: italic;
  color: var(--ochre);
}

.free-ebook-form-container > p {
  font-size: 0.85rem;
  color: rgba(246, 242, 235, 0.6);
  margin-bottom: 1.3rem;
  font-family: var(--mono);
  letter-spacing: 0.08em;
}

.free-ebook-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.free-ebook-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.free-ebook-form input {
  background: transparent;
  border: 1px solid rgba(246, 242, 235, 0.25);
  color: var(--paper);
  padding: 0.85rem 1rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

.free-ebook-form input::placeholder { color: rgba(246, 242, 235, 0.4); }

.free-ebook-form input:focus {
  outline: none;
  border-color: var(--ochre);
}

.free-ebook-submit {
  background: var(--berry);
  color: var(--paper);
  border: none;
  padding: 1rem 1.4rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s;
  margin-top: 0.4rem;
}

.free-ebook-submit:hover { background: var(--berry-bright); }

.free-ebook-privacy {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: rgba(246, 242, 235, 0.45);
  margin-top: 1rem;
  text-transform: none;
}

.free-ebook-social-proof {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(246, 242, 235, 0.12);
}

.free-ebook-avatars {
  display: flex;
  gap: 0;
}

.free-ebook-avatars span {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--paper);
  font-size: 0.75rem;
  border: 2px solid var(--ink);
  margin-left: -6px;
}

.free-ebook-avatars span:first-child { margin-left: 0; }

.free-ebook-social-text {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: rgba(246, 242, 235, 0.7);
}

.free-ebook-social-text strong {
  color: var(--ochre);
  font-weight: 600;
}

.free-ebook-form-area {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.free-ebook-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  height: 100%;
}

.success-icon { font-size: 3rem; margin-bottom: 0.8rem; }
.free-ebook-success h4 { color: var(--paper); margin-bottom: 0.5rem; }
.free-ebook-success p { color: rgba(246,242,235,0.7); }

/* Paid ebooks grid */

.ebooks-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.ebook-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(.5,0,.2,1);
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: 0;
  box-shadow: none;
}

.ebook-card:hover {
  border-color: var(--ink);
  transform: translateY(-4px);
}

.ebook-card.featured {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}

.ebook-card.featured:hover { border-color: var(--berry); }

.ebook-image {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  height: auto;
}

.ebook-image.petersburg {
  background: linear-gradient(135deg, #1a1a2e, #2d4a6d);
}
.ebook-image.moscow {
  background: linear-gradient(135deg, #5c1010, #a8321c);
}
.ebook-image.pack {
  background: linear-gradient(135deg, var(--ink), var(--ochre));
}

.ebook-cover {
  width: 150px;
  aspect-ratio: 2/3;
  height: auto;
  box-shadow: 10px 15px 35px rgba(0,0,0,0.4);
  transform: rotate(-4deg);
  transition: transform 0.4s;
  border-radius: 0;
}

.ebook-card:hover .ebook-cover { transform: rotate(0deg); }

.ebook-cover-inner {
  width: 100%;
  height: 100%;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* SPB/Moscovo: a inclinação já vem cozida no PNG (ver img/premium_miniatures/),
   por isso a caixa deixa de rodar ao vivo — evita o desfoque que a rotação
   via GPU causava nalguns ecrãs. A sombra segue o contorno via drop-shadow. */
.ebook-cover:has(.ebook-cover-img) {
  width: 168px;
  aspect-ratio: 1324 / 1880;
  box-shadow: none;
  background: transparent;
  transform: none;
}

.ebook-card:hover .ebook-cover:has(.ebook-cover-img) { transform: none; }

.ebook-cover:has(.ebook-cover-img) .ebook-cover-inner {
  background: transparent;
  overflow: visible;
}

.ebook-cover-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(8px 12px 18px rgba(0,0,0,0.4));
  transition: transform 0.4s;
}

.ebook-card:hover .ebook-cover-img { transform: rotate(4deg); }

.ebook-cover-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }

.ebook-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: auto;
  padding: 0.35rem 0.7rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid rgba(246, 242, 235, 0.2);
  border-radius: 0;
}

.ebook-badge.popular { background: var(--forest); color: var(--paper); }
.ebook-badge.new { background: var(--sky); color: var(--paper); }
.ebook-badge.value {
  background: var(--ochre);
  color: var(--ink);
  border-color: var(--ochre);
}

.ebook-content {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ebook-content h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.8rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.ebook-card.featured .ebook-content h3 { color: var(--paper); }

.ebook-content > p {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 1.3rem;
  flex-grow: 1;
  line-height: 1.55;
  min-height: auto;
}

.ebook-card.featured .ebook-content > p { color: rgba(246, 242, 235, 0.7); }

.ebook-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 1.5rem;
}

.ebook-feature {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--rule);
  color: var(--muted);
  background: transparent;
  border-radius: 0;
}

.ebook-card.featured .ebook-feature {
  border-color: rgba(246, 242, 235, 0.15);
  color: rgba(246, 242, 235, 0.6);
}

.ebook-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
  gap: 1rem;
}

.ebook-card.featured .ebook-price {
  border-top-color: rgba(246, 242, 235, 0.15);
}

.ebook-price-value {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--berry);
  line-height: 1;
  font-feature-settings: 'lnum';
}

.ebook-card.featured .ebook-price-value { color: var(--ochre); }

.ebook-price-old {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: line-through;
  margin-left: 0.5rem;
}

.ebook-btn {
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1.3rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  border-radius: 0;
}

.ebook-btn:hover { background: var(--berry); color: var(--paper); }

.ebook-card.featured .ebook-btn { background: var(--berry); }
.ebook-card.featured .ebook-btn:hover { background: var(--berry-bright); }

/* ESSENTIAL */

.essencial-section {
  padding: 10rem 3vw;
  background: var(--ink);
  color: var(--paper);
  position: relative;
}

.essencial-section .section-header {
  border-bottom-color: rgba(246, 242, 235, 0.15);
}

.essencial-section .section-header .eyebrow { color: var(--ochre); }
.essencial-section .section-header .eyebrow::before { background: var(--ochre); }

.essencial-section .section-header h2 { color: var(--paper); }
.essencial-section .section-header h2 span,
.essencial-section .section-header h2 em {
  font-style: italic;
  color: var(--ochre);
}
.essencial-section .section-header p { color: rgba(246, 242, 235, 0.65); }

.essencial-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid rgba(246, 242, 235, 0.15);
}

.essencial-card {
  padding: 2.5rem 2rem;
  border-right: 1px solid rgba(246, 242, 235, 0.15);
  border-bottom: 1px solid rgba(246, 242, 235, 0.15);
  position: relative;
  transition: background 0.3s;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.essencial-card:nth-child(3n) { border-right: none; }
.essencial-card:nth-last-child(-n+3) { border-bottom: none; }

.essencial-card:hover { background: rgba(246, 242, 235, 0.03); }

.essencial-icon {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  display: block;
  opacity: 0.85;
  width: auto;
  height: auto;
  background: transparent;
}

.essencial-card h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--paper);
  margin-bottom: 0.6rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.essencial-card p {
  color: rgba(246, 242, 235, 0.6);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.essencial-btn {
  font-family: var(--sans);
  color: var(--ochre);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.25s;
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
}

.essencial-btn::after {
  content: '→';
  transition: transform 0.25s;
}

.essencial-btn:hover { color: var(--ochre); background: transparent; }
.essencial-btn:hover::after { transform: translateX(4px); }

.essencial-tip {
  max-width: 1400px;
  margin: 3rem auto 0;
  padding: 2rem 2.5rem;
  background: rgba(200, 150, 62, 0.08);
  border-left: 3px solid var(--ochre);
  border-radius: 0;
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.essencial-tip h4 {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ochre);
  font-size: 1.2rem;
  font-weight: 400;
  flex-shrink: 0;
}

.essencial-tip p {
  color: rgba(246, 242, 235, 0.85);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}

/* FOOTER */

footer {
  background: var(--paper);
  padding: 6rem 3vw 2rem;
  color: var(--ink);
  border-top: 1px solid var(--rule);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto 4rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
}

.footer-brand { max-width: 400px; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  margin-bottom: 1.5rem;
}

.footer-logo-img { height: 44px; width: auto; }

.footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.footer-social {
  display: flex;
  gap: 0.6rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
  transition: all 0.25s;
}

.footer-social a:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.footer-column h4 {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-column ul a {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-column ul a:hover { color: var(--berry); }

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* TOAST + COOKIE */

.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--ink);
  color: var(--paper);
  padding: 1rem 1.5rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s;
}

.toast.show { transform: translateY(0); opacity: 1; }

#cookieBanner {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  background: var(--ink) !important;
  color: var(--paper) !important;
  padding: 1.2rem 3vw !important;
  z-index: 9998 !important;
  display: none !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1.5rem !important;
  flex-wrap: wrap !important;
  border-top: 2px solid var(--berry) !important;
  box-shadow: none !important;
  font-size: 0.85rem;
}

#cookieBanner.show { display: flex !important; }

#cookieBanner p {
  flex: 1;
  min-width: 280px;
  font-size: 0.82rem !important;
  color: rgba(246, 242, 235, 0.8) !important;
  margin: 0;
}

#cookieBanner p a {
  color: var(--ochre) !important;
  text-decoration: underline;
}

#cookieBanner > div {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

#cookieBanner button {
  font-family: var(--mono);
  font-size: 0.72rem !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.65rem 1.3rem !important;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 0 !important;
  font-weight: 500 !important;
}

#cookieBanner button:first-of-type,
#cookieBanner button[onclick*="accept"] {
  background: var(--berry) !important;
  color: var(--paper) !important;
  border: none !important;
}

#cookieBanner button:first-of-type:hover,
#cookieBanner button[onclick*="accept"]:hover {
  background: var(--berry-bright) !important;
}

#cookieBanner button:last-of-type,
#cookieBanner button[onclick*="decline"] {
  background: transparent !important;
  color: rgba(246, 242, 235, 0.6) !important;
  border: 1px solid rgba(246, 242, 235, 0.25) !important;
}

#cookieBanner button:last-of-type:hover,
#cookieBanner button[onclick*="decline"]:hover {
  color: var(--paper) !important;
  border-color: var(--paper) !important;
}

/* MODAL */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(22, 24, 29, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 2rem;
  backdrop-filter: blur(6px);
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--paper);
  max-width: 480px;
  width: 100%;
  padding: 0;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 0;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 0;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--ink);
  line-height: 1;
  z-index: 2;
  transition: border-color 0.2s, color 0.2s;
}

.modal-close:hover {
  border-color: var(--berry);
  color: var(--berry);
}

.modal-header {
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid var(--rule);
}

.modal-header h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
}

.modal-header p {
  font-size: 0.9rem;
  color: var(--muted);
}

.modal-body { padding: 1.5rem 2rem 2rem; }

.modal-product {
  display: flex;
  gap: 1.2rem;
  padding: 1.2rem;
  background: var(--paper-dark);
  margin-bottom: 1.5rem;
  align-items: center;
}

.modal-product-info {
  width: 100%;
}

.modal-product-info h4 {
  font-family: var(--serif);
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
  font-weight: 400;
}

.modal-product-info p {
  font-size: 0.78rem;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: 0.05em;
}

.modal-product-price {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--berry);
  margin-top: 0.3rem;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-form label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.modal-form input {
  background: transparent;
  border: 1px solid var(--rule);
  padding: 0.8rem 1rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s;
}

.modal-form input:focus {
  outline: none;
  border-color: var(--ink);
}

.modal-form button {
  margin-top: 0.5rem;
  background: var(--ink);
  color: var(--paper);
  padding: 1rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.modal-form button:hover { background: var(--berry); }

.modal-methods {
  display: flex;
  gap: 0.75rem;
}

.method-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.9rem 0.5rem;
  background: transparent !important;
  border: 1px solid var(--rule) !important;
  color: var(--muted) !important;
  border-radius: 0;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  font-family: var(--mono);
  font-size: 0.75rem;
  margin-top: 0 !important;
}

.method-btn:hover {
  border-color: var(--ink) !important;
  color: var(--ink) !important;
  background: transparent !important;
}

.method-btn.active {
  border-color: var(--ink) !important;
  color: var(--ink) !important;
  background: transparent !important;
}

.method-icon {
  font-size: 1.2rem;
}

.method-sub {
  font-size: 0.6rem;
  opacity: 0.6;
  letter-spacing: 0.08em;
}

.modal-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  text-transform: none;
  letter-spacing: normal;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
  cursor: pointer;
}

.modal-consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 0.15rem;
  accent-color: var(--berry);
  cursor: pointer;
}

.modal-consent a { color: var(--berry); }

.modal-secure {
  text-align: center;
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* ── Crypto Step 2 ─────────────────────────────────── */

.crypto-timer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin: 0 0 1.5rem;
}

.crypto-timer-badge strong {
  font-weight: 700;
  letter-spacing: 0.06em;
}

.crypto-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 1.25rem;
}

.crypto-qr-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.crypto-qr-frame {
  border: 1px solid var(--rule);
  padding: 8px;
  background: #F6F2EB;
  border-radius: 2px;
}

.crypto-qr-img {
  display: block;
  width: 136px;
  height: 136px;
}

.crypto-qr-hint {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  text-align: center;
}

.crypto-steps-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.crypto-step-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.crypto-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.crypto-step-connector {
  width: 1px;
  height: 14px;
  background: var(--rule);
  margin: 3px 0 3px 10px;
}

.crypto-step-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-bottom: 0.25rem;
}

.crypto-row-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.crypto-row-value {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.crypto-row-addr {
  font-size: 0.61rem;
  font-weight: 400;
  word-break: break-all;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

.crypto-link-btn {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--berry);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 0.15rem;
}
.crypto-link-btn:hover { color: var(--berry-bright); }

.crypto-note {
  font-family: var(--mono);
  font-size: 0.69rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  line-height: 1.65;
  padding: 0.7rem 1rem;
  background: var(--paper-dark);
  border-left: 2px solid var(--berry);
  margin: 0 0 0.5rem;
}

.crypto-note-wallet {
  border-left-color: var(--rule);
  margin: 0 0 1.25rem;
}

.crypto-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  gap: 1rem;
  flex-wrap: wrap;
}

.crypto-paid-btn {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  border: none;
  padding: 0.65rem 1.4rem;
  cursor: pointer;
  transition: background 0.2s;
}
.crypto-paid-btn:hover { background: var(--berry); }
.crypto-paid-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Success Step 3 ────────────────────────────────── */

.modal-success {
  text-align: center;
  padding: 1rem 0 0.5rem;
}

.modal-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--forest);
  color: var(--paper);
  font-size: 1.6rem;
  line-height: 1;
}

.modal-success h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.6rem;
}

.modal-success p {
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 0.4rem;
}

.modal-success-email {
  font-family: var(--mono) !important;
  font-size: 0.82rem !important;
  color: var(--ink) !important;
  margin: 0.6rem 0 1.75rem !important;
}

.modal-success .modal-pay-btn {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  border: none;
  padding: 0.75rem 2rem;
  cursor: pointer;
  transition: background 0.2s;
}

.modal-success .modal-pay-btn:hover { background: var(--berry); }

.crypto-status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.crypto-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--berry);
  flex-shrink: 0;
  animation: cryptoPulse 1.4s ease-in-out infinite;
}

.crypto-pulse-sm {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--berry);
  flex-shrink: 0;
  animation: cryptoPulse 1.4s ease-in-out infinite;
}

@keyframes cryptoPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.3; transform: scale(0.8); }
}

@media (max-width: 520px) {
  .crypto-layout { grid-template-columns: 1fr; }
  .crypto-qr-col { flex-direction: row; align-items: center; gap: 1rem; }
  .crypto-qr-hint { text-align: left; }
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 110px 5vw 4rem;
  }
  .hero-edition { display: none; }
  .hero-image { aspect-ratio: 1/1; max-height: 50vh; }

  .section-header {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .section-header p { justify-self: start; }

  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .mission-body { grid-template-columns: 1fr; gap: 2rem; }
  .mission-gallery { grid-template-columns: repeat(3, 1fr); }

  .ebooks-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  .free-ebook-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }
  .free-ebook-visual { max-width: 240px; margin: 0 auto; }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .essencial-grid { grid-template-columns: repeat(2, 1fr); }
  .essencial-card:nth-child(3n) { border-right: 1px solid rgba(246, 242, 235, 0.15); }
  .essencial-card:nth-child(2n) { border-right: none; }
}

@media (max-width: 700px) {
  section { padding: 5rem 5vw; }
  nav { padding: 1rem 5vw; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 1rem 5vw;
    gap: 0;
    border-bottom: 1px solid var(--rule);
  }

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

  .nav-links a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--rule);
    width: 100%;
  }

  .nav-cta { display: none; }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
  }

  .hamburger span {
    width: 22px;
    height: 1.5px;
    background: var(--ink);
    transition: 0.3s;
  }

  .hero-text h1 { font-size: 3rem; }
  .hero-stats { gap: 2rem; flex-wrap: wrap; }

  .mission-gallery { grid-template-columns: 1fr 1fr; }
  .essencial-grid { grid-template-columns: 1fr; }
  .essencial-card,
  .essencial-card:nth-child(3n),
  .essencial-card:nth-child(2n) {
    border-right: none !important;
  }

  .about-badge {
    bottom: 1rem;
    left: 1rem;
    padding: 1rem;
  }
  .about-badge .number { font-size: 2.2rem; }

  .about-features { grid-template-columns: 1fr; }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .about-text p:first-of-type::first-letter { font-size: 3.5rem; }

  #cookieBanner { flex-direction: column !important; align-items: stretch !important; }
  #cookieBanner > div { justify-content: center; }
}

/* UTILITIES */

.no-scroll { overflow: hidden; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-text > * { animation: fade-up 0.8s cubic-bezier(.2,.8,.2,1) backwards; }
.hero-text > *:nth-child(1) { animation-delay: 0.1s; }
.hero-text > *:nth-child(2) { animation-delay: 0.2s; }
.hero-text > *:nth-child(3) { animation-delay: 0.3s; }
.hero-text > *:nth-child(4) { animation-delay: 0.4s; }
.hero-text > *:nth-child(5) { animation-delay: 0.5s; }

.hero-image { animation: fade-up 1s 0.3s cubic-bezier(.2,.8,.2,1) backwards; }
