/* SalahMate — "One day, five prayers"
 * Daybreak Paper tokens from DESIGN.md. The home page scrolls through a day:
 * each chapter takes the app's mood colour for that prayer.
 */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/Fraunces-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #fbf6ee;
  --paper-dim: #f3ecdf;
  --paper-deep: #eae0ce;
  --ink: #1b1a17;
  --ink-2: #26231f;
  --ink-muted: #5b564b;
  --ink-subtle: #9a9386;
  --hairline: #e2d9c7;
  --on-dark: #fbf6ee;
  --on-dark-muted: #c9bfae;

  --terracotta: #c65a3a;
  --terracotta-deep: #a34727;
  --terracotta-soft: #f4d9ce;
  --olive: #6b7a3f;
  --olive-soft: #e1e6ce;
  --saffron: #d89330;
  --saffron-deep: #9a6418;
  --saffron-soft: #f7e3bf;
  --claret: #a8433f;
  --claret-soft: #f2d3d1;
  --teal: #3e7c7b;
  --teal-soft: #cfe3e2;

  --mood-fajr: #e59977;
  --mood-dhuhr: #e0b74f;
  --mood-asr: #d39148;
  --mood-maghrib: #c77b72;
  --mood-isha: #8a7bae;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --radius: 22px;
  --radius-sm: 14px;
  --arch: 999px 999px var(--radius) var(--radius) / 340px 340px var(--radius) var(--radius);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}
ul,
ol {
  padding: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--terracotta-soft);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}


.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.display {
  font-family: var(--font-display);
  font-weight: 560;
  letter-spacing: -0.025em;
  line-height: 1.02;
}

.accent {
  color: var(--terracotta);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0) scale(0.98);
}
.btn--primary {
  background: var(--terracotta);
  color: #fffbf4;
  box-shadow: 0 10px 24px -12px rgba(163, 71, 39, 0.7);
}
.btn--primary:hover {
  background: var(--terracotta-deep);
}
.btn--ghost {
  border-color: var(--hairline);
  background: rgba(251, 246, 238, 0.7);
}
.btn--ghost:hover {
  border-color: var(--ink-subtle);
}
.btn--small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.92rem;
}

.store-badge {
  display: inline-block;
  border-radius: 10px;
  transition: transform 0.2s var(--ease);
}
.store-badge:hover {
  transform: translateY(-2px);
}
.store-badge img {
  width: 172px;
  height: auto;
}

.text-link {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
}

/* ---------- Header with the day timeline ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(251, 246, 238, 0.86);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.4s, color 0.4s;
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
}
.site-head.is-scrolled {
  border-bottom-color: var(--hairline);
}
body[data-mood="night"] .site-head {
  background: rgba(27, 26, 23, 0.82);
  color: var(--on-dark);
}
body[data-mood="night"] .site-head.is-scrolled {
  border-bottom-color: rgba(251, 246, 238, 0.12);
}

.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
.brand span {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.daybar {
  position: relative;
  display: flex;
  justify-content: space-between;
  width: min(440px, 44vw);
  padding-top: 6px;
}
.daybar::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 10px;
  height: 1px;
  background: var(--hairline);
}
body[data-mood="night"] .daybar::before {
  background: rgba(251, 246, 238, 0.18);
}
.daybar__sun {
  position: absolute;
  top: 5px;
  left: 3px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 5px rgba(198, 90, 58, 0.18);
  transform: translateX(var(--sun-x, 0px));
  transition: transform 0.25s linear;
}
.daybar a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  min-width: 16px;
  padding-top: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-subtle);
  transition: color 0.3s;
}
.daybar a::before {
  content: "";
  position: absolute;
  top: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.daybar a.is-active {
  color: var(--terracotta);
}
body[data-mood="night"] .daybar a.is-active {
  color: var(--mood-fajr);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.site-nav a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-muted);
}
.site-nav a:not(.btn):hover {
  color: var(--ink);
}
body[data-mood="night"] .site-nav a:not(.btn) {
  color: var(--on-dark-muted);
}
body[data-mood="night"] .site-nav a:not(.btn):hover {
  color: var(--on-dark);
}

@media (max-width: 860px) {
  /* Keep the prayer names for screen readers; show only the dots. */
  .daybar a span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .daybar {
    width: min(200px, 34vw);
  }
  .site-nav a:not(.btn) {
    display: none;
  }
}
@media (max-width: 420px) {
  .brand span {
    display: none;
  }
}

