/* Qiro — coming-soon landing. Mobile-first, no build step. */

/* Metric-matched fallback for Manrope to minimise layout shift while the web font loads. */
@font-face {
  font-family: "Manrope Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 103%;
  ascent-override: 103%;
  descent-override: 29%;
  line-gap-override: 0%;
}

:root {
  /* Palette */
  --ink: #12201E;          /* body text            — 15.6:1 on cream */
  --ink-soft: #4A5A57;     /* secondary text       —  6.7:1 on cream */
  --pine: #0F5B4F;         /* brand primary        —  7.4:1 on cream */
  --pine-deep: #0A3F37;    /* dark sections        — 11.0:1 with cream text */
  --pine-tint: #E3EEEA;
  --saffron: #E8A23A;      /* accent / "welcome light" — 7.5:1 with ink text */
  --saffron-hover: #F0B456;
  --terracotta: #B4532F;
  --cream: #FBF6EE;        /* page background */
  --card: #FFFCF7;
  --sand: #F2E8D8;
  --line: #E4D8C4;
  --field-border: #7D7263; /* 4.3:1 on cream — meets 3:1 for UI components */
  --error: #A3301F;        /* 6.5:1 on cream */
  --on-dark: #FBF6EE;
  --on-dark-soft: #CFE0DA; /* 9.4:1 on pine-deep */

  --font-latin: "Manrope", "Manrope Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-urdu: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Urdu Typesupport", "Manrope", "Noto Naskh Arabic", "Geeza Pro", Tahoma, sans-serif;

  --container: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 18px;
  --focus: var(--pine);
  --shadow: 0 1px 2px rgb(18 32 30 / .06), 0 12px 32px -12px rgb(18 32 30 / .18);
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Hide content for the split second it takes to swap in Urdu strings (safety timeout in <head>). */
.i18n-pending body { visibility: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-latin);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul[role="list"] { list-style: none; padding: 0; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
main:focus { outline: none; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100px;
  z-index: 100;
  padding: .75rem 1.1rem;
  background: var(--ink);
  color: var(--cream);
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; outline-color: var(--saffron); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 52px;
  padding: .8rem 1.6rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn-primary { background: var(--pine); color: var(--cream); }
.btn-primary:hover { background: var(--pine-deep); }
.btn-accent { background: var(--saffron); color: var(--ink); }
.btn-accent:hover { background: var(--saffron-hover); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .7; cursor: progress; }

.text-link {
  color: var(--pine);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .22em;
  text-decoration-color: rgb(15 91 79 / .35);
  transition: text-decoration-color .2s ease;
}
.text-link:hover { text-decoration-color: currentColor; }
.text-link.small { font-size: .95rem; }
.as-button {
  padding: .25rem 0;
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}

/* ---------- Header ---------- */
.site-header { padding-block: 1rem; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--pine);
  text-decoration: none;
  border-radius: 8px;
}
.brand .wordmark { width: 84px; height: auto; aspect-ratio: 246 / 132; }
.brand-ur {
  font-family: var(--font-urdu);
  font-size: 1.15rem;
  line-height: 1;
  padding-inline-start: .75rem;
  border-inline-start: 1.5px solid var(--line);
  color: var(--ink-soft);
  padding-block: .35rem .1rem;
}

.lang-toggle {
  min-height: 44px;
  min-width: 44px;
  padding: .45rem 1.1rem;
  background: transparent;
  color: var(--pine);
  border: 1.5px solid var(--pine);
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.lang-toggle:hover { background: var(--pine); color: var(--cream); }
.lang-toggle-label:lang(ur) {
  font-family: var(--font-urdu);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.6;
}
.lang-toggle-label:lang(en) { font-family: var(--font-latin); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(1.5rem, 5vw, 4.5rem) clamp(3rem, 7vw, 6rem); overflow: hidden; }
.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}
.hero-copy > * + * { margin-top: 1.25rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .4rem .95rem .4rem .75rem;
  background: var(--pine-tint);
  color: var(--pine);
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.eyebrow-dot {
  width: .6rem; height: .6rem;
  border-radius: 50%;
  background: var(--saffron);
  box-shadow: 0 0 0 4px rgb(232 162 58 / .25);
  flex: none;
}

h1 {
  font-size: clamp(2.5rem, 7.5vw + .5rem, 4.75rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.035em;
  color: var(--ink);
  text-wrap: balance;
}
h1 em {
  font-style: normal;
  color: var(--pine);
  background: linear-gradient(transparent 72%, rgb(232 162 58 / .45) 72%, rgb(232 162 58 / .45) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero-alt {
  font-family: var(--font-urdu);
  font-size: clamp(1.25rem, 2.5vw + .6rem, 1.75rem);
  line-height: 2;
  color: var(--terracotta);
}
html[dir="ltr"] .hero-alt { text-align: left; }
html[dir="rtl"] .hero-alt { text-align: right; }
.hero-alt:lang(en) {
  font-family: var(--font-latin);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.01em;
}

.lead {
  max-width: 36rem;
  font-size: clamp(1.06rem, .5vw + .95rem, 1.22rem);
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  padding-top: .5rem;
}

.hero-art {
  justify-self: center;
  width: min(100%, 300px);
}
.hero-art svg { width: 100%; height: auto; aspect-ratio: 400 / 470; }

/* ---------- Features ---------- */
.features { padding-block: clamp(3rem, 7vw, 5.5rem); background: var(--sand); }
.section-title {
  font-size: clamp(1.6rem, 2.5vw + 1rem, 2.4rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.15;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
  text-wrap: balance;
}
.feature-list {
  display: grid;
  gap: 1rem;
}
.feature {
  padding: 1.6rem 1.5rem 1.75rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 1.1rem;
  border-radius: 14px;
  background: var(--pine-tint);
  color: var(--pine);
}
.feature h3 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.3;
  margin-bottom: .45rem;
}
.feature p { color: var(--ink-soft); }

.name-note {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: clamp(1.5rem, 4vw, 2rem);
  border-top: 1px solid var(--line);
  max-width: 46rem;
}
.name-note-icon { flex: none; color: var(--pine); margin-top: .15rem; }
.name-note p { font-size: 1.05rem; color: var(--ink); font-style: italic; }

/* ---------- Signup ---------- */
.signup {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  background:
    radial-gradient(60rem 30rem at 110% -10%, rgb(232 162 58 / .14), transparent 60%),
    var(--pine-deep);
  color: var(--on-dark);
  --focus: var(--saffron);
}
.signup-grid { display: grid; gap: 2rem; align-items: start; }
.signup-intro h2 {
  font-size: clamp(1.9rem, 3vw + 1rem, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.08;
  margin-bottom: 1rem;
  text-wrap: balance;
}
.signup-intro p { color: var(--on-dark-soft); font-size: 1.1rem; max-width: 30rem; }

.form-card {
  --focus: var(--pine);
  background: var(--cream);
  color: var(--ink);
  border-radius: 24px;
  padding: clamp(1.4rem, 4vw, 2.25rem);
  box-shadow: 0 24px 60px -24px rgb(0 0 0 / .45);
}
.form > * + * { margin-top: 1.25rem; }

.field { display: grid; gap: .4rem; }
.field label, .field-group legend { font-weight: 700; font-size: .98rem; }
.optional { font-weight: 500; color: var(--ink-soft); }
.field-group { margin-inline: 0; padding: 0; border: 0; min-width: 0; }
.field-group legend { padding: 0; margin-bottom: .2rem; }
.hint { font-size: .92rem; color: var(--ink-soft); margin-bottom: .85rem; }
.field-row { display: grid; gap: 1rem; }

input[type="text"],
input[type="email"],
input[type="tel"],
select {
  width: 100%;
  min-height: 50px;
  padding: .7rem .95rem;
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--field-border);
  border-radius: 12px;
  font: inherit;
  font-size: 1rem; /* >=16px prevents iOS zoom */
  transition: border-color .15s ease, box-shadow .15s ease;
}
input[type="email"],
input[type="tel"] { font-family: var(--font-latin); }
input::placeholder { color: #6E6A62; opacity: 1; }
input:hover, select:hover { border-color: var(--ink); }
input:focus-visible, select:focus-visible {
  outline: none;
  border-color: var(--pine);
  box-shadow: 0 0 0 3px var(--cream), 0 0 0 6px var(--pine);
}
select {
  appearance: none;
  -webkit-appearance: none;
  padding-inline-end: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2312201E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 1.1rem;
  background-position: right .9rem center;
}
[dir="rtl"] select { background-position: left .9rem center; }

[aria-invalid="true"] { border-color: var(--error) !important; }
[aria-invalid="true"]:focus-visible { box-shadow: 0 0 0 3px var(--cream), 0 0 0 6px var(--error); }

.error {
  display: flex;
  gap: .4rem;
  align-items: flex-start;
  color: var(--error);
  font-size: .92rem;
  font-weight: 600;
}
.error::before {
  content: "";
  flex: none;
  width: 1rem; height: 1rem;
  margin-top: .2em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1 5h2v7h-2zm0 9h2v2h-2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1 5h2v7h-2zm0 9h2v2h-2z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.error[hidden] { display: none; }
#contact-error { margin-top: .75rem; }

.check {
  grid-template-columns: auto 1fr;
  column-gap: .75rem;
  align-items: start;
}
.check input {
  width: 22px; height: 22px;
  margin: .15rem 0 0;
  accent-color: var(--pine);
  cursor: pointer;
}
.check label { font-weight: 500; cursor: pointer; }
.check .error { grid-column: 1 / -1; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  padding-top: .25rem;
}
.form-actions .btn { width: 100%; }

/* Honeypot — visually hidden, not focusable. */
.hp {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-status:empty { display: none; }
.form-status { margin-top: 1rem; font-weight: 600; font-size: .95rem; color: var(--ink-soft); }
.form-status.is-error { color: var(--error); }
.form-status.is-success { /* success is shown in the panel; keep the live text for screen readers only */
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.form-success { text-align: center; padding-block: 1.5rem; }
.form-success:focus { outline: none; }
.form-success svg { margin: 0 auto 1rem; }
.form-success h3 { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; margin-bottom: .6rem; }
.form-success p { color: var(--ink-soft); max-width: 26rem; margin: 0 auto 1.25rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--on-dark);
  padding-block: clamp(2.5rem, 6vw, 3.5rem) 1.5rem;
  --focus: var(--saffron);
}
.footer-inner {
  display: grid;
  gap: 2rem;
}
.footer-brand .wordmark { color: var(--cream); width: 72px; height: auto; aspect-ratio: 246 / 132; margin-bottom: .75rem; }
.footer-tag { color: #C9D3D0; }
.footer-label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #A9B7B3;
  margin-bottom: .6rem;
}
.footer-link {
  color: var(--cream);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgb(251 246 238 / .35);
  text-underline-offset: .22em;
}
.footer-link:hover { color: var(--saffron); text-decoration-color: currentColor; }

.social { display: flex; gap: .6rem; }
.social a {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgb(251 246 238 / .28);
  color: var(--cream);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.social a:hover { background: var(--saffron); border-color: var(--saffron); color: var(--ink); }
.social a:focus-visible { border-radius: 50%; }

.footer-bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  font-size: .92rem;
  color: #C9D3D0;
}
.footer-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: var(--gutter);
  border-top: 1px solid rgb(251 246 238 / .14);
}

/* ---------- Urdu / RTL ---------- */
html[lang="ur"] body {
  font-family: var(--font-urdu);
  line-height: 2.15;
}
html[lang="ur"] h1 {
  font-size: clamp(2.1rem, 5.5vw + .5rem, 3.6rem);
  font-weight: 700;
  line-height: 1.85;
  letter-spacing: 0;
}
html[lang="ur"] h1 em { background: linear-gradient(transparent 80%, rgb(232 162 58 / .4) 80%, rgb(232 162 58 / .4) 92%, transparent 92%); }
html[lang="ur"] .section-title,
html[lang="ur"] .signup-intro h2 {
  font-weight: 700;
  line-height: 1.9;
  letter-spacing: 0;
}
html[lang="ur"] .feature h3,
html[lang="ur"] .form-success h3 { font-weight: 700; line-height: 1.9; letter-spacing: 0; }
html[lang="ur"] .eyebrow { font-weight: 600; letter-spacing: 0; padding-block: .15rem; }
html[lang="ur"] .footer-label { letter-spacing: 0; text-transform: none; font-size: .9rem; }
html[lang="ur"] .name-note p { font-style: normal; }
html[lang="ur"] .btn { line-height: 1.9; padding-block: .45rem; font-weight: 600; }
html[lang="ur"] .lead { line-height: 2.2; }
html[lang="ur"] .hero-copy > * + * { margin-top: 1rem; }
/* Latin snippets (emails, numbers, English tagline) inside Urdu layout keep the Latin face. */
html[lang="ur"] [dir="ltr"],
html[lang="ur"] [lang="en"] { font-family: var(--font-latin); line-height: 1.6; }

/* ---------- Larger screens ---------- */
@media (min-width: 560px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .form-actions .btn { width: auto; }
}

@media (min-width: 760px) {
  .feature-list { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.2fr .8fr; }
  .hero-art { width: 100%; max-width: 420px; justify-self: end; }
  .signup-grid { grid-template-columns: .85fr 1.15fr; gap: 4rem; }
  .signup-intro { position: sticky; top: 2rem; padding-top: 1rem; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .hero-art {
    animation: rise .7s cubic-bezier(.2, .7, .2, 1) both;
  }
  .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .hero-copy > :nth-child(4) { animation-delay: .18s; }
  .hero-copy > :nth-child(5) { animation-delay: .24s; }
  .hero-art { animation-delay: .15s; }
  .lamp { transform-origin: 200px 192px; animation: glow 4.5s ease-in-out infinite; }
  .btn:hover { box-shadow: 0 8px 20px -10px rgb(18 32 30 / .5); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes glow {
  0%, 100% { opacity: .7; transform: scale(.96); }
  50%      { opacity: 1;  transform: scale(1.04); }
}

@media (forced-colors: active) {
  .btn, .lang-toggle, .social a { border: 1px solid ButtonText; }
  h1 em { background: none; text-decoration: underline; }
}

/* ---------- Simple content pages (privacy, 404) ---------- */
.page { padding-block: clamp(2rem, 6vw, 4rem) clamp(3rem, 8vw, 5rem); }
.page .container { max-width: 52rem; }
.page h1 { font-size: clamp(2rem, 4vw + 1rem, 3rem); margin-bottom: 1rem; }
.page h2 { font-size: 1.25rem; font-weight: 800; margin: 2rem 0 .5rem; }
.page p, .page li { color: var(--ink-soft); }
.page ul { padding-inline-start: 1.25rem; }
.page li + li { margin-top: .35rem; }
.page .draft {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: .3rem .8rem;
  background: var(--saffron-soft, #F6DDB0);
  color: var(--ink);
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
}
.page-section + .page-section {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.page-section[lang="ur"] {
  font-family: var(--font-urdu);
  line-height: 2.2;
}
.page-section[lang="ur"] h1,
.page-section[lang="ur"] h2 { font-weight: 700; line-height: 1.9; letter-spacing: 0; }
.page-nav { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; margin-top: 2rem; }
.page .page-title,
.page .page-title-ur {
  font-size: clamp(1.9rem, 4vw + 1rem, 2.8rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.9;
  margin: 0 0 1rem;
}
.not-found .container { text-align: center; }
.not-found .page-section + .page-section { margin-top: 1.5rem; padding-top: 1.5rem; }
.not-found .page-nav { justify-content: center; }
.not-found-art { margin: 0 auto 1.5rem; }
.site-footer > .footer-bottom:first-child { margin-top: 0; padding-top: 0; }
.site-footer > .footer-bottom:first-child::before { display: none; }
