:root {
  color-scheme: light;
  --cream: #fff7e9;
  --cream-deep: #efd8ae;
  --muted: #705831;
  --green: #20c663;
  --green-dark: #0f793b;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--cream-deep); }
body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: #221c14;
  font-family: "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 3%, rgba(255, 222, 125, .82) 0 11rem, transparent 18rem),
    radial-gradient(circle at 95% 18%, rgba(68, 111, 44, .18) 0 9rem, transparent 16rem),
    linear-gradient(180deg, #fffaf0 0%, var(--cream) 48%, var(--cream-deep) 100%);
}

.cta-page {
  width: min(100%, 660px);
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  padding: max(18px, env(safe-area-inset-top)) 15px max(18px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.whatsapp-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 86px;
  padding: 17px 22px 19px;
  overflow: hidden;
  border-radius: 999px;
  color: white;
  text-decoration: none;
  font: 800 clamp(1.24rem, 5.2vw, 2.25rem)/1.3 "Noto Kufi Arabic", "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
  letter-spacing: -.04em;
  text-align: center;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, .36), transparent 23%),
    linear-gradient(135deg, #22d86b 0%, var(--green) 38%, var(--green-dark) 100%);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.whatsapp-cta::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: inherit;
  pointer-events: none;
}
.whatsapp-cta::after {
  content: "";
  position: absolute;
  inset-block: -38%;
  inset-inline-start: -18%;
  width: 34%;
  background: rgba(255, 255, 255, .18);
  transform: rotate(18deg);
  pointer-events: none;
}
.whatsapp-cta:active { transform: translateY(2px); }
.whatsapp-cta:focus-visible { outline: 4px solid #98620a; outline-offset: 5px; }
.whatsapp-cta--disabled { background: #787d76; }
.whatsapp-mark { display: grid; place-items: center; flex: 0 0 auto; width: clamp(29px, 5vw, 42px); }
.whatsapp-mark svg { display: block; width: 100%; fill: currentColor; }
.helper-copy {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: clamp(.86rem, 2.8vw, 1.2rem);
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  text-wrap: balance;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* The settings page is separate; no settings UI appears on the public landing page. */
.settings-page {
  width: min(100% - 32px, 440px);
  min-height: 100svh;
  margin-inline: auto;
  display: grid;
  place-items: center;
  padding-block: 30px;
}
.settings-card {
  width: 100%;
  padding: 28px;
  border: 1px solid #e7d0ab;
  border-radius: 22px;
  background: #fffaf2;
  box-shadow: 0 18px 48px rgba(90, 58, 12, .14);
}
.settings-card h1 { margin: 0 0 8px; font-size: 1.5rem; }
.settings-card p { line-height: 1.7; }
.settings-card label { display: block; margin: 18px 0 6px; font-weight: 700; }
.settings-card input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #b9a889;
  border-radius: 9px;
  background: white;
  color: #221c14;
  font: inherit;
  direction: ltr;
  text-align: left;
}
.settings-card input:focus-visible { outline: 3px solid #20c663; outline-offset: 2px; }
.settings-card button {
  width: 100%;
  min-height: 48px;
  margin-top: 24px;
  border: 0;
  border-radius: 9px;
  background: #117e42;
  color: white;
  font: 700 1rem "IBM Plex Sans Arabic", Tahoma, sans-serif;
  cursor: pointer;
}
.settings-card button:disabled { opacity: .6; cursor: wait; }
.settings-card button:focus-visible { outline: 3px solid #98620a; outline-offset: 3px; }
.settings-card a { color: #126934; }
.settings-status { min-height: 1.6em; font-weight: 700; }
.settings-status[data-error] { color: #a52b1e; }
@media (max-width: 420px) {
  .whatsapp-cta { min-height: 72px; padding-inline: 15px; }
  .settings-card { padding: 22px; }
}
