/* mvpplease — site styles */

:root {
  --ultra: #10154a;
  --ultra-raised: #1a2166;
  --ultra-line: #2b338a;
  --paper: #f3f2ff;
  --paper-deep: #e4e2fb;
  --ink: #10154a;
  --ink-soft: #4a4f86;
  --butter: #ffd447;
  --butter-deep: #f0bf1c;
  --lilac: #a9a4ff;
  --mist: rgba(243, 242, 255, 0.72);
  --font: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4.5rem, 10vw, 8.5rem);
  --radius: 14px;
  --pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--paper);
  background: var(--ultra);
  font-optical-sizing: auto;
}

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

a { color: inherit; }

h1, h2, h3, p { margin: 0; }

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  padding: 0.6rem 1rem;
  background: var(--butter);
  color: var(--ink);
  border-radius: var(--pill);
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 3px solid var(--butter);
  outline-offset: 3px;
}
.light :focus-visible {
  outline-color: var(--ultra);
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  padding-block: 1.25rem;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.brand span { color: var(--butter); }
.brand { margin-inline-end: auto; }
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
}
.site-nav a {
  text-decoration: none;
  font-weight: 500;
  opacity: 0.85;
}
.site-nav a:hover { opacity: 1; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  border-radius: var(--pill);
  border: 0;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  background: var(--butter);
  color: var(--ink);
  transition: transform 120ms ease, background-color 120ms ease;
}
.button:hover { background: var(--butter-deep); }
.button:active { transform: translateY(1px); }
.site-nav .button { opacity: 1; padding: 0.55rem 1.1rem; }
.lang-switch {
  display: flex;
  gap: 0.15rem;
  font-size: 0.88rem;
  font-weight: 600;
}
.lang-switch a {
  text-decoration: none;
  padding: 0.3rem 0.5rem;
  border-radius: var(--pill);
  opacity: 0.7;
}
.lang-switch a:hover { opacity: 1; }
.lang-switch a[aria-current] { opacity: 1; box-shadow: inset 0 0 0 1.5px currentColor; }
.button.ghost {
  background: transparent;
  color: inherit;
  box-shadow: inset 0 0 0 1.5px currentColor;
}
.button.ghost:hover { background: rgba(255, 255, 255, 0.08); }
.light .button {
  background: var(--ultra);
  color: var(--paper);
}
.light .button:hover { background: #1c2373; }

/* Hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(60% 55% at 50% 45%, #1e2578 0%, rgba(30, 37, 120, 0) 70%),
    var(--ultra);
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity 900ms ease;
}
.hero-canvas.is-ready { opacity: 1; }
.hero-canvas canvas { display: block; width: 100%; height: 100%; }

.hero-content {
  text-align: center;
  padding-block: 7rem 4rem;
  max-width: 44rem;
}
.wordmark {
  font-size: clamp(3.25rem, 13vw, 10rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.92;
  font-optical-sizing: auto;
  text-wrap: balance;
}
.wordmark span { color: var(--butter); }
.tagline {
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.45;
  color: var(--mist);
  max-width: 30rem;
  margin-inline: auto;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Sections */

.section {
  padding-block: var(--section);
}
.section.light {
  background: var(--paper);
  color: var(--ink);
}
.section-heading {
  max-width: 34rem;
}
.section-heading h2 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}
.section-heading p {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.section:not(.light) .section-heading p { color: var(--mist); }

/* Pricing */

.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

.estimator fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 2rem;
  min-width: 0;
}
.estimator legend {
  padding: 0;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.65rem;
}
.estimator .hint {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: -0.35rem 0 0.75rem;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.choices label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: var(--pill);
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--paper-deep);
  cursor: pointer;
  font-weight: 500;
  user-select: none;
  transition: box-shadow 120ms ease, background-color 120ms ease;
}
.choices label:hover { box-shadow: inset 0 0 0 1.5px var(--lilac); }
.choices input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.choices input:focus-visible + span {
  outline: 3px solid var(--ultra);
  outline-offset: 3px;
  border-radius: var(--pill);
}
.choices input:checked ~ span { color: var(--paper); }
.choices label:has(input:checked) {
  background: var(--ultra);
  box-shadow: inset 0 0 0 1.5px var(--ultra);
}
.choices small {
  font-size: 0.85em;
  opacity: 0.7;
  font-weight: 400;
}

