:root {
  --black: #000;
  --dark: #151515;
  --ink: #1a1815;
  --muted: #5b564e;
  --paper: #f8f7f3;
  --sand: #eeebe3;
  --white: #fff;
  --line: #ded9ce;
  --gold: #d2b174;
  --gold-hover: #e5c994;
  --gold-ink: #785921;
  --dark-text: #ddd8ce;
  --dark-line: #655943;
  --section-space: clamp(3.75rem, 7vw, 6rem);
  --gutter: clamp(1rem, 4vw, 1.5rem);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold-ink);
  outline-offset: 4px;
}
.site-header :focus-visible, .site-footer :focus-visible, .hero :focus-visible,
.guide-hero :focus-visible, .contact :focus-visible, .nif-promo :focus-visible {
  outline-color: var(--gold);
}
h1, h2, h3, p { margin: 0 0 1rem; }
h1, h2 { letter-spacing: -.045em; font-weight: 590; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 5.5vw, 4.8rem); line-height: 1.07; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3.3rem); line-height: 1.13; }
h3 { font-size: 1.22rem; line-height: 1.25; letter-spacing: -.025em; }
p { line-height: 1.65; }
.wrap { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.eyebrow {
  color: var(--gold-ink);
  font-size: .77rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .15em;
}
.eyebrow + :is(h1, h2, h3) { margin-top: .75rem; }
.lead { max-width: 46rem; color: var(--muted); font-size: 1.05rem; }

.site-header { background: var(--black); color: var(--white); border-bottom: 1px solid var(--dark-line); }
.site-nav {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.brand { display: block; flex: none; width: clamp(120px, 16vw, 188px); }
.brand img { display: block; width: 100%; height: auto; }
.navlinks, .nav-actions, .lang { display: flex; align-items: center; }
.navlinks { flex-wrap: wrap; justify-content: center; gap: .15rem clamp(.6rem, 2vw, 1.65rem); }
.nav-actions { gap: .85rem; }
.site-nav a:not(.button) { text-decoration: none; }
.navlinks a, .lang a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--dark-text);
  font-size: .86rem;
}
.navlinks a:hover, .lang a:hover, .site-nav [aria-current] { color: var(--gold-hover); }
.site-nav a[aria-current]:not(.button) { text-decoration: underline; }
.lang { gap: .4rem; }
.lang a { justify-content: center; min-width: 32px; font-weight: 700; }
.nav-actions .button { min-height: 44px; padding: .55rem .85rem; white-space: nowrap; }

.site-footer { background: var(--black); color: var(--dark-text); padding: 1.75rem 0; font-size: .84rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; }
.footer-inner p { margin: 0; }
.footer-notes { flex-basis: 100%; border-top: 1px solid var(--dark-line); padding-top: .85rem; }
.site-footer a { color: var(--gold-hover); overflow-wrap: anywhere; }

.hero, .guide-hero, .contact, .nif-promo { background: var(--dark); color: var(--white); }
:is(.hero, .guide-hero, .contact, .nif-promo) .eyebrow { color: var(--gold); }
.hero, .guide-hero { padding: var(--section-space) 0; }
.hero .intro, .guide-hero .intro { color: var(--dark-text); max-width: 46rem; font-size: 1.13rem; }
.hero h1, .guide-hero h1 { max-width: 58rem; margin-bottom: 1.35rem; }
.hero h1 em { color: var(--gold); font-style: normal; }
.back, .home-crumb, .breadcrumbs { color: var(--gold-hover); font-size: .88rem; margin-bottom: 1.25rem; }
.back, .home-crumb { display: inline-block; }
.breadcrumbs a:hover { color: var(--white); }

.buttons { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1.5rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: .75rem 1.2rem;
  border: 1px solid var(--gold);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: background-color .18s, color .18s;
}
.button-gold { background: var(--gold); color: var(--ink); }
.button-gold:hover { background: var(--gold-hover); }
.button-outline { color: var(--white); }
.button-outline:hover { background: var(--gold); color: var(--ink); }
.button-line { border-color: var(--gold-ink); background: var(--white); color: var(--gold-ink); }
.button-line:hover { background: var(--sand); }

