/* ==========================================================================
   Alleywell Finserve Nidhi Ltd — design system
   Concept: "The Register" — proof-led layout for a member-based Nidhi company.
   Palette derived from the Alleywell logo (teal / cyan / violet).
   ========================================================================== */

/* --------------------------------------------------------------- 1. Tokens */
:root {
  /* Brand */
  --ink:            #062A31;
  --ink-2:          #0B3D46;
  --ink-3:          #10515C;
  --teal:           #0C6270;
  --teal-700:       #08505C;
  --cyan:           #16BECB;
  --cyan-200:       #A9E6EB;
  --cyan-050:       #E6F7F8;
  --violet:         #8A1FA6;
  --violet-700:     #711888;
  --violet-050:     #F7EAFB;
  --gold:           #9A7317;

  /* Surfaces */
  --paper:          #FFFFFF;
  --sand:           #FAFCFC;
  --mist:           #F1F7F7;
  --rule:           #DCE8E9;
  --rule-2:         #C2D8DA;

  /* Text */
  --text:           #0E2A2F;
  --text-muted:     #4E6C72;
  --text-invert:    #FFFFFF;
  --text-invert-mut:#A8CBD0;

  /* Type */
  --font-display: "Spectral", "Iowan Old Style", Georgia, serif;
  --font-ui: "Archivo", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --step--1: 0.8125rem;
  --step-0:  1.0625rem;
  --step-1:  1.1875rem;
  --step-2:  clamp(1.25rem, 1.15rem + 0.4vw, 1.45rem);
  --step-3:  clamp(1.5rem, 1.3rem + 0.9vw, 1.95rem);
  --step-4:  clamp(1.85rem, 1.5rem + 1.6vw, 2.6rem);
  --step-5:  clamp(2.2rem, 1.65rem + 2.6vw, 3.5rem);

  /* Space */
  --wrap: 1200px;
  --gutter: clamp(1.15rem, 0.6rem + 2.2vw, 2.75rem);
  --section-y: clamp(3.5rem, 2rem + 5vw, 6.5rem);

  --radius-doc: 4px;
  --radius-card: 6px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(6, 42, 49, 0.05);
  --shadow-md: 0 10px 30px -12px rgba(6, 42, 49, 0.22);
  --shadow-lg: 0 24px 60px -28px rgba(6, 42, 49, 0.38);

  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------------------------------------------------------------- 2. Reset */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: var(--step-0);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.012em;
  margin: 0 0 0.5em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-3); }
h4 { font-size: var(--step-2); }
h5 { font-size: var(--step-1); }

p { margin: 0 0 1.1em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--violet); }

img, svg, iframe { max-width: 100%; }
img { height: auto; display: block; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.25rem; }
li { margin-bottom: 0.4em; }

address { font-style: normal; }

hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--cyan-200); color: var(--ink); }

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 200;
  background: var(--ink); color: #fff; padding: 0.7rem 1.1rem;
  border-radius: var(--radius-doc); font-weight: 600; text-decoration: none;
  transition: top 0.18s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------ 3. Utilities */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 860px; }

.section { padding-block: var(--section-y); }
.section--mist { background: var(--mist); }
.section--sand { background: var(--sand); }
.section--ink { background: var(--ink); color: var(--text-invert-mut); }
.section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem); }