.range-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
}
.range-value {
  min-width: 2.5ch;
  text-align: end;
  font-weight: 700;
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 32px;
  background: transparent;
  margin: 0;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--ultra) 0 var(--fill, 0%), var(--paper-deep) var(--fill, 0%) 100%);
}
input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: var(--paper-deep);
}
input[type="range"]::-moz-range-progress {
  height: 6px;
  border-radius: 3px;
  background: var(--ultra);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -10px;
  border-radius: 50%;
  background: var(--butter);
  border: 3px solid var(--ultra);
}
input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--butter);
  border: 3px solid var(--ultra);
}
input[type="range"]:focus-visible {
  outline: 3px solid var(--ultra);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Gauge card */

.estimate {
  position: sticky;
  top: 1.5rem;
  background: #fff;
  border-radius: 28px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: 0 1px 0 var(--paper-deep), 0 24px 60px -30px rgba(16, 21, 74, 0.35);
}
.currency {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.currency select {
  font: inherit;
  color: var(--ink);
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2310154a' stroke-width='1.8' d='M3.5 6l4.5 4.5L12.5 6'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
  appearance: none;
  border: 0;
  border-radius: var(--pill);
  padding-block: 0.4rem;
  padding-inline: 0.9rem 2.1rem;
  cursor: pointer;
  min-width: 0;
  max-width: 100%;
}
.currency select:focus-visible { outline: 2px solid var(--ultra); outline-offset: 2px; }
.rate-note {
  margin-top: 0.75rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
  text-align: center;
}
.gauge {
  width: min(100%, 380px);
  margin-inline: auto;
  overflow: visible;
}
.gauge-track { stroke: var(--paper-deep); }
.gauge-fill {
  stroke: var(--ultra);
  transition: stroke-dasharray 400ms cubic-bezier(.2,.8,.2,1);
}
.gauge-needle {
  transition: transform 400ms cubic-bezier(.2,.8,.2,1);
  transform-origin: 190px 140px;
}
.gauge-tick { stroke: var(--ink-soft); opacity: 0.6; }
.gauge-label {
  font: 600 13px var(--font);
  fill: var(--ink-soft);
}
.gauge-label.is-active { fill: var(--ink); }
.gauge-readout {
  text-align: center;
  margin-top: 0.25rem;
}
.gauge-price {
  font: 800 44px var(--font);
  letter-spacing: -0.04em;
  fill: var(--ink);
  font-variant-numeric: tabular-nums;
}
.gauge-sub {
  margin-top: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}
.gauge-sub strong { color: var(--ink); font-weight: 600; }
.estimate-facts {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  border-top: 1.5px solid var(--paper-deep);
}
.estimate-facts li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1.5px solid var(--paper-deep);
  font-size: 0.98rem;
}
.estimate-facts li span:last-child {
  font-weight: 600;
  text-align: end;
}
.estimate .button {
  width: 100%;
  margin-top: 1.5rem;
  padding-block: 0.9rem;
}
.estimate-note {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-align: center;
  text-wrap: pretty;
}

.included {
  margin-top: clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.5rem 2.5rem;
  border-top: 1.5px solid var(--paper-deep);
  padding-top: 2.5rem;
}
.included h3 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.included p {
  margin-top: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  text-wrap: pretty;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.contact-aside p + p { margin-top: 1rem; }
.contact-aside .direct {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1.5px solid var(--ultra-line);
  color: var(--mist);
}
.contact-aside .direct a {
  color: var(--butter);
  text-decoration: none;
  font-weight: 600;
}
.contact-aside .direct a:hover { text-decoration: underline; }

.form {
  display: grid;
  gap: 1.1rem;
}
.form .field {
  display: grid;
  gap: 0.4rem;
}
.form label {
  font-weight: 600;
  font-size: 0.98rem;
}
.form label small {
  font-weight: 400;
  color: var(--mist);
  margin-inline-start: 0.35rem;
}
.form input, .form textarea, .form select {
  font: inherit;
  color: var(--paper);
  background: var(--ultra-raised);
  border: 1.5px solid var(--ultra-line);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  width: 100%;
}
.form input::placeholder, .form textarea::placeholder { color: rgba(243, 242, 255, 0.45); }
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--butter);
  box-shadow: 0 0 0 3px rgba(255, 212, 71, 0.25);
}
.form textarea { min-height: 9rem; resize: vertical; }
.form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23f3f2ff' stroke-width='1.6' d='M3.5 6l4.5 4.5L12.5 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-inline-end: 2.75rem;
}
.form select option { color: var(--ink); background: #fff; }
.form .two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.form .consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--mist);
}
.form .consent input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--butter);
  flex: none;
}
.form .consent a { color: var(--paper); }
.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.form-status {
  font-size: 0.98rem;
  color: var(--mist);
  min-height: 1.5em;
}
.form-status.is-error { color: #ffb3a7; }
.form-status.is-success { color: var(--butter); }
.quote-empty {
  font-size: 0.95rem;
  color: var(--mist);
}
.quote-empty a { color: var(--paper); }
.quote-card {
  background: var(--ultra-raised);
  border: 1.5px solid var(--butter);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.quote-card[hidden] { display: none; }
.quote-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.quote-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--butter);
}
.quote-actions { display: flex; gap: 1rem; font-size: 0.92rem; }
.quote-actions a, .quote-actions button {
  font: inherit;
  color: var(--mist);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}
