/* tanzil.io — one stylesheet, no framework.
   Colours: the app's default green scheme (FlexScheme.green) on warm paper, with the gold of the
   app icon's illumination for ornament. Tajweed colours are the app's (TajweedRule). */

:root {
  --paper: #faf7ef;
  --paper-2: #f3eee1;
  --card: #fffdf7;
  --ink: #1c2a20;
  --ink-2: #4f5d53;
  --ink-3: #5f685f;
  --line: #e4dccb;
  --green: #2e7d32;
  --green-deep: #1b5e20;
  --green-night: #0f2e14;
  --green-soft: #a5d6a7;
  --green-wash: #e4efdd;
  --gold: #7a5c1c;
  --gold-soft: #e8d7a6;
  --shadow: 0 1px 2px rgb(40 35 20 / 6%), 0 12px 32px -8px rgb(40 35 20 / 18%);
  --shadow-lg: 0 2px 6px rgb(20 30 20 / 8%), 0 30px 60px -20px rgb(20 30 20 / 35%);
  --radius: 22px;
  --wrap: 1180px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Literata', Georgia, 'Times New Roman', serif;
  --arabic: 'Amiri Quran', 'Amiri', 'Scheherazade New', serif;

  --tj-LAFZATULLAH: #4caf50;
  --tj-izhar: #06b0b6;
  --tj-ikhfaa: #b71c1c;
  --tj-idghamWithGhunna: #f06292;
  --tj-iqlab: #2196f3;
  --tj-qalqala: #7b8f0a;
  --tj-idghamWithoutGhunna: #9e9e9e;
  --tj-ghunna: #ff9800;
  --tj-prolonging: #8e64d6;
  --tj-alefTafreeq: #9e9e9e;
  --tj-hamzatulWasli: #9e9e9e;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1310;
    --paper-2: #141a15;
    --card: #1a201b;
    --ink: #e6ece4;
    --ink-2: #aab6ab;
    --ink-3: #7f8b80;
    --line: #2a332b;
    --green: #81c784;
    --green-deep: #a5d6a7;
    --green-night: #0b1f0e;
    --green-soft: #1b5e20;
    --green-wash: #1b2a1d;
    --gold: #d2b263;
    --gold-soft: #4a3f22;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 32px -8px rgb(0 0 0 / 50%);
    --shadow-lg: 0 2px 6px rgb(0 0 0 / 30%), 0 30px 60px -20px rgb(0 0 0 / 70%);

    --tj-LAFZATULLAH: #81c784;
    --tj-izhar: #6ff0f5;
    --tj-ikhfaa: #fa4444;
    --tj-qalqala: #d6f046;
    --tj-prolonging: #bfa5ec;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
main { overflow-x: clip; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.012em; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* An eight-pointed star lattice, the ornament of the app icon, drawn as a tile. */
.hero::before, .download::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23b08a38' stroke-width='1'%3E%3Crect x='28' y='28' width='40' height='40'/%3E%3Crect x='28' y='28' width='40' height='40' transform='rotate(45 48 48)'/%3E%3Ccircle cx='48' cy='48' r='9'/%3E%3Cpath d='M0 48h19.7M76.3 48H96M48 0v19.7M48 76.3V96M0 0l19.7 19.7M96 0 76.3 19.7M0 96l19.7-19.7M96 96 76.3 76.3'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 96px;
  opacity: .16;
  pointer-events: none;
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top-bar { display: flex; align-items: center; gap: 12px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 22px/1 var(--serif); }
.brand img { width: 36px; height: 36px; border-radius: 50%; }
.nav { display: none; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { color: var(--ink); background: var(--green-wash); }
.lang { position: relative; margin-left: auto; }
.lang summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  padding: 8px 10px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink-2);
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { background: var(--green-wash); color: var(--ink); }
.lang .icon { width: 18px; height: 18px; }
.lang .caret { width: 14px; height: 14px; transition: transform .2s; }
.lang[open] .caret { transform: rotate(180deg); }
.lang ul {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 180px; padding: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
.lang li a { display: block; padding: 9px 12px; border-radius: 9px; text-decoration: none; font-size: 15px; }
.lang li a:hover { background: var(--green-wash); }
.lang li a[aria-current] { color: var(--green-deep); font-weight: 600; }
.button {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  padding: 10px 18px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px;
  background: var(--green-deep); color: #fff;
  transition: background .2s, transform .2s;
}
@media (prefers-color-scheme: dark) { .button { color: var(--green-night); } }
.button:hover { background: var(--green); transform: translateY(-1px); }
@media (min-width: 900px) {
  .nav { display: flex; }
  .lang { margin-left: 0; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: 40px 0 56px; }
.hero::before {
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 78% 40%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 80% at 78% 40%, #000 0%, transparent 70%);
}
.hero-grid { position: relative; display: grid; gap: 40px; align-items: center; }
.basmala {
  position: relative;
  font: 400 clamp(28px, 4.6vw, 42px)/1.7 var(--arabic);
  color: var(--ink);
  text-align: center;
  margin-top: 0;
  margin-bottom: clamp(28px, 5vw, 56px);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 10px; border-radius: 999px;
  background: var(--green-wash); color: var(--green-deep);
  font-weight: 600; font-size: 14px; letter-spacing: .01em; white-space: nowrap;
}
.eyebrow .icon { width: 16px; height: 16px; stroke-width: 2.6; }
.hero h1 { font-size: clamp(38px, 6.2vw, 64px); margin: 0 0 18px; }
.lead { font-size: clamp(17px, 2vw, 19.5px); color: var(--ink-2); max-width: 36em; }
.platforms { margin-top: 18px; color: var(--ink-3); font-size: 14.5px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }

.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; align-items: center; }
.badge { border-radius: 10px; transition: transform .2s; }
.badge:hover { transform: translateY(-2px); }
.badge img { height: 48px; width: auto; }
.is-ios .badge-apple, .is-android .badge-google, .is-windows .badge-microsoft { order: -1; }

.phone {
  --w: 270px;
  width: var(--w);
  aspect-ratio: 640 / 1436;
  padding: calc(var(--w) * .032);
  border-radius: calc(var(--w) * .15);
  background: linear-gradient(145deg, #2a2f2b, #0c0f0d 55%, #1d211e);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgb(255 255 255 / 10%);
  position: relative;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: calc(var(--w) * .12); background: #111; }
.phone::after {
  content: ''; position: absolute; top: calc(var(--w) * .062); left: 50%; translate: -50% 0;
  width: calc(var(--w) * .038); aspect-ratio: 1; border-radius: 50%; background: #050605;
}
.widget { height: auto; border-radius: 16px; filter: drop-shadow(0 18px 30px rgb(20 30 20 / 28%)); }

.hero-art { position: relative; height: 520px; display: grid; place-items: center; }
.hero-art .halo {
  position: absolute; width: min(440px, 100%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--green-wash) 0%, color-mix(in srgb, var(--green-wash) 40%, transparent) 55%, transparent 70%);
}
.hero-art .phone.front { --w: 230px; position: absolute; left: 50%; top: 0; translate: -30% 0; }
.hero-art .phone.back { --w: 200px; position: absolute; left: 50%; top: 58px; translate: -88% 0; rotate: -7deg; }

@media (min-width: 1080px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .hero-art { height: 640px; }
  .hero-art .halo { width: 560px; }
  .hero-art .phone.front { --w: 290px; translate: -30% 0; }
  .hero-art .phone.back { --w: 250px; top: 76px; translate: -100% 0; }
}

.stats {
  position: relative; margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.stats li { padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.stats li:nth-child(odd) { border-right: 1px solid var(--line); }
.stats li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.stats strong { font: 600 clamp(26px, 3.4vw, 34px)/1.1 var(--serif); color: var(--green-deep); }
.stats span { color: var(--ink-2); font-size: 14.5px; line-height: 1.4; }
@media (max-width: 559px) {
  .stats { grid-template-columns: 1fr; }
  .stats li { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 14px 20px; border: 0 !important; }
  .stats li + li { border-top: 1px solid var(--line) !important; }
  .stats strong { font-size: 26px; }
}
@media (min-width: 900px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stats li { border: 0 !important; padding: 26px 28px; }
  .stats li + li { border-left: 1px solid var(--line) !important; }
}

/* Section headings */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold); font-weight: 600; font-size: 13.5px; letter-spacing: .12em; text-transform: uppercase;
}
.kicker::before { content: ''; width: 22px; height: 1.5px; background: currentColor; }
h2 { font-size: clamp(30px, 4.4vw, 46px); margin: 12px 0 16px; }
.body { color: var(--ink-2); font-size: 17.5px; max-width: 34em; }

/* Tajweed */
.tajweed { background: var(--paper-2); padding: 80px 0; border-block: 1px solid var(--line); }
.tajweed-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .tajweed-grid { grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; } .tajweed { padding: 110px 0; } }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; }
.legend li { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 15px; }
.tajweed-phone { position: relative; display: grid; place-items: center; margin-top: 44px; }
.tajweed-phone::before {
  content: ''; position: absolute; width: min(380px, 100%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--green-wash), transparent 68%);
}
.tajweed-phone .phone { --w: 240px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.dot, .tj { --c: var(--tj-idghamWithoutGhunna); }
[data-r="LAFZATULLAH"] { --c: var(--tj-LAFZATULLAH); }
[data-r="izhar"] { --c: var(--tj-izhar); }
[data-r="ikhfaa"] { --c: var(--tj-ikhfaa); }
[data-r="idghamWithGhunna"] { --c: var(--tj-idghamWithGhunna); }
[data-r="iqlab"] { --c: var(--tj-iqlab); }
[data-r="qalqala"] { --c: var(--tj-qalqala); }
[data-r="ghunna"] { --c: var(--tj-ghunna); }
[data-r="prolonging"] { --c: var(--tj-prolonging); }

.page {
  position: relative; margin: 0; padding: 28px clamp(18px, 4vw, 44px) 22px;
  background: var(--card); border-radius: 18px; box-shadow: var(--shadow-lg);
  outline: 1px solid var(--gold-soft); outline-offset: -10px;
}
.page::before {
  content: ''; position: absolute; inset: 14px; border: 1px solid var(--gold-soft); border-radius: 10px; pointer-events: none;
}
.page-head { display: flex; flex-direction: column; align-items: center; gap: 2px; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.sura-ar { font: 400 30px/1.6 var(--arabic); color: var(--gold); }
.sura-name { color: var(--ink-3); font-size: 14px; }
.ayas { position: relative; }
.aya { padding: 12px 0 16px; border-bottom: 1px solid var(--line); }
.aya-num { display: block; color: var(--ink-3); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.aya:last-child { border-bottom: 0; }
.ar { font: 400 clamp(25px, 3.4vw, 32px)/2.05 var(--arabic); text-align: right; color: var(--ink); }
.aya .tr { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; margin-top: 2px; }
.tj { color: var(--c); }
.page-foot { margin-top: 10px; text-align: center; color: var(--ink-3); font-size: 13px; }
/* Features */
.features { padding: 40px 0 20px; }
.feature { display: grid; gap: 36px; align-items: center; padding: 56px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.points { margin-top: 22px; display: grid; gap: 10px; }
.points li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-size: 16px; }
.tick { width: 20px; height: 20px; color: var(--green); margin-top: 3px; flex: none; stroke-width: 2.4; }
.feature-media { position: relative; display: grid; place-items: center; min-height: 460px; }
.feature-media::before {
  content: ''; position: absolute; width: min(420px, 90%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--green-wash), transparent 68%);
}
.feature-media .phone.solo { --w: 250px; }
.feature-media.duo .phone { --w: 220px; position: absolute; top: 50%; }
.feature-media.duo .phone.back { left: 50%; translate: -92% -54%; rotate: -5deg; }
.feature-media.duo .phone.front { left: 50%; translate: -12% -46%; }
.feature-media.duo { min-height: 540px; }
.media-prayer { display: flex; flex-direction: column; align-items: center; min-height: 0; }
.media-prayer .phone.solo { position: relative; }
.media-prayer .widget { position: relative; }
.media-prayer .float-large { width: min(340px, 94%); margin-top: -58px; rotate: -1.5deg; }
.media-prayer .float-next { width: min(300px, 84%); margin-top: 14px; rotate: 1deg; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 72px; padding: 80px 0; }
  .feature.flip .feature-copy { order: 2; }
  .feature-media .phone.solo { --w: 280px; }
  .feature-media.duo { min-height: 560px; }
}
@media (min-width: 1200px) {
  .feature-media.duo .phone { --w: 250px; }
  .feature-media.duo { min-height: 600px; }
  .media-prayer {
    display: grid; grid-template-columns: auto 300px; grid-template-rows: 1fr 1fr;
    justify-content: center; align-items: center; row-gap: 20px;
  }
  .media-prayer .phone.solo { grid-row: 1 / span 2; --w: 260px; }
  .media-prayer .float-next { grid-column: 2; grid-row: 1; align-self: end; width: 100%; margin: 0 0 0 -6px; }
  .media-prayer .float-large { grid-column: 2; grid-row: 2; align-self: start; width: 100%; margin: 0 0 0 -6px; }
}

/* Continue + share */
.pair { padding: 40px 0 80px; }
.pair-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .pair-grid { grid-template-columns: 1fr 1fr; } }
.panel {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow);
}
.panel-copy { padding: 36px 34px 0; }
.panel h2 { font-size: clamp(26px, 3.2vw, 34px); margin-top: 0; }
.panel .body { font-size: 16.5px; }
.panel-media { position: relative; flex: 1; min-height: 400px; margin-top: 28px; overflow: hidden; }
.panel-continue .panel-media { background: linear-gradient(var(--card), var(--green-wash)); }
.panel-continue .phone.peek { --w: 270px; position: absolute; left: 50%; top: 20px; translate: -50% 0; }
.share-fan { background: linear-gradient(var(--card), var(--paper-2)); }
.share-card {
  position: absolute; left: 50%; top: 28px; width: 190px; aspect-ratio: 9 / 16;
  padding: 16px 14px; border-radius: 16px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; justify-content: center; gap: 10px; text-align: center;
  background: var(--bg) center / cover;
  color: #231f1a;
}
.share-card.dark { background: linear-gradient(rgb(0 0 0 / 22%), rgb(0 0 0 / 22%)), var(--bg) center / cover; color: #f6f0e1; }
.share-card .ar { font-size: 19px; line-height: 1.9; text-align: center; color: inherit; text-wrap: balance; }
.share-card .tr { font-size: 11.5px; line-height: 1.45; }
.share-card .ref { font-size: 10.5px; opacity: .75; letter-spacing: .04em; }
.share-card:nth-child(1) { translate: -128% 34px; rotate: -8deg; }
.share-card:nth-child(2) { translate: -50% 0; z-index: 2; }
.share-card:nth-child(3) { translate: 28% 34px; rotate: 8deg; }

/* More */
.more { padding: 20px 0 100px; }
.more-title { text-align: center; margin-bottom: 36px; }
.more-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .more-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .more-grid { grid-template-columns: repeat(3, 1fr); } }
.more-item { padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.more-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--green-wash); color: var(--green-deep); }
.more-icon .icon { width: 22px; height: 22px; }
.more-item h3 { font-size: 20px; margin: 16px 0 6px; }
.more-item p { color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }

/* Download */
.download {
  position: relative; overflow: hidden; text-align: center; padding: 96px 0;
  background: radial-gradient(ellipse at 50% 0%, #2c6b32, var(--green-night) 70%);
  color: #f6f0e1;
}
@media (prefers-color-scheme: dark) { .download { background: radial-gradient(ellipse at 50% 0%, #1d4a22, #081409 70%); } }
.download::before { opacity: .22; filter: brightness(1.4); }
.download-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.medallion { width: 112px; height: 112px; border-radius: 50%; box-shadow: 0 0 0 6px rgb(232 215 166 / 18%), 0 20px 60px rgb(0 0 0 / 45%); }
.download h2 { color: #fffaf0; margin-top: 28px; }
.download p { color: #cfdccc; font-size: 18px; }
.download .badges { justify-content: center; }

/* Footer */
.foot { padding: 48px 0 40px; border-top: 1px solid var(--line); font-size: 15px; }
.foot-grid { display: grid; gap: 24px; }
.foot-brand p { color: var(--ink-3); margin-top: 8px; }
.foot-brand .brand { font-size: 20px; }
.foot-langs, .foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot a[aria-current] { color: var(--green-deep); font-weight: 600; }
.copy { color: var(--ink-3); }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr auto; align-items: start; } .foot-langs, .foot-links { flex-direction: column; } }

/* Help pages */
.help { padding: 28px 0 80px; }
.crumbs ol { font-size: 14px; line-height: 1.7; color: var(--ink-3); }
.crumbs li { display: inline; }
.crumbs li + li::before { content: '›'; margin: 0 8px; color: var(--ink-3); }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { text-decoration: underline; }
.help h1 { font-size: clamp(30px, 5vw, 46px); margin: 22px 0 22px; }
.help-title { margin-bottom: 14px; }
.help h2 { font-size: clamp(21px, 2.6vw, 26px); margin: 38px 0 14px; }
.help h3 { font: 600 17.5px/1.4 var(--font); margin: 22px 0 6px; }
.help-article { max-width: 42rem; }
.help-article p, .help-article li { color: var(--ink-2); }
.answer { background: var(--green-wash); border-left: 4px solid var(--green); border-radius: 0 14px 14px 0; padding: 16px 20px; font-size: 18px; color: var(--ink); }
.answer-label { display: block; font: 600 12.5px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--green-deep); margin-bottom: 8px; }
.help strong { color: var(--ink); font-weight: 600; }
.steps { counter-reset: step; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding-left: 46px; min-height: 32px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -1px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--green-deep); color: #fff; font: 600 15px/1 var(--font);
}
@media (prefers-color-scheme: dark) { .steps li::before { color: var(--green-night); } }
.notes { display: grid; gap: 10px; }
.notes li { position: relative; padding-left: 22px; }
.notes li::before { content: ''; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.related { display: flex; flex-wrap: wrap; gap: 10px; }
.related a { display: inline-block; padding: 11px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); text-decoration: none; font-size: 15px; color: var(--ink); }
.related a:hover { background: var(--green-wash); }
.checked { margin-top: 36px; font-size: 14px; color: var(--ink-3); }
.checked time { white-space: nowrap; }
.help-media { display: none; }
@media (min-width: 960px) {
  .help-wrap.has-media { display: grid; grid-template-columns: minmax(0, 42rem) 1fr; gap: 0 64px; grid-template-areas: 'crumbs crumbs' 'article media'; }
  .help-wrap.has-media .crumbs { grid-area: crumbs; }
  .help-wrap.has-media .help-article { grid-area: article; }
  .help-media { display: block; grid-area: media; position: sticky; top: 100px; align-self: start; margin-top: 22px; }
  .help-media .phone { --w: 260px; margin-inline: auto; }
}
.help-groups { display: grid; gap: 8px 48px; margin-top: 8px; }
.help-group ul { display: grid; gap: 10px; }
.help-group a { display: block; padding: 14px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); text-decoration: none; }
.help-group a:hover { border-color: var(--green); background: var(--green-wash); }
.help-group a strong { display: block; font-weight: 600; }
.help-group a span { display: block; margin-top: 2px; font-size: 15px; color: var(--ink-3); }
@media (min-width: 760px) { .help-groups { grid-template-columns: 1fr 1fr; } }

/* Reveal on scroll, only with JS and motion allowed */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Narrow phones */
@media (max-width: 359px) {
  .top .button { display: none; }
}
@media (max-width: 420px) {
  .top .button { padding: 9px 14px; }
  .brand span { font-size: 20px; }
  .hero-art { height: 440px; }
  .hero-art .phone.front { --w: 188px; left: auto; right: 3%; translate: none; }
  .hero-art .phone.back { --w: 164px; left: 4%; translate: none; }
  .feature-media.duo .phone { --w: 168px; }
  .feature-media.duo .phone.back { left: 4%; translate: 0 -54%; }
  .feature-media.duo .phone.front { left: auto; right: 3%; translate: 0 -46%; }
  .feature-media.duo { min-height: 430px; }
  .media-prayer .phone.solo { --w: 220px; }
  .panel-copy { padding: 28px 22px 0; }
  .share-card { width: 160px; }
}