/* ---------- Phone + arch frames ---------- */

.arch {
  position: relative;
  border-radius: var(--arch);
  overflow: hidden;
  isolation: isolate;
}

.phone {
  position: relative;
  width: 100%;
  aspect-ratio: 1080 / 2400;
  border-radius: 38px;
  padding: 9px;
  background: linear-gradient(160deg, #3a332b, #14120f 60%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 40px 80px -30px rgba(60, 35, 20, 0.55),
    0 18px 30px -18px rgba(60, 35, 20, 0.4);
}
.phone > img,
.phone > .screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  object-fit: cover;
  object-position: top;
}
.phone--crop {
  aspect-ratio: 1080 / 1700;
}
.phone--sheet {
  aspect-ratio: 1080 / 1158;
  border-radius: 34px 34px 0 0;
  padding-bottom: 0;
}
.phone--sheet > img {
  border-radius: 26px 26px 0 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 14px 30px -18px rgba(60, 35, 20, 0.45);
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--ink-subtle);
}
.dot--ontime {
  background: var(--olive);
}
.dot--late {
  background: var(--saffron);
}
.dot--excused {
  background: var(--teal);
}
.dot--missed {
  background: var(--claret);
}

/* ---------- Hero (dawn) ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 7vw, 88px) 0 0;
  background:
    radial-gradient(60% 55% at 82% 18%, rgba(229, 153, 119, 0.32), transparent 70%),
    radial-gradient(45% 40% at 8% 6%, rgba(224, 183, 79, 0.16), transparent 70%),
    linear-gradient(180deg, #f8e6d8 0%, var(--paper) 62%);
}
.hero__skyline {
  position: absolute;
  inset: auto 0 0 0;
  height: clamp(160px, 26vw, 320px);
  background: url("/img/skyline.webp") center bottom / cover no-repeat;
  opacity: 0.55;
  mix-blend-mode: multiply;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 45%);
  mask-image: linear-gradient(180deg, transparent, #000 45%);
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: end;
  gap: clamp(28px, 5vw, 72px);
}
.hero__copy {
  padding-bottom: clamp(48px, 9vw, 130px);
}
.hero h1 {
  margin-top: 18px;
  font-size: clamp(2.9rem, 7.4vw, 6rem);
}
.hero__lede {
  max-width: 34rem;
  margin-top: 22px;
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  color: var(--ink-muted);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 32px;
}
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  font-size: 0.9rem;
  color: var(--ink-muted);
  list-style: none;
}
.hero__facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero__facts li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terracotta);
}

.hero__stage {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 520px;
}
.hero__window {
  position: absolute;
  bottom: 0;
  width: min(440px, 100%);
  height: 92%;
  background:
    radial-gradient(70% 50% at 50% 30%, rgba(255, 238, 222, 0.95), transparent 75%),
    linear-gradient(180deg, #f2c9b1 0%, #f7e2cf 55%, #fbf0e3 100%);
  border: 1px solid rgba(198, 90, 58, 0.18);
  border-bottom: 0;
}
.hero__crescent {
  position: absolute;
  top: 9%;
  left: 50%;
  width: 54px;
  transform: translateX(-50%);
  color: var(--terracotta);
  opacity: 0.55;
}
.hero__phone {
  position: relative;
  width: min(300px, 72%);
  margin-bottom: -60px;
  z-index: 2;
  animation: rise 1.1s var(--ease) both;
}
.hero__chip {
  position: absolute;
  z-index: 3;
  animation: float 6s ease-in-out infinite;
}
.hero__chip--a {
  left: 0;
  top: 34%;
}
.hero__chip--b {
  right: -4%;
  top: 58%;
  animation-delay: -2.5s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
}
@keyframes float {
  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__copy {
    padding-bottom: 8px;
  }
  .hero__stage {
    min-height: 480px;
  }
  .hero__chip--a {
    left: 2%;
  }
  .hero__chip--b {
    right: 2%;
  }
}

/* ---------- The day at a glance ---------- */