.section, .home-page main > section { padding-block: var(--section-space); }
.split, .method, .closing { background: var(--sand); }
.split-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; }
.split p, .method p { color: var(--muted); }
.cards, .paths, .benefits, .channels, .guide-grid, .related-guides {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.cards, .benefits, .channels { margin-top: 2rem; }
.card, .path, .benefit, .channel, .price-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: clamp(1.3rem, 3vw, 2rem);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}
:is(.card, .path, .benefit, .channel) p { color: var(--muted); font-size: .96rem; }
.card p:last-child, .benefit p:last-child { margin-bottom: 0; }
.card > span:first-child, .path .num, .step .number, .symbol {
  color: var(--gold-ink);
  font-family: Georgia, serif;
  font-size: 1.55rem;
  margin-bottom: 1.2rem;
}
.path a, .guide-card .read-link, .related a { font-weight: 700; font-size: .9rem; color: var(--gold-ink); }
.path a, .guide-card .read-link { margin-top: auto; }
.path a:hover, .guide-card a:hover, .related a:hover { color: var(--ink); }
.related { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; margin-top: 1.5rem; }

.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 1rem; cursor: pointer; font-weight: 650; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-ink); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: .75rem 1.5rem 0 0; color: var(--muted); }
.contact p, .contact .lead, .nif-promo p { color: var(--dark-text); }
.contact a:not(.button) { color: var(--gold-hover); overflow-wrap: anywhere; }

