/* The look follows khayaal.com: black and charcoal surfaces, gold actions,
   Amiri italic headings over Work Sans, pill buttons, cards with a fine gold
   edge. The layout and content are unchanged. */
:root {
  --black: #000;
  --surface: #1a1a1a;
  --surface-2: #2d2d2d;
  --text: #f5f5f5;
  --muted: #cac4c4;
  --faint: rgb(245 245 245 / .62);
  --line: rgb(245 245 245 / .14);
  --gold: #ffc24b;
  --gold-hover: #ffd07a;
  --gold-active: #f0ad1f;
  --gold-line: rgb(255 194 75 / .42);
  --gold-tint: rgb(255 194 75 / .08);
  --on-gold: #2d2d2d;
  --indigo: #746288;
  --error: #ff8a80;
  --font: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Amiri", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1200px 520px at 50% -160px, rgb(116 98 136 / .28), transparent 70%), var(--black);
  color: var(--text);
  font: 400 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.top { align-items: center; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; padding: 14px 5%; }
.top__logo img { height: 48px; width: auto; }
.pill { border: 1px solid var(--text); border-radius: 999px; color: var(--text); font-weight: 600; padding: 9px 24px; text-decoration: none; transition: background-color .2s, color .2s; white-space: nowrap; }
.pill:hover { background: var(--text); color: var(--surface); }

.btn { align-items: center; border: 0; border-radius: 999px; cursor: pointer; display: inline-flex; font: 600 17px/1 var(--font); justify-content: center; min-height: 56px; padding: 16px 32px; text-decoration: none; transition: background-color .2s, color .2s, box-shadow .2s; }
.btn--green { background: var(--gold); color: var(--on-gold); }
.btn--green:hover { background: var(--gold-hover); }
.btn--green:active { background: var(--gold-active); }
.btn--green:disabled { background: var(--surface-2); color: var(--faint); cursor: not-allowed; }
.btn--outline { background: transparent; border: 1px solid var(--text); color: var(--text); font-size: 16px; }
.btn--outline:hover { background: rgb(245 245 245 / .08); }
.btn--wide { display: flex; width: 100%; }

.page { margin: 0 auto; max-width: 1536px; padding: 40px 32px 0; }
.head { align-items: center; display: flex; flex-direction: column; padding-bottom: 16px; }
.head h1 { font: italic 400 46px/1.15 var(--font-head); margin-bottom: 16px; text-align: center; }
.org { align-items: center; display: flex; font-size: 14px; gap: 8px; margin-bottom: 32px; }
.org img { border: 2px solid var(--gold-line); border-radius: 50%; height: 34px; object-fit: cover; width: 34px; }
.org__by { color: var(--faint); }

.hero { border: 1px solid var(--gold-line); border-radius: 24px; display: grid; grid-template-columns: 8fr 4fr; margin-bottom: 56px; overflow: hidden; }
.hero__media { aspect-ratio: 4 / 3; background: #120c08; position: relative; }
.hero__media img, .hero__media iframe { border: 0; height: 100%; inset: 0; object-fit: cover; position: absolute; width: 100%; }
.play { align-items: center; background: none; border: 0; color: #fff; cursor: pointer; display: flex; flex-direction: column; font: 500 12px/1 var(--font); left: 50%; padding: 0; position: absolute; top: 50%; transform: translate(-50%, -50%); }
.play svg { opacity: .8; }
.hero__panel { background: var(--surface); display: flex; flex-direction: column; gap: 32px; justify-content: center; padding: 32px 48px; }
.hero__stats { text-align: center; }
.hero__amount { color: var(--gold); font: italic 400 54px/1 var(--font-head); margin-bottom: 14px; }
.hero__sub { color: var(--muted); font-size: 14px; line-height: 20px; }
.hero__sub + .hero__sub { margin-top: 6px; }
.hero__actions { display: grid; gap: 16px; }

.cols { align-items: start; display: grid; gap: 64px; grid-template-columns: 8fr 4fr; padding-bottom: 56px; }

.story__title { font: italic 400 34px/1.2 var(--font-head); }
.story__body { color: var(--muted); font-size: 16px; line-height: 26px; overflow-wrap: anywhere; }
.story__body > p { margin-bottom: 24px; }
.story__body strong { color: var(--text); }
.story__body h3 { color: var(--gold); font: italic 400 26px/1.25 var(--font-head); margin: 8px 0 8px; }
.story__body figure { margin: 0 0 24px; }
.story__body img { border-radius: 12px; width: 100%; }
.story__body ul { list-style: outside; margin: 0 0 24px; padding-left: 20px; }
.story__body a { color: var(--gold); }

.side__head { align-items: center; display: flex; gap: 12px; justify-content: space-between; margin-bottom: 24px; }
.side__head h1, .side__head h2 { font: italic 400 30px/1.2 var(--font-head); }
.ccy { background: var(--surface-2); border-radius: 999px; color: var(--text); flex: none; font-size: 14px; padding: 5px 14px; }
.bundle-list { display: grid; gap: 16px; }

.bundle { background: var(--surface); border: 1px solid var(--gold-line); border-radius: 16px; color: inherit; cursor: pointer; display: block; padding: 24px; text-decoration: none; transition: border-color .2s, background-color .2s; }
a.bundle:hover, label.bundle:hover { background: #202020; border-color: var(--gold); }
a.bundle:active { background: var(--surface-2); }
.bundle.is-off { border-color: var(--line); cursor: default; }
.bundle__price { color: var(--gold); font: 700 24px/32px var(--font); margin-bottom: 12px; }
.bundle__name { font-weight: 600; margin-bottom: 4px; }
.bundle__desc { color: var(--muted); }
.bundle__state { color: var(--faint); font-size: 14px; font-weight: 600; margin-top: 12px; }

label.bundle { position: relative; }
label.bundle input { height: 1px; opacity: 0; position: absolute; width: 1px; }
label.bundle:has(input:checked) { background: var(--gold-tint); border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
label.bundle:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }

.load-error { color: var(--error); margin-top: 16px; }

.buybar { display: none; }

.foot { background: var(--black); border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; margin-top: 16px; padding: 36px 32px; text-align: center; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; margin-bottom: 12px; }
.foot a { color: var(--text); text-decoration-color: var(--gold-line); text-underline-offset: 3px; }
.foot a:hover { color: var(--gold); }

.co { margin: 0 auto; max-width: 1152px; padding: 40px 32px 64px; }
.co__head { margin-bottom: 32px; }
.co__head h3 { font-size: 16px; font-weight: 400; margin-bottom: 8px; }
.co__verb { color: var(--faint); }
.co__head a { color: var(--text); font-weight: 600; text-decoration-color: var(--gold-line); text-underline-offset: 3px; }
.co__head p { color: var(--faint); font-size: 14px; }
.co__grid { align-items: start; display: grid; gap: 80px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.co__main h1, .co__main h2 { font: italic 400 30px/1.2 var(--font-head); margin-bottom: 16px; }
.co__main .side__head h1 { margin: 0; }
.co__main hr { margin: 32px 0; }
#details label:not(.bundle) { color: var(--text); display: block; font-size: 14px; font-weight: 500; margin-bottom: 16px; }
/* Fields as on khayaal.com's own forms: white pills with black text. */
#details input:not([type="radio"]), #details select {
  background: #fff; border: 1px solid #fff; border-radius: 24px; color: #000; color-scheme: light;
  display: block; font: 400 16px/1.5 var(--font); margin-top: 8px; min-height: 48px; padding: 11px 20px; width: 100%;
}
#details select {
  appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%232d2d2d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 20px center / 12px 8px;
  padding-right: 48px;
}
#details input::placeholder { color: rgb(0 0 0 / .55); }
#details input:not([type="radio"]):focus, #details select:focus { border-color: var(--gold); outline: 2px solid var(--gold); outline-offset: 1px; }
.field-row { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-short { max-width: 50%; }
.optional { color: var(--faint); font-weight: 400; }
.form-error { color: var(--error); font-size: 14px; margin-bottom: 14px; }
#pay-error { margin: 14px 0 0; }
.text-link { background: none; border: 0; color: var(--text); cursor: pointer; font: 500 14px/1 var(--font); margin-top: 16px; padding: 4px 0; text-decoration: underline; text-decoration-color: var(--gold-line); text-underline-offset: 3px; }
.text-link:hover { color: var(--gold); }

/* Payment sits on a dark card like the Review card. The fields stay white, as on
   khayaal.com's forms, because the secure card frames type in dark text. */
.pay-panel { background: var(--surface); border: 1px solid var(--gold-line); border-radius: 24px; min-height: 140px; padding: 28px; }
.pay-panel .ummah-sdk-container {
  --ummah-accent: #ffc24b;
  --ummah-accent-deep: #f0ad1f;
  --ummah-ink: #f5f5f5;
  --ummah-ink-soft: #cac4c4;
  --ummah-border: rgb(245 245 245 / .2);
  --ummah-error: #ff8a80;
  --ummah-error-wash: rgb(255 138 128 / .1);
  --ummah-control-radius: 24px;
  --ummah-font: 'Work Sans', system-ui, sans-serif;
  max-width: none;
}
/* Card number on its own row, so the expiry and CVV have room. */
.pay-panel .ummah-sdk-card .adyen-checkout__card__form { grid-template-columns: minmax(0, 1fr); }
.pay-panel .ummah-sdk-card .adyen-checkout__input-wrapper,
.pay-panel .ummah-sdk-card .adyen-checkout__input { background: #fff; }
.pay-panel .ummah-sdk-card .adyen-checkout__input { --adyen-sdk-color-label-primary: #000; color: #000; padding-inline: 14px; }
.pay-panel .ummah-sdk-card .adyen-checkout__input::placeholder { color: rgb(0 0 0 / .55); }
.pay-panel .ummah-sdk-card .adyen-checkout__label--focused .adyen-checkout__label__text { color: var(--gold); }
.pay-panel .ummah-sdk-wallet--googlepay button { border-radius: 24px !important; }
.pay-panel .ummah-sdk-button { background: var(--gold); box-shadow: none; color: var(--on-gold); transition: background-color .2s, color .2s; }
.pay-panel .ummah-sdk-button:hover:not(:disabled) { background: var(--gold-hover); filter: none; }
.pay-panel .ummah-sdk-button:disabled { background: var(--surface-2); color: var(--faint); opacity: 1; }
.pay-panel .ummah-sdk-button.is-processing { background: var(--gold); color: var(--on-gold); }
.pay-panel .ummah-sdk-button__spinner { border-color: rgb(45 45 45 / .25); border-top-color: var(--on-gold); }
.pay-panel .ummah-sdk-powered__logo { color: var(--text); }
.pay-panel .ummah-sdk-skeleton__block { background: linear-gradient(100deg, #242424 30%, #303030, #242424 70%); background-size: 300% 100%; }

.result:focus { outline: none; }
.result h1 { color: var(--gold); }
.result p { color: var(--muted); margin-bottom: 14px; }
.result .result__ref { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--text); font-size: 15px; padding: 12px 14px; }
.result__ref strong { font-weight: 600; word-break: break-all; }
.result .btn { font-size: 16px; margin-top: 8px; }

.review { background: var(--surface); border: 1px solid var(--gold-line); border-radius: 24px; padding: 28px 32px; position: sticky; top: 56px; }
.review h2 { font: italic 400 30px/1.2 var(--font-head); margin-bottom: 16px; }
.review__row { color: var(--muted); display: flex; gap: 16px; justify-content: space-between; }
.review__row:last-of-type { color: var(--text); font-weight: 600; }
.review__row span:last-child { flex: none; }
.review hr { margin: 12px 0; }
.review__note { color: var(--faint); font-size: 13px; line-height: 20px; margin-top: 16px; }

/* Shown at 110% on desktop. Remove to show it at 100%. */
@media (min-width: 1024px) {
  body { zoom: 1.1; }
}

@media (max-width: 1023px) {
  /* Image first, then the title and buttons in one panel. */
  .page { display: flex; flex-direction: column; padding: 0; }
  .hero { border: 0; border-radius: 0; display: contents; }
  .hero__media { aspect-ratio: auto; height: 277px; order: 1; }
  .head { align-items: flex-start; background: var(--surface); order: 2; padding: 18px 32px 20px; }
  .head h1 { font-size: 30px; line-height: 1.2; margin: 0; text-align: left; }
  .org { margin-bottom: 16px; order: -1; }
  .play { flex-direction: row; gap: 4px; left: 16px; bottom: 16px; top: auto; transform: none; }
  .play svg { height: 24px; opacity: 1; width: 24px; }
  .play__more { display: none; }
  .hero__panel { border-bottom: 1px solid var(--gold-line); gap: 24px; order: 3; padding: 0 32px 32px; }
  .hero__stats { text-align: left; }
  .hero__actions .btn--green { min-height: 60px; }
  .hero__amount { font-size: 34px; line-height: 1.1; margin-bottom: 6px; }
  .cols { gap: 8px; grid-template-columns: minmax(0, 1fr); order: 4; padding: 28px 32px 32px; }
  .buybar { background: var(--surface); border-top: 1px solid var(--gold-line); bottom: 0; display: block; padding: 16px 24px; position: sticky; z-index: 5; }
  .co { padding: 28px 24px 48px; }
  .co__grid { gap: 32px; grid-template-columns: minmax(0, 1fr); }
  .review { position: static; }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .page { padding-inline: 24px; }
  .hero__media { border-radius: 24px 24px 0 0; overflow: hidden; }
}

@media (max-width: 640px) {
  .top { padding: 12px 16px; }
  .top__logo img { height: 40px; }
  .pill { font-size: 14px; padding: 7px 16px; }
  .field-row { gap: 0; grid-template-columns: minmax(0, 1fr); }
  .field-short { max-width: none; }
  .pay-panel { border-radius: 20px; padding: 20px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .bundle, .pill { transition: none; }
}