.dayline {
  position: relative;
  z-index: 4;
  padding: 84px 0 40px;
  background: var(--paper);
}
.dayline__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 40px;
}
.dayline h2 {
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  max-width: 16ch;
}
.dayline__head p {
  max-width: 30rem;
  color: var(--ink-muted);
}
.dayline__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 44px;
  list-style: none;
}
.dayline__list a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 22px 18px 20px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--paper-dim);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.dayline__list a::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--glow);
  opacity: 0.32;
  transition: opacity 0.3s;
}
.dayline__list a:hover {
  transform: translateY(-4px);
  border-color: var(--glow);
}
.dayline__list a:hover::after {
  opacity: 0.55;
}
.dayline__prayer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.dayline__prayer strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
}
.dayline__list span {
  position: relative;
  z-index: 1;
  font-size: 0.95rem;
  color: var(--ink-muted);
}
@media (max-width: 900px) {
  .dayline__list {
    grid-template-columns: 1fr 1fr;
  }
  .dayline__list li:last-child {
    grid-column: span 2;
  }
}
@media (max-width: 520px) {
  .dayline__list {
    grid-template-columns: 1fr;
  }
  .dayline__list li:last-child {
    grid-column: auto;
  }
}

/* ---------- Chapters ---------- */

.chapter {
  position: relative;
  padding: clamp(80px, 11vw, 150px) 0;
  overflow: hidden;
}
.chapter__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 7vw, 100px);
}
.chapter--flip .chapter__copy {
  order: 2;
}
.chapter__time {
  display: flex;
  align-items: center;
  gap: 14px;
}
.chapter h2 {
  margin-top: 18px;
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  max-width: 13ch;
}
.chapter__lede {
  max-width: 32rem;
  margin-top: 22px;
  font-size: 1.15rem;
  color: var(--ink-muted);
}
.points {
  display: grid;
  gap: 16px;
  margin-top: 30px;
  max-width: 32rem;
  list-style: none;
}
.points li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
}
.points li::before {
  content: "";
  width: 28px;
  height: 28px;
  margin-top: 1px;
  border-radius: 9px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c65a3a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E")
      center / 15px no-repeat,
    var(--terracotta-soft);
}
.points strong {
  display: block;
  font-weight: 600;
}
.points span {
  color: var(--ink-muted);
  font-size: 0.98rem;
}
.pro-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--terracotta-soft);
  color: var(--terracotta-deep);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 2px;
}

.chapter__stage {
  position: relative;
  display: flex;
  justify-content: center;
}

@media (max-width: 900px) {
  .chapter__grid {
    grid-template-columns: 1fr;
  }
  .chapter--flip .chapter__copy {
    order: 0;
  }
}

