/* AvalICOJoven — Design System */
:root {
  --p-navy: #0f2942;
  --p-blue: #1e3a5f;
  --p-blue-dark: #0a1e35;
  --p-lime: #d4ff3c;
  --p-coral: #ff7a5c;
  --p-cream: #fbfaf7;
  --p-border: #e5e0d5;
  --p-text: #1a1a1a;
  --p-muted: #6a6a72;
  --p-gray: #8a8a92;
  --p-gold: #d99217;
  --p-green: #0d6e35;
  --radius: 14px;
  --radius-sm: 8px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Outfit', system-ui, sans-serif;
  color: var(--p-text);
  background: var(--p-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--p-blue); }
img { max-width: 100%; height: auto; display: block; }

/* ── TOP STRIP ── */
.top-strip {
  background: var(--p-navy); color: #a8c5e5;
  font-size: .72rem; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; padding: .45rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.top-strip .pill { color: var(--p-lime); font-weight: 700; }
.top-strip-right { display: flex; gap: 1.2rem; }
.top-strip a { color: #7ab8e8; text-decoration: none; transition: color .15s; }
.top-strip a:hover { color: var(--p-lime); }
@media(max-width:600px){ .top-strip-right { display:none; } }

/* ── NAV ── */
nav.main-nav {
  background: #fff;
  border-bottom: 1.5px solid var(--p-border);
  padding: .65rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,.96);
}
.logo-wrap { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--p-navy), var(--p-blue));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(15,41,66,.25);
}
.logo-mark svg { width: 22px; height: 22px; }
.logo-text {
  font-weight: 800; font-size: 1rem;
  color: var(--p-text); letter-spacing: -.4px; line-height: 1.1;
}
.logo-text span { color: var(--p-blue); }
.logo-text small { display: block; font-size: .62rem; color: var(--p-muted); font-weight: 500; margin-top: 1px; letter-spacing: .03em; }
.nav-links { display: flex; align-items: center; gap: 1.35rem; font-size: .88rem; }
.nav-links a { color: var(--p-muted); font-weight: 500; text-decoration: none; transition: color .15s; }
.nav-links a:hover { color: var(--p-text); }
.nav-cta {
  background: var(--p-lime); color: var(--p-navy) !important;
  font-weight: 800; padding: .45rem 1rem; border-radius: 100px;
  transition: transform .15s;
}
.nav-cta:hover { transform: translateY(-1px); }
@media(max-width:700px){ .nav-links a:not(.nav-cta):not(.logo-wrap) { display: none; } }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--p-navy) 0%, var(--p-blue) 60%, var(--p-blue-dark) 100%);
  color: #fff;
  padding: 4rem 1.5rem 3rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; width: 600px; height: 600px;
  top: -200px; right: -150px;
  background: radial-gradient(circle, rgba(212,255,60,.12), transparent 70%);
  pointer-events: none;
}
.hero-inner { max-width: 1120px; margin: 0 auto; position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 460px; gap: 3rem; align-items: center; }
@media(max-width:900px){ .hero-inner { grid-template-columns: 1fr; gap: 2rem; } }
.hero-badge {
  display: inline-block;
  background: rgba(212,255,60,.15); border: 1.5px solid rgba(212,255,60,.35);
  color: var(--p-lime); font-size: .72rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .35rem .85rem; border-radius: 100px; margin-bottom: 1.25rem;
}
.hero h1 {
  font-family: 'Cormorant', Georgia, serif;
  font-size: clamp(2.25rem, 5vw, 3.6rem); line-height: 1.02;
  font-weight: 700; letter-spacing: -.02em; margin: 0 0 1.1rem;
  color: #fff;
}
.hero h1 em { font-style: italic; color: var(--p-lime); font-weight: 600; }
.hero-lead {
  font-size: 1.08rem; line-height: 1.6; color: rgba(255,255,255,.78);
  max-width: 540px; margin-bottom: 1.75rem;
}
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem;
}
.hero-stat {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  padding: .9rem 1rem; border-radius: 12px;
}
.hero-stat-num { font-family: 'JetBrains Mono', monospace; font-size: 1.35rem; font-weight: 700; color: var(--p-lime); line-height: 1; }
.hero-stat-label { font-size: .72rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .06em; margin-top: .35rem; }

.hero-cta {
  display: inline-block; background: var(--p-lime); color: var(--p-navy);
  padding: 1rem 1.5rem; border-radius: 100px;
  font-weight: 800; font-size: 1rem; text-decoration: none;
  transition: transform .15s; margin-top: 1.25rem;
}
.hero-cta:hover { transform: translateY(-1px) scale(1.02); color: var(--p-navy); }
.hero-meta { margin-top: 1rem; font-size: .78rem; color: rgba(255,255,255,.5); display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; }
.hero-meta .tag { background: rgba(255,255,255,.08); padding: .2rem .6rem; border-radius: 100px; font-weight: 600; }

