    :root {
      --emerald: #10b981;
      --emerald-strong: #34d399;
      --emerald-ink: #04211a;
      --radius: 28px;
      --radius-lg: 40px;
      --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    }

    html[data-theme="dark"] {
      --surface: rgba(15, 23, 42, 0.65);
      --surface-border: rgba(255, 255, 255, 0.06);
      --surface-shadow:
        0 24px 60px -24px rgba(0, 0, 0, 0.68),
        0 0 0 1px rgba(255, 255, 255, 0.04);
      --text: #f8fafc;
      --text-soft: #cbd5e1;
      --muted: #94a3b8;
      --nav-bg: rgba(15, 23, 42, 0.72);
      --secondary-bg: rgba(255, 255, 255, 0.08);
      --secondary-border: rgba(255, 255, 255, 0.08);
      --glass-bg: rgba(255, 255, 255, 0.04);
      --glass-border: rgba(255, 255, 255, 0.08);
      --stat-bg: rgba(15, 23, 42, 0.24);
      --shell-border: rgba(255, 255, 255, 0.08);
      --spotlight-bg: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(8, 15, 28, 0.92));
      --spotlight-text: #f8fafc;
      --spotlight-copy: #cbd5e1;
      --hero-gradient:
        linear-gradient(135deg,
          rgba(251, 113, 133, 0.22) 0%,
          rgba(196, 181, 253, 0.18) 45%,
          rgba(125, 211, 252, 0.14) 100%);
      --top-glow: linear-gradient(180deg, rgba(16, 185, 129, 0.12) 0%, transparent 100%);
      --page-backdrop:
        radial-gradient(circle at 0% 0%, rgba(15, 23, 42, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(2, 6, 23, 0.4) 0%, transparent 50%),
        linear-gradient(180deg, #020617 0%, #000000 100%);
      --mesh:
        linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
    }

    html[data-theme="light"] {
      --surface: #ffffff;
      --surface-border: rgba(15, 23, 42, 0.08);
      --surface-shadow:
        0 12px 30px -10px rgba(15, 23, 42, 0.04),
        0 0 0 1px rgba(15, 23, 42, 0.03);
      --text: #0f172a;
      --text-soft: #334155;
      --muted: #475569;
      --nav-bg: rgba(255, 255, 255, 0.9);
      --secondary-bg: rgba(15, 23, 42, 0.04);
      --secondary-border: rgba(15, 23, 42, 0.06);
      --glass-bg: rgba(15, 23, 42, 0.03);
      --glass-border: rgba(15, 23, 42, 0.06);
      --stat-bg: #f8fafc;
      --shell-border: rgba(15, 23, 42, 0.06);
      --spotlight-bg: linear-gradient(145deg, #ffffff, #f8fafc);
      --spotlight-text: #0f172a;
      --spotlight-copy: #334155;
      --hero-gradient:
        linear-gradient(135deg,
          #ffffff 0%,
          #f8fafc 48%,
          #f1f5f9 100%);
      --top-glow: linear-gradient(180deg, rgba(16, 185, 129, 0.06) 0%, transparent 100%);
      --page-backdrop:
        radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.04) 0%, transparent 60%),
        linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
      --mesh: transparent;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      min-height: 100vh;
      font-family: "Montserrat", sans-serif;
      color: var(--text);
      background: var(--page-backdrop);
      line-height: 1.6;
      overflow-x: hidden;
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0 0 auto 0;
      height: 230px;
      background: var(--top-glow);
      pointer-events: none;
      z-index: 0;
    }

    body::after {
      content: "";
      position: fixed;
      inset: 0;
      background-image: var(--mesh);
      background-size: 72px 72px;
      opacity: 0.14;
      mask-image: radial-gradient(circle at center, black 50%, transparent 90%);
      pointer-events: none;
      z-index: 0;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

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

    button {
      font: inherit;
      cursor: pointer;
    }

    .page {
      position: relative;
      z-index: 1;
    }

    .container {
      width: min(1200px, calc(100% - 2rem));
      margin: 0 auto;
    }

    .section {
      padding: 1rem 0 4.5rem;
      scroll-margin-top: 110px;
    }

    .section-label {
      display: inline-flex;
      align-items: center;
      gap: 0.55rem;
      margin: 0 auto 1rem;
      padding: 0.55rem 0.95rem;
      border: 1px solid var(--glass-border);
      border-radius: 999px;
      background: var(--glass-bg);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      color: var(--text-soft);
      font-size: 0.74rem;
      font-weight: 800;
      letter-spacing: 0.16em;
      text-transform: uppercase;
    }

    .section-label::before {
      content: "";
      width: 0.55rem;
      height: 0.55rem;
      border-radius: 999px;
      background: var(--emerald);
      box-shadow: 0 0 16px rgba(16, 185, 129, 0.45);
    }

    .section-heading {
      max-width: 42rem;
      margin: 0 auto 1rem;
      font-size: clamp(2rem, 4.2vw, 3.4rem);
      line-height: 0.96;
      letter-spacing: -0.045em;
      font-weight: 900;
      text-align: center;
    }

    .section-copy {
      max-width: 42rem;
      margin: 0 auto;
      color: var(--muted);
      font-size: 1rem;
      text-align: center;
    }

    .status-chip {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 1.25rem;
      padding: 0.45rem 0.85rem;
      background: rgba(16, 185, 129, 0.08);
      border: 1px solid rgba(16, 185, 129, 0.24);
      border-radius: 999px;
      color: var(--emerald-strong);
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }

    .status-chip::before {
      content: "";
      width: 0.5rem;
      height: 0.5rem;
      background: var(--emerald);
      border-radius: 50%;
      animation: pulse-dot 2s ease-in-out infinite;
    }

    @keyframes pulse-dot {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.4; transform: scale(1.2); }
    }

    .status-notice {
      display: inline-block;
      margin: 1.5rem auto 0;
      padding: 0.85rem 1.15rem;
      background: var(--surface-bg);
      border: 1px solid var(--surface-border);
      border-radius: 1rem;
      color: var(--text-soft);
      font-size: 0.9rem;
      line-height: 1.5;
      max-width: 34rem;
    }

    .status-notice strong {
      color: var(--emerald-strong);
      margin-right: 0.4rem;
    }

    .surface {
      border: 1px solid var(--surface-border);
      border-radius: var(--radius);
      background: var(--surface);
      backdrop-filter: blur(24px) saturate(180%);
      -webkit-backdrop-filter: blur(24px) saturate(180%);
      box-shadow: var(--surface-shadow);
    }

    .navbar {
      position: sticky;
      top: 0;
      z-index: 50;
      padding: 1rem 0 0;
      transition: transform 0.4s var(--ease-out), opacity 0.3s ease;
    }

    .navbar.nav-hidden {
      transform: translateY(-120%);
      opacity: 0;
    }

    .navbar-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      padding: 0.95rem 1rem;
      border: 1px solid var(--surface-border);
      border-radius: 999px;
      background: var(--nav-bg);
      backdrop-filter: blur(24px);
      -webkit-backdrop-filter: blur(24px);
      box-shadow: 0 18px 42px -24px rgba(0, 0, 0, 0.42);
    }

    .brand {
      display: inline-flex;
      align-items: center;
      gap: 0.85rem;
      min-width: 0;
    }

    .brand img {
      width: auto;
      height: 1.9rem;
      object-fit: contain;
      flex-shrink: 0;
    }

    .brand-name {
      display: block;
      font-size: 1.02rem;
      line-height: 1;
      letter-spacing: -0.03em;
      font-weight: 800;
    }

    .brand-tag {
      display: block;
      margin-top: 0.22rem;
      color: var(--muted);
      font-size: 0.72rem;
      line-height: 1;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .nav-actions {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      flex-shrink: 0;
    }

    .theme-toggle {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 2.9rem;
      height: 2.9rem;
      border: 1px solid var(--secondary-border);
      border-radius: 999px;
      background: var(--secondary-bg);
      color: var(--text);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      transition: transform 0.25s var(--ease-out), border-color 0.25s ease;
    }

    .theme-toggle:hover {
      transform: translateY(-2px);
      border-color: rgba(16, 185, 129, 0.32);
    }

    .theme-icon {
      font-size: 1.15rem;
      line-height: 1;
    }

    .button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.7rem;
      min-height: 3.35rem;
      padding: 0.9rem 1.25rem;
      border: 1px solid transparent;
      border-radius: 999px;
      font-weight: 800;
      font-size: 0.96rem;
      letter-spacing: -0.02em;
      transition:
        transform 0.3s var(--ease-out),
        box-shadow 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease;
      white-space: nowrap;
    }

    .button:hover {
      transform: translateY(-2px);
    }

    .button:focus-visible,
    .theme-toggle:focus-visible {
      outline: 3px solid rgba(16, 185, 129, 0.38);
      outline-offset: 3px;
    }

    .button-primary {
      background: linear-gradient(180deg, #34d399 0%, #10b981 100%);
      color: #ffffff;
      border-color: rgba(255, 255, 255, 0.24);
      box-shadow:
        0 16px 34px -18px rgba(16, 185, 129, 0.78),
        inset 0 1px 0 rgba(255, 255, 255, 0.36);
      animation: glow-pulse 3s ease-in-out infinite;
    }

    .button-secondary {
      background: var(--secondary-bg);
      border-color: var(--secondary-border);
      color: var(--text);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
    }

    .hero {
      padding: 1rem 0 4.5rem;
    }

    .hero-shell {
      position: relative;
      overflow: hidden;
      padding: clamp(1.4rem, 2.4vw, 1.8rem);
      border: 1px solid var(--shell-border);
      border-radius: 40px;
      background: var(--hero-gradient);
      box-shadow:
        0 30px 70px -34px rgba(0, 0, 0, 0.48),
        0 0 0 1px rgba(255, 255, 255, 0.02);
      isolation: isolate;
    }

    .hero-shell::before,
    .hero-shell::after {
      content: "";
      position: absolute;
      border-radius: 999px;
      pointer-events: none;
      z-index: 0;
    }

    .hero-shell::before {
      width: 24rem;
      height: 24rem;
      right: -9rem;
      top: -8rem;
      background: radial-gradient(circle, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0) 72%);
      opacity: 0.55;
    }

    .hero-shell::after {
      left: -8rem;
      bottom: -12rem;
      width: 30rem;
      height: 30rem;
      background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, rgba(16, 185, 129, 0) 72%);
    }

    .hero-grid {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: 1fr;
      align-items: center;
      text-align: center;
      gap: 2rem;
    }

    .hero-copy {
      max-width: 48rem;
      margin: 0 auto;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 0.65rem;
      padding: 0.7rem 1rem;
      border: 1px solid var(--glass-border);
      border-radius: 999px;
      background: var(--glass-bg);
      color: var(--text-soft);
      font-size: 0.78rem;
      letter-spacing: 0.14em;
      font-weight: 800;
      text-transform: uppercase;
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
    }

    .eyebrow::before {
      content: "";
      width: 0.55rem;
      height: 0.55rem;
      border-radius: 999px;
      background: var(--emerald);
      box-shadow: 0 0 16px rgba(16, 185, 129, 0.42);
    }

    .hero-title {
      margin: 1.2rem 0 1rem;
      font-size: clamp(2rem, 5.5vw, 3.6rem);
      line-height: 1.1;
      letter-spacing: -0.04em;
      font-weight: 900;
    }

    .hero-title span {
      display: block;
    }

    .hero-title span:last-child {
      background: linear-gradient(90deg, #34d399 0%, #10b981 70%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .hero-copy p {
      margin: 0 auto;
      max-width: 34rem;
      color: var(--text-soft);
      font-size: clamp(1rem, 2.2vw, 1.16rem);
      font-weight: 500;
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 0.9rem;
      margin-top: 1.8rem;
      justify-content: center;
    }

    .hero-meta {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 0.85rem;
      margin-top: 1.7rem;
      max-width: 48rem !important;
      margin-left: auto;
      margin-right: auto;
    }

    .hero-stat {
      padding: 1rem;
      border: 1px solid var(--glass-border);
      border-radius: 1.35rem;
      background: var(--stat-bg);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
    }

    .hero-stat strong {
      display: block;
      margin-bottom: 0.25rem;
      font-size: 0.95rem;
      line-height: 1.1;
      font-weight: 800;
      letter-spacing: -0.02em;
    }

    .hero-stat span {
      color: var(--muted);
      font-size: 0.82rem;
      font-weight: 600;
    }

    .hero-visual {
      display: flex;
      flex-flow: row wrap;
      justify-content: center;
      align-items: center;
      gap: 1.5rem;
      margin-top: 3.5rem;
      perspective: 1200px;
    }

    .hero-app-card {
      position: relative;
      width: min(100%, 260px);
      border-radius: 24px;
      padding: 6px;
      background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
      border: 1px solid var(--surface-border);
      box-shadow: 
        0 30px 80px -20px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.04);
      animation: hero-float 6s ease-in-out infinite;
      transition: transform 0.6s var(--ease-out);
    }

    .hero-app-card:nth-child(1) {
      transform: rotateX(6deg) rotateY(-8deg) rotateZ(1.5deg);
    }

    .hero-app-card:nth-child(2) {
      transform: rotateX(6deg) rotateY(8deg) rotateZ(-1.5deg);
      animation-delay: -3s;
    }

    .hero-app-card:hover {
      transform: rotateX(0) rotateY(0) rotateZ(0) scale(1.04);
      z-index: 10;
    }

    .hero-app-card img {
      width: 100%;
      height: auto;
      border-radius: 18px;
      display: block;
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    }

    html[data-theme="dark"] .img-light {
      display: none !important;
    }
    html[data-theme="dark"] .img-dark {
      display: block !important;
    }

    html[data-theme="light"] .img-dark {
      display: none !important;
    }
    html[data-theme="light"] .img-light {
      display: block !important;
    }

    .hero-app-card::after {
      content: "";
      position: absolute;
      inset: -10px;
      border-radius: 32px;
      background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.12), transparent 70%);
      pointer-events: none;
      z-index: -1;
    }

    @keyframes hero-float {
      0%, 100% { transform: translateY(0) rotateX(6deg) rotateY(-8deg); }
      50% { transform: translateY(-10px) rotateX(4deg) rotateY(-4deg); }
    }

    .hero-app-card:nth-child(2) {
      animation-name: hero-float-alt;
    }

    @keyframes hero-float-alt {
      0%, 100% { transform: translateY(0) rotateX(6deg) rotateY(8deg); }
      50% { transform: translateY(-10px) rotateX(4deg) rotateY(4deg); }
    }

    .features-grid {
      display: grid;
      gap: 1rem;
      margin-top: 2rem;
    }

    .feature-card {
      position: relative;
      overflow: hidden;
      padding: 1.75rem;
      min-height: 14.2rem;
      transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease, border-color 0.35s ease;
    }

    .feature-card::after {
      content: "";
      position: absolute;
      top: 0; left: 1.5rem; right: 1.5rem;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.5), transparent);
      pointer-events: none;
    }

    .feature-card:hover {
      transform: translateY(-6px);
      border-color: rgba(16, 185, 129, 0.3);
      box-shadow:
        0 28px 60px -16px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(16, 185, 129, 0.15),
        inset 0 1px 0 rgba(16, 185, 129, 0.06);
    }

    .feature-card::before {
      content: "";
      position: absolute;
      inset: auto -2rem -3rem auto;
      width: 8rem;
      height: 8rem;
      border-radius: 999px;
      background: radial-gradient(circle, rgba(16, 185, 129, 0.18), rgba(16, 185, 129, 0));
      pointer-events: none;
    }

    .feature-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 3.4rem;
      height: 3.4rem;
      margin-bottom: 1.25rem;
      border-radius: 1.15rem;
      background: rgba(16, 185, 129, 0.12);
      color: var(--emerald);
      font-size: 1.45rem;
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 0 1px rgba(16, 185, 129, 0.22),
        0 4px 16px rgba(16, 185, 129, 0.14);
    }

    .feature-card h3 {
      margin: 0 0 0.65rem;
      font-size: 1.18rem;
      line-height: 1.1;
      letter-spacing: -0.03em;
      font-weight: 800;
    }

    .feature-card p {
      margin: 0;
      color: var(--muted);
      font-size: 0.95rem;
      font-weight: 500;
    }

    .spotlight {
      position: relative;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 2rem;
      padding: clamp(1.75rem, 4vw, 3.75rem);
      margin-top: 2rem;
      border-radius: 40px;
      background:
        var(--spotlight-bg),
        var(--hero-gradient);
      color: var(--spotlight-text);
    }

    .spotlight::before,
    .spotlight::after {
      content: "";
      position: absolute;
      border-radius: 999px;
      pointer-events: none;
    }

    .spotlight::before {
      width: 18rem;
      height: 18rem;
      right: -7rem;
      top: -5rem;
      background: radial-gradient(circle, rgba(16, 185, 129, 0.16) 0%, rgba(16, 185, 129, 0) 72%);
    }

    .spotlight::after {
      width: 18rem;
      height: 18rem;
      left: -6rem;
      bottom: -7rem;
      background: radial-gradient(circle, rgba(125, 211, 252, 0.12) 0%, rgba(125, 211, 252, 0) 72%);
    }

    .spotlight-copy {
      position: relative;
      z-index: 1;
    }

    .spotlight-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 4rem;
      height: 4rem;
      margin-bottom: 1.4rem;
      border-radius: 1.45rem;
      background: rgba(16, 185, 129, 0.12);
      color: var(--emerald-strong);
      font-size: 1.75rem;
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 0 1px rgba(16, 185, 129, 0.14);
    }

    .spotlight h2 {
      margin: 0 auto 1.25rem;
      max-width: 30ch;
      font-size: clamp(2.2rem, 4vw, 3.7rem);
      line-height: 0.96;
      letter-spacing: -0.05em;
      font-weight: 900;
    }

    .spotlight p {
      margin: 0 auto;
      max-width: 44rem;
      color: var(--spotlight-copy);
      font-size: 1rem;
    }

    .spotlight-points {
      display: inline-grid;
      text-align: left;
      gap: 0.85rem;
      margin: 1.6rem 0 0;
      padding: 0;
      list-style: none;
    }

    .spotlight-points li {
      display: flex;
      align-items: flex-start;
      gap: 0.8rem;
      color: var(--spotlight-copy);
      font-weight: 600;
    }

    .spotlight-points li::before {
      content: "";
      flex: 0 0 0.55rem;
      width: 0.55rem;
      height: 0.55rem;
      margin-top: 0.55rem;
      border-radius: 999px;
      background: var(--emerald);
      box-shadow: 0 0 14px rgba(16, 185, 129, 0.45);
    }

    .spotlight .fiqh-note {
      display: block;
      width: fit-content;
      margin: 2.5rem auto 0;
      padding: 0.8rem 1.5rem;
      border-radius: 1rem;
      font-size: 0.85rem;
      line-height: 1.5;
      background: rgba(16, 185, 129, 0.12);
      border: 1px solid rgba(16, 185, 129, 0.25);
      color: inherit;
      opacity: 0.9;
      max-width: 90%;
    }

    .fiqh-note a {
      color: var(--emerald);
      text-decoration: underline;
    }

    .testimonial-grid {
      display: flex;
      justify-content: center;
      margin-top: 1.5rem;
    }

    .testimonial-card {
      max-width: 560px;
      padding: clamp(1.25rem, 3vw, 2rem);
      border-left: 3px solid var(--emerald);
      margin: 0;
    }

    .testimonial-text {
      font-size: clamp(1rem, 2vw, 1.15rem);
      line-height: 1.7;
      font-style: italic;
      margin: 0 0 1rem;
    }

    .testimonial-author {
      display: flex;
      flex-direction: column;
      gap: 0.15rem;
      font-size: 0.875rem;
      opacity: 0.75;
    }

    .testimonial-author strong {
      opacity: 1;
      color: var(--emerald);
    }

    .download-panel {
      position: relative;
      overflow: hidden;
      padding: clamp(1.75rem, 4vw, 3.5rem);
      text-align: center;
    }

    .download-panel::before,
    .download-panel::after {
      content: "";
      position: absolute;
      border-radius: 999px;
      pointer-events: none;
    }

    .download-panel::before {
      width: 26rem;
      height: 26rem;
      left: 50%;
      top: -15rem;
      transform: translateX(-50%);
      background: radial-gradient(circle, rgba(16, 185, 129, 0.16), rgba(16, 185, 129, 0));
    }

    .download-panel::after {
      right: -6rem;
      bottom: -8rem;
      width: 18rem;
      height: 18rem;
      background: radial-gradient(circle, rgba(125, 211, 252, 0.12), rgba(125, 211, 252, 0));
    }

    .download-panel > * {
      position: relative;
      z-index: 1;
    }

    .download-panel h2 {
      margin: 0 auto;
      max-width: 22ch;
      font-size: clamp(2rem, 4.8vw, 4rem);
      line-height: 0.95;
      letter-spacing: -0.05em;
      font-weight: 900;
    }

    .download-panel p {
      margin: 1rem auto 0;
      max-width: 42rem;
      color: var(--muted);
      font-size: 1rem;
      font-weight: 500;
    }

    .download-actions {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.95rem;
      margin-top: 1.8rem;
    }

    .download-main {
      min-width: min(100%, 24rem);
      min-height: 4rem;
      font-size: 1.05rem;
      box-shadow:
        0 0 12px rgba(16, 185, 129, 0.42),
        0 0 34px rgba(16, 185, 129, 0.2),
        0 24px 40px -22px rgba(16, 185, 129, 0.56);
    }

    .file-meta {
      display: inline-flex;
      align-items: center;
      gap: 0.65rem;
      padding: 0.75rem 1rem;
      border: 1px solid var(--glass-border);
      border-radius: 999px;
      background: var(--glass-bg);
      color: var(--text-soft);
      font-size: 0.82rem;
      font-weight: 800;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
    }

    .file-meta span:first-child {
      color: var(--emerald-strong);
    }

    .footer {
      padding: 0.75rem 0 2.5rem;
    }

    .footer-inner {
      display: flex;
      flex-direction: column;
      gap: 1.2rem;
      padding: 1.75rem 1.85rem;
    }

    .footer-brand {
      display: inline-flex;
      align-items: center;
      gap: 0.85rem;
    }

    .footer-brand img {
      width: auto;
      height: 1.8rem;
      object-fit: contain;
    }

    .footer-brand strong {
      display: block;
      font-size: 1rem;
      line-height: 1;
      font-weight: 800;
      letter-spacing: -0.03em;
    }

    .footer-brand span {
      display: block;
      margin-top: 0.28rem;
      color: var(--muted);
      font-size: 0.84rem;
      font-weight: 600;
    }

    .footer-meta {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 0.85rem 1.5rem;
      color: var(--muted);
      font-size: 0.9rem;
      font-weight: 600;
    }

    .footer-meta a {
      color: var(--text);
      font-weight: 700;
      transition: color 0.25s ease;
    }

    .footer-meta a:hover {
      color: var(--emerald-strong);
    }

    .reveal {
      opacity: 0;
      transform: translateY(12px);
      transition:
        opacity 0.75s var(--ease-out),
        transform 0.75s var(--ease-out);
      will-change: opacity, transform;
    }

    .reveal.is-visible {
      opacity: 1;
      transform: translateY(0);
    }

    @keyframes glow-pulse {
      0%, 100% {
        box-shadow:
          0 0 8px rgba(16, 185, 129, 0.38),
          0 0 22px rgba(16, 185, 129, 0.2),
          0 18px 30px -16px rgba(16, 185, 129, 0.5);
      }
      50% {
        box-shadow:
          0 0 14px rgba(16, 185, 129, 0.58),
          0 0 30px rgba(16, 185, 129, 0.28),
          0 24px 36px -18px rgba(16, 185, 129, 0.6);
      }
    }

    /* iOS Install Prompt Styles */
    .ios-prompt {
      position: fixed;
      bottom: 1.5rem;
      left: 1rem;
      right: 1rem;
      z-index: 1000;
      padding: 1.5rem;
      border: 1px solid var(--surface-border);
      border-radius: 24px;
      background: var(--surface);
      backdrop-filter: blur(28px) saturate(200%);
      -webkit-backdrop-filter: blur(28px) saturate(200%);
      box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.5);
      display: none;
      animation: ios-slide-up 0.6s var(--ease-out) forwards;
      max-width: 420px;
      margin: 0 auto;
    }

    @keyframes ios-slide-up {
      from { transform: translateY(120%); opacity: 0; }
      to { transform: translateY(0); opacity: 1; }
    }

    .ios-prompt-close {
      position: absolute;
      top: 0.75rem;
      right: 0.75rem;
      width: 2rem;
      height: 2rem;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      background: rgba(148, 163, 184, 0.12);
      color: var(--muted);
      font-size: 1rem;
      transition: background 0.2s ease;
    }

    .ios-prompt-close:hover {
      background: rgba(148, 163, 184, 0.2);
    }

    .ios-prompt-header {
      display: flex;
      align-items: center;
      gap: 1rem;
      margin-bottom: 1.25rem;
    }

    .ios-prompt-icon {
      width: 3.5rem;
      height: 3.5rem;
      border-radius: 1rem;
      object-fit: cover;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .ios-prompt-title {
      font-size: 1.1rem;
      font-weight: 800;
      letter-spacing: -0.02em;
    }

    .ios-prompt-subtitle {
      display: block;
      color: var(--muted);
      font-size: 0.85rem;
      font-weight: 600;
      margin-top: 0.2rem;
    }

    .ios-prompt-steps {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .ios-prompt-step {
      display: flex;
      align-items: center;
      gap: 1rem;
      color: var(--text-soft);
      font-size: 0.95rem;
      font-weight: 600;
    }

    .ios-prompt-step img {
      width: 1.8rem;
      height: 1.8rem;
      opacity: 0.9;
    }

    .ios-prompt-step strong {
      color: var(--emerald-strong);
    }

    @media (min-width: 720px) {
      .container {
        width: min(1200px, calc(100% - 2.75rem));
      }

      .hero-meta {
        max-width: 34rem;
      }

      .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (min-width: 980px) {
      .features-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }

      .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
      }
    }

    @media (max-width: 719px) {
      .container {
        width: min(100%, calc(100% - 1rem));
      }

      .navbar {
        padding-top: 0.55rem;
      }

      .navbar-inner {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0.6rem 0.8rem;
      }

      .brand img {
        width: auto;
        height: 2.4rem;
      }

      .brand-name, .brand-tag {
        display: none;
      }

      .nav-actions {
        display: contents;
      }

      .theme-toggle {
        position: fixed;
        bottom: 1.5rem;
        right: 1.5rem;
        width: 3.5rem;
        height: 3.5rem;
        z-index: 9999;
        background: var(--surface);
        border: 1px solid var(--emerald);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
      }

      .theme-toggle .theme-icon {
        font-size: 1.5rem;
      }

      .nav-actions .button {
        display: none;
      }

      .feature-card {
        padding: 1.1rem;
        min-height: auto;
      }
      .feature-icon {
        width: 2.8rem;
        height: 2.8rem;
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
        border-radius: 0.8rem;
      }
      .feature-card h3 {
        font-size: 1.05rem;
        margin-bottom: 0.4rem;
      }
      .feature-card p {
        font-size: 0.85rem;
      }

      .spotlight {
        padding: 1.5rem;
        border-radius: 24px;
        gap: 1.25rem;
      }
      .spotlight-badge {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
        border-radius: 1rem;
        margin-bottom: 0.75rem;
      }
      .spotlight h2 {
        font-size: 1.6rem;
      }
      .spotlight p, .spotlight-points li {
        font-size: 0.88rem;
      }

      .hero-stat {
        padding: 0.8rem;
        border-radius: 1rem;
      }
      .hero-stat strong {
        font-size: 0.88rem;
      }
      .hero-stat span {
        font-size: 0.78rem;
      }

      .faq-item summary {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
      }
      .faq-content {
        padding: 0 1.25rem 1.25rem;
        font-size: 0.88rem;
      }
      
      .testimonial-card {
        padding: 1rem;
      }
      .testimonial-text {
        font-size: 0.9rem;
      }

      .footer-brand span {
        font-size: 0.75rem;
        white-space: nowrap;
      }

      @media (max-width: 380px) {
        .brand img {
          width: 4.2rem;
          height: 4.2rem;
        }
        .theme-toggle {
          bottom: 1rem;
          right: 1rem;
        }
      }

      .hero-shell {
        border-radius: 2rem;
      }

      .hero-meta {
        grid-template-columns: 1fr;
      }

      .hero-actions .button {
        width: 100%;
      }

      .download-main {
        width: 100%;
        min-width: 0;
      }
    }

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

      *,
      *::before,
      *::after {
        animation: none !important;
        transition: none !important;
      }

      .reveal {
        opacity: 1;
        transform: none;
      }
    }

    /* FAQ Section Styles */
    .faq-grid {
      display: grid;
      gap: 1rem;
      max-width: 48rem;
      margin: 2.5rem auto 0;
    }

    .faq-item {
      padding: 0;
      overflow: hidden;
      border-radius: 1.5rem;
      transition: transform 0.3s var(--ease-out);
    }

    .faq-item:hover {
      transform: translateY(-2px);
    }

    .faq-item summary {
      padding: 1.25rem 1.75rem;
      list-style: none;
      cursor: pointer;
      font-weight: 800;
      font-size: 1.05rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      transition: background 0.3s ease;
      user-select: none;
    }

    .faq-item summary::-webkit-details-marker {
      display: none;
    }

    .faq-item summary::after {
      content: "+";
      font-size: 1.5rem;
      color: var(--emerald);
      transition: transform 0.3s var(--ease-out);
      font-weight: 400;
    }

    .faq-item[open] summary::after {
      transform: rotate(45deg);
    }

    .faq-content {
      padding: 0 1.75rem 1.75rem;
      color: var(--muted);
      font-size: 0.98rem;
      line-height: 1.7;
    }

    .faq-content p {
      margin: 0;
    }

    .faq-content p + p {
      margin-top: 0.9rem;
    }
    /* ---- Proof stats strip ---- */
    .proof-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 1rem;
      margin-top: 2rem;
    }

    .proof-item {
      padding: 1.5rem 1.15rem;
      text-align: center;
      border-radius: var(--radius);
      border: 1px solid var(--surface-border);
      background: var(--stat-bg);
    }

    .proof-item strong {
      display: block;
      font-size: clamp(1.9rem, 3.4vw, 2.6rem);
      font-weight: 900;
      letter-spacing: -0.04em;
      line-height: 1;
      color: var(--emerald-strong);
    }

    .proof-item span {
      display: block;
      margin-top: 0.55rem;
      font-size: 0.72rem;
      font-weight: 800;
      letter-spacing: 0.13em;
      text-transform: uppercase;
      color: var(--muted);
    }

    /* ---- Reference tables (nisab conventions, regional presets) ---- */
    .table-wrap {
      margin-top: 2rem;
      overflow-x: auto;
      border-radius: var(--radius);
      border: 1px solid var(--surface-border);
      background: var(--surface);
      -webkit-overflow-scrolling: touch;
    }

    .ref-table {
      width: 100%;
      min-width: 34rem;
      border-collapse: collapse;
      font-size: 0.9rem;
    }

    .ref-table caption {
      padding: 1.25rem 1.35rem 0;
      text-align: left;
      font-size: 0.72rem;
      font-weight: 800;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .ref-table th,
    .ref-table td {
      padding: 0.9rem 1.35rem;
      text-align: left;
      vertical-align: top;
    }

    .ref-table thead th {
      font-size: 0.68rem;
      font-weight: 800;
      letter-spacing: 0.13em;
      text-transform: uppercase;
      color: var(--muted);
      border-bottom: 1px solid var(--surface-border);
    }

    .ref-table tbody tr + tr td {
      border-top: 1px solid var(--surface-border);
    }

    .ref-table tbody th {
      font-weight: 800;
      color: var(--text);
      white-space: nowrap;
    }

    .ref-table td {
      color: var(--text-soft);
    }

    .ref-table .num {
      font-variant-numeric: tabular-nums;
      font-weight: 700;
      color: var(--emerald-strong);
      white-space: nowrap;
    }

    .table-note {
      margin: 0.9rem 0 0;
      font-size: 0.82rem;
      color: var(--muted);
      text-align: center;
    }

    /* ---- Currency pills ---- */
    .pill-row {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 0.5rem;
      margin: 1.75rem 0 0;
      padding: 0;
      list-style: none;
    }

    .pill-row li {
      padding: 0.45rem 0.85rem;
      border: 1px solid var(--glass-border);
      border-radius: 999px;
      background: var(--glass-bg);
      font-size: 0.78rem;
      font-weight: 800;
      letter-spacing: 0.07em;
      color: var(--text-soft);
    }

    /* ---- Two-up detail cards ---- */
    .detail-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
      gap: 1.15rem;
      margin-top: 2rem;
    }

    .detail-card {
      padding: 1.75rem;
    }

    .detail-card h3 {
      margin: 0 0 0.7rem;
      font-size: 1.05rem;
      font-weight: 900;
      letter-spacing: -0.02em;
    }

    .detail-card p {
      margin: 0;
      color: var(--muted);
      font-size: 0.92rem;
    }

    .detail-card p + p {
      margin-top: 0.75rem;
    }

    /* ---- Reminder list ---- */
    .reminder-list {
      display: grid;
      gap: 0.75rem;
      margin: 2rem 0 0;
      padding: 0;
      list-style: none;
    }

    .reminder-list li {
      display: grid;
      grid-template-columns: 11rem 1fr;
      gap: 0.35rem 1.25rem;
      align-items: baseline;
      padding: 1.05rem 1.35rem;
      border: 1px solid var(--surface-border);
      border-radius: 1.15rem;
      background: var(--stat-bg);
    }

    .reminder-list strong {
      font-weight: 900;
      font-size: 0.95rem;
    }

    .reminder-list em {
      display: block;
      margin-top: 0.2rem;
      font-style: normal;
      font-size: 0.74rem;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--emerald-strong);
    }

    .reminder-list span {
      color: var(--muted);
      font-size: 0.9rem;
    }

    /* ---- Honest-limits callout ---- */
    .honesty-note {
      margin: 2.25rem auto 0;
      max-width: 46rem;
      padding: 1.35rem 1.6rem;
      border: 1px solid rgba(16, 185, 129, 0.25);
      border-radius: 1.25rem;
      background: rgba(16, 185, 129, 0.08);
      color: var(--text-soft);
      font-size: 0.9rem;
      line-height: 1.6;
      text-align: center;
    }

    .honesty-note strong {
      color: var(--emerald-strong);
    }

    @media (max-width: 900px) {
      .proof-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (max-width: 600px) {
      .reminder-list li {
        grid-template-columns: 1fr;
      }

      .detail-card {
        padding: 1.35rem;
      }

      .table-wrap {
        overflow-x: visible;
      }

      .ref-table {
        min-width: 0;
        width: 100%;
      }

      .ref-table caption {
        display: block;
        width: 100%;
      }

      .ref-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
      }

      .ref-table,
      .ref-table tbody {
        display: block;
        width: 100%;
      }

      .ref-table tbody tr {
        display: flex;
        flex-wrap: wrap;
        column-gap: 1.75rem;
        padding: 1rem 1.1rem;
      }

      .ref-table tbody tr + tr {
        border-top: 1px solid var(--surface-border);
      }

      .ref-table tbody tr + tr td {
        border-top: none;
      }

      .ref-table th,
      .ref-table td {
        display: block;
        flex: 1 0 100%;
        padding: 0.25rem 0;
        white-space: normal;
      }

      .ref-table td.num {
        flex: 0 0 auto;
      }

      .ref-table tbody th {
        padding-bottom: 0.5rem;
      }

      .ref-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.66rem;
        font-weight: 800;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--muted);
        margin-bottom: 0.15rem;
      }
    }

    /* ============================================================
       Zakat landing pages
       Additions used only by /zakat-calculator/*.html. Everything
       above this line is the shared design system lifted verbatim
       from the homepage so the two cannot drift visually.
       ============================================================ */

    /* The navbar is position:sticky, so it occupies its own space in flow and
       nothing needs to clear it. An earlier revision padded this out as if the
       nav were fixed, which cost ~100px of dead space above the fold on
       phones — exactly where the calculator now sits. */
    .breadcrumb {
      padding: 1.5rem 0 0;
      font-size: 0.85rem;
      color: var(--muted);
    }

    .breadcrumb ol {
      list-style: none;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.5rem;
      margin: 0;
      padding: 0;
    }

    .breadcrumb li::after {
      content: "\203A";
      margin-left: 0.5rem;
      color: var(--muted);
      opacity: 0.7;
    }

    .breadcrumb li:last-child::after { content: ""; }

    .breadcrumb a {
      color: var(--muted);
      text-decoration: none;
      transition: color 0.2s var(--ease-out);
    }

    .breadcrumb a:hover { color: var(--emerald); }

    .breadcrumb [aria-current="page"] { color: var(--text-soft); }

    .page-hero { padding-top: 2.5rem; }

    .page-hero h1 {
      font-size: clamp(2.1rem, 5vw, 3.4rem);
      line-height: 1.08;
      letter-spacing: -0.03em;
      margin: 0.75rem 0 1.25rem;
      color: var(--text);
    }

    /* The lede now sits below the calculator, so it reads as the opening of
       the explanatory content rather than as hero copy. */
    .page-hero .lede {
      font-size: clamp(1.02rem, 2vw, 1.18rem);
      color: var(--text-soft);
      max-width: 62ch;
      line-height: 1.65;
      margin: 2.5rem 0 0;
    }

    .prose { max-width: 68ch; }

    .prose h2 {
      font-size: clamp(1.5rem, 3vw, 2rem);
      letter-spacing: -0.02em;
      margin: 0 0 1rem;
      color: var(--text);
    }

    .prose h3 {
      font-size: 1.12rem;
      margin: 1.75rem 0 0.6rem;
      color: var(--text);
    }

    .prose p {
      color: var(--text-soft);
      line-height: 1.75;
      margin: 0 0 1rem;
    }

    .prose ul {
      color: var(--text-soft);
      line-height: 1.75;
      padding-left: 1.15rem;
      margin: 0 0 1rem;
    }

    .prose li { margin-bottom: 0.45rem; }

    .prose a { color: var(--emerald); }

    /* Worked example block */
    .worked-example {
      padding: 1.75rem;
      border-radius: var(--radius);
      margin: 2rem 0;
    }

    .worked-example h3 {
      margin: 0 0 1rem;
      font-size: 1.05rem;
      color: var(--text);
    }

    .worked-example dl {
      margin: 0;
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 0.65rem 1.5rem;
      align-items: baseline;
    }

    .worked-example dt {
      color: var(--text-soft);
      font-size: 0.94rem;
    }

    .worked-example dd {
      margin: 0;
      text-align: right;
      font-variant-numeric: tabular-nums;
      font-weight: 600;
      color: var(--text);
      font-size: 0.94rem;
    }

    .worked-example .we-total {
      border-top: 1px solid var(--surface-border);
      padding-top: 0.85rem;
      margin-top: 0.35rem;
    }

    .worked-example dd.we-total { color: var(--emerald); font-size: 1.05rem; }

    .worked-example .we-note {
      margin: 1.15rem 0 0;
      font-size: 0.85rem;
      color: var(--muted);
      line-height: 1.6;
    }

    /* Quick-estimate widget */
    .estimator {
      padding: 1.9rem;
      border-radius: var(--radius);
      margin: 2.5rem 0;
    }

    .estimator h3 { margin: 0 0 0.4rem; font-size: 1.2rem; color: var(--text); }

    .estimator .est-sub {
      margin: 0 0 1.4rem;
      font-size: 0.9rem;
      color: var(--muted);
      line-height: 1.6;
    }

    .est-field { display: flex; flex-direction: column; gap: 0.45rem; }

    .est-field label {
      font-size: 0.82rem;
      font-weight: 600;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .est-input-row { display: flex; gap: 0.6rem; }

    .est-input-row input,
    .est-input-row select {
      font: inherit;
      color: var(--text);
      background: var(--stat-bg);
      border: 1px solid var(--surface-border);
      border-radius: 14px;
      padding: 0.8rem 0.95rem;
      outline: none;
      transition: border-color 0.2s var(--ease-out);
      -webkit-appearance: none;
      appearance: none;
    }

    .est-input-row input { flex: 1 1 auto; min-width: 0; font-variant-numeric: tabular-nums; }

    .est-input-row select { flex: 0 0 auto; cursor: pointer; }

    .est-input-row input:focus,
    .est-input-row select:focus { border-color: var(--emerald); }

    .est-result {
      margin-top: 1.4rem;
      padding-top: 1.3rem;
      border-top: 1px solid var(--surface-border);
      display: flex;
      flex-wrap: wrap;
      align-items: baseline;
      justify-content: space-between;
      gap: 0.5rem;
    }

    .est-result-label { font-size: 0.9rem; color: var(--text-soft); }

    .est-result-value {
      font-size: clamp(1.6rem, 4vw, 2.1rem);
      font-weight: 700;
      letter-spacing: -0.02em;
      color: var(--emerald);
      font-variant-numeric: tabular-nums;
    }

    .est-disclaimer {
      margin: 1.2rem 0 0;
      padding: 0.9rem 1rem;
      border-radius: 14px;
      background: var(--glass-bg);
      border: 1px solid var(--glass-border);
      font-size: 0.85rem;
      line-height: 1.6;
      color: var(--muted);
    }

    .est-disclaimer strong { color: var(--text-soft); }

    .estimator .button { margin-top: 1.25rem; }

    /* Secondary CTA. Sits directly under the estimate figure so it is in view
       the moment the number appears, rather than only at the foot of the page.
       The full-width button below the disclaimer and the page-end CTA both
       remain — this is an addition, not a replacement. */
    .est-result-cta {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      margin-top: 0.9rem;
      font-size: 0.92rem;
      font-weight: 600;
      color: var(--emerald);
      text-decoration: none;
      transition: gap 0.2s var(--ease-out), opacity 0.2s var(--ease-out);
    }

    .est-result-cta:hover { gap: 0.7rem; opacity: 0.85; }

    .est-result-cta:focus-visible {
      outline: 2px solid var(--emerald);
      outline-offset: 3px;
      border-radius: 4px;
    }

    /* Hero placement. The widget now sits immediately under the lede, so cap
       its width rather than letting it stretch across the 1200px container. */
    .page-hero .estimator {
      max-width: 560px;
      margin: 2.25rem 0 0;
    }

    /* Variant switcher — sits under the estimate widget in the hero so
       someone who landed on the wrong school or country can move sideways
       instead of going back to search. */
    .variant-switch {
      max-width: 560px;
      margin: 1.1rem 0 0;
      border: 1px solid var(--glass-border);
      background: var(--glass-bg);
      border-radius: 18px;
      overflow: hidden;
    }

    .variant-switch summary {
      cursor: pointer;
      list-style: none;
      padding: 0.85rem 1.15rem;
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--text-soft);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
      transition: color 0.2s var(--ease-out);
    }

    .variant-switch summary::-webkit-details-marker { display: none; }

    .variant-switch summary::after {
      content: "+";
      font-size: 1.1rem;
      font-weight: 400;
      color: var(--muted);
      flex: 0 0 auto;
      line-height: 1;
    }

    .variant-switch[open] summary::after { content: "\2212"; }

    .variant-switch summary:hover { color: var(--emerald); }

    .variant-switch summary:focus-visible {
      outline: 2px solid var(--emerald);
      outline-offset: -2px;
    }

    .variant-switch-body { padding: 0.25rem 1.15rem 1.15rem; }

    .variant-switch-body h4 {
      font-size: 0.74rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--muted);
      margin: 0.9rem 0 0.6rem;
    }

    .variant-switch-body .calc-link-row { margin-bottom: 0; gap: 0.45rem; }

    .variant-switch-body .calc-link-row a,
    .variant-switch-body .calc-link-row .is-current {
      display: inline-block;
      padding: 0.42rem 0.85rem;
      border-radius: 999px;
      background: var(--glass-bg);
      border: 1px solid var(--glass-border);
      color: var(--text-soft);
      text-decoration: none;
      font-size: 0.85rem;
      font-weight: 500;
      transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
    }

    .variant-switch-body .calc-link-row a:hover {
      color: var(--emerald);
      border-color: rgba(16, 185, 129, 0.4);
    }

    .variant-switch-body .calc-link-row .is-current {
      color: var(--emerald-ink);
      background: var(--emerald);
      border-color: var(--emerald);
      font-weight: 600;
      cursor: default;
    }

    html[data-theme="dark"] .variant-switch-body .calc-link-row .is-current {
      color: #04211a;
    }

    /* Standing fatwa / advice notice, high on the page. */
    .standing-notice {
      max-width: 560px;
      margin: 1.1rem 0 0;
      padding: 0.95rem 1.15rem;
      border-radius: 18px;
      border: 1px solid var(--glass-border);
      background: var(--glass-bg);
      font-size: 0.84rem;
      line-height: 1.65;
      color: var(--muted);
    }

    .standing-notice strong { color: var(--text-soft); }

    .standing-notice a { color: var(--emerald); }

    /* Nisab figures with live currency fill */
    .nisab-cards {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
      gap: 1rem;
      margin: 1.75rem 0;
    }

    .nisab-card { padding: 1.4rem; border-radius: var(--radius); }

    .nisab-card .nc-metal {
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .nisab-card .nc-weight {
      display: block;
      font-size: 1.55rem;
      font-weight: 700;
      letter-spacing: -0.02em;
      color: var(--text);
      margin: 0.35rem 0 0.15rem;
      font-variant-numeric: tabular-nums;
    }

    .nisab-card .nc-value {
      display: block;
      font-size: 0.95rem;
      color: var(--emerald);
      font-variant-numeric: tabular-nums;
    }

    .nisab-card .nc-asof { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 0.4rem; }

    /* Related-page links */
    .related-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 1rem;
      margin-top: 1.5rem;
    }

    .related-card {
      display: block;
      padding: 1.3rem 1.45rem;
      border-radius: var(--radius);
      text-decoration: none;
      transition: transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
    }

    .related-card:hover { transform: translateY(-3px); border-color: rgba(16, 185, 129, 0.4); }

    .related-card strong { display: block; color: var(--text); font-size: 1rem; margin-bottom: 0.3rem; }

    .related-card span { display: block; color: var(--muted); font-size: 0.87rem; line-height: 1.55; }

    /* Homepage index of the landing pages */
    .calc-links { margin-top: 2.5rem; }

    .calc-links h3 {
      font-size: 0.82rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--muted);
      margin: 0 0 0.9rem;
    }

    .calc-link-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.6rem; }

    .calc-link-row a {
      display: inline-block;
      padding: 0.55rem 1rem;
      border-radius: 999px;
      background: var(--glass-bg);
      border: 1px solid var(--glass-border);
      color: var(--text-soft);
      text-decoration: none;
      font-size: 0.9rem;
      font-weight: 500;
      transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
    }

    .calc-link-row a:hover { color: var(--emerald); border-color: rgba(16, 185, 129, 0.4); }

    @media (max-width: 640px) {
      .breadcrumb { padding-top: 1rem; }
      .page-hero { padding-top: 1rem; }
      .worked-example dl { grid-template-columns: 1fr auto; gap: 0.55rem 1rem; }
      .est-input-row { flex-wrap: wrap; }
      .est-input-row input { flex: 1 1 100%; }
      .est-input-row select { flex: 1 1 100%; }

      /* The widget is above the fold on phones now, so tighten it up and let
         the label and figure sit on their own lines instead of squeezing
         onto one row. */
      .estimator { padding: 1.4rem; }
      .page-hero .estimator { margin-top: 1.75rem; }
      .est-result { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
      .estimator .button { width: 100%; justify-content: center; }
    }