/* Mood backgrounds */
.chapter[data-chapter="fajr"] {
  --glow: var(--mood-fajr);
  color: var(--on-dark);
  background:
    radial-gradient(50% 45% at 72% 22%, rgba(229, 153, 119, 0.28), transparent 72%),
    radial-gradient(40% 40% at 10% 100%, rgba(138, 123, 174, 0.22), transparent 70%),
    linear-gradient(180deg, #16140f 0%, #241f1a 100%);
}
.chapter[data-chapter="fajr"] .chapter__lede,
.chapter[data-chapter="fajr"] .points span {
  color: var(--on-dark-muted);
}
.chapter[data-chapter="fajr"] .eyebrow {
  color: var(--mood-fajr);
}
.chapter[data-chapter="fajr"] .points li::before {
  background-color: rgba(229, 153, 119, 0.16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e59977' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E");
}
.chapter[data-chapter="fajr"] .pro-tag {
  background: rgba(229, 153, 119, 0.18);
  color: var(--mood-fajr);
}

.chapter[data-chapter="dhuhr"] {
  --glow: var(--mood-dhuhr);
  background:
    radial-gradient(45% 50% at 85% 10%, rgba(224, 183, 79, 0.28), transparent 70%),
    linear-gradient(180deg, #fdf6e4, var(--paper));
}
.chapter[data-chapter="asr"] {
  --glow: var(--mood-asr);
  background:
    radial-gradient(50% 50% at 10% 20%, rgba(211, 145, 72, 0.22), transparent 70%),
    linear-gradient(180deg, var(--paper), #f8eadb);
}
.chapter[data-chapter="maghrib"] {
  --glow: var(--mood-maghrib);
  background:
    radial-gradient(55% 55% at 90% 80%, rgba(199, 123, 114, 0.3), transparent 70%),
    linear-gradient(180deg, #f8eadb, #f4dcd5);
}
.chapter[data-chapter="isha"] {
  --glow: var(--mood-isha);
  color: var(--on-dark);
  background:
    radial-gradient(50% 50% at 18% 15%, rgba(138, 123, 174, 0.38), transparent 70%),
    linear-gradient(180deg, #2a2537 0%, #1b1a17 100%);
}
.chapter[data-chapter="isha"] .chapter__lede,
.chapter[data-chapter="isha"] .points span {
  color: var(--on-dark-muted);
}
.chapter[data-chapter="isha"] .eyebrow {
  color: #b9addb;
}
.chapter[data-chapter="isha"] .points li::before {
  background-color: rgba(138, 123, 174, 0.22);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9addb' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E");
}
.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, #fff8, transparent),
    radial-gradient(1px 1px at 28% 42%, #fff6, transparent),
    radial-gradient(1.4px 1.4px at 46% 12%, #fff9, transparent),
    radial-gradient(1px 1px at 63% 30%, #fff5, transparent),
    radial-gradient(1.3px 1.3px at 82% 16%, #fff8, transparent),
    radial-gradient(1px 1px at 90% 48%, #fff5, transparent),
    radial-gradient(1.2px 1.2px at 6% 64%, #fff6, transparent),
    radial-gradient(1px 1px at 38% 78%, #fff4, transparent),
    radial-gradient(1.3px 1.3px at 74% 70%, #fff6, transparent);
  animation: twinkle 7s ease-in-out infinite alternate;
}
@keyframes twinkle {
  to {
    opacity: 0.55;
  }
}

/* ---------- Fajr alarm mock ---------- */

.alarm {
  position: relative;
  width: min(320px, 82vw);
}
.alarm .phone {
  background: linear-gradient(160deg, #4a4037, #0f0d0b 60%);
}
.alarm__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px 22px 22px;
  border-radius: 30px;
  overflow: hidden;
  color: var(--on-dark);
  background:
    radial-gradient(80% 45% at 50% 32%, rgba(229, 153, 119, 0.16), transparent 70%),
    #1b1a17;
}
.alarm__status {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  opacity: 0.75;
}
.alarm__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--on-dark-muted);
}
.alarm__label svg {
  width: 15px;
  color: var(--terracotta);
}
.alarm__rings {
  position: relative;
  display: grid;
  place-items: center;
  margin: 34px auto 0;
  width: 190px;
  height: 190px;
}
.alarm__rings i {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(229, 153, 119, 0.5);
  border-radius: 50%;
  animation: ring 2.4s var(--ease) infinite;
}
.alarm__rings i:nth-child(2) {
  animation-delay: 0.8s;
}
.alarm__rings i:nth-child(3) {
  animation-delay: 1.6s;
}
.alarm.is-off .alarm__rings i {
  animation: none;
  opacity: 0;
}
@keyframes ring {
  from {
    transform: scale(0.55);
    opacity: 0.9;
  }
  to {
    transform: scale(1.12);
    opacity: 0;
  }
}
.alarm__name {
  position: relative;
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 560;
  line-height: 1;
  letter-spacing: -0.02em;
}
.alarm__time {
  margin-top: 14px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-variant-numeric: tabular-nums;
}
.alarm__line {
  margin-top: 10px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--on-dark-muted);
}
.alarm__cta {
  margin-top: auto;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  background: var(--terracotta);
  color: #fffbf4;
  font-weight: 600;
  font-size: 0.98rem;
  transition: background 0.2s, transform 0.2s var(--ease);
}
.alarm__cta:hover {
  background: var(--terracotta-deep);
}
.alarm__sheet {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px 16px 18px;
  border-radius: 24px 24px 30px 30px;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(105%);
  transition: transform 0.45s var(--ease);
}
.alarm.is-logging .alarm__sheet {
  transform: none;
}
.alarm__sheet p {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.alarm__sheet h3 {
  margin: 2px 0 12px;
  font-family: var(--font-display);
  font-size: 1.5rem;
}
.alarm__done {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  background: #1b1a17;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}
.alarm.is-off .alarm__done {
  opacity: 1;
  pointer-events: auto;
}
.alarm__done strong {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 560;
}
.alarm__done span {
  color: var(--on-dark-muted);
  font-size: 0.95rem;
}
.alarm__done button {
  justify-self: center;
  margin-top: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(251, 246, 238, 0.25);
  border-radius: 999px;
  background: transparent;
  font-size: 0.85rem;
}

.offsets {
  margin-top: 30px;
}
.offsets p {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.offsets__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.offsets__row button {
  padding: 9px 15px;
  border: 1px solid rgba(251, 246, 238, 0.2);
  border-radius: 999px;
  background: transparent;
  font-size: 0.9rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.offsets__row button[aria-pressed="true"] {
  border-color: var(--mood-fajr);
  background: rgba(229, 153, 119, 0.16);
  color: #ffd9c5;
}

/* ---------- Log sheet (shared by Dhuhr chapter + alarm) ---------- */

.statuses {
  display: grid;
  gap: 8px;
}
.status {
  display: grid;
  grid-template-columns: 10px 1fr 14px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--paper-dim);
  text-align: left;
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.status:hover {
  border-color: var(--ink-subtle);
}
.status:active {
  transform: scale(0.98);
}
.status b {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
}
.status small {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-muted);
  line-height: 1.35;
}
.status::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 1.6px solid var(--ink-subtle);
  border-right: 1.6px solid var(--ink-subtle);
  transform: rotate(45deg);
}
.alarm__sheet .status {
  padding: 8px 12px;
}
.alarm__sheet .status small {
  display: none;
}

.logcard {
  position: relative;
  width: min(400px, 100%);
  padding: 26px 24px 24px;
  border: 1px solid var(--hairline);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 40px 70px -40px rgba(120, 80, 20, 0.45);
}
.logcard__handle {
  width: 44px;
  height: 4px;
  margin: -10px auto 18px;
  border-radius: 4px;
  background: var(--paper-deep);
}
.logcard__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}
.logcard__head p {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.logcard__head h3 {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1.1;
}
.status.is-picked {
  background: #fff;
  border-color: var(--picked, var(--ink));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--picked, var(--ink)) 18%, transparent);
}
.today {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}
.today__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--ink-muted);
}
.today__dots {
  display: flex;
  gap: 7px;
}
.today__dots i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper-deep);
  transition: background 0.35s, transform 0.35s var(--ease);
}
.today__dots i.is-new {
  transform: scale(1.35);
}
.today__msg {
  min-height: 1.6em;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--ink);
}

.dhuhr__stage {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 30px 0;
}
.dhuhr__stage::before {
  content: "";
  position: absolute;
  inset: 0 6%;
  border-radius: var(--arch);
  background: linear-gradient(180deg, rgba(224, 183, 79, 0.22), rgba(224, 183, 79, 0.04));
  border: 1px solid rgba(224, 183, 79, 0.35);
}

/* ---------- Asr: journal ---------- */

.journal__stage {
  position: relative;
  width: min(520px, 100%);
  aspect-ratio: 1 / 1.08;
}
.journal__stage::before {
  content: "";
  position: absolute;
  inset: 4% 12% 0;
  border-radius: var(--arch);
  background: linear-gradient(180deg, rgba(211, 145, 72, 0.24), rgba(211, 145, 72, 0.02));
}
.journal__stage .phone {
  position: absolute;
  width: 54%;
}
.journal__stage .phone:first-of-type {
  left: 2%;
  top: 0;
  transform: rotate(-5deg);
}
.journal__stage .phone:last-of-type {
  right: 2%;
  top: 12%;
  transform: rotate(4deg);
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 32px;
  max-width: 34rem;
}
.stat {
  padding: 16px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: rgba(251, 246, 238, 0.7);
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.1;
}
.stat span {
  font-size: 0.85rem;
  color: var(--ink-muted);
}
@media (max-width: 520px) {
  .stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Maghrib: circles ---------- */

.circle__stage {
  position: relative;
  width: min(420px, 100%);
}
.circle__stage .arch {
  background: linear-gradient(180deg, rgba(199, 123, 114, 0.3), rgba(199, 123, 114, 0.06));
  border: 1px solid rgba(199, 123, 114, 0.4);
  padding: 70px 34px 0;
}
.circle__stage .phone {
  margin-bottom: -6px;
}
.nudge {
  position: absolute;
  left: -12%;
  bottom: -9%;
  width: min(290px, 74%);
  padding: 16px 16px 14px;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 30px 60px -30px rgba(90, 40, 30, 0.55);
}
.nudge__top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nudge__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--terracotta-soft);
  color: var(--terracotta);
}
.nudge__icon svg {
  width: 18px;
}
.nudge__top b {
  font-size: 0.9rem;
}
.nudge__top small {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-muted);
}
.nudge__msg {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--paper-dim);
  font-family: var(--font-display);
  font-size: 1.05rem;
  transition: opacity 0.25s;
}
.nudge__again {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--terracotta);
  font-size: 0.88rem;
  font-weight: 600;
}
.nudge__again svg {
  width: 15px;
  transition: transform 0.5s var(--ease);
}
.nudge__again.is-spinning svg {
  transform: rotate(360deg);
}
@media (max-width: 520px) {
  .nudge {
    left: 0;
    bottom: -14%;
  }
}
.circle__stage {
  margin-bottom: 70px;
}

/* ---------- Isha: focus ---------- */

.focus__stage {
  position: relative;
  width: min(420px, 100%);
}
.focus__stage .arch {
  padding: 64px 34px 0;
  background: linear-gradient(180deg, rgba(138, 123, 174, 0.35), rgba(138, 123, 174, 0.06));
  border: 1px solid rgba(185, 173, 219, 0.3);
}
.notif {
  position: absolute;
  right: -10%;
  top: 3%;
  width: min(290px, 76%);
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(251, 246, 238, 0.96);
  color: var(--ink);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.7);
  animation: float 7s ease-in-out infinite;
}
.notif__app {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--ink-muted);
}
.notif__app img {
  width: 18px;
  height: 18px;
  border-radius: 5px;
}
.notif b {
  display: block;
  margin-top: 6px;
  font-size: 0.92rem;
}
.notif span {
  display: block;
  font-size: 0.84rem;
  color: var(--ink-muted);
  line-height: 1.4;
}
@media (max-width: 520px) {
  .notif {
    right: 0;
  }
}

