/* Aitana x Eduba prospect-facing brief
   Brand tokens sourced only from /Brand Pack/brand-pack.json
   Violet #6529FF primary, deep navy #112476, lime-green #C1FF72 accent
   Inter Tight headings, Inter body.
*/

:root {
  --primary: #6529FF;
  --primary-deep: #4a16d9;
  --secondary: #112476;
  --accent: #C1FF72;
  --ink: #111111;
  --body: #333333;
  --heading: #112476;
  --paper: #FFFFFF;
  --paper-soft: #F5F7FB;
  --paper-violet: #F3EEFF;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --shadow-subtle: 0 1px 3px rgba(101, 41, 255, 0.08);
  --shadow-medium: 0 16px 40px rgba(101, 41, 255, 0.14);

  --unit: 8px;
  --section-gap: 72px;

  --f-head: 'Inter Tight', 'Inter', system-ui, -apple-system, sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, sans-serif;

  --max: 1120px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--f-body);
  color: var(--body);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

a { color: var(--primary); }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ------- Prep strip (top bulletin) ------- */
.prep-strip {
  background: var(--secondary);
  color: #ffffff;
  font-size: 13px;
  letter-spacing: 0.01em;
}
.prep-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.prep-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.prep-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--secondary);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
}
.prep-text { opacity: 0.92; }

.lang-toggle {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 3px;
}
.lang-toggle a {
  display: inline-block;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.78);
  padding: 4px 12px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}
.lang-toggle a:hover { color: #ffffff; }
.lang-toggle a.is-active {
  background: var(--accent);
  color: var(--secondary);
}

/* ------- Header ------- */
.site-header {
  padding: 24px 0 8px;
  background: var(--paper);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  height: 36px;
  width: auto;
}
.prep-meta {
  font-family: var(--f-head);
  font-size: 13px;
  color: var(--secondary);
  opacity: 0.7;
  letter-spacing: -0.005em;
}

/* ------- Hero ------- */
.hero {
  padding: 40px 0 56px;
  background:
    radial-gradient(1200px 420px at 90% -10%, rgba(101, 41, 255, 0.10), transparent 60%),
    radial-gradient(900px 360px at -10% 40%, rgba(193, 255, 114, 0.22), transparent 60%),
    var(--paper);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary);
  background: var(--paper-violet);
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: -0.005em;
  margin-bottom: 20px;
}
.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(101, 41, 255, 0.18);
}

.headline {
  font-family: var(--f-head);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--heading);
  font-size: 34px;
  line-height: 1.08;
  margin: 0 0 20px;
}
.headline .accent {
  background: linear-gradient(180deg, transparent 62%, var(--accent) 62%, var(--accent) 96%, transparent 96%);
  padding: 0 2px;
}

.subhead {
  font-size: 17px;
  color: var(--body);
  line-height: 1.55;
  margin: 0 0 26px;
  max-width: 60ch;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cta-meta {
  font-family: var(--f-head);
  font-size: 13px;
  color: var(--secondary);
  opacity: 0.7;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--f-head);
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 22px;
  min-height: 48px;
  font-size: 15px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: var(--secondary);
  box-shadow: 0 8px 24px rgba(193, 255, 114, 0.45), 0 1px 0 rgba(17, 36, 118, 0.06) inset;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(193, 255, 114, 0.55);
}
.btn-primary:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}
.btn-lg {
  padding: 16px 28px;
  font-size: 16px;
  min-height: 52px;
}

/* ------- Step card (hero sidebar) ------- */
.step-card {
  background: var(--paper);
  border: 1px solid rgba(17, 36, 118, 0.08);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-medium);
  position: relative;
  overflow: hidden;
}
.step-card::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 140px; height: 140px;
  background: radial-gradient(closest-side, rgba(193, 255, 114, 0.5), transparent 70%);
  pointer-events: none;
}
.step-card-header { margin-bottom: 16px; }
.step-card-kicker {
  display: block;
  font-family: var(--f-head);
  font-weight: 700;
  color: var(--secondary);
  font-size: 14px;
  letter-spacing: -0.005em;
}
.step-card-sub {
  display: block;
  font-size: 13px;
  color: var(--body);
  opacity: 0.75;
  margin-top: 2px;
}
.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.step-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--paper-soft);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-head);
  font-weight: 700;
  color: var(--primary);
  background: #ffffff;
  border: 1px solid rgba(101, 41, 255, 0.15);
  border-radius: 12px;
  font-size: 14px;
  min-height: 44px;
  letter-spacing: 0.02em;
}
.step-body { display: flex; flex-direction: column; gap: 4px; }
.step-title {
  font-family: var(--f-head);
  color: var(--secondary);
  font-size: 14px;
  letter-spacing: -0.005em;
}
.step-copy {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
}

/* ------- Sections ------- */
.section { padding: 56px 0; }
.section-head { margin-bottom: 28px; max-width: 780px; }
.section-eyebrow {
  display: inline-block;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--f-head);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--heading);
  font-size: 26px;
  line-height: 1.18;
  margin: 0;
}

/* ------- Frame (60/30/10) ------- */
.frame {
  background:
    linear-gradient(180deg, var(--paper) 0%, var(--paper-soft) 100%);
}
.frame-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.frame-card {
  background: #ffffff;
  border: 1px solid rgba(17, 36, 118, 0.08);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: relative;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.frame-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}