/* ── CALCULATOR ── */
.calc-card {
  background: white; color: var(--p-text);
  border-radius: 20px; padding: 1.75rem 1.6rem;
  box-shadow: 0 25px 70px rgba(0,0,0,.3);
  position: relative; overflow: hidden;
}
.calc-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--p-lime), #7fc93d, var(--p-lime));
}
.calc-head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.calc-head-icon {
  width: 44px; height: 44px; border-radius: 11px;
  background: linear-gradient(135deg, var(--p-navy), var(--p-blue));
  color: var(--p-lime); font-size: 1.35rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.calc-head-title { font-weight: 800; font-size: 1.05rem; line-height: 1.2; }
.calc-head-sub { font-size: .8rem; color: var(--p-muted); margin-top: 2px; }

.calc-group { margin-bottom: 1.1rem; }
.calc-label {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .82rem; font-weight: 700; color: var(--p-text);
  margin-bottom: .5rem;
}
.calc-label .val {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700; color: var(--p-blue); font-size: .88rem;
}
.calc-buttons { display: flex; gap: .35rem; }
.calc-btn {
  flex: 1; padding: .6rem 0; font-family: inherit;
  background: #f3efea; border: 1.5px solid var(--p-border); border-radius: 9px;
  font-weight: 700; font-size: .88rem; color: var(--p-muted);
  cursor: pointer; transition: all .15s;
}
.calc-btn:hover { border-color: var(--p-blue); color: var(--p-blue); }
.calc-btn.active { background: var(--p-blue); border-color: var(--p-blue); color: var(--p-lime); }

.calc-slider { width: 100%; -webkit-appearance: none; appearance: none; height: 6px; background: #e5e0d5; border-radius: 100px; outline: none; cursor: pointer; }
.calc-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--p-blue); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(30,58,95,.3); cursor: grab; }
.calc-slider::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--p-blue); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(30,58,95,.3); cursor: grab; }
.calc-bounds { display: flex; justify-content: space-between; font-size: .7rem; color: var(--p-muted); font-family: 'JetBrains Mono', monospace; margin-top: .3rem; }

.calc-result {
  margin-top: 1.25rem; padding: 1.1rem 1.2rem;
  border-radius: 12px; border-left: 4px solid var(--p-border);
  background: #f7f5ef; transition: all .3s;
}
.calc-result.ok { border-color: var(--p-green); background: linear-gradient(135deg, rgba(212,255,60,.12), rgba(13,110,53,.04)); }
.calc-result.warn { border-color: var(--p-coral); background: #fff4ef; }
.calc-result-status { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--p-muted); margin-bottom: .25rem; }
.calc-result.ok .calc-result-status { color: var(--p-green); }
.calc-result.warn .calc-result-status { color: var(--p-coral); }
.calc-result-headline {
  font-family: 'Cormorant', Georgia, serif;
  font-size: 1.45rem; font-weight: 700; line-height: 1.15;
  color: var(--p-text); margin-bottom: .3rem;
}
.calc-result-detail { font-size: .88rem; line-height: 1.5; color: #3a3a3a; margin-bottom: .75rem; }
.calc-result-kvs {
  display: flex; flex-wrap: wrap; gap: .4rem;
}
.calc-kv {
  background: white; border: 1px solid rgba(15,41,66,.12);
  padding: .3rem .7rem; border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .78rem; font-weight: 700; color: var(--p-blue);
}
.calc-cta {
  display: inline-block; margin-top: .85rem;
  background: var(--p-blue); color: var(--p-lime) !important;
  padding: .7rem 1.25rem; border-radius: 100px;
  font-weight: 800; font-size: .85rem; text-decoration: none;
  font-family: inherit; border: none; cursor: pointer;
}
.calc-cta:hover { background: var(--p-blue-dark); transform: translateY(-1px); color: var(--p-lime) !important; }
.calc-cta.coral { background: var(--p-coral); color: white !important; }

/* ── CONTAINER ── */
.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.container h2 {
  font-family: 'Cormorant', Georgia, serif;
  font-size: clamp(1.7rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--p-navy);
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 2.5rem 0 1rem;
  padding-left: .9rem;
  border-left: 4px solid var(--p-lime);
}
.container h2:first-child { margin-top: 0; }
.container h3 { font-size: 1.08rem; font-weight: 700; color: var(--p-navy); margin: 1.5rem 0 .6rem; }
.container p { font-size: 1rem; line-height: 1.7; color: #2a2a2a; margin-bottom: 1rem; }
.container strong { color: var(--p-navy); font-weight: 700; }

/* ── HIGHLIGHT ── */
.highlight {
  background: linear-gradient(135deg, rgba(212,255,60,.14), rgba(30,58,95,.04));
  border-left: 3px solid var(--p-navy);
  border-radius: 0 12px 12px 0;
  padding: 1.1rem 1.25rem; margin: 1.5rem 0;
  font-size: .96rem; line-height: 1.65;
}
.highlight.coral { background: #fff4ef; border-color: var(--p-coral); }

/* ── FEATURE GRID ── */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 1rem;
  margin: 1.5rem 0;
}
.feature-card {
  background: white; border: 1.5px solid var(--p-border);
  border-radius: var(--radius); padding: 1.2rem 1.1rem;
  transition: all .2s;
}
.feature-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15,41,66,.08); border-color: var(--p-blue); }
.feature-card .icon { font-size: 1.7rem; margin-bottom: .5rem; }
.feature-card strong { display: block; font-size: .95rem; color: var(--p-navy); margin-bottom: .25rem; font-weight: 700; }
.feature-card small { font-size: .82rem; color: var(--p-muted); line-height: 1.5; display: block; }

