/* Awwab — the home page (index.html and its translations). Loaded after styles.css.
   "A day of five prayers": scrolling walks one day. The sky behind the page moves
   from Fajr to Dhuhr, Asr and Maghrib to Isha over the desert of the Hijra
   Journey: stars, clouds, the sun's rays, light in the air at Asr, birds at
   Maghrib, lanterns rising at Isha (home.js draws them on one canvas). One phone
   stays beside the words and shows the part of the app each prayer brings. The
   page ends at dawn again: the one who always returns. The values below are
   Isha, the site's own night, so the page reads before the script runs.
   Logical properties throughout, so ar/ur mirror on their own. */

.home {
  --sky-1: #0a2017; --sky-2: #06170f; --sky-3: #0b2a1c; --glow: #e2c477;
  --dune-0: #10301f; --dune-1: #0d281c; --dune-2: #071a11;
  --ink: #f3efe6; --ink-soft: #c9d3cb; --ink-faint: #9fb0a3; --acc: #e2c477; --sun: #fff6dc;
  --scrim: rgba(4, 14, 9, .5); --card: rgba(6, 23, 15, .82); --lattice: 1;
  position: relative; overflow-x: clip; color: var(--ink);
}
.home > section { position: relative; }
.home .wrap { position: relative; z-index: 1; }
.home h1, .home h2 { text-wrap: balance; }
.home .kicker { letter-spacing: .18em; color: var(--acc); }
.home .gild, .home .gild-anim, .home .divine { color: var(--acc); }
.home .btn-ghost { color: var(--ink); border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); background: color-mix(in srgb, var(--ink) 5%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.home .btn-ghost:hover { border-color: var(--acc); }
.home .btn-primary { background: linear-gradient(180deg, #f0d898, #d9b660); color: #20170a; box-shadow: 0 12px 30px -12px rgba(226,196,119,.75), inset 0 1px 0 rgba(255,255,255,.45); }

/* ---------- the sky (fixed behind the page) ---------- */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background: linear-gradient(to bottom, var(--sky-1), var(--sky-2) 55%, var(--sky-3)); }
.sky-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sky .lattice { position: absolute; inset: 0; opacity: calc(var(--lattice) * .9);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'><g fill='none' stroke='%23e2c477' stroke-opacity='0.045' stroke-width='1'><polygon points='48.0,18.0 56.8,26.8 69.2,26.8 69.2,39.2 78.0,48.0 69.2,56.8 69.2,69.2 56.8,69.2 48.0,78.0 39.2,69.2 26.8,69.2 26.8,56.8 18.0,48.0 26.8,39.2 26.8,26.8 39.2,26.8'/><path d='M48 0v18M48 78v18M0 48h18M78 48h18M69.2 26.8 96 0M26.8 26.8 0 0M69.2 69.2 96 96M26.8 69.2 0 96'/></g></svg>"); }
.sky .dunes { position: absolute; left: -10%; width: 120%; bottom: -2vh; height: 30vh; min-height: 170px; }
.sky .dunes path { will-change: transform; }
.sky .dunes .d0 { fill: var(--dune-0); }
.sky .dunes .d1 { fill: var(--dune-1); }
.sky .dunes .d2 { fill: var(--dune-2); }

/* ---------- the phone ---------- */
.phone {
  --pw: 280px;
  position: relative; width: var(--pw); aspect-ratio: 1206 / 2622; flex: none;
  border-radius: calc(var(--pw) * .16); padding: calc(var(--pw) * .032);
  background: linear-gradient(155deg, #3b5a4a, #0d2219 45%, #1a3a2c 80%, #2c4a3b);
  box-shadow: 0 60px 100px -45px rgba(0,0,0,.65), 0 0 0 1px rgba(226,196,119,.3), inset 0 0 0 1px rgba(255,255,255,.1), inset 0 2px 6px rgba(255,255,255,.12);
}
.phone .scr-wrap { position: absolute; inset: calc(var(--pw) * .032); border-radius: calc(var(--pw) * .13); overflow: hidden; background: #f6f4ee; }
.phone .scr { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.phone .scr-wrap::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(118deg, rgba(255,255,255,.16), transparent 30%, transparent 68%, rgba(255,255,255,.06)); }

/* ---------- the day: five chapters beside one phone ---------- */
.home .day { padding: 0; }
.day-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 72px; }
.ch { grid-column: 1; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-block: 90px; }
.ch:nth-of-type(1) { grid-row: 1; min-height: calc(100svh - 72px); padding-block: 30px 110px; }
.ch:nth-of-type(2) { grid-row: 2; } .ch:nth-of-type(3) { grid-row: 3; } .ch:nth-of-type(4) { grid-row: 4; } .ch:nth-of-type(5) { grid-row: 5; }
.ch-in { position: relative; max-width: 600px; min-width: 0; isolation: isolate; }
/* a soft scrim behind the words, light on day skies and dark at night, so they always read */
.ch-in::before { content: ""; position: absolute; inset: -90px -120px; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, var(--scrim), transparent); }
.day-phone { --pw: 296px; grid-column: 2; grid-row: 1 / span 5; align-self: start; position: sticky; top: calc(50vh - var(--pw) * 1.087 + 36px); padding-block: 40px; }
.day-phone .phone { --pw: inherit; transform: perspective(1400px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) translateY(var(--fy, 0px)); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
/* the light the phone stands in, and its shadow */
.day-phone::before { content: ""; position: absolute; left: 50%; top: 50%; width: 190%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) 34%, transparent), transparent 70%); pointer-events: none; z-index: -1; }
.day-phone::after { content: ""; position: absolute; left: 50%; bottom: 8px; width: 70%; height: 26px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.35), transparent); filter: blur(4px); z-index: -1; }
.day-phone .scr { opacity: 0; transform: translateY(2.5%) scale(1.02); transition: opacity .7s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.day-phone .scr.on { opacity: 1; transform: none; }

/* the words of each prayer */
.when { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 7px 14px 7px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--acc); background: color-mix(in srgb, var(--acc) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 30%, transparent); }
[dir="rtl"] .when { padding: 7px 10px 7px 14px; letter-spacing: 0; }
.when i { width: 16px; height: 16px; border-radius: 50%; flex: none; background: radial-gradient(circle, var(--acc) 0 40%, color-mix(in srgb, var(--acc) 30%, transparent) 44%, transparent 72%); }
.when.isha i { background: none; box-shadow: inset -5px 2px 0 0 var(--acc); }
.ch h1 { font-family: var(--serif); font-weight: 340; font-size: clamp(46px, 6.6vw, 94px); line-height: .98; letter-spacing: -.025em; margin: 0 0 26px; font-variation-settings: "opsz" 144; }
.ch h2 { font-family: var(--serif); font-weight: 340; font-size: clamp(38px, 4.9vw, 68px); line-height: 1.02; letter-spacing: -.02em; margin: 0 0 22px; font-variation-settings: "opsz" 144; }
.ch .say { color: var(--ink-soft); font-size: clamp(18px, 1.45vw, 21px); line-height: 1.6; margin: 0 0 18px; max-width: 32em; }
.ch .lede { max-width: 34em; }
.ch .verse { margin: 0 0 26px; display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.ch .verse .ar { font-family: "Amiri Quran", "Amiri", serif; font-size: 32px; line-height: 1.9; color: var(--acc); text-shadow: 0 0 26px color-mix(in srgb, var(--acc) 45%, transparent); }
.ch .verse .gloss { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--ink-soft); }
.h-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; --badge-h: 50px; margin-top: 30px; }
.h-cta .btn { min-height: 50px; padding-inline: 22px; }
.ch .hero-note { margin-top: 20px; font-size: 13.5px; color: var(--ink-faint); }
.ch .fine { font-size: 14px; color: var(--ink-faint); margin: 0; }
.ch .links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* the first light: the hero's words rise in */
.ch:nth-of-type(1) .ch-in > * { animation: rise 1.1s cubic-bezier(.2,.7,.2,1) both; }
.ch:nth-of-type(1) .ch-in > :nth-child(2) { animation-delay: .12s; } .ch:nth-of-type(1) .ch-in > :nth-child(3) { animation-delay: .24s; }
.ch:nth-of-type(1) .ch-in > :nth-child(4) { animation-delay: .4s; } .ch:nth-of-type(1) .ch-in > :nth-child(5) { animation-delay: .52s; } .ch:nth-of-type(1) .ch-in > :nth-child(6) { animation-delay: .62s; }
.day-phone { animation: rise-phone 1.4s .25s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes rise-phone { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }
/* the other prayers' words come in as their sky arrives */
html.js .ch:not(:nth-of-type(1)) .ch-in > * { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
html.js .ch.lit .ch-in > * { opacity: 1; transform: none; }
.ch.lit .ch-in > :nth-child(2) { transition-delay: .08s; } .ch.lit .ch-in > :nth-child(3) { transition-delay: .16s; } .ch.lit .ch-in > :nth-child(4) { transition-delay: .24s; }

/* the focus band, the notification, the finger, the check */
.d-band { position: absolute; left: 4%; right: 4%; border-radius: 14px; box-shadow: 0 0 0 2px rgba(200,160,70,.95), 0 0 0 999px rgba(6,23,15,.22), 0 0 26px rgba(226,196,119,.55); opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.d-band.on { opacity: 1; }
.d-note { position: absolute; left: 4%; right: 4%; top: 5.5%; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 9px; padding: 9px 12px; border-radius: 16px; background: rgba(250,248,242,.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 30px -10px rgba(0,0,0,.35); color: #10261c; opacity: 0; transform: translateY(-140%); pointer-events: none; }
.d-note img { grid-row: span 2; width: 26px; height: 26px; border-radius: 7px; }
.d-note b { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: #5b6b61; font-weight: 600; }
.d-note span { font-family: var(--serif); font-size: 15px; line-height: 1.2; }
.d-finger { position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.95) 0 38%, rgba(255,255,255,.55) 40%, rgba(255,255,255,0) 70%); box-shadow: 0 4px 14px rgba(0,0,0,.25); opacity: 0; pointer-events: none; }
.d-finger.tap::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(226,196,119,.95); animation: d-ring .7s ease-out forwards; }
@keyframes d-ring { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.d-check { position: absolute; width: 8.5%; aspect-ratio: 1; margin: -4.25% 0 0 -4.25%; border-radius: 50%; background: #1d6b45; box-shadow: 0 0 0 3px rgba(226,196,119,.9), 0 0 18px rgba(226,196,119,.8); display: grid; place-items: center; opacity: 0; transform: scale(.3); pointer-events: none; }
.d-check svg { width: 62%; height: 62%; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- after the day: the night ---------- */
.home > section:not(.day):not(.h-close) { padding-block: 96px; }
.home .section-head h2 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.06; }
.home .section-head p { font-size: 18px; color: var(--ink-soft); }
.h-stats .stat { background: transparent; border: 0; box-shadow: none; }
.h-stats .stat-num { font-family: var(--serif); font-weight: 340; font-size: clamp(44px, 5vw, 68px); font-variation-settings: "opsz" 144; }
.home .band { background: linear-gradient(160deg, rgba(22,58,42,.78), rgba(8,30,20,.88)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 40px 80px -50px rgba(0,0,0,.9), inset 0 0 0 1px rgba(226,196,119,.18); }
.f-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.f-card { position: relative; display: flex; flex-direction: column; border-radius: 26px; background: linear-gradient(180deg, rgba(20,48,35,.7), rgba(8,26,18,.75)); border: 1px solid rgba(255,255,255,.07); overflow: hidden; transition: border-color .4s, transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s; }
.f-card:hover { border-color: rgba(226,196,119,.35); transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.f-shot { position: relative; height: 250px; overflow: hidden; display: flex; justify-content: center; padding-top: 26px; background: radial-gradient(120% 90% at 50% 0%, rgba(226,196,119,.2), transparent 65%); }
.f-shot .phone { --pw: 210px; box-shadow: 0 30px 50px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(226,196,119,.24); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.f-card:hover .f-shot .phone { transform: translateY(-10px); }
.f-shot::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 100px; background: linear-gradient(to bottom, transparent, #0b2117); pointer-events: none; }
.f-card .f-txt { padding: 4px 24px 26px; }
.f-card h3 { font-family: var(--serif); font-weight: 400; font-size: 23px; margin: 0 0 8px; }
.f-card p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); }
.steps-sec .step { background: linear-gradient(180deg, rgba(20,48,35,.7), rgba(8,26,18,.75)); }
.faq-grid { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.7fr); gap: 56px; align-items: start; }
.faq-grid .section-head { text-align: start; margin: 0; position: sticky; top: 110px; }
.faq-list { display: grid; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 22px 2px; font-family: var(--serif); font-size: 21px; color: var(--ink); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; font-family: var(--sans); font-size: 22px; line-height: 1; color: var(--acc); transition: transform .3s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: -6px 0 22px; color: var(--ink-soft); font-size: 16.5px; max-width: 62ch; }

/* ---------- the close: dawn again ---------- */
.h-close { min-height: 100vh; display: grid; align-content: center; padding-block: 110px 34vh; text-align: center; }
.h-close .ar { font-family: "Amiri Quran", "Amiri", serif; font-size: clamp(36px, 5vw, 56px); line-height: 2; color: var(--acc); margin: 0; text-shadow: 0 0 30px color-mix(in srgb, var(--acc) 50%, transparent); }
.h-close h2 { font-family: var(--serif); font-weight: 340; font-size: clamp(44px, 6vw, 84px); line-height: 1; margin: 6px 0 18px; font-variation-settings: "opsz" 144; }
.h-close p { color: var(--ink-soft); font-size: 19px; max-width: 560px; margin: 0 auto 30px; }
.h-close .cta-row { justify-content: center; }
.home ~ .footer { position: relative; background: var(--night); }

.m-bar { display: none; }

/* ---------- tablet ---------- */
@media (max-width: 1020px) {
  .day-grid { column-gap: 36px; }
  .day-phone { --pw: 240px; }
  .ch-in::before { inset: -60px -60px; }
  .f-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-grid { grid-template-columns: 1fr; gap: 18px; }
  .faq-grid .section-head { position: static; }
}

/* ---------- phone: the phone stays at the top, each prayer's card rises over it ---------- */
@media (max-width: 720px) {
  .day-grid { grid-template-columns: minmax(0, 1fr); --pw-m: min(42vw, 176px); }
  .ch { min-height: 0; padding-block: 34px 60px; align-items: flex-start; }
  .ch:nth-of-type(1) { min-height: 0; padding-block: 22px 40px; }
  .ch:nth-of-type(n+2) { min-height: 112svh; padding-top: calc(var(--pw-m) * 2.174 + 50px); }
  .day-phone { --pw: var(--pw-m); grid-column: 1; grid-row: 2 / span 4; justify-self: center; top: 84px; padding-block: 0; z-index: 0; animation: none; }
  .ch-in { z-index: 1; }
  .ch-in::before { display: none; }
  .ch:nth-of-type(n+2) .ch-in { padding: 24px 22px 8px; border-radius: 26px; background: var(--card); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); box-shadow: 0 24px 60px -30px rgba(0,0,0,.6); border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
  .ch h1 { font-size: clamp(42px, 11.5vw, 54px); }
  .ch h2 { font-size: clamp(32px, 9vw, 42px); }
  .ch .say { font-size: 17.5px; }
  .ch .verse .ar { font-size: 26px; }
  .h-cta { --badge-h: 46px; }
  .home > section:not(.day):not(.h-close) { padding-block: 64px; }
  .f-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .f-card { flex-direction: row; align-items: stretch; }
  .f-shot { flex: 0 0 112px; height: auto; min-height: 150px; padding: 14px 0 0; }
  .f-shot .phone { --pw: 92px; }
  .f-shot::after { height: 50px; }
  .f-card .f-txt { padding: 16px 16px 16px 4px; }
  .f-card h3 { font-size: 19px; }
  .f-card p { font-size: 14px; }
  .faq-list summary { font-size: 18px; }
  .h-close { min-height: 86vh; padding-block: 80px 30vh; }
  .m-bar { display: flex; position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to top, rgba(6,23,15,.92) 55%, rgba(6,23,15,0)); transform: translateY(110%); transition: transform .35s ease; }
  .m-bar.on { transform: none; }
  .m-bar .btn { flex: 1; justify-content: center; min-height: 48px; }
}

/* ---------- platforms: each card holds its own phone and the official badge ---------- */
.plat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.plat-card { position: relative; display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 26px; align-items: start; padding: 30px 30px 30px 0; border-radius: 30px; overflow: hidden;
  background: linear-gradient(160deg, rgba(24,60,44,.82), rgba(8,28,19,.9)); box-shadow: 0 40px 80px -50px rgba(0,0,0,.9), inset 0 0 0 1px rgba(226,196,119,.16); }
[dir="rtl"] .plat-card { padding: 30px 0 30px 30px; }
.plat-shot { position: relative; height: 100%; min-height: 330px; }
.plat-shot .phone { --pw: 190px; position: absolute; top: 4px; inset-inline-start: -26px; transform: rotate(-5deg); box-shadow: 0 30px 60px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(226,196,119,.25); }
[dir="rtl"] .plat-shot .phone { transform: rotate(5deg); }
.plat-body { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.plat-body .soon { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: linear-gradient(180deg, #f0d898, #d9b660); color: #20170a; }
.plat-body h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; margin: 14px 0 8px; }
.plat-body .pdesc { color: var(--ink-soft); font-size: 15.5px; margin: 0 0 14px; }
.plat-body ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.plat-body li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
.plat-body li .i { width: 18px; height: 18px; fill: none; stroke: var(--acc); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.plat-body .store-badge { --badge-h: 52px; margin-top: auto; }
.plat-sec .get-share { text-align: center; margin-top: 26px; color: var(--ink-faint); }

/* ---------- Heal: the real screen ---------- */
.heal-shot { display: grid; place-items: center; position: relative; }
.heal-shot::before { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(closest-side, rgba(226,196,119,.18), transparent 70%); }
.heal-shot .phone { --pw: 250px; transform: rotate(3deg); }
[dir="rtl"] .heal-shot .phone { transform: rotate(-3deg); }
.heal-sec .copy h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.8vw, 50px); line-height: 1.08; }

/* ---------- languages: the names in their own scripts ---------- */
.lang-cloud { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 10px 26px; max-width: 900px; margin: 10px auto 0; }
.lang-cloud .pill-d { background: none; border: 0; box-shadow: none; padding: 0; font-family: var(--serif); font-size: clamp(22px, 2.6vw, 34px); color: var(--ink); opacity: .9; transition: color .3s, opacity .3s; }
.lang-cloud .pill-d:nth-child(3n+2) { color: var(--acc); }
.lang-cloud .pill-d:hover { opacity: 1; color: var(--gold-bright); }
.lang-cloud .pill-d[lang="ar"], .lang-cloud .pill-d[lang="ur"] { font-family: "Amiri Quran", "Amiri", serif; font-size: clamp(26px, 3vw, 40px); }
.lang-sec .section-head { text-align: center; margin-inline: auto; }

/* ---------- guides as cards ---------- */
.g-grid { list-style: none; padding: 0; margin: 0; display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; columns: auto !important; }
.g-grid li { margin: 0; border: 0 !important; padding: 0 !important; break-inside: avoid; }
.g-grid a.g-card { border-bottom: 0; font-weight: 400; }
.g-card { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 20px 22px; border-radius: 20px; text-decoration: none; color: var(--ink);
  background: linear-gradient(180deg, rgba(20,48,35,.72), rgba(8,26,18,.78)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.g-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(226,196,119,.4), 0 24px 50px -30px rgba(0,0,0,.8); }
.g-card b { font-family: var(--serif); font-weight: 400; font-size: 19px; line-height: 1.3; }
.g-card::after { content: "→"; margin-top: auto; color: var(--acc); font-size: 18px; }
[dir="rtl"] .g-card::after { content: "←"; }
.g-feat { background: linear-gradient(160deg, rgba(60,52,24,.55), rgba(16,34,24,.85)); box-shadow: inset 0 0 0 1px rgba(226,196,119,.3); }
.g-feat b { font-size: 21px; }
.g-grid li:nth-child(1), .g-grid li:nth-child(2) { grid-column: span 1; }

@media (max-width: 1020px) {
  .plat-grid { grid-template-columns: minmax(0, 1fr); }
  .g-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .plat-card { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 22px 20px 22px 0; }
  [dir="rtl"] .plat-card { padding: 22px 0 22px 20px; }
  .plat-shot { min-height: 240px; }
  .plat-shot .phone { --pw: 130px; inset-inline-start: -22px; }
  .plat-body h3 { font-size: 24px; }
  .plat-body .store-badge { --badge-h: 46px; }
  .heal-shot .phone { --pw: 200px; }
  .g-grid { grid-template-columns: minmax(0, 1fr); }
  .lang-cloud { gap: 8px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .day-phone, .ch .ch-in > * { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
  .day-phone .scr { transition: opacity .2s; transform: none; }
}

/* the guide cards win over the old list styling */
.home .g-grid a.g-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 22px; border-bottom: 0; font-weight: 400; color: var(--ink); }
.home .g-grid a.g-card:hover { color: var(--ink); }
.home .g-grid a.g-card .post-tag { margin: 0; }
.plat-card { align-items: stretch; }
.plat-body { padding-bottom: 4px; }