.frame-pct {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 44px;
  color: var(--secondary);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 10px;
}
.pct-unit { font-size: 24px; color: var(--primary); margin-left: 2px; }
.frame-10 .frame-pct { color: var(--primary); }
.frame-10 {
  background:
    linear-gradient(180deg, #ffffff 0%, var(--paper-violet) 100%);
  border-color: rgba(101, 41, 255, 0.22);
}
.frame-30 {
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fff0 100%);
  border-color: rgba(193, 255, 114, 0.55);
}
.frame-label {
  font-family: var(--f-head);
  font-weight: 700;
  color: var(--secondary);
  font-size: 16px;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.frame-copy {
  font-size: 15px;
  color: var(--body);
  margin: 0;
  line-height: 1.55;
}

.frame-note {
  font-size: 15px;
  color: var(--body);
  max-width: 70ch;
  margin: 0;
  padding: 18px 20px;
  background: #ffffff;
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-subtle);
}

/* ------- Case ------- */
.case { background: var(--paper); }
.case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.case-body {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  max-width: 66ch;
  margin: 0 0 14px;
}
.case-facts {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  background: var(--paper-soft);
  border-radius: var(--radius-lg);
  padding: 18px;
  align-self: start;
}
.fact {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 14px 12px;
  text-align: center;
  border: 1px solid rgba(17, 36, 118, 0.06);
}
.fact-num {
  font-family: var(--f-head);
  font-weight: 800;
  color: var(--secondary);
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.fact-label {
  font-size: 12px;
  color: var(--body);
  opacity: 0.8;
  margin-top: 6px;
  line-height: 1.3;
}

/* ------- Paper ------- */
.paper {
  background:
    linear-gradient(180deg, var(--paper-soft) 0%, var(--paper) 100%);
}
.paper-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}
.paper-body {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  max-width: 66ch;
  margin: 0 0 14px;
}
.paper-links { margin: 0; }
.link {
  color: var(--primary);
  text-decoration: none;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 14px;
  word-break: break-all;
  border-bottom: 1px solid rgba(101, 41, 255, 0.25);
  padding-bottom: 1px;
  transition: border-color 160ms ease, color 160ms ease;
}
.link:hover {
  color: var(--primary-deep);
  border-bottom-color: var(--primary-deep);
}

.paper-card {
  background: #ffffff;
  border: 1px solid rgba(17, 36, 118, 0.08);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-subtle);
}
.paper-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.paper-layer {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 13px;
  color: var(--secondary);
  background: var(--paper-soft);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(17, 36, 118, 0.06);
  letter-spacing: -0.005em;
}
.paper-layer-active {
  background: var(--accent);
  color: var(--secondary);
  border-color: transparent;
}

/* ------- Credibility ------- */
.cred { background: var(--paper); }
.cred-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 760px;
}
.cred-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  padding: 16px 18px;
  background: var(--paper-soft);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary);
  font-size: 15px;
  color: var(--body);
  line-height: 1.55;
}
.cred-mark {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 22px;
  color: var(--primary);
  line-height: 1;
  margin-top: -2px;
}

/* ------- CTA ------- */
.cta-section {
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(193, 255, 114, 0.28), transparent 70%),
    linear-gradient(180deg, var(--secondary) 0%, #0c1a5d 100%);
  color: #ffffff;
  padding: 64px 0;
}
.cta-inner {
  text-align: center;
}
.cta-title {
  font-family: var(--f-head);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  font-size: 30px;
  line-height: 1.15;
  margin: 0 0 14px;
}
.cta-copy {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
  max-width: 56ch;
  margin: 0 auto 24px;
}
.cta-fine {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  margin: 18px 0 0;
}
.link-inline {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(193, 255, 114, 0.4);
  padding-bottom: 1px;
}
.link-inline:hover { border-bottom-color: var(--accent); }

/* ------- Footer ------- */
.site-footer {
  background: var(--paper);
  border-top: 1px solid rgba(17, 36, 118, 0.08);
  padding: 22px 0;
  font-size: 13px;
  color: var(--body);
}
.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.prepared { font-family: var(--f-head); color: var(--secondary); font-weight: 600; }
.footer-link {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px dashed rgba(101, 41, 255, 0.4);
}
.footer-link:hover { border-bottom-style: solid; }
.footer-meta { opacity: 0.8; }

/* ------- Language toggle behavior ------- */
html[lang="es"] .only-en { display: none; }
html[lang="en"] .only-es { display: none; }

/* ------- Responsive ------- */
@media (min-width: 720px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
  }
  .headline { font-size: 42px; }
  .section-title { font-size: 30px; }
  .section { padding: 72px 0; }
  .frame-grid { grid-template-columns: 1fr 1fr 1fr; }
  .case-grid { grid-template-columns: 1.4fr 1fr; gap: 36px; }
  .paper-grid { grid-template-columns: 1.3fr 1fr; gap: 36px; }
}

@media (min-width: 1024px) {
  .hero { padding: 72px 0 88px; }
  .headline { font-size: 48px; line-height: 1.06; }
  .section-title { font-size: 34px; }
  .cta-title { font-size: 36px; }
  .frame-pct { font-size: 52px; }
}

/* ------- Small screens: 375px check ------- */
@media (max-width: 380px) {
  .container { padding: 0 16px; }
  .prep-inner { padding: 10px 16px; }
  .headline { font-size: 30px; }
  .subhead { font-size: 16px; }
  .btn { padding: 12px 18px; font-size: 14px; }
  .case-facts { grid-template-columns: 1fr 1fr; }
  .fact:last-child { grid-column: 1 / -1; }
}

/* ------- Reduced motion ------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ------- Accessibility helpers ------- */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}