/* ── TABLE ── */
.table-wrap { overflow-x: auto; margin: 1.25rem 0; border-radius: 12px; border: 1px solid var(--p-border); }
table { width: 100%; border-collapse: collapse; background: white; font-size: .9rem; }
table th {
  background: var(--p-navy); color: #fff;
  padding: .7rem .9rem; text-align: left; font-size: .78rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
}
table td { padding: .65rem .9rem; border-bottom: 1px solid var(--p-border); color: #2a2a2a; }
table tr:last-child td { border-bottom: none; }
table tr:nth-child(even) td { background: #fbfaf7; }
.amount-lime { font-family: 'JetBrains Mono', monospace; color: var(--p-green); font-weight: 700; }

/* ── STEPS ── */
.steps { list-style: none; padding: 0; margin: 1.5rem 0; display: flex; flex-direction: column; gap: 1rem; }
.step {
  display: flex; gap: 1rem; align-items: flex-start;
  background: white; border: 1px solid var(--p-border); border-radius: 12px; padding: 1rem;
}
.step-num {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--p-navy); color: var(--p-lime);
  font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.step-body strong { display: block; font-size: 1rem; color: var(--p-navy); margin-bottom: .2rem; }
.step-body { font-size: .92rem; color: #3a3a3a; line-height: 1.55; }

/* ── FAQ ── */
.faq { background: white; border: 1px solid var(--p-border); border-radius: 14px; overflow: hidden; margin: 1.5rem 0; }
.faq-item { border-bottom: 1px solid var(--p-border); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%; background: none; border: none;
  padding: 1.05rem 1.25rem; text-align: left;
  font-size: .95rem; font-weight: 600; color: var(--p-text);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-family: inherit; transition: background .15s;
}
.faq-q:hover { background: #fbfaf7; }
.faq-q .arrow { color: var(--p-blue); transition: transform .2s; font-size: .75rem; }
.faq-q.open { color: var(--p-navy); }
.faq-q.open .arrow { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; padding: 0 1.25rem; font-size: .92rem; line-height: 1.7; color: #3a3a3a; transition: max-height .25s ease, padding .25s ease; }
.faq-a.open { max-height: 500px; padding: 0 1.25rem 1.05rem; }

/* ── CTA BOX ── */
.cta-box {
  background: linear-gradient(135deg, var(--p-navy), var(--p-blue));
  border-radius: 16px; padding: 2rem 1.75rem;
  color: white; margin: 2rem 0;
  position: relative; overflow: hidden;
}
.cta-box::before { content:''; position:absolute; width:400px; height:400px; top:-200px; right:-200px; background: radial-gradient(circle, rgba(212,255,60,.12), transparent 70%); pointer-events:none; }
.cta-box h3 { font-family: 'Cormorant', Georgia, serif; font-size: 1.55rem; color: #fff; margin-bottom: .4rem; position: relative; z-index: 1; }
.cta-box p { color: rgba(255,255,255,.78); font-size: .95rem; margin-bottom: 1rem; position: relative; z-index: 1; }
.cta-box-btn { display: inline-block; background: var(--p-lime); color: var(--p-navy) !important; font-weight: 800; padding: .8rem 1.5rem; border-radius: 100px; text-decoration: none; position: relative; z-index: 1; transition: transform .15s; }
.cta-box-btn:hover { transform: translateY(-1px) scale(1.02); color: var(--p-navy) !important; }

/* ── FOOTER ── */
footer {
  background: var(--p-navy); color: rgba(255,255,255,.6);
  padding: 2.5rem 1.5rem; text-align: center;
  margin-top: 3rem;
}
footer .logo-text { color: #fff; }
footer .logo-text span { color: var(--p-lime); }
footer .f-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.2rem; margin: 1rem 0; font-size: .85rem; }
footer .f-links a { color: rgba(255,255,255,.55); text-decoration: none; }
footer .f-links a:hover { color: var(--p-lime); }
footer p { font-size: .78rem; margin: .4rem 0; }