/* ---------- Pricing ---------- */

.plans {
  padding: clamp(80px, 10vw, 130px) 0;
  background: var(--paper);
}
.section-head {
  max-width: 40rem;
}
.section-head h2 {
  margin-top: 16px;
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
}
.section-head p {
  margin-top: 16px;
  color: var(--ink-muted);
  font-size: 1.1rem;
}
.plans__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 48px;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 32px 30px 30px;
  border: 1px solid var(--hairline);
  border-radius: 28px;
  background: var(--paper-dim);
}
.plan--pro {
  position: relative;
  overflow: hidden;
  border-color: rgba(198, 90, 58, 0.35);
  background:
    radial-gradient(60% 50% at 100% 0%, rgba(198, 90, 58, 0.16), transparent 70%),
    #fdf3ec;
}
.plan__name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.plan__name h3 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
}
.plan__badge {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--terracotta);
  color: #fffbf4;
  font-size: 0.78rem;
  font-weight: 600;
}
.plan__price {
  margin-top: 6px;
  color: var(--ink-muted);
}
.plan .points {
  margin-top: 24px;
  margin-bottom: 30px;
}
.plan .btn {
  margin-top: auto;
  align-self: flex-start;
}
@media (max-width: 760px) {
  .plans__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Privacy promise ---------- */

.promise {
  padding: 0 0 clamp(80px, 10vw, 130px);
  background: var(--paper);
}
.promise__card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  padding: clamp(32px, 5vw, 56px);
  border-radius: 32px;
  background: var(--ink);
  color: var(--on-dark);
  overflow: hidden;
  position: relative;
}
.promise__card::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -90px;
  width: 300px;
  height: 340px;
  background: var(--terracotta);
  opacity: 0.12;
  -webkit-mask: url("/img/mark.webp") center / contain no-repeat;
  mask: url("/img/mark.webp") center / contain no-repeat;
}
.promise__card h2 {
  margin-top: 14px;
  font-size: clamp(2rem, 4vw, 3rem);
}
.promise__card .eyebrow {
  color: var(--mood-fajr);
}
.promise__list {
  display: grid;
  gap: 18px;
  list-style: none;
  position: relative;
  z-index: 1;
}
.promise__list li {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(251, 246, 238, 0.12);
}
.promise__list li:last-child {
  border-bottom: 0;
}
.promise__list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}
.promise__list span {
  color: var(--on-dark-muted);
}
.promise__card a {
  color: var(--on-dark);
}
@media (max-width: 860px) {
  .promise__card {
    grid-template-columns: 1fr;
  }
}

