/* VELIONA | Typography & readability system v6
   Shared by homepage, solar Intelligence, legal and confirmation pages.
   Loaded after page-specific styles to improve legibility without changing the calculations. */
:root {
  --vel-font-text: "DM Sans", Arial, sans-serif;
  --vel-font-display: "Manrope", Arial, sans-serif;
  --vel-font-ar: "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  --vel-copy-width: 68ch;
  --font: var(--vel-font-text);
  --font2: var(--vel-font-display);
  --sans: var(--vel-font-text);
  --display: var(--vel-font-display);
}
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--vel-font-text);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: normal;
}
h1, h2, h3, h4 {
  font-family: var(--vel-font-display);
  text-wrap: balance;
}
p, li { text-wrap: pretty; }
button, input, select, textarea { font-family: inherit; }
button, input, select, textarea, a { -webkit-tap-highlight-color: transparent; }
input, select, textarea { min-width: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #7ca454;
  outline-offset: 3px;
}
small { line-height: 1.5; }

/* HOME — editorial content, clear calls to action. */
.navlinks a { font-size: 13px; line-height: 1.5; }
.nav-cta { font-size: 13px; min-height: 48px; }
.lang button { font-size: 11px; min-width: 31px; min-height: 34px; }
.hero h1 {
  font-family: var(--vel-font-display);
  font-size: clamp(62px, 7.15vw, 122px);
  line-height: 1.055;
  letter-spacing: -.065em;
}
.hero-side p, .section-copy, .manifesto-bottom p,
.service-body p, .method-left p, .finance-side p,
.contact-intro > p, .faq p, .assess-controls > p,
.v5-offer-lead p, .v5-deliverable p,
.v5-audience-title p, .v5-audience-card p,
.v5-finance-grid > div:first-child > p {
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: normal;
}
.v5-deliverable p, .v5-audience-card p { max-width: 44ch; }
.eyebrow, .section-index, .hero-kicker, .hero-side .mini-label,
.hero-top, .hero-caption, .hero-scroll,
.v5-audience-tag, .v5-finance-proof-head,
.v5-finance .eyebrow {
  font-size: 11px;
  line-height: 1.5;
}
.hero-side .action-primary, .nav-cta, .submit, .v5-finance-cta {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
}
.hero-side .action-primary, .submit, .v5-finance-cta { min-height: 52px; }
.hero .hero-side .hero-consult-secondary {
  font-size: 14px !important;
  line-height: 1.6 !important;
}
.v5-hero-proof { font-size: 12px !important; line-height: 1.65 !important; }
.v5-audience-action, .simple-link, .service-foot a {
  font-size: 14px;
  line-height: 1.5;
}
.v5-finance-proof-row small, .v5-finance-proof-note,
.v5-privacy-link, .v5-finance-proof-head,
.v5-audience-tag, .v5-deliverable-number { font-size: 12px; }
.v5-client-type legend, .v5-client-type label,
.form-title-row span, .field > span, .form-small,
.consent span, .v5-client-type label span {
  font-size: 13px;
  line-height: 1.55;
}
.v5-client-type label { min-height: 46px; }
.form-title-row strong { font-size: 17px; }
.field input, .field select, .field textarea {
  font-size: 16px;
  line-height: 1.45;
  min-height: 52px;
}
.field input::placeholder { opacity: 1; color: #657a6b; }
.faq summary { font-size: 16px; line-height: 1.55; }
.sector-btn, .sector-btn .sector-label { font-size: 14px; }
.assess-detail .detail-item, .detail-item, .detail-label,
.method-step .step-desc, .contact-footnotes, .footer-bottom,
.footer-bottom a { font-size: 13px; line-height: 1.65; }
.v5-offer h2, .v5-finance h2, .section-title,
.manifesto h2, .finance h2, .contact h2 {
  letter-spacing: -.055em;
  line-height: 1.13;
}
.service-body h3, .method-step strong, .v5-audience-card h3,
.v5-deliverable h3 { letter-spacing: -.035em; }
.footer-top h2 { letter-spacing: -.06em; line-height: 1.1; }

/* INTELLIGENCE — guided mode, financial outputs and advanced form. */
.quick-head p, .intro-side p { font-size: 16px; line-height: 1.7; }
.quick-step-heading p, .guided-small p, .results-heading p,
.report-next p, .report-method p, .report-method li,
.confidence-panel p, .finance-block p {
  font-size: 15px;
  line-height: 1.75;
}
.quick-head h1, .intro h1 { letter-spacing: -.06em; line-height: 1.1; }
.quick-step h2, .form-step h2, .results h2 { letter-spacing: -.045em; }
.quick-issue, .quick-progress > span, .quick-number, .quick-bottom,
.intro-label, .caps, .small-caps, .form-eyebrow {
  font-size: 12px;
  line-height: 1.5;
}
.quick-field label, .quick-known label,
.quick-invoice-field label, .quick-tariff-details label,
.field > label, .field > span, .field label,
.advanced-fields summary, .economics summary,
.quick-tariff-details summary { font-size: 14px; line-height: 1.55; }
.quick-field input, .quick-field select, .quick-known input,
.quick-invoice-field input, .field input, .field select,
.field textarea, .money-input input {
  font-size: 16px;
  line-height: 1.5;
  min-height: 48px;
}
.quick-head .switch-advanced, .switch-advanced,
.return-simple, .quick-back, .quick-next,
.quick-choice strong, .building-name, .rail-step,
.wizard-footer button, .results-actions button,
.results-actions a, .report-cta, .report-tools > summary,
.scenario-choices button {
  font-size: 14px;
  line-height: 1.5;
}
.quick-next { min-height: 52px; }
.quick-choice small, .building-desc,
.quick-known p, .quick-explain, .quick-explain p,
.quick-reassurance, .guided-insight, .guided-small p,
.rail-meta p, .rail-step small, .choice-card small,
.choice-card strong, .defaults-summary small,
.quick-invoice-field p, .quick-tariff-details p,
.input-recap span, .metric small, .metric-main small,
.metric-note, .assumptions-note, .pair-bill-context,
.energy-money-pair p, .results .illustrative-context {
  font-size: 13px;
  line-height: 1.65;
}
.metric .caps, .metric-main .caps, .chart-head .caps,
.pair-eyebrow, .energy-money-pair .pair-eyebrow,
.guided-top, .report-provenance { font-size: 12px; line-height: 1.5; }
.energy-money-pair .pair-value span { font-size: 14px; }
.building-card { min-height: 190px; }
.building-card .building-desc { max-width: 31ch; }

/* Secondary pages — especially legal information must be comfortable to read. */
.legal-section p, .legal-section li, .legal-notice,
.thanks-message p {
  font-size: 16px;
  line-height: 1.8;
  max-width: var(--vel-copy-width);
}
.legal-section h2 { font-size: clamp(24px, 2.3vw, 30px); }
.legal-rail a, .page-return, .page-footer, .page-footer a,
.thanks-return, .thanks-footnote { font-size: 14px; line-height: 1.6; }
.legal-eyebrow, .thanks-eyebrow, .legal-rail-label,
.thanks-visual .edition { font-size: 12px; line-height: 1.5; }
.thanks-visual .aside-note { font-size: 13px; line-height: 1.7; }

/* Arabic — correct glyph shaping, generous leading and no Latin negative tracking. */
html[lang="ar"] body,
html[lang="ar"] h1, html[lang="ar"] h2,
html[lang="ar"] h3, html[lang="ar"] h4,
html[lang="ar"] button, html[lang="ar"] input,
html[lang="ar"] select, html[lang="ar"] textarea {
  font-family: var(--vel-font-ar);
}
html[lang="ar"] h1, html[lang="ar"] h2,
html[lang="ar"] h3, html[lang="ar"] h4,
html[lang="ar"] .hero h1, html[lang="ar"] .footer-top h2 {
  letter-spacing: normal;
  line-height: 1.3;
  overflow-wrap: normal;
}
html[lang="ar"] .eyebrow, html[lang="ar"] .section-index,
html[lang="ar"] .hero-caption, html[lang="ar"] .hero-top,
html[lang="ar"] .hero-side .mini-label {
  letter-spacing: normal;
}
html[lang="ar"] p, html[lang="ar"] li { line-height: 1.95; }
html[lang="ar"] .brand-word, html[lang="ar"] .brand-word small,
html[lang="ar"] .footer-big { font-family: var(--vel-font-display); }

/* Tablet — preserve grid balance while allowing comfortable reading. */
@media (max-width: 980px) {
  .hero h1 { font-size: clamp(59px, 8.2vw, 91px); }
  .navlinks a { font-size: 14px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; line-height: 1.7; }
  .navlinks a { font-size: 16px; }
  .hero h1 { font-size: clamp(45px, 9.9vw, 72px); letter-spacing: -.055em; }
  .hero-side p, .section-copy, .manifesto-bottom p,
  .service-body p, .method-left p, .finance-side p,
  .contact-intro > p, .faq p, .assess-controls > p,
  .v5-offer-lead p, .v5-deliverable p,
  .v5-audience-title p, .v5-audience-card p,
  .v5-finance-grid > div:first-child > p { font-size: 15px; line-height: 1.72; }
  .hero .hero-side .hero-consult-secondary { font-size: 13px !important; }
  .hero-side .action-primary { font-size: 14px; }
  .hero-caption, .hero-top, .hero-scroll,
  .hero-side .mini-label { font-size: 11px; }
  .lang button { font-size: 11px; min-height: 34px; }
  .v5-client-type label { font-size: 13px; }
  .form-panel .field input, .form-panel .field select { font-size: 16px; }
  .quick-head p, .intro-side p { font-size: 15px; }
  .quick-step-heading p, .guided-small p { font-size: 15px; }
  .quick-choice small, .building-desc { font-size: 13px; }
  .quick-field input, .quick-field select, .quick-known input,
  .field input, .field select, .money-input input { font-size: 16px; }
  .quick-step h2 { font-size: clamp(34px, 7vw, 51px); }
  .legal-section p, .legal-section li, .legal-notice,
  .thanks-message p { font-size: 16px; }
}
@media (max-width: 420px) {
  .lang button { min-width: 25px; min-height: 30px; padding: 5px 4px; font-size: 10px; }
  .hero h1 { font-size: clamp(38px, 10.5vw, 49px); letter-spacing: -.047em; }
  html[lang="ar"] .hero h1 { font-size: clamp(35px, 9.2vw, 43px); }
  .quick-head h1 { font-size: clamp(36px, 9.7vw, 44px); }
  .quick-step h2 { font-size: clamp(31px, 8.4vw, 39px); }
  .quick-content { padding-inline: 20px; }
  .building-card { min-height: 185px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  body { font-size: 12pt; line-height: 1.5; }
  .legal-section p, .legal-section li { font-size: 11pt; }
}