/* Sirat site. The page is one sky: late afternoon at the top, night at the bottom.
   Sky colours are sampled from the app's prayer dial; green and gold are accents. */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/newsreader.woff2") format("woff2");
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/hanken-grotesk.woff2") format("woff2");
}

:root {
  --haze: #f6eede;
  --haze-warm: #f2deb8;
  --amber: #eabb7c;
  --ember: #c9744f;
  --rose: #84485a;
  --violet: #3b2c52;
  --indigo: #1b2142;
  --night: #111732;
  --deep: #0b1024;

  --ink: #15291e;
  --ink-soft: rgba(21, 41, 30, 0.74);
  --green: #1c4a30;
  --gold: #e8c77a;
  --gold-ink: #73540f;
  --cream: #f4eee2;
  --cream-soft: rgba(244, 238, 226, 0.74);

  --serif: "Newsreader", ui-serif, Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 68rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--haze); }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--deep);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
p { margin: 0; }

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

/* ---------- Sky bands: each one starts where the last one ended ---------- */
.sky-day {
  background:
    radial-gradient(46rem 22rem at 80% 52%, rgba(234, 187, 124, 0.55), transparent 62%),
    linear-gradient(var(--haze), var(--haze-warm));
}
.sky-late { background: linear-gradient(var(--haze-warm), var(--amber)); }
.sky-dusk {
  color: var(--cream);
  background: linear-gradient(var(--amber) 0, var(--ember) 9rem, var(--rose) 17rem, var(--violet) 27rem, var(--indigo) 100%);
}
.sky-night { color: var(--cream); background: linear-gradient(var(--indigo), var(--night)); }
.sky-deep {
  color: var(--cream);
  background:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255, 255, 255, 0.75) 50%, transparent 52%),
    radial-gradient(1px 1px at 27% 61%, rgba(255, 255, 255, 0.55) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 44% 14%, rgba(255, 255, 255, 0.6) 50%, transparent 52%),
    radial-gradient(1px 1px at 58% 43%, rgba(255, 255, 255, 0.5) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 71% 26%, rgba(255, 255, 255, 0.7) 50%, transparent 52%),
    radial-gradient(1px 1px at 83% 66%, rgba(255, 255, 255, 0.5) 50%, transparent 52%),
    radial-gradient(1px 1px at 92% 18%, rgba(255, 255, 255, 0.6) 50%, transparent 52%),
    radial-gradient(1px 1px at 6% 78%, rgba(255, 255, 255, 0.45) 50%, transparent 52%),
    linear-gradient(var(--night), var(--deep));
}

/* ---------- Nav ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; padding-block: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; }
.brand img { width: 2.25rem; height: 2.25rem; border-radius: 0.6rem; }
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); font-size: 0.95rem; }
.nav-links a { text-decoration: none; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }
.nav-links .nav-get { color: var(--haze); background: var(--green); padding: 0.5rem 1.05rem; border-radius: 999px; font-weight: 600; }
.nav-links .nav-get:hover { color: #fff; background: #153a25; }
@media (max-width: 34rem) { .nav-links a:not(.nav-get) { display: none; } }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(2rem, 6vw, 4.5rem) 0; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); line-height: 1.04; letter-spacing: -0.025em; text-wrap: wrap; }
.hero h1 span { display: block; color: var(--green); }
.hero .lede { margin-top: 1.5rem; max-width: 31rem; font-size: clamp(1.0625rem, 1.5vw, 1.2rem); color: var(--ink-soft); }
.get { margin-top: 2.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.badge { display: inline-block; line-height: 0; border-radius: 0.6rem; transition: transform 0.25s ease; }
.badge:hover { transform: translateY(-2px); }
.badge img { display: block; width: 10.5rem; height: auto; }
.rating { font-size: 0.95rem; color: var(--ink-soft); }
.rating .stars { color: var(--gold-ink); letter-spacing: 0.12em; margin-right: 0.35rem; }
.fine { margin-top: 1rem; font-size: 0.9rem; color: var(--ink-soft); }
.hero-shot { justify-self: center; margin-bottom: -5rem; position: relative; z-index: 1; }

@media (max-width: 52rem) {
  .hero { grid-template-columns: 1fr; padding-top: 1.5rem; }
}

/* ---------- Phone frame ---------- */
.phone {
  --w: clamp(15rem, 25vw, 19.5rem);
  width: var(--w);
  padding: calc(var(--w) * 0.028);
  border-radius: calc(var(--w) * 0.168);
  background: #181614;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 2.5rem 4.5rem -1.75rem rgba(24, 14, 0, 0.55);
}
.phone img { display: block; width: 100%; border-radius: calc(var(--w) * 0.14); }

