/* TeoriaPass — AdSense-ready marketing site */
:root {
  --ink: #14281f;
  --green: #16382c;
  --green-mid: #2a5a45;
  --leaf: #3d7a5c;
  --sand: #f2efe6;
  --paper: #faf8f3;
  --line: #d8e0d9;
  --muted: #5a6b62;
  --accent: #c4a35a;
  --white: #fff;
  --max: 72rem;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #dce8e1 0%, transparent 55%),
    radial-gradient(900px 400px at 100% 0%, #ebe4d4 0%, transparent 50%),
    var(--paper);
  line-height: 1.65;
  font-size: 1.05rem;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-mid); }
a:hover { color: var(--leaf); }
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .85rem 0;
}
.brand {
  display: flex; align-items: center; gap: .65rem;
  text-decoration: none; color: var(--green);
  font-family: var(--font-display); font-weight: 700; font-size: 1.35rem;
}
.brand-mark {
  width: 2rem; height: 2rem; border-radius: .55rem;
  background: linear-gradient(145deg, var(--green), var(--leaf));
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.15);
}
.nav-toggle {
  display: none; border: 1px solid var(--line); background: var(--white);
  border-radius: .5rem; padding: .45rem .7rem; font: inherit; cursor: pointer;
}
.nav-links {
  display: flex; flex-wrap: wrap; gap: .35rem 1rem; list-style: none;
  margin: 0; padding: 0; align-items: center;
}
.nav-links a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem;
}
.nav-links a:hover { color: var(--green); }
.nav-cta {
  background: var(--green); color: var(--white) !important;
  padding: .45rem .9rem; border-radius: 999px;
}

/* Hero */
.hero {
  padding: 3.2rem 0 2.4rem;
  display: grid; gap: 1.5rem;
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.15fr .85fr; align-items: end; padding: 4.5rem 0 3rem; }
}
.hero-kicker {
  text-transform: uppercase; letter-spacing: .12em; font-size: .78rem;
  font-weight: 700; color: var(--green-mid); margin: 0 0 .6rem;
}
.hero h1 {
  font-family: var(--font-display); font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.08; margin: 0 0 1rem; color: var(--green);
  font-weight: 700;
}
.hero-lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 1.2rem; max-width: 36rem; }
.hero-panel {
  background: linear-gradient(160deg, var(--green), #0f2a20);
  color: #e8f0eb; border-radius: 1.25rem; padding: 1.4rem 1.5rem;
  box-shadow: 0 20px 50px rgba(22,56,44,.22);
}
.hero-panel h2 { font-family: var(--font-display); margin: 0 0 .7rem; font-size: 1.35rem; color: #fff; }
.hero-panel ul { margin: 0; padding-left: 1.1rem; }
.hero-panel li { margin: .35rem 0; }
.disclaimer {
  background: #fff8e8; border: 1px solid #ead7a8; border-radius: .85rem;
  padding: .9rem 1rem; font-size: .95rem; color: #5a4a22; margin: 1rem 0 0;
}
.disclaimer strong { color: #3d3215; }

.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; font-weight: 700; border-radius: 999px;
  padding: .7rem 1.15rem; border: 2px solid transparent;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-mid); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--green); color: var(--green); }
.btn-ghost:hover { background: var(--green); color: #fff; }

/* Sections */
section { padding: 2.4rem 0; }
.section-title {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 .5rem; color: var(--green);
}
.section-lead { color: var(--muted); margin: 0 0 1.4rem; max-width: 40rem; }

.grid-3, .grid-2 {
  display: grid; gap: 1rem;
}
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
  .grid-3.permits { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 1rem; padding: 1.15rem 1.2rem;
  text-decoration: none; color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
a.card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(20,40,30,.08); }
.card h3 {
  font-family: var(--font-display); margin: 0 0 .4rem; font-size: 1.2rem; color: var(--green);
}
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.tag {
  display: inline-block; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  background: #e7f0ea; color: var(--green); border-radius: 999px;
  padding: .2rem .55rem; margin-bottom: .55rem;
}

/* Article pages */
.page-hero { padding: 2.2rem 0 1rem; }
.page-hero h1 {
  font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin: 0 0 .6rem; color: var(--green); line-height: 1.15;
}
.prose { max-width: 46rem; }
.prose h2 {
  font-family: var(--font-display); color: var(--green);
  margin: 2rem 0 .7rem; font-size: 1.45rem;
}
.prose h3 { margin: 1.4rem 0 .5rem; color: var(--ink); }
.prose p, .prose li { color: #2b3731; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.meta { color: var(--muted); font-size: .92rem; margin-bottom: 1rem; }

/* Footer */
.site-footer {
  margin-top: 3rem; background: var(--green); color: #d7e5dd;
  padding: 2.4rem 0 1.6rem;
}
.footer-grid {
  display: grid; gap: 1.4rem;
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.site-footer a { color: #eef6f1; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h4 {
  font-family: var(--font-display); color: #fff; margin: 0 0 .7rem; font-size: 1.05rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .35rem 0; }
.foot-note {
  margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.15);
  font-size: .88rem; color: #b7c9bf;
}

/* Forms */
.form label { display: block; font-weight: 600; margin: .8rem 0 .3rem; }
.form input, .form textarea, .form select {
  width: 100%; padding: .7rem .8rem; border: 1px solid var(--line);
  border-radius: .65rem; font: inherit; background: #fff;
}
.form button {
  margin-top: 1rem; background: var(--green); color: #fff; border: 0;
  border-radius: 999px; padding: .75rem 1.3rem; font: inherit; font-weight: 700; cursor: pointer;
}

/* Cookie banner */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 80;
  background: #fff; border: 1px solid var(--line); border-radius: 1rem;
  padding: 1rem 1.1rem; box-shadow: 0 12px 40px rgba(0,0,0,.12);
  display: none; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { margin: 0; flex: 1; min-width: 16rem; font-size: .95rem; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none; width: 100%; flex-direction: column; align-items: flex-start;
    padding: .4rem 0 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-row { flex-wrap: wrap; }
}

.split-grid { display: grid; gap: 1rem; margin: 1.2rem 0 2rem; }
@media (min-width: 800px) { .split-grid { grid-template-columns: 1fr 1fr; } }
.split-card {
  background: #fff; border: 1px solid var(--line); border-radius: 1.25rem;
  padding: 1.5rem 1.4rem; min-height: 14rem;
  display: flex; flex-direction: column; gap: .7rem;
}
.split-card.practice { background: linear-gradient(165deg, #16382c, #1f4d3a); color: #e8f0eb; border: 0; }
.split-card.practice h2, .split-card.practice a { color: #fff; }
.split-card.practice p { color: #cfe0d7; }
.split-card.articles { background: #fffdf8; }
.badge-free {
  display: inline-block; background: #c4a35a; color: #1a1408; font-weight: 800;
  font-size: .75rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .25rem .55rem; border-radius: 999px; width: fit-content;
}
.split-card.practice .badge-free { background: #e8c56b; }
