/* ============================================================
   styles.css — Helvetia Coris EMI premium calculator
   Helvetia red + navy + CORIS orange palette
   ============================================================ */
:root {
  --navy: #143a56;
  --navy-2: #0f2c42;
  --red: #d52b1e;
  --red-dark: #b81f14;
  --orange: #e87722;
  --ink: #1a2733;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f5f7f9;
  --card: #ffffff;
  --green-light: #e6f0e9;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ---------- topbar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.brand { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.brand-name { font-weight: 800; font-size: 18px; color: var(--navy); letter-spacing: -0.3px; }
.brand-coris { font-weight: 800; font-size: 18px; color: var(--orange); }
.brand-sep { color: var(--muted); }
.brand-sub { font-size: 12px; color: var(--muted); font-weight: 600; }
.lang { display: flex; align-items: center; gap: 6px; }
.lang-label { font-size: 13px; color: var(--muted); margin-right: 4px; }
.lang button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
}
.lang button.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy-2) 0%, var(--navy) 60%, #1d4e74 100%);
  color: #fff;
  padding: 72px 24px 64px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(26px, 4.5vw, 40px);
  margin: 0 auto 14px;
  max-width: 720px;
  line-height: 1.15;
  letter-spacing: -0.5px;
}
.hero .hero-sub {
  font-size: 17px;
  color: #d7e4ee;
  max-width: 620px;
  margin: 0 auto 28px;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-ghost-dark { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost-dark:hover { background: var(--bg); }
.btn-block { width: 100%; }

/* ---------- sections ---------- */
.section { max-width: 980px; margin: 0 auto; padding: 56px 24px; }
.section-title {
  font-size: 26px;
  color: var(--navy);
  margin: 0 0 6px;
  letter-spacing: -0.4px;
}
.section-sub { color: var(--muted); margin: 0 0 28px; }

/* ---------- calculator ---------- */
.calc-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 6px 24px rgba(20,58,86,.06);
}
.calc-form { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
.calc-form .field { flex: 1 1 200px; }
.calc-form label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); margin-bottom: 5px; }
.calc-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 15px;
}
.calc-form input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(20,58,86,.1); }
.calc-error { color: var(--red); font-size: 14px; font-weight: 600; margin: 12px 0 0; min-height: 18px; }
.calc-result { margin-top: 26px; }
.calc-result h3 { color: var(--navy); font-size: 18px; margin: 0 0 14px; }
.calc-table { width: 100%; border-collapse: collapse; }
.calc-table th, .calc-table td { padding: 13px 16px; text-align: right; }
.calc-table th:first-child, .calc-table td:first-child { text-align: left; }
.calc-table thead th { background: var(--navy); color: #fff; font-size: 13px; font-weight: 700; }
.calc-table tbody tr:nth-child(odd) { background: #fff; }
.calc-table tbody tr:nth-child(even) { background: #f4f8fb; }
.calc-table td { border-top: 1px solid var(--line); font-size: 15px; }
.calc-table td:first-child { font-weight: 700; }
.calc-table .annual { font-weight: 700; color: var(--ink); }
.calc-table .monthly { color: var(--muted); font-weight: 500; }
.calc-note { font-size: 12px; color: var(--muted); font-style: italic; margin-top: 10px; }
.hidden { display: none !important; }

/* ---------- benefits table ---------- */
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 6px 24px rgba(20,58,86,.05); }
.ben-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.ben-table th, .ben-table td { padding: 11px 14px; text-align: center; border-top: 1px solid var(--line); font-size: 14px; }
.ben-table thead th { background: var(--navy); color: #fff; border-top: none; }
.ben-table thead th.plan-label { text-align: left; }
.ben-table thead .plan-name { font-size: 11px; font-weight: 600; color: #c6d6e4; text-transform: uppercase; letter-spacing: .4px; }
.ben-table tbody td:first-child { text-align: left; color: var(--ink); }
.ben-table tbody tr.cat td {
  background: var(--green-light);
  font-weight: 800;
  color: var(--navy);
  text-align: left;
  font-size: 13px;
  letter-spacing: .3px;
}
.ben-table .muted { color: var(--muted); font-weight: 600; }
.ben-table .strong { font-weight: 700; color: var(--ink); }

/* ---------- advantages ---------- */
.adv-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.adv-grid li {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 14.5px;
  box-shadow: 0 3px 12px rgba(20,58,86,.04);
}

/* ---------- terms accordion ---------- */
.tc-accordion {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(20,58,86,.05);
}
.tc-accordion summary {
  cursor: pointer;
  padding: 20px 24px;
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}
.tc-accordion summary::-webkit-details-marker { display: none; }
.tc-accordion summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 700;
  color: var(--red);
  transition: transform .18s;
}
.tc-accordion[open] summary::after { transform: rotate(45deg); }
.tc-accordion summary:hover { background: var(--bg); }
.tc-body { padding: 4px 24px 26px; border-top: 1px solid var(--line); }
.tc-body h4 { color: var(--navy); font-size: 14px; margin: 20px 0 6px; }
.tc-body p { margin: 0; color: #334155; font-size: 14px; }
.tc-note { font-size: 12.5px; color: var(--muted); margin-top: 18px; font-style: italic; }
.tc-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.tc-actions .btn-ghost-dark { border-color: var(--line); }
.tc-hint { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: #fff; padding: 34px 24px 44px; text-align: center; }
.footer p { max-width: 760px; margin: 0 auto; color: var(--muted); font-size: 12.5px; }
.footer .footer-rights { margin-top: 12px; font-size: 12px; }

@media (max-width: 640px) {
  .topbar { flex-direction: column; align-items: flex-start; }
  .calc-form { flex-direction: column; }
  .tc-actions { flex-direction: column; }
  .tc-actions .btn { text-align: center; }
}