/* ---------- Section basics ---------- */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); line-height: 1.1; max-width: 22ch; }
.section .intro { margin-top: 1.1rem; max-width: 36rem; color: var(--ink-soft); }
.sky-dusk .intro, .sky-night .intro, .sky-deep .intro { color: var(--cream-soft); }

/* ---------- Timetable (the "what it costs you" list) ---------- */
.switch { padding-top: clamp(8rem, 13vw, 10rem); }
.switch-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 7vw, 6rem); align-items: start; }
.timetable { margin: 0.75rem 0 0; padding: 0; }
.timetable div { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; padding-block: 1.1rem; border-bottom: 1px solid rgba(21, 41, 30, 0.2); }
.timetable div:first-child { padding-top: 0; }
.timetable dt { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.timetable dd { margin: 0; font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.45rem); text-align: right; }
.switch .more { margin-top: 1.5rem; font-size: 0.95rem; }
.switch .more a { color: var(--green); font-weight: 600; text-underline-offset: 3px; }
@media (max-width: 52rem) {
  .switch-grid { grid-template-columns: 1fr; }
  .timetable { margin-top: 1rem; border-top: 1px solid rgba(21, 41, 30, 0.2); }
  .timetable div:first-child { padding-top: 1.1rem; }
}

/* ---------- Features ---------- */
.features { padding-top: 30rem; position: relative; }
.sun { position: absolute; left: 50%; top: 9.5rem; width: 100%; max-width: var(--wrap); transform: translateX(-50%); height: 7rem; pointer-events: none; overflow: hidden; border-bottom: 1px solid rgba(255, 233, 190, 0.5); }
.sun::before { content: ""; position: absolute; right: 16%; bottom: -3.4rem; width: 6.8rem; height: 6.8rem; border-radius: 50%; background: #f6da92; }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 7vw, 6rem); align-items: center; margin-top: clamp(4rem, 9vw, 7rem); }
.feature:nth-of-type(even) .feature-art { order: -1; }
.feature h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.15; max-width: 18ch; }
.feature p { margin-top: 1rem; max-width: 30rem; color: var(--cream-soft); }
.feature .label { margin: 0 0 0.9rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.feature-art { display: flex; justify-content: center; }
.panel { display: block; width: 100%; max-width: 27rem; border-radius: 1.75rem; box-shadow: 0 2.5rem 4.5rem -2rem rgba(0, 0, 0, 0.7); }
.trio { display: flex; justify-content: center; align-items: flex-end; width: 100%; max-width: 30rem; margin-inline: auto; container-type: inline-size; }
.trio .phone { --w: 31cqw; flex: none; }
.trio .phone:nth-child(2) { --w: 36cqw; margin-inline: -1rem; z-index: 1; }
@media (max-width: 52rem) {
  .feature { grid-template-columns: 1fr; }
  .feature:nth-of-type(even) .feature-art { order: 0; }
}

.also { margin-top: clamp(5rem, 10vw, 8rem); }
.also h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.also ul { list-style: none; margin: 1.5rem 0 0; padding: 0; columns: 2; column-gap: clamp(2rem, 6vw, 5rem); }
.also li { break-inside: avoid; padding-block: 0.8rem; border-top: 1px solid rgba(244, 238, 226, 0.18); color: var(--cream-soft); }
.also li strong { color: var(--cream); font-weight: 600; }
@media (max-width: 40rem) { .also ul { columns: 1; } }

/* ---------- Pro ---------- */
.plans { margin-top: 3rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid rgba(244, 238, 226, 0.22); }
.plan { padding: 2rem clamp(0rem, 3vw, 2.5rem) 0 0; }
.plan + .plan { padding-left: clamp(1.5rem, 4vw, 3rem); padding-right: 0; border-left: 1px solid rgba(244, 238, 226, 0.22); }
.plan h3 { font-size: 1.6rem; }
.plan .price { margin-top: 0.4rem; font-variant-numeric: tabular-nums; color: var(--cream-soft); }
.plan .price b { color: var(--gold); font-weight: 600; }
.plan ul { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.plan li { padding-block: 0.7rem; border-top: 1px solid rgba(244, 238, 226, 0.12); color: var(--cream-soft); }
.plans-note { margin-top: 2.5rem; font-size: 0.9rem; color: var(--cream-soft); }
@media (max-width: 40rem) {
  .plans { grid-template-columns: 1fr; }
  .plan { padding-right: 0; }
  .plan + .plan { padding-left: 0; border-left: 0; margin-top: 2.5rem; border-top: 1px solid rgba(244, 238, 226, 0.22); }
}

/* ---------- Closing ---------- */
.closing { text-align: center; padding-bottom: clamp(3rem, 6vw, 5rem); }
.closing h2 { margin-inline: auto; font-size: clamp(2.2rem, 5vw, 3.75rem); }
.closing .intro { margin-inline: auto; }
.closing .get { justify-content: center; }
.closing .fine { color: var(--cream-soft); }

.footer { padding-block: 2rem 2.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; font-size: 0.9rem; color: var(--cream-soft); border-top: 1px solid rgba(244, 238, 226, 0.16); }
.footer nav { display: flex; gap: 1.5rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--gold); }

/* ---------- Day rail: the dot moves from Asr to Isha as you scroll ---------- */
.rail { display: none; }
@media (min-width: 84rem) {
  .rail { display: block; position: fixed; left: 1.75rem; top: 50%; height: 15rem; margin-top: -7.5rem; width: 1px; background: currentColor; opacity: 0.5; color: var(--ink); transition: color 0.8s ease; z-index: 5; --p: 0; }
  .night .rail { color: var(--cream); }
  .rail span { position: absolute; left: 0.9rem; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; transform: translateY(-50%); }
  .rail span::before { content: ""; position: absolute; left: -1.15rem; top: 50%; width: 0.5rem; height: 1px; background: currentColor; }
  .rail span:nth-child(1) { top: 0; }
  .rail span:nth-child(2) { top: 50%; }
  .rail span:nth-child(3) { top: 100%; }
  .rail i { position: absolute; left: -0.25rem; top: calc(var(--p) * 100%); width: calc(0.5rem + 1px); height: calc(0.5rem + 1px); margin-top: -0.25rem; border-radius: 50%; background: currentColor; }
}

/* ---------- Privacy page ---------- */
.paper { color: var(--ink); background: linear-gradient(var(--haze), #f3e6cd); }
.paper .wrap { max-width: 46rem; }
.paper-head { padding-block: clamp(2.5rem, 7vw, 4.5rem) 0; }
.paper-head h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1.05; }
.paper-head p { margin-top: 0.9rem; color: var(--ink-soft); }
.paper-head .updated { font-size: 0.9rem; }

.short { margin-top: 2.75rem; padding-block: 1.75rem; border-block: 1px solid rgba(21, 41, 30, 0.28); }
.short h2, .contents h2 { font-family: var(--sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.short ul { margin: 1rem 0 0; padding: 0; list-style: none; }
.short li { padding-block: 0.45rem; font-family: var(--serif); font-size: 1.2rem; line-height: 1.4; }

.contents { margin-top: 2rem; }
.contents ol { margin: 0.9rem 0 0; padding: 0; list-style: none; columns: 2; column-gap: 2.5rem; counter-reset: c; font-size: 0.95rem; }
.contents li { counter-increment: c; padding-block: 0.3rem; break-inside: avoid; }
.contents li::before { content: counter(c, decimal-leading-zero); display: inline-block; width: 2.1rem; font-variant-numeric: tabular-nums; color: var(--gold-ink); font-weight: 600; }
.contents a { text-decoration: none; }
.contents a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 34rem) { .contents ol { columns: 1; } }

.policy { padding-block: 1.5rem clamp(3rem, 8vw, 5rem); }
.policy section { padding-top: 2.75rem; scroll-margin-top: 1rem; }
.policy h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); line-height: 1.2; }
.policy p { margin-top: 0.9rem; color: var(--ink-soft); }
.policy strong { color: var(--ink); }
.policy a { color: var(--green); font-weight: 600; text-underline-offset: 3px; }
.paper .footer { color: var(--ink-soft); border-top-color: rgba(21, 41, 30, 0.22); }
.paper .footer a:hover { color: var(--green); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .badge, .rail { transition: none; }
}
