:root {
  color-scheme: light;
  --cream: #f8f5eb; --ink: #14382e; --green: #174838; --text: #41574b;
  --line: #d9ded0; --paper: #fffdf6; --sage: #e5ecdc;
  font: 100%/1.55 system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--cream); color: var(--ink); }
.shell { width: min(100% - 2rem, 73rem); margin-inline: auto; }
a { color: inherit; text-underline-offset: .2em; }
:focus-visible { outline: 3px solid #90653f; outline-offset: 4px; }
.skip { position: absolute; left: 1rem; top: -6rem; z-index: 1; padding: .8rem; background: white; }
.skip:focus { top: .5rem; }
.preview { background: #e0ead9; text-align: center; padding: .4rem 1rem; font-size: .875rem; }
.top, .footer { display: flex; gap: .8rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.top { padding-block: 1.3rem; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: .65rem; align-items: center; line-height: 1.05; letter-spacing: .1em; font-weight: 800; text-decoration: none; }
.help-link { min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; }
.hero { display: grid; grid-template-columns: 1fr; gap: clamp(1.2rem, 3.5vw, 2.25rem); padding-block: 1rem clamp(2rem, 6vw, 4rem); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Georgia, serif; font-weight: 500; line-height: 1.08; }
h1 { font-size: clamp(2.35rem, 5.4vw, 5rem); margin-bottom: 1.3rem; letter-spacing: -.045em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); margin-bottom: .8rem; }
h3 { line-height: 1.25; margin-bottom: .4rem; }
p, .muted { color: var(--text); }
.lead { font-size: clamp(1.05rem, 2vw, 1.23rem); max-width: 34rem; }
.eyebrow { color: var(--green); font-weight: 750; font-size: .875rem; letter-spacing: .045em; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; }
button, .button { font: inherit; font-weight: 700; display: inline-flex; justify-content: center; align-items: center; text-decoration: none; min-height: 3rem; padding: .65rem 1.05rem; border-radius: .65rem; border: 1px solid var(--green); background: var(--green); color: white; cursor: pointer; }
button:hover:not(:disabled), .button:hover { filter: brightness(.88); }
button:disabled { cursor: default; background: #dbe1d6; color: #445547; border-color: #cbd4c7; }
.secondary { background: transparent; color: var(--green); }
#whatsapp-note { font-size: .875rem; margin: .65rem 0 0; }
.consult { padding-block: 1.5rem 2.1rem; border-top: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .85rem; }
.cards article { background: var(--paper); border: 1px solid var(--line); padding: 1.3rem; border-radius: 1rem; }
.cards article span { display: inline-grid; place-items: center; background: var(--sage); width: 2.2rem; height: 2.2rem; border-radius: 50%; margin-bottom: .7rem; font-weight: 800; }
.cards p, .emergency p, .consult-note p { margin-bottom: 0; }
.consult-note { margin-top: 2rem; max-width: 44rem; }
.emergency { margin-block: 1rem 2rem; padding: 1.2rem 1.4rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .85rem; background: #f0e5d4; border-radius: 1rem; }
.emergency h2 { font: 750 1.15rem/1.3 system-ui; margin-bottom: .25rem; }
.emergency-call { background: #674629; border-color: #674629; }
.footer { padding-block: 1rem 1.75rem; color: var(--text); border-top: 1px solid var(--line); font-size: .875rem; }
.panel { margin: clamp(1.4rem, 5vw, 4rem) auto 2rem; max-width: 49rem; background: var(--paper); border: 1px solid var(--line); border-radius: 1rem; padding: clamp(1rem, 4vw, 2.5rem); }
.panel h1 { font-size: clamp(2rem, 5vw, 3.35rem); }
.panel form { display: grid; gap: .8rem; }
input:not([type=radio]):not([type=checkbox]) { font: inherit; min-height: 3rem; padding: .5rem .75rem; width: 100%; border: 1px solid #6d8372; border-radius: .55rem; color: var(--ink); background: white; }
label { font-weight: 650; }
fieldset { border: 0; margin: 0; padding: 0; min-inline-size: 0; }
legend { font-size: 1.32rem; font-weight: 650; line-height: 1.35; margin: 0 0 .9rem; padding: 0; }
.choice { display: flex; align-items: center; gap: .7rem; background: #fff; border: 1px solid #99a695; border-radius: .6rem; padding: .7rem; min-height: 3.2rem; margin-bottom: .55rem; cursor: pointer; }
.choice:has(:checked) { background: var(--sage); border-color: var(--green); }
input:is([type=radio],[type=checkbox]) { flex: 0 0 auto; width: 1.15rem; height: 1.15rem; accent-color: var(--green); }
progress { width: 100%; height: .55rem; accent-color: var(--green); display: block; margin-bottom: 1rem; }
.error { color: #8a3124; font-weight: 650; margin-bottom: 0; }
.review { padding-left: 1.55rem; }
.review li, .invite { padding: .85rem 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.review p { margin-bottom: .4rem; }
.clinic-list { list-style: none; padding: 0; }
.invite { display: grid; gap: .35rem; }
.scores { display: flex; gap: 1rem; flex-wrap: wrap; padding: .8rem; background: var(--sage); border-radius: .5rem; }
.scores dd { margin: 0; font-weight: 750; font-size: 1.4rem; }
.credit { border-top: 1px solid var(--line); margin: 1.25rem 0 0; padding-top: .8rem; font-size: .875rem; }
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 420px) { .intro .actions > * { width: 100%; } }


.result-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: .75rem;
  margin: 1.4rem 0;
}
.result-card {
  border: 1px solid var(--line);
  border-radius: .85rem;
  padding: 1rem;
}
.result-card.normal { background: #e7efe2; color: #194732; }
.result-card.sederhana { background: #f7ecd2; color: #68460f; }
.result-card.teruk { background: #f5e4de; color: #792e23; }
.result-card dt { font-weight: 650; }
.result-card dd { margin: .3rem 0 0; }
.result-card strong { display: block; font-size: 1.4rem; }
.result-card span { display: block; }

.brand img { display: block; width: min(12.25rem, 49vw); height: auto; }
.prayer { padding: clamp(1rem, 4vw, 1.5rem); border: 1px solid #c69b41; background: #f5e2a6; border-radius: .9rem; color: #513710; }
.prayer p { color: inherit; }
.prayer p:last-child { margin-bottom: 0; }
.prayer h2 { font-size: clamp(1.35rem, 4vw, 1.8rem); }
.prayer .prayer-arabic { font: 1.6rem/1.9 "Traditional Arabic", "Times New Roman", serif; }

#home > .prayer { margin-top: 1.5rem; }
.panel > .prayer { margin-bottom: 1.25rem; }

#home > .prayer { max-width: 54rem; margin-inline: auto; }
.prayer { padding: clamp(.85rem, 2.5vw, 1.2rem); }
.prayer h2 { margin-bottom: .45rem; }
.prayer h3 { font-size: 1rem; margin-bottom: .15rem; }
.prayer p { margin-bottom: .65rem; }
.prayer .prayer-arabic { font-size: clamp(1.3rem, 2.8vw, 1.6rem); line-height: 1.7; }
.hero-photo { overflow: hidden; border-radius: 1rem; background: var(--sage); }
.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 33rem;
  object-fit: cover;
  object-position: 50% 44%;
}
.start-screening { background: #f0d58c; border-color: #a87b26; color: #3e2b0d; }
@media (prefers-reduced-motion: no-preference) {
  .start-screening { animation: screening-pulse 1.45s ease-out 3; }
  @keyframes screening-pulse {
    0%, 100% { box-shadow: 0 0 0 0 transparent; }
    35% { box-shadow: 0 0 0 .3rem #b2843999; }
    80% { box-shadow: 0 0 0 .6rem transparent; }
  }
}

.hero-photo { position: relative; }
.hero-start {
  position: absolute;
  inset-inline-start: clamp(.85rem, 4vw, 2.5rem);
  inset-block-end: clamp(.85rem, 4vw, 2.5rem);
}

.cards { grid-template-columns: 1fr; }
.topic-with-photo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 2.25rem);
  align-items: center;
}
.topic-with-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: .65rem;
}
@media (max-width: 600px) {
  .topic-with-photo { grid-template-columns: 1fr; }
}

.result-share {
  margin-block: 1.25rem;
  padding: 1rem;
  border-radius: .85rem;
  background: var(--sage);
}
.result-share h2 { font-size: 1.45rem; }

.panel > .hero-photo { margin-bottom: 1rem; }

.clinic-site-link { justify-content: space-between; gap: 1.25rem; }
.clinic-site-link small { display: block; font-size: .875rem; font-weight: 500; }
.clinic-site-link > span:last-child { font-size: 1.35rem; }
@media (max-width: 420px) { .clinic-site-link { width: 100%; } }