/* ---------- FAQ ---------- */

.faq {
  padding: clamp(70px, 9vw, 120px) 0;
  background: var(--paper-dim);
}
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 40px;
}
.faq h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}
.faq details {
  border-bottom: 1px solid var(--hairline);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 560;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background:
    linear-gradient(var(--ink), var(--ink)) center / 10px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 10px no-repeat;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  padding-bottom: 22px;
  max-width: 40rem;
  color: var(--ink-muted);
}
@media (max-width: 860px) {
  .faq__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Closing ---------- */

.closing {
  position: relative;
  overflow: hidden;
  padding: clamp(90px, 12vw, 160px) 0 clamp(150px, 20vw, 260px);
  text-align: center;
  background:
    radial-gradient(50% 50% at 50% 30%, rgba(229, 153, 119, 0.28), transparent 72%),
    linear-gradient(180deg, var(--paper), #f6e3d4);
}
.closing .hero__skyline {
  opacity: 0.6;
}
.closing__mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 26px;
  border-radius: 16px;
}
.closing h2 {
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
}
.closing p {
  max-width: 30rem;
  margin: 18px auto 0;
  color: var(--ink-muted);
  font-size: 1.12rem;
}
.closing .hero__actions {
  justify-content: center;
}

/* ---------- Footer ---------- */

.site-foot {
  padding: 48px 0 40px;
  background: var(--ink);
  color: var(--on-dark-muted);
  font-size: 0.93rem;
}
.site-foot__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.site-foot .brand {
  color: var(--on-dark);
}
.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}
.site-foot nav a {
  text-decoration: none;
}
.site-foot nav a:hover {
  color: var(--on-dark);
}
.site-foot__line {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(251, 246, 238, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.no-js .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Document pages (how-to, privacy, rewards, join) ---------- */

.doc-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 100px) 0 clamp(40px, 6vw, 70px);
  background:
    radial-gradient(50% 70% at 88% 0%, rgba(229, 153, 119, 0.26), transparent 70%),
    linear-gradient(180deg, #f8e6d8, var(--paper));
}
.doc-hero::after {
  content: "";
  position: absolute;
  right: clamp(-40px, 2vw, 40px);
  bottom: -40px;
  width: clamp(140px, 22vw, 240px);
  aspect-ratio: 1 / 1.05;
  background: var(--terracotta);
  opacity: 0.1;
  -webkit-mask: url("/img/mark.webp") center / contain no-repeat;
  mask: url("/img/mark.webp") center / contain no-repeat;
}
.doc-hero h1 {
  margin-top: 16px;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  max-width: 14ch;
}
.doc-hero p {
  max-width: 40rem;
  margin-top: 18px;
  font-size: 1.15rem;
  color: var(--ink-muted);
}
.doc-hero .page-doc__meta {
  margin-top: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--terracotta-deep);
}

