/* =========================================
   MERIDIA — pages.css
   Hero · Products · Simulator · Auth · Apply
   ========================================= */

/* ====== HOME PAGE ====== */

/* Hero */
.hero {
  background: var(--navy);
  padding: 4rem 1.5rem 3.5rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 38%;
  background: var(--navy-mid);
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}
.hero-inner {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-inner h1 {
  color: var(--white);
  max-width: 520px;
  margin-bottom: 1rem;
}
.hero-inner h1 em { color: var(--gold-light); font-style: normal; }
.hero-inner p {
  font-size: 14px;
  color: #a0adb8;
  line-height: 1.75;
  max-width: 430px;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Key figures strip */
.figures-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 2rem;
}
.figure-item {
  padding: 1.25rem;
  border-left: 3px solid var(--gold);
}
.figure-num {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 600;
  color: var(--navy);
}
.figure-label { font-size: 12px; color: var(--text-muted); margin-top: 3px; }

/* ====== PRODUCT CARDS ====== */
.prod-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.15s;
  border-top: 3px solid transparent;
}
.prod-card:hover {
  border-top-color: var(--gold);
  transform: translateY(-2px);
}
.prod-card.navy-top  { border-top: 3px solid var(--navy); }
.prod-card.gold-top  { border-top: 3px solid var(--gold); }
.prod-card.selected  { border-top-color: var(--navy); background: var(--cream); }

.prod-icon {
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  background: var(--info-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}
.prod-icon svg { width: 16px; height: 16px; stroke: var(--info-bdr); fill: none; stroke-width: 1.5; }
.prod-icon.amber  { background: var(--warn-bg); }
.prod-icon.amber svg { stroke: var(--warn-bdr); }

.prod-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--gold);
  margin-bottom: 6px;
  font-weight: 500;
}
.prod-card h3 { font-family: var(--font-sans); font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.prod-card.large h3 { font-family: var(--font-serif); font-size: 16px; font-weight: 600; }
.prod-card p { font-size: 12px; color: var(--text-muted); line-height: 1.55; }
.prod-rate { font-size: 11px; color: var(--gold); font-weight: 500; margin-top: 8px; letter-spacing: 0.3px; }

/* Product tabs (simulator) */
.prod-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 1.25rem; }
.ptab {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  border: 0.5px solid var(--border-md);
  background: none;
  cursor: pointer;
  color: var(--text-muted);
  font-family: var(--font-sans);
  transition: var(--transition);
}
.ptab.act { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ====== SIMULATOR ====== */
.sim-layout {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 1.5rem;
  align-items: start;
}
.sim-box {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.rg { margin-bottom: 1.25rem; }
.rg label {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}
.rg .rv {
  font-size: 20px;
  font-weight: 500;
  font-family: var(--font-serif);
  margin-bottom: 5px;
}
.rg input[type="range"] { width: 100%; accent-color: var(--navy); }

/* Result card */
.res-card {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  color: var(--white);
}
.res-card h3 {
  font-size: 11px;
  color: #8fa3b8;
  margin-bottom: 0.9rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-family: var(--font-sans);
}
.res-amount {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 1rem;
}
.res-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  padding: 5px 0;
  border-bottom: 0.5px solid rgba(255,255,255,0.1);
}
.res-row:last-child { border-bottom: none; }
.res-row .rl { color: #8fa3b8; }
.res-row .rv2 { color: var(--white); font-weight: 500; }
.res-disclaimer { margin-top: 1rem; font-size: 10px; color: #8fa3b8; line-height: 1.6; }

/* ====== APPLY PAGE ====== */
.apply-layout {
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 1.25rem;
  align-items: start;
}
.apply-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.apply-card .form-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.apply-card .form-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.upload-zone {
  border: 1px dashed var(--border-md);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
}
.upload-zone:hover { border-color: var(--navy); background: var(--gray-100); }
.upload-zone span { font-size: 11px; }
.cgu-note {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--gray-100);
  padding: 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* ====== AUTH PAGE ====== */
.auth-wrap {
  max-width: 440px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}
.auth-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.auth-note {
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
  line-height: 1.6;
}
.auth-footer { text-align: center; font-size: 11px; color: var(--text-muted); margin-top: 0.75rem; }
.remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}
.remember-row label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  cursor: pointer;
  color: var(--text-main);
}
.remember-row label input { width: auto; }
.forgot-link { font-size: 12px; color: var(--gold); cursor: pointer; }
.accept-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 1rem;
}
.accept-row input { width: auto; margin-top: 2px; flex-shrink: 0; }
.accept-row span { font-size: 11px; color: var(--text-muted); line-height: 1.5; }

/* ====== FOOTER ====== */
.footer {
  background: var(--navy);
  color: #8fa3b8;
  padding: 2.5rem 1.5rem;
  margin-top: 3rem;
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand .logo-name { color: var(--white); font-size: 22px; }
.footer-brand p { font-size: 12px; color: #7a8fa0; margin-top: 0.75rem; line-height: 1.7; }
.footer-col h4 { font-size: 12px; font-weight: 500; color: var(--white); margin-bottom: 0.9rem; font-family: var(--font-sans); text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col a { display: block; font-size: 12px; color: #7a8fa0; margin-bottom: 6px; transition: color 0.15s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  max-width: 960px;
  margin: 1.5rem auto 0;
  padding-top: 1rem;
  border-top: 0.5px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #6a7d8e;
}

/* ====== SECURITY PAGE ====== */
.sec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 0.5px solid var(--border);
  font-size: 12px;
}
.sec-row:last-child { border-bottom: none; }
.sec-row .sr-name { font-weight: 500; }
.sec-row .sr-sub  { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.device-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 0.5px solid var(--border);
  gap: 10px;
}
.device-row:last-child { border-bottom: none; }
.device-name { font-size: 12px; font-weight: 500; }
.device-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.security-note {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ====== Responsive ====== */
@media (max-width: 768px) {
  .sim-layout { grid-template-columns: 1fr; }
  .apply-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .figures-strip { grid-template-columns: 1fr; }
}