.quote-actions a:hover, .quote-actions button:hover { color: var(--paper); }
.quote-price { margin-top: 0.35rem; color: var(--mist); font-size: 0.95rem; }
.quote-price strong { font-size: 1.6rem; color: var(--paper); margin-inline-end: 0.35rem; }
.quote-specs {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 1rem;
  margin: 0.8rem 0 0;
  font-size: 0.93rem;
}
.quote-specs dt { color: var(--mist); }
.quote-specs dd { margin: 0; }
.quote-alert {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-top: 0.9rem;
  padding: 0.7rem 0.85rem;
  border-radius: calc(var(--radius) - 4px);
  background: rgba(255, 212, 71, 0.12);
  color: var(--paper);
  font-size: 0.9rem;
  line-height: 1.45;
}
.quote-alert svg { flex: none; margin-top: 0.1rem; color: var(--butter); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Footer */

.site-footer {
  border-top: 1.5px solid var(--ultra-line);
  padding-block: 2rem;
  font-size: 0.95rem;
  color: var(--mist);
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* Legal pages */

.page-body {
  background: var(--paper);
  color: var(--ink);
}
.page-body .site-header { position: static; background: var(--ultra); color: var(--paper); }
.page-body .site-header .button { background: var(--butter); color: var(--ink); }
.legal {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.legal .container { max-width: 44rem; }
.legal h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.legal .updated {
  margin-top: 0.75rem;
  color: var(--ink-soft);
}
.legal h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-top: 2.5rem;
}
.legal p, .legal li { margin-top: 0.85rem; text-wrap: pretty; }
.legal ul { padding-inline-start: 1.25rem; margin: 0; }
.legal li { margin-top: 0.5rem; }
.legal a { color: var(--ultra); }
.legal .placeholder {
  background: #fff3c4;
  padding: 0 0.25em;
  border-radius: 4px;
}
.legal address { font-style: normal; margin-top: 0.85rem; line-height: 1.7; }
.page-body .site-footer { background: var(--ultra); color: var(--mist); border-top: 0; }

/* Responsive */

@media (max-width: 900px) {
  .pricing-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .estimate { position: static; order: -1; }
  .form .two { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  /* The hero repeats the call to action, so the header keeps only the brand and languages. */
  .site-nav { display: none; }
  .hero-content { padding-top: 6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-canvas, .gauge-fill, .gauge-needle, .button { transition: none; }
}

/* Right-to-left (Arabic) */

html[lang="ar"] {
  --font: "Bricolage Grotesque", "Readex Pro", Tahoma, Arial, sans-serif;
}
html[lang="ar"] body { line-height: 1.75; }
/* Negative tracking breaks the joins between Arabic letters. Latin brand text keeps lang="en". */
*:lang(ar) { letter-spacing: 0 !important; }
[dir="rtl"] .form select { background-position: left 1rem center; }
[dir="rtl"] .currency select { background-position: left 0.75rem center; }
[dir="rtl"] input[type="range"]::-webkit-slider-runnable-track {
  background: linear-gradient(to left, var(--ultra) 0 var(--fill, 0%), var(--paper-deep) var(--fill, 0%) 100%);
}