.lede { font-size: var(--step-1); color: var(--text-muted); line-height: 1.62; max-width: 60ch; }
.muted { color: var(--text-muted); }
.tabular { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.nowrap { white-space: nowrap; }

/* Section head: heading left, supporting note right — not a centred stack. */
.sec-head {
  display: grid; gap: 1rem 3rem; align-items: end;
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: clamp(2rem, 1.2rem + 2.4vw, 3.25rem);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1.4rem;
}
.section--ink .sec-head { border-bottom-color: rgba(255,255,255,0.16); }
.sec-head h2 { margin-bottom: 0.25rem; }
.sec-head p { margin: 0; color: var(--text-muted); }
.section--ink .sec-head p { color: var(--text-invert-mut); }
.sec-head__aside { font-size: var(--step--1); color: var(--text-muted); max-width: 34ch; }
@media (min-width: 900px) {
  .sec-head { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
  .sec-head__aside { text-align: right; justify-self: end; }
}

/* ------------------------------------------------------------- 4. Buttons */
.btn {
  --btn-bg: var(--violet);
  --btn-fg: #fff;
  --btn-bd: var(--violet);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.82rem 1.5rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd); border-radius: var(--radius-doc);
  font-family: var(--font-ui); font-weight: 600; font-size: 0.975rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.btn:hover { --btn-bg: var(--violet-700); --btn-bd: var(--violet-700); color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--rule-2); }
.btn--ghost:hover { --btn-bg: var(--mist); --btn-fg: var(--ink); --btn-bd: var(--teal); color: var(--ink); }

.btn--ink { --btn-bg: var(--ink); --btn-bd: var(--ink); }
.btn--ink:hover { --btn-bg: var(--teal); --btn-bd: var(--teal); }

.btn--onink { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,0.4); }
.btn--onink:hover { --btn-bg: rgba(255,255,255,0.1); --btn-bd: #fff; color: #fff; }

.btn--sm { padding: 0.55rem 1rem; font-size: 0.875rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* Inline text link with a rule instead of an arrow glyph */
.tlink {
  display: inline-block; font-weight: 600; font-size: 0.95rem;
  color: var(--teal); text-decoration: none;
  border-bottom: 2px solid var(--cyan-200); padding-bottom: 2px;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.tlink:hover { color: var(--violet); border-bottom-color: var(--violet); }

/* --------------------------------------------------------------- 5. Header */
.topbar {
  background: var(--ink); color: var(--text-invert-mut);
  font-size: var(--step--1); line-height: 1.4;
}
.topbar__in {
  display: flex; flex-wrap: wrap; gap: 0.35rem 1.6rem;
  align-items: center; justify-content: space-between;
  padding-block: 0.55rem;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--cyan); text-decoration: underline; }
.topbar__facts { display: flex; flex-wrap: wrap; gap: 0.35rem 1.4rem; }
.topbar__facts span { display: inline-flex; align-items: center; gap: 0.45rem; }
.topbar__facts svg { width: 14px; height: 14px; opacity: 0.75; }
@media (max-width: 720px) { .topbar__cin, .topbar__mail { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow 0.2s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 6px 24px -16px rgba(6,42,49,0.5); }
.site-header__in {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: auto; }
.brand__name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.22rem;
  letter-spacing: -0.015em; line-height: 1; color: var(--ink);
}
.brand__sub {
  display: block; font-family: var(--font-ui); font-weight: 500;
  font-size: 0.66rem; letter-spacing: 0.09em; color: var(--teal);
  margin-top: 3px; text-transform: uppercase;
}
.brand:hover .brand__name { color: var(--teal); }

.nav { display: none; }
.nav ul { display: flex; align-items: center; gap: 0.15rem; list-style: none; margin: 0; padding: 0; }
.nav li { margin: 0; }
.nav a {
  display: block; padding: 0.5rem 0.75rem; border-radius: var(--radius-doc);
  color: var(--ink); font-weight: 500; font-size: 0.95rem; text-decoration: none;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.nav a:hover { background: var(--mist); color: var(--teal); }
.nav a[aria-current="page"] { color: var(--violet); background: var(--violet-050); font-weight: 600; }

.header-cta { display: none; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--ink); color: #fff; border: 0; border-radius: var(--radius-doc);
  padding: 0.6rem 0.85rem; font-size: 0.85rem; font-weight: 600; cursor: pointer;
}
.nav-toggle__bars { display: block; width: 18px; height: 12px; position: relative; }
.nav-toggle__bars i {
  position: absolute; left: 0; height: 2px; width: 100%; background: #fff; border-radius: 2px;
  transition: transform 0.22s var(--ease), opacity 0.15s var(--ease);
}
.nav-toggle__bars i:nth-child(1) { top: 0; }
.nav-toggle__bars i:nth-child(2) { top: 5px; }
.nav-toggle__bars i:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Mobile drawer — a real panel, not a stacked desktop menu */
.mobile-nav {
  position: fixed; inset: 0; z-index: 120;
  background: var(--ink);
  display: grid; grid-template-rows: auto 1fr auto;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.32s var(--ease), visibility 0.32s;
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateY(0); visibility: visible; }
.mobile-nav__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--gutter); border-bottom: 1px solid rgba(255,255,255,0.14);
}
.mobile-nav__head .brand, .mobile-nav__head .brand__name { color: #fff; }
.mobile-nav__head .brand__name { font-size: 1.22rem; }
.mobile-nav__close {
  background: transparent; border: 1px solid rgba(255,255,255,0.35); color: #fff;
  border-radius: var(--radius-doc); padding: 0.5rem 0.85rem; font-weight: 600; cursor: pointer;
}
.mobile-nav ul { list-style: none; margin: 0; padding: 0.75rem var(--gutter) 1.5rem; }
.mobile-nav li { margin: 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.mobile-nav li:last-child { border-bottom: 0; }
.mobile-nav ul a {
  display: block; padding: 0.95rem 0; color: #fff; text-decoration: none;
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; line-height: 1.25;
}
.mobile-nav ul a span {
  display: block; font-family: var(--font-ui); font-size: 0.78rem; font-weight: 500;
  color: var(--cyan); letter-spacing: 0.02em; margin-top: 2px;
}
.mobile-nav ul a[aria-current="page"] { color: var(--cyan); }
.mobile-nav ul a[aria-current="page"] span { color: #fff; opacity: 0.7; }
.mobile-nav__foot {
  padding: 1.25rem var(--gutter) 2rem; border-top: 1px solid rgba(255,255,255,0.14);
  display: grid; gap: 0.7rem;
}
.mobile-nav__foot .btn { width: 100%; }
.mobile-nav__foot p { color: var(--text-invert-mut); font-size: var(--step--1); margin: 0; }

@media (min-width: 1060px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* ----------------------------------------------------------------- 6. Hero */
.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 88% 0%, #0F4C57 0%, transparent 55%),
    var(--ink);
  color: #fff;
  overflow: hidden;
  padding-block: clamp(2.75rem, 1.5rem + 5vw, 5.5rem) clamp(3rem, 2rem + 4vw, 5rem);
}
.hero::after {
  /* faint ruled-ledger texture — the "register" motif */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(to bottom, rgba(255,255,255,0.045) 0 1px, transparent 1px 42px);
  mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
}
.hero > .wrap { position: relative; z-index: 1; }
.hero__grid { display: grid; gap: clamp(2.25rem, 1.5rem + 3vw, 3.5rem); align-items: center; }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero__lede { color: #CFE6E9; font-size: var(--step-1); max-width: 46ch; line-height: 1.6; }
.hero .btn-row { margin-top: 1.9rem; }

.hero__since {
  display: inline-flex; align-items: center; gap: 0.6rem;
  border: 1px solid rgba(255,255,255,0.28); border-radius: var(--radius-pill);
  padding: 0.35rem 0.9rem 0.35rem 0.4rem; margin-bottom: 1.5rem;
  font-size: var(--step--1); color: #CFE6E9;
}
.hero__since b { color: #fff; font-weight: 600; }
.hero__since i {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--cyan); color: var(--ink); font-style: normal;
}
.hero__since svg { width: 13px; height: 13px; }
@media (max-width: 560px) { .hero__since .hero__since-cin { display: none; } }

/* The rate board — the one loud element on the page. */
.rateboard {
  background: #fff; color: var(--ink);
  border-radius: var(--radius-doc);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.rateboard__head {
  background: var(--teal); color: #fff;
  padding: 0.9rem 1.4rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.rateboard__head h2 {
  color: #fff; font-size: 1.05rem; margin: 0; font-family: var(--font-ui);
  font-weight: 600; letter-spacing: 0.01em;
}
.rateboard__head span { font-size: 0.72rem; color: var(--cyan-200); }
.rateboard__row {
  display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 0.5rem 1rem;
  align-items: center; padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--rule);
}
.rateboard__row:last-of-type { border-bottom: 0; }
.rateboard__row b { display: block; font-weight: 600; font-size: 1rem; }
.rateboard__row small { display: block; color: var(--text-muted); font-size: 0.8rem; line-height: 1.45; }
.rateboard__fig {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.9rem; line-height: 1; color: var(--teal);
  font-variant-numeric: tabular-nums; text-align: right;
}
.rateboard__fig em { display: block; font-style: normal; font-family: var(--font-ui); font-size: 0.72rem; font-weight: 500; color: var(--text-muted); margin-top: 4px; }
.rateboard__foot {
  background: var(--mist); padding: 0.85rem 1.4rem;
  font-size: 0.75rem; color: var(--text-muted); line-height: 1.5;
  border-top: 1px solid var(--rule); max-width: none;
}

@media (min-width: 940px) {
  .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
}

/* ------------------------------------------------- 7. Registration strip */
.register-strip { background: var(--paper); border-bottom: 1px solid var(--rule); }
.register-strip__in { display: grid; gap: 0; padding-block: 0; }
@media (min-width: 620px) { .register-strip__in { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .register-strip__in { grid-template-columns: repeat(4, 1fr); } }
.register-strip dl {
  margin: 0; padding: 1.35rem 1.4rem 1.35rem 0;
  border-right: 1px solid var(--rule);
}
.register-strip dl:last-child { border-right: 0; }
.register-strip dt {
  font-size: 0.7rem; letter-spacing: 0.07em; color: var(--text-muted);
  font-weight: 600; margin-bottom: 0.3rem; text-transform: uppercase;
}
.register-strip dd {
  margin: 0; font-weight: 600; font-size: 0.95rem; color: var(--ink);
  font-variant-numeric: tabular-nums; word-break: break-word;
}
@media (max-width: 999px) {
  .register-strip dl:nth-child(2n) { border-right: 0; }
  .register-strip dl:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
}
@media (max-width: 619px) {
  .register-strip dl { border-right: 0; border-bottom: 1px solid var(--rule); padding-block: 1rem; }
  .register-strip dl:last-child { border-bottom: 0; }
}

/* --------------------------------------------------------- 8. Stat figures */
.stats { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius-doc); overflow: hidden; }
.stats > div { background: var(--paper); padding: clamp(1.4rem, 1rem + 1.2vw, 2.1rem); }
.section--mist .stats > div { background: var(--paper); }
.stat__fig {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(2.1rem, 1.6rem + 2vw, 3rem);
  line-height: 1; color: var(--teal); font-variant-numeric: tabular-nums;
}
.stat__label { font-weight: 600; margin-top: 0.55rem; color: var(--ink); }
.stat__note { font-size: var(--step--1); color: var(--text-muted); margin-top: 0.2rem; line-height: 1.5; max-width: none; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* ------------------------------------------------------------ 9. Card grids */
.grid { display: grid; gap: 1.15rem; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
}

/* Loan / product card — document-like, restrained */
.pcard {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--radius-doc); padding: 1.5rem;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.pcard:hover { border-color: var(--teal); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pcard__icon {
  width: 42px; height: 42px; margin-bottom: 1rem;
  display: grid; place-items: center;
  border: 1px solid var(--cyan-200); border-radius: var(--radius-doc);
  background: var(--cyan-050); color: var(--teal);
}
.pcard__icon svg { width: 22px; height: 22px; }
.pcard h3 { font-size: 1.22rem; margin-bottom: 0.45rem; }
.pcard p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 1rem; max-width: none; }
.pcard__meta {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin: 0 0 1.15rem; padding: 0; list-style: none;
}
.pcard__meta li {
  margin: 0; font-size: 0.78rem; font-weight: 600; color: var(--teal);
  background: var(--cyan-050); border: 1px solid var(--cyan-200);
  border-radius: var(--radius-pill); padding: 0.22rem 0.65rem;
  font-variant-numeric: tabular-nums;
}
.pcard__meta li.is-fee { color: var(--gold); background: #FCF6E6; border-color: #EBD9A8; }
.pcard__meta li.is-emi { color: var(--violet); background: var(--violet-050); border-color: #E3C3EC; }
.pcard > .tlink { margin-top: auto; align-self: flex-start; }

/* Feature card (why choose / values) */
.fcard { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-doc); padding: 1.5rem; }
.section--ink .fcard { background: rgba(255,255,255,0.045); border-color: rgba(255,255,255,0.16); }
.fcard__icon { width: 34px; height: 34px; color: var(--teal); margin-bottom: 0.9rem; }
.section--ink .fcard__icon { color: var(--cyan); }
.fcard h3 { font-size: 1.12rem; margin-bottom: 0.4rem; }
.fcard p { font-size: 0.94rem; color: var(--text-muted); margin: 0; max-width: none; }
.section--ink .fcard p { color: var(--text-invert-mut); }

/* --------------------------------------------------- 10. Investment plans */
.plans { display: grid; gap: 1.15rem; }
@media (min-width: 720px) { .plans { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1040px) { .plans { grid-template-columns: repeat(4, minmax(0,1fr)); } }

.plan {
  display: flex; flex-direction: column;
  border: 1px solid var(--rule); border-radius: var(--radius-doc);
  background: var(--paper); overflow: hidden;
}
.plan--lead { border-color: var(--teal); border-width: 2px; }
.plan__head { padding: 1.4rem 1.4rem 1.1rem; border-bottom: 1px solid var(--rule); }
@media (min-width: 720px) { .plan__head { min-height: 13.5rem; display: flex; flex-direction: column; }
  .plan__head .plan__rate { margin-top: auto; } }
.plan__tag {
  display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.07em;
  color: var(--violet); background: var(--violet-050); border-radius: var(--radius-pill);
  padding: 0.18rem 0.6rem; margin-bottom: 0.65rem; text-transform: uppercase;
}
.plan h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.plan__rate {
  font-family: var(--font-display); font-size: 2.3rem; font-weight: 600; line-height: 1;
  color: var(--teal); font-variant-numeric: tabular-nums;
}
.plan__rate small { display: block; font-family: var(--font-ui); font-size: 0.78rem; font-weight: 500; color: var(--text-muted); margin-top: 0.35rem; }
.plan__rate--text { font-size: 1.35rem; line-height: 1.25; }
.plan__body { padding: 1.2rem 1.4rem; flex: 1; }
.plan__body dl { margin: 0 0 1rem; font-size: 0.9rem; }
.plan__body dt { color: var(--text-muted); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.plan__body dd { margin: 0 0 0.75rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.plan__body ul { list-style: none; padding: 0; margin: 0; font-size: 0.92rem; }
.plan__body li { display: flex; gap: 0.55rem; align-items: flex-start; margin-bottom: 0.5rem; color: var(--text-muted); }
.plan__body li svg { width: 16px; height: 16px; flex: none; color: var(--teal); margin-top: 4px; }
.plan__foot { padding: 0 1.4rem 1.4rem; }

/* --------------------------------------------------------- 11. Calculator */
.calc { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .calc { grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: 2.5rem; } }

.calc__panel { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-doc); padding: clamp(1.25rem, 1rem + 1vw, 1.9rem); }
.calc__tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--rule); }
.calc__tab {
  background: none; border: 0; border-bottom: 3px solid transparent;
  padding: 0.6rem 0.2rem; margin-right: 1.2rem; margin-bottom: -1px;
  font-weight: 600; font-size: 0.95rem; color: var(--text-muted); cursor: pointer;
}
.calc__tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--violet); }
.calc__tab:hover { color: var(--ink); }

.field { margin-bottom: 1.25rem; }
.field > label, .field > .field__label {
  display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; color: var(--ink);
}
.field__hint { font-size: 0.78rem; color: var(--text-muted); font-weight: 400; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"],
.field input[type="number"], .field select, .field textarea {
  width: 100%; padding: 0.72rem 0.9rem;
  background: var(--paper); border: 1px solid var(--rule-2); border-radius: var(--radius-doc);
  font-size: 1rem; font-variant-numeric: tabular-nums;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--rule-2); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--cyan-050);
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: #B3261E; box-shadow: 0 0 0 3px #FBECEA;
}
.field__error { display: none; margin-top: 0.35rem; font-size: 0.82rem; color: #B3261E; font-weight: 500; }
.field__error.is-shown { display: block; }
.field input[type="range"] { width: 100%; accent-color: var(--violet); }
.field__rangeval { font-weight: 600; color: var(--teal); font-variant-numeric: tabular-nums; }

.calc__result {
  background: var(--ink); color: #fff; border-radius: var(--radius-doc);
  padding: clamp(1.25rem, 1rem + 1vw, 1.9rem); align-self: start;
}
.calc__result h3 { color: #fff; font-size: 1.15rem; margin-bottom: 1.2rem; }
.calc__out { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 0.9rem; margin-top: 0.9rem; }
.calc__out:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.calc__out dt { font-size: 0.8rem; color: var(--text-invert-mut); margin-bottom: 0.2rem; }
.calc__out dd {
  margin: 0; font-family: var(--font-display); font-size: 1.75rem; font-weight: 600;
  color: var(--cyan); font-variant-numeric: tabular-nums; line-height: 1.15;
}
.calc__out--lead dd { font-size: 2.3rem; color: #fff; }
.calc__note {
  max-width: none; margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.78rem; color: var(--text-invert-mut); line-height: 1.6;
}

/* ------------------------------------------------------- 12. Certificates */
.certs { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .certs { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1000px) { .certs { grid-template-columns: repeat(3, minmax(0,1fr)); } }

.cert {
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-doc);
  display: flex; flex-direction: column; overflow: hidden;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.cert:hover { border-color: var(--rule-2); box-shadow: var(--shadow-md); }
.cert__thumb {
  position: relative; margin: 0; background: var(--mist);
  border-bottom: 1px solid var(--rule); aspect-ratio: 25 / 18; overflow: hidden;
}
.cert__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.cert__body { padding: 1.25rem 1.35rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.cert h3 { font-size: 1.08rem; margin-bottom: 0.15rem; }
.cert__issuer { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.9rem; max-width: none; }
.cert__num {
  font-family: var(--font-ui); font-weight: 600; font-size: 0.92rem;
  font-variant-numeric: tabular-nums; letter-spacing: 0.01em;
  background: var(--mist); border: 1px solid var(--rule);
  border-radius: var(--radius-doc); padding: 0.55rem 0.75rem;
  margin-bottom: 1.1rem; word-break: break-all; color: var(--ink);
}
.cert__num span { display: block; font-size: 0.7rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0.05em; margin-bottom: 0.15rem; text-transform: uppercase; }
.cert__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(6, 42, 49, 0.9); padding: clamp(0.75rem, 2vw, 2rem);
  place-items: center;
}
.lightbox.is-open { display: grid; }
.lightbox__inner { max-width: 900px; width: 100%; max-height: 100%; display: flex; flex-direction: column; }
.lightbox__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  color: #fff; padding-bottom: 0.75rem;
}
.lightbox__bar h3 { color: #fff; font-size: 1.05rem; margin: 0; }
.lightbox img { background: #fff; border-radius: var(--radius-doc); width: 100%; height: auto; overflow: auto; }
.lightbox__scroll { overflow: auto; background: #fff; border-radius: var(--radius-doc); }
.lightbox__close {
  background: transparent; border: 1px solid rgba(255,255,255,0.45); color: #fff;
  border-radius: var(--radius-doc); padding: 0.45rem 0.85rem; font-weight: 600; cursor: pointer;
}
.lightbox__close:hover { background: rgba(255,255,255,0.12); }

/* --------------------------------------------------------- 13. Steps (seq) */
.steps { display: grid; gap: 0; counter-reset: step; }
.step {
  display: grid; gap: 0.3rem 1.5rem; padding: 1.6rem 0;
  border-top: 1px solid var(--rule);
  grid-template-columns: minmax(0, 1fr);
}
.section--ink .step { border-top-color: rgba(255,255,255,0.16); }
.step:last-child { border-bottom: 1px solid var(--rule); }
.section--ink .step:last-child { border-bottom-color: rgba(255,255,255,0.16); }
.step__num {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 600;
  color: var(--cyan); font-variant-numeric: tabular-nums; line-height: 1.3;
  min-width: 2.4ch;
}
.step h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.step p { margin: 0; color: var(--text-muted); font-size: 0.96rem; max-width: 62ch; }
.section--ink .step p { color: var(--text-invert-mut); }
@media (min-width: 560px) {
  .step { grid-template-columns: auto minmax(0, 1fr); }
  .step__num { grid-row: span 2; }
}
@media (min-width: 860px) {
  .step { grid-template-columns: auto minmax(0, 20rem) minmax(0, 1fr); align-items: baseline; }
  .step__num { grid-row: auto; }
  .step h3 { margin-bottom: 0; }
}

/* ------------------------------------------------------------- 14. Prose */
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 2rem; font-size: var(--step-2); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { color: var(--text-muted); max-width: 68ch; }
.prose li { margin-bottom: 0.5rem; }
.prose > p { color: var(--text-muted); }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: 0.94rem; }
.prose th, .prose td { text-align: left; padding: 0.7rem 0.9rem; border: 1px solid var(--rule); vertical-align: top; }
.prose th { background: var(--mist); font-weight: 600; }

/* Data table with a mobile-friendly stacked mode */
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius-doc); }
.dtable { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 520px; }
.dtable th, .dtable td { padding: 0.85rem 1.1rem; text-align: left; border-bottom: 1px solid var(--rule); }
.dtable thead th { background: var(--mist); font-weight: 600; color: var(--ink); font-size: 0.85rem; letter-spacing: 0.03em; }
.dtable tbody tr:last-child td { border-bottom: 0; }
.dtable td.num { font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---------------------------------------------------------------- 15. FAQ */
.faq { border-top: 1px solid var(--rule); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__q {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
  background: none; border: 0; padding: 1.25rem 0; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; color: var(--ink); line-height: 1.35;
}
.faq__q:hover { color: var(--teal); }
.faq__sign { flex: none; width: 22px; height: 22px; position: relative; margin-top: 3px; }
.faq__sign::before, .faq__sign::after {
  content: ""; position: absolute; background: var(--teal); border-radius: 2px;
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}
.faq__sign::before { top: 10px; left: 2px; width: 18px; height: 2px; }
.faq__sign::after { left: 10px; top: 2px; width: 2px; height: 18px; }
.faq__q[aria-expanded="true"] .faq__sign::after { transform: rotate(90deg); opacity: 0; }
.faq__a { display: none; padding: 0 0 1.4rem; }
.faq__a.is-open { display: block; }
.faq__a p { color: var(--text-muted); max-width: 72ch; font-size: 0.98rem; }

/* ------------------------------------------------------------- 16. Notice */
.notice {
  border: 1px solid var(--rule); border-left: 3px solid var(--teal);
  background: var(--mist); border-radius: var(--radius-doc);
  padding: 1.1rem 1.25rem; font-size: 0.92rem; color: var(--text-muted);
}
.notice strong { color: var(--ink); }
.notice--warn { border-left-color: var(--gold); background: #FCF9F0; border-color: #EEE2C4; }
.notice p { max-width: none; }

/* ------------------------------------------------------------- 17. CTA band */
.cta-band { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; right: -8%; top: -30%; width: 46rem; height: 46rem;
  background: radial-gradient(circle, rgba(22,190,203,0.16), transparent 62%);
  pointer-events: none;
}
.cta-band__in { position: relative; display: grid; gap: 1.75rem; align-items: center; padding-block: clamp(2.75rem, 2rem + 3vw, 4.5rem); }
.cta-band h2 { color: #fff; margin-bottom: 0.6rem; max-width: 20ch; }
.cta-band p { color: var(--text-invert-mut); max-width: 52ch; margin: 0; }
@media (min-width: 900px) {
  .cta-band__in { grid-template-columns: minmax(0, 1.4fr) auto; }
  .cta-band .btn-row { justify-content: flex-end; }
}

/* --------------------------------------------------------------- 18. Footer */
.site-footer { background: #041D22; color: var(--text-invert-mut); font-size: 0.94rem; }
.site-footer a { color: var(--text-invert-mut); text-decoration: none; }
.site-footer a:hover { color: var(--cyan); text-decoration: underline; }
.footer__grid {
  display: grid; gap: 2.25rem; padding-block: clamp(2.75rem, 2rem + 3vw, 4rem);
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .footer__grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; } }
.footer__grid h3 {
  color: #fff; font-family: var(--font-ui); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.09em; margin-bottom: 1rem; text-transform: uppercase;
}
.footer__grid ul { list-style: none; margin: 0; padding: 0; }
.footer__grid li { margin-bottom: 0.55rem; }
.footer__brand { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.footer__brand img { width: 42px; }
.footer__brand b { display: block; font-family: var(--font-display); font-size: 1.2rem; color: #fff; line-height: 1.1; }
.footer__brand span { font-size: 0.72rem; letter-spacing: 0.08em; color: var(--cyan); text-transform: uppercase; }
.footer__about p { font-size: 0.9rem; line-height: 1.65; margin-bottom: 1rem; }
.footer__contact li { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 0.8rem; }
.footer__contact svg { width: 16px; height: 16px; flex: none; margin-top: 5px; color: var(--cyan); }
.social { display: flex; gap: 0.55rem; margin-top: 1.1rem; }
.social a {
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.22); border-radius: var(--radius-doc); color: #fff;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.social a:hover { background: var(--teal); border-color: var(--teal); }
.social svg { width: 17px; height: 17px; }

.footer__legal {
  border-top: 1px solid rgba(255,255,255,0.12); padding-block: 1.5rem 2rem;
  display: grid; gap: 1rem; font-size: 0.82rem; line-height: 1.65;
}
.footer__legal ul { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.footer__legal li { margin: 0; }
@media (min-width: 860px) {
  .footer__legal { grid-template-columns: minmax(0,1fr) auto; align-items: center; }
  .footer__legal ul { justify-content: flex-end; }
}
.footer__disclaimer { font-size: 0.78rem; color: #6E9096; max-width: 90ch; }

/* ----------------------------------------------------- 19. Page header */
.page-head {
  background: var(--ink); color: #fff;
  padding-block: clamp(2.5rem, 1.8rem + 3vw, 4.25rem);
  position: relative; overflow: hidden;
}
.page-head::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0 1px, transparent 1px 42px);
  mask-image: linear-gradient(to bottom, transparent, #000 40%, transparent);
}
.page-head > .wrap { position: relative; z-index: 1; }
.page-head h1 { color: #fff; margin-bottom: 0.75rem; max-width: 22ch; }
.page-head p { color: #CFE6E9; max-width: 58ch; font-size: var(--step-1); margin: 0; }
.crumbs { font-size: 0.82rem; margin-bottom: 1.1rem; color: var(--text-invert-mut); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; }
.crumbs li { margin: 0; display: flex; gap: 0.5rem; align-items: center; }
.crumbs li + li::before { content: "/"; color: rgba(255,255,255,0.35); }
.crumbs a { color: var(--cyan); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* -------------------------------------------------------- 20. Split layout */
.split { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 4rem); align-items: start; }
@media (min-width: 940px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr); }
  .split--even { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
.sticky-side { position: sticky; top: calc(var(--header-h) + 24px); }

/* Side box (loan detail sidebar) */
.sidebox { border: 1px solid var(--rule); border-radius: var(--radius-doc); background: var(--paper); overflow: hidden; }
.sidebox__head { background: var(--ink); color: #fff; padding: 1.1rem 1.35rem; }
.sidebox__head h3 { color: #fff; margin: 0; font-size: 1.05rem; }
.sidebox__body { padding: 1.35rem; }
.sidebox dl { margin: 0 0 1.25rem; }
.sidebox dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; color: var(--text-muted); text-transform: uppercase; }
.sidebox dd { margin: 0 0 0.9rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.sidebox dd:last-child { margin-bottom: 0; }

/* ------------------------------------------------------- 21. Contact page */
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 940px) { .contact-grid { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 3rem; } }

.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; gap: 0.9rem; padding: 1.15rem 0; border-bottom: 1px solid var(--rule); margin: 0; }
.info-list li:first-child { padding-top: 0; }
.info-list__ic {
  flex: none; width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--cyan-200); background: var(--cyan-050); color: var(--teal);
  border-radius: var(--radius-doc);
}
.info-list__ic svg { width: 18px; height: 18px; }
.info-list b { display: block; font-size: 0.8rem; color: var(--text-muted); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.2rem; }
.info-list a { color: var(--ink); text-decoration: none; font-weight: 500; }
.info-list a:hover { color: var(--violet); text-decoration: underline; }
.info-list address { font-style: normal; line-height: 1.6; }

.map-frame { border: 1px solid var(--rule); border-radius: var(--radius-doc); overflow: hidden; line-height: 0; background: var(--mist); }
.map-frame iframe { width: 100%; height: 380px; border: 0; display: block; }

.form-card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-doc); padding: clamp(1.35rem, 1rem + 1.5vw, 2.25rem); }
.form-grid { display: grid; gap: 0 1.1rem; }
@media (min-width: 620px) { .form-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .field--full { grid-column: 1 / -1; } }

.form-status { display: none; border-radius: var(--radius-doc); padding: 1rem 1.15rem; margin-bottom: 1.25rem; font-size: 0.94rem; }
.form-status.is-shown { display: block; }
.form-status--ok { background: #EAF7EF; border: 1px solid #B7E0C6; color: #14532D; }
.form-status--err { background: #FBECEA; border: 1px solid #F0C4BF; color: #7F1D1D; }
.form-status h3 { color: inherit; font-size: 1.05rem; margin-bottom: 0.3rem; }
.form-status p { margin: 0; }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.btn.is-busy { pointer-events: none; opacity: 0.75; }
.spinner {
  width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* WhatsApp floating action */
.wa-float {
  position: fixed; right: clamp(12px, 3vw, 24px); bottom: clamp(12px, 3vw, 24px); z-index: 90;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #128C4A; color: #fff; text-decoration: none;
  border-radius: var(--radius-pill); padding: 0.7rem 1.05rem;
  font-weight: 600; font-size: 0.9rem; box-shadow: var(--shadow-md);
  transition: background-color 0.18s var(--ease);
}
.wa-float:hover { background: #0E7A40; color: #fff; }
.wa-float svg { width: 20px; height: 20px; }
@media (max-width: 520px) { .wa-float span { display: none; } .wa-float { padding: 0.85rem; } }

/* ---------------------------------------------------------- 22. Team cards */
.team { display: grid; gap: 1.15rem; }
@media (min-width: 700px) { .team { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.person { border: 1px solid var(--rule); border-radius: var(--radius-doc); padding: 1.5rem; background: var(--paper); }
.person__mono {
  width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 1rem;
  border-radius: 50%; background: var(--ink); color: #fff;
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 600;
}
.person h3 { font-size: 1.1rem; margin-bottom: 0.15rem; }
.person p { margin: 0; font-size: 0.88rem; color: var(--text-muted); font-weight: 600; letter-spacing: 0.03em; }

/* --------------------------------------------------------- 23. Video block */
.video-frame { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--rule); border-radius: var(--radius-doc); overflow: hidden; background: var(--ink); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ------------------------------------------------------------ 24. Motion */
[data-reveal] { opacity: 0; transform: translateY(14px); }
[data-reveal].is-in { opacity: 1; transform: none; transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------- 25. Print */
@media print {
  .site-header, .topbar, .mobile-nav, .wa-float, .cta-band, .site-footer .social { display: none !important; }
  body { color: #000; font-size: 11pt; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}

/* Simplified calculator: a fixed rate line, two big sliders, three results. */
.calc__rate {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.6rem;
  background: var(--cyan-050); border: 1px solid var(--cyan-200);
  border-radius: var(--radius-doc); padding: 0.7rem 0.95rem;
  margin: 0 0 1.75rem; font-size: 0.92rem; color: var(--text-muted); max-width: none;
}
.calc__rate b { color: var(--teal); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.calc__rate span { font-size: 0.8rem; }

.field__big {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem); line-height: 1.1;
  color: var(--ink); margin: 0.1rem 0 0.6rem;
}
.field__scale {
  display: flex; justify-content: space-between; gap: 1rem; max-width: none;
  margin: 0.35rem 0 0; font-size: 0.75rem; color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.calc__panel .field { margin-bottom: 1.9rem; }
.calc__panel .field:last-child { margin-bottom: 0; }
@media (max-width: 440px) {
  .calc__tab { margin-right: 0.85rem; font-size: 0.875rem; }
}
.calc__panel input[type="range"] {
  height: 26px; accent-color: var(--violet); cursor: pointer;
}

/* Certificates are published for viewing only. */
.cert__thumb img, .lightbox__scroll img {
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.cert__thumb, .lightbox__scroll { -webkit-user-select: none; user-select: none; }