.doc-body {
  padding: clamp(40px, 6vw, 70px) 0 clamp(70px, 9vw, 120px);
}
.doc-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.doc-toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 2px;
  font-size: 0.92rem;
}
.doc-toc p {
  margin-bottom: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.doc-toc a {
  padding: 7px 0 7px 14px;
  border-left: 2px solid var(--hairline);
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.doc-toc a:hover,
.doc-toc a.is-active {
  color: var(--ink);
  border-left-color: var(--terracotta);
}
@media (max-width: 900px) {
  .doc-layout {
    grid-template-columns: 1fr;
  }
  .doc-toc {
    display: none;
  }
}

.doc-content {
  max-width: 46rem;
}
.doc-section + .doc-section {
  margin-top: 44px;
  padding-top: 40px;
  border-top: 1px solid var(--hairline);
}
.doc-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.doc-section h3 {
  margin-top: 28px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
}
.doc-section p,
.doc-section ul,
.doc-section ol {
  margin-top: 14px;
  color: var(--ink-muted);
}
.doc-section ul {
  padding-left: 1.2em;
}
.doc-section ul li + li {
  margin-top: 8px;
}
.doc-section a {
  color: var(--terracotta-deep);
}

/* How-to beats */
.guide-beat {
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.guide-beat + .guide-beat {
  margin-top: 30px;
  padding-top: 30px;
}
.guide-beat__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--hairline);
  border-radius: 28px;
  background: var(--paper-dim);
}
.guide-beat h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.guide-beat__copy > p {
  margin-top: 12px;
  color: var(--ink-muted);
}
.guide-beat__figure {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.guide-beat__figure .phone {
  box-shadow: 0 30px 50px -30px rgba(60, 35, 20, 0.55);
}
.guide-beat__figure .alarm {
  width: 100%;
}
.guide-beat__figure .alarm__name {
  font-size: 3rem;
}
.guide-beat__figure .alarm__rings {
  width: 140px;
  height: 140px;
  margin-top: 24px;
}
.setup-art {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  aspect-ratio: 1080 / 2000;
  padding: 24px;
  text-align: center;
  background:
    radial-gradient(70% 45% at 50% 30%, rgba(255, 238, 222, 0.95), transparent 75%),
    linear-gradient(180deg, #f2c9b1, #fbf0e3);
  border: 1px solid rgba(198, 90, 58, 0.2);
}
.setup-art img {
  width: 84px;
  border-radius: 20px;
  box-shadow: 0 18px 30px -16px rgba(163, 71, 39, 0.6);
}
.setup-art span:last-child {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

@media (max-width: 760px) {
  .guide-beat__grid {
    grid-template-columns: 1fr;
  }
  .guide-beat__figure {
    position: static;
    width: min(260px, 80%);
    margin-inline: auto;
  }
}

.guide-beat__steps {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  list-style: none;
  counter-reset: step;
}
.guide-beat__steps li {
  position: relative;
  display: grid;
  gap: 2px;
  padding-left: 46px;
  counter-increment: step;
}
.guide-beat__steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--hairline);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--terracotta);
}
.guide-beat__steps strong {
  font-weight: 600;
  color: var(--ink);
}
.guide-beat__steps span {
  color: var(--ink-muted);
  font-size: 0.98rem;
}
.guide-beat__tip {
  margin-top: 22px !important;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--terracotta-soft);
  color: var(--terracotta-deep) !important;
  font-size: 0.95rem;
}