/* Homepage */
.hero-inner, .hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
.home-page .hero h1 { font-size: clamp(2.65rem, 6.5vw, 5.65rem); }
.hero-aside { align-self: end; border-left: 1px solid var(--dark-line); padding: .6rem 0 .6rem 1.6rem; }
.hero-aside strong { color: var(--gold-hover); font: 400 clamp(1.65rem, 3vw, 2.5rem)/1.2 Georgia, serif; }
.hero-aside span { display: block; margin-top: .85rem; color: var(--dark-text); font-size: .86rem; }
.hero-note { margin: 1rem 0 0; color: var(--dark-text); font-size: .84rem; }
.section-top, .method-intro, .about-grid, .faq-grid, .contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: 1rem clamp(2rem, 5vw, 5rem);
}
.section-top { align-items: end; margin-bottom: 2rem; }
.section-top h2, .section-top p, .nif-promo p { margin-bottom: 0; }
.section-top p, .about-grid p { color: var(--muted); }
.home-page .nif-promo { padding-block: clamp(2.3rem, 5vw, 3.5rem); }
.nif-promo .wrap, .closing-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.nif-promo h2, .closing h2 { font-size: clamp(1.65rem, 3vw, 2.5rem); }
.nif-promo .button, .closing .button { flex-shrink: 0; }
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.step { border-top: 1px solid var(--gold-ink); padding: 1.15rem .25rem 0 0; }
.step > span { display: block; color: var(--gold-ink); font: 400 1.45rem Georgia, serif; margin-bottom: 1rem; }
.step strong { display: block; margin-bottom: .45rem; }
.step p { color: var(--muted); font-size: .95rem; }
.about { background: var(--white); }
.about-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
.portrait img { display: block; width: 100%; height: min(48vw, 520px); object-fit: cover; object-position: center 35%; }
.about .rule { border-top: 1px solid var(--line); padding-top: 1rem; font-size: .91rem; }
.about .rule b { color: var(--gold-ink); margin-right: .4rem; }
.faq-grid { align-items: start; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
.faq-list { border-top: 1px solid var(--line); }
.contact-card { border: 1px solid var(--dark-line); padding: clamp(1.25rem, 3vw, 2rem); }
.contact-card .button { width: 100%; margin-bottom: 1rem; }

/* Guides */
.guide-meta { color: var(--dark-text); font-size: .85rem; line-height: 1.65; margin-top: 1.25rem; }
.guide-grid, .related-guides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.guide-card .category { color: var(--gold-ink); font-family: inherit; font-size: .76rem; font-weight: 750; text-transform: uppercase; letter-spacing: .12em; }
.guide-card h2 { font-size: 1.45rem; line-height: 1.25; letter-spacing: -.025em; text-wrap: initial; }
.guide-card h2 a { text-decoration: none; }
.guide-card h2 a:hover { text-decoration: underline; }
.guide-card .read-link { padding-top: .6rem; }
.editorial-note { max-width: 48rem; color: var(--muted); font-size: .9rem; }
.reading-layout { display: grid; grid-template-columns: minmax(10rem, 14rem) minmax(0, 1fr); gap: 2rem clamp(2rem, 6vw, 5rem); padding-block: var(--section-space); }
.toc { position: sticky; top: 1.5rem; align-self: start; border-top: 1px solid var(--gold-ink); padding-top: 1rem; font-size: .92rem; }
.toc ol { padding-left: 1.25rem; }
.toc li { margin-bottom: .75rem; }
.prose { max-width: 48rem; min-width: 0; }
.prose section { margin-bottom: 2.5rem; scroll-margin-top: 1.5rem; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); text-wrap: initial; }
.prose p, .prose li { line-height: 1.75; }
.prose li { margin-bottom: .5rem; }
.prose a { color: var(--gold-ink); overflow-wrap: anywhere; }
.example { background: var(--sand); border-left: 2px solid var(--gold-ink); padding: 1.15rem 1.4rem; margin: 1.5rem 0; }
.example p:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); margin-block: 1.5rem; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; line-height: 1.55; }
th, td { text-align: left; vertical-align: top; padding: .85rem; border-bottom: 1px solid var(--line); }
th { background: var(--sand); }
td { background: var(--white); }
.sources { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.sources p, .sources li { font-size: .9rem; }

/* NIF */
.price-card { display: block; max-width: 34rem; }
.price-card .eyebrow { color: var(--gold-ink); }
.price-card .big { color: var(--gold-ink); font: 400 clamp(3rem, 5vw, 4.2rem)/1 Georgia, serif; margin: .75rem 0; }
.price-card ul { list-style: none; margin: 0; padding: 0; }
.price-card li { display: flex; gap: .5rem; margin-bottom: .5rem; }
.price-card .rule { border-top: 1px solid var(--line); margin-block: 1rem; }
.price-card p { color: var(--muted); margin-bottom: 0; }
.check { color: var(--gold-ink); }
.micro { font-size: .83rem; }
.dark-note { color: var(--dark-text); margin: 1rem 0 0; }
.benefit strong { margin-bottom: .5rem; }
.contact .channel p { color: var(--muted); }
.channel .button { margin-top: auto; width: 100%; }
.nif-page .faq { max-width: 52rem; }
.closing p { color: var(--muted); margin: 0; }
.sticky-cta { display: none; }

@media (max-width: 850px) {
  .site-nav { flex-wrap: wrap; gap: 0 .75rem; padding-top: .3rem; }
  .navlinks { width: 100%; order: 1; border-top: 1px solid var(--dark-line); }
  .hero-inner, .hero-layout, .section-top, .method-intro, .about-grid, .faq-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .portrait img { height: min(75vw, 520px); }
  .cards, .paths, .benefits, .channels { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reading-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
}

@media (max-width: 560px) {
  .site-nav { min-height: 0; }
  .site-nav .button { font-size: .8rem; padding-inline: .6rem; }
  .nav-actions { gap: .55rem; flex-wrap: wrap; }
  .navlinks a { font-size: .8rem; }
  .split-grid, .guide-grid, .related-guides { grid-template-columns: minmax(0, 1fr); }
  .buttons > .button { width: 100%; }
  .nif-promo .wrap, .closing-inner { align-items: flex-start; flex-direction: column; }
  .nif-page .site-footer { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
  .sticky-cta {
    display: block;
    position: fixed;
    inset: auto 0 0;
    z-index: 10;
    padding: .55rem var(--gutter) max(.55rem, env(safe-area-inset-bottom));
    background: var(--black);
    border-top: 1px solid var(--dark-line);
  }
  .sticky-cta .button { width: 100%; min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .button { transition: none; }
}

.nif-links { background: var(--sand); border-bottom: 1px solid var(--line); }
.nif-links .wrap { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.nif-links a { display: inline-flex; align-items: center; min-height: 48px; font-size: .9rem; color: var(--gold-ink); font-weight: 650; }

.more-guides { margin: 1.75rem 0 0; }
.contact-note { margin-top: 1.5rem; font-size: .9rem; }

.alves-consent {
  position: fixed;
  z-index: 20;
  inset: auto var(--gutter) var(--gutter);
  max-width: 43rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--gold-ink);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 8px 40px #0003;
  font-size: .9rem;
  max-height: calc(100dvh - 2 * var(--gutter));
  overflow: auto;
}
.alves-consent strong { display: block; font-size: 1.05rem; margin-bottom: .5rem; }
.alves-consent a { color: var(--gold-ink); }
.alves-consent-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.alves-consent button, .alves-cookie-settings { font: inherit; cursor: pointer; }
.alves-consent button { min-height: 44px; padding: .6rem 1rem; border: 1px solid var(--gold-ink); font-weight: 700; }
.alves-consent button[data-choice="denied"] { background: var(--white); color: var(--gold-ink); }
.alves-consent button[data-choice="granted"] { background: var(--gold); color: var(--ink); }
.alves-consent button:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 4px; }
.alves-cookie-settings { flex-basis: 100%; justify-self: start; text-align: left; text-decoration: underline; text-underline-offset: .2em; color: var(--gold-hover); background: transparent; border: 0; padding: .35rem 0; }

@media (max-width: 365px) {
  .site-nav .brand { width: 100px; }
  .nav-actions { gap: .3rem; }
  .lang { gap: .1rem; }
  .lang a { min-width: 28px; }
}