/* Rewards tiers */
.tier-list {
  display: grid;
  gap: 8px;
  margin-top: 20px !important;
  padding: 0 !important;
  list-style: none;
}
.tier-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--paper-dim);
  color: var(--ink);
}
.tier-list li + li {
  margin-top: 0 !important;
}
.tier-list strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
}
.tier-list li span:last-child {
  color: var(--ink-muted);
  text-align: right;
}
.tier-list .is-highlight {
  border-color: rgba(198, 90, 58, 0.4);
  background: #fdf0e8;
}
@media (max-width: 520px) {
  .tier-list li {
    flex-direction: column;
    gap: 2px;
  }
  .tier-list li span:last-child {
    text-align: left;
  }
}

/* Join page */
.join {
  min-height: calc(100vh - var(--header-h) - 200px);
  display: grid;
  place-items: center;
  padding: 60px 0 100px;
  text-align: center;
}
.join .arch {
  width: min(420px, 100%);
  margin-inline: auto;
  padding: 80px 32px 40px;
  background: linear-gradient(180deg, rgba(199, 123, 114, 0.26), rgba(199, 123, 114, 0.04));
  border: 1px solid rgba(199, 123, 114, 0.35);
}
.join h1 {
  font-size: clamp(2.4rem, 6vw, 3.4rem);
}
.join p {
  margin-top: 14px;
  color: var(--ink-muted);
}
.join__code {
  display: inline-block;
  margin-top: 18px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 1rem;
  letter-spacing: 0.08em;
}
.join__code:empty {
  display: none;
}
.join .btn {
  margin-top: 26px;
}
