/* A:DHAN site
   Layout: a dark product story (hero, then one scroll-driven prayer-day screen)
   that hands over to bright, left-aligned setup and controls sections, and
   closes dark on the Notify me form. Orange is used sparingly: the product's
   own base line, buttons, step badges and the slider thumb. */

:root {
  --ink: #0b0c0e;
  --graphite: #15181b;
  --paper: #ffffff;
  --fog: #f3f4f5;
  --orange: #cc792b;
  --orange-hi: #db8a3c;
  --orange-deep: #955012;

  --text-on-ink: #f4f5f6;
  --dim-on-ink: #a6acb2;
  --line-on-ink: rgba(244, 245, 246, 0.16);
  --text-on-paper: #14161a;
  --dim-on-paper: #575d63;
  --line-on-paper: rgba(20, 22, 26, 0.16);
  --error-on-ink: #ff9b8a;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, "DejaVu Sans Mono", Consolas, monospace;

  --nav-h: 3.5rem;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --wrap: 70rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text-on-ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--focus, var(--orange));
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.skip:focus {
  top: calc(env(safe-area-inset-top, 0px) + 0.75rem);
}

/* Sections ---------------------------------------------------------- */

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

.section {
  padding-block: clamp(4.5rem, 10vw, 8.5rem);
}

.theme-ink {
  background: var(--ink);
  color: var(--text-on-ink);
  --dim: var(--dim-on-ink);
  --line: var(--line-on-ink);
  --focus: var(--orange);
}

.theme-light {
  color: var(--text-on-paper);
  --dim: var(--dim-on-paper);
  --line: var(--line-on-paper);
  --focus: var(--orange-deep);
}

.theme-paper {
  background: var(--paper);
}

.theme-fog {
  background: var(--fog);
}

.dim {
  color: var(--dim);
}

.h2 {
  font-size: clamp(2.125rem, 1.2rem + 3.6vw, 3.75rem);
  font-weight: 200;
  line-height: 1.06;
  letter-spacing: -0.025em;
  max-width: 18ch;
}

.lede {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.3125rem);
  line-height: 1.5;
  color: var(--dim);
  max-width: 34rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.6rem;
  border: 0;
  border-radius: 980px;
  background: var(--orange);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn:hover {
  background: var(--orange-hi);
}

.btn--sm {
  min-height: 2.25rem;
  padding: 0.4rem 1.1rem;
  font-size: 0.9375rem;
}

.link {
  color: inherit;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 1px;
}

/* Navigation -------------------------------------------------------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(11, 12, 14, 0.94);
  border-bottom: 1px solid var(--line-on-ink);
  color: var(--text-on-ink);
  --focus: var(--orange);
}

@supports (backdrop-filter: blur(1px)) {
  .nav {
    background: rgba(11, 12, 14, 0.88);
    -webkit-backdrop-filter: saturate(1.4) blur(18px);
    backdrop-filter: saturate(1.4) blur(18px);
  }
}

.nav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--nav-h);
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wordmark {
  font-weight: 200;
  font-size: 1.25rem;
  letter-spacing: 0.16em;
  text-decoration: none;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-inline: auto 0.5rem;
  font-size: 0.9375rem;
}

.nav__links a {
  color: var(--dim-on-ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--text-on-ink);
}

.nav__end {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav__toggle {
  display: none;
  min-height: 2.25rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line-on-ink);
  border-radius: 980px;
  background: transparent;
  color: var(--text-on-ink);
  font: inherit;
  font-size: 0.9375rem;
  cursor: pointer;
}

.nav__toggle[aria-expanded="true"] {
  background: rgba(244, 245, 246, 0.12);
}

@media (max-width: 40rem) {
  .nav__links {
    display: none;
  }

  .js .nav__toggle {
    display: inline-flex;
    align-items: center;
  }

  .js .nav--open .nav__links {
    display: flex;
    position: absolute;
    top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0.25rem var(--gutter) 1rem;
    background: var(--graphite);
    border-bottom: 1px solid var(--line-on-ink);
  }

  .nav__links a {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    border-top: 1px solid var(--line-on-ink);
    font-size: 1.0625rem;
  }

  .nav__links a:first-child {
    border-top: 0;
  }
}

@media (max-width: 52rem), (pointer: coarse) {
  .btn--sm,
  .nav__toggle {
    min-height: 2.75rem;
  }
}

/* Hero -------------------------------------------------------------- */

.hero {
  padding-top: calc(var(--nav-h) + clamp(2.5rem, 6vw, 4.5rem));
  text-align: center;
  overflow: hidden;
}

.hero__name {
  font-size: clamp(3.25rem, 2rem + 7vw, 7rem);
  font-weight: 200;
  line-height: 1;
  letter-spacing: 0.14em;
  padding-left: 0.14em; /* balances the trailing letter-spacing so the word sits centred */
}

.hero__tag {
  margin-top: 1.25rem;
  font-size: clamp(1.5rem, 1rem + 2.2vw, 2.75rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2rem;
  margin-top: 2rem;
}

.hero__product {
  width: min(100%, 47.5rem);
  aspect-ratio: 896 / 820;
  margin: clamp(0.5rem, 3vw, 2rem) auto 0;
}

.hero__product img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%),
    radial-gradient(ellipse 50% 74% at 50% 50%, #000 55%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%),
    radial-gradient(ellipse 50% 74% at 50% 50%, #000 55%, transparent 100%);
  mask-composite: intersect;
  animation: product-in 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes product-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(1.02);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Prayer day -------------------------------------------------------- */

.day__track {
  position: relative;
  height: 300svh;
}

.day__stage {
  position: sticky;
  top: 0;
  display: grid;
  align-items: center;
  min-height: 100svh;
  padding-top: var(--nav-h);
}

.day__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(1.5rem, 6vw, 5rem);
}

.day__copy {
  display: grid;
  gap: 1.5rem;
}

.day__device {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
}

.device {
  width: min(100%, 27.5rem);
  height: auto;
}

.scrub {
  display: grid;
  width: min(100%, 27.5rem);
  gap: 0.25rem;
  color: var(--dim);
  font-size: 0.875rem;
}

.scrub input {
  width: 100%;
  height: 2.75rem;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.scrub input::-webkit-slider-runnable-track {
  height: 2px;
  background: var(--line-on-ink);
}

.scrub input::-moz-range-track {
  height: 2px;
  background: var(--line-on-ink);
}

.scrub input::-webkit-slider-thumb {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: -0.5625rem;
  border: 0;
  border-radius: 50%;
  background: var(--orange);
  -webkit-appearance: none;
  appearance: none;
}

.scrub input::-moz-range-thumb {
  width: 1.25rem;
  height: 1.25rem;
  border: 0;
  border-radius: 50%;
  background: var(--orange);
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  gap: 2rem 2.5rem;
  padding-bottom: clamp(4.5rem, 10vw, 8.5rem);
}

.facts div {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.facts dt {
  font-weight: 500;
  font-size: 1rem;
}

.facts dd {
  margin-top: 0.35rem;
  color: var(--dim);
  font-size: 0.9375rem;
}

@media (max-width: 52rem) {
  .day__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .day__copy {
    gap: 1rem;
  }
}

@media (max-height: 42rem) {
  .device,
  .scrub {
    width: min(100%, 21rem);
  }
}

/* Features ---------------------------------------------------------- */

.features__title {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.features__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 6vw, 5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.features__list li {
  position: relative;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.features__list li::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 2rem;
  height: 1px;
  background: var(--orange);
}

@media (max-width: 52rem) {
  .features__list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Setup ------------------------------------------------------------- */

.setup .h2 {
  max-width: 20ch;
}

.setup .lede {
  margin-top: 1.5rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2.5rem;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--text-on-ink);
  font-size: 1rem;
  font-weight: 500;
}

.steps h3 {
  font-size: 1.375rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.steps p {
  color: var(--dim);
  max-width: 22rem;
}

/* Notify me --------------------------------------------------------- */

.notify__inner {
  max-width: 40rem;
  display: grid;
  gap: 1.5rem;
}

.notify__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.notify__field {
  flex: 1 1 16rem;
  min-width: 0;
}

.notify__field input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 1.1rem;
  border: 1px solid rgba(244, 245, 246, 0.3);
  border-radius: 12px;
  background: rgba(244, 245, 246, 0.06);
  color: var(--text-on-ink);
  font: inherit;
  font-weight: 300;
}

.notify__field input::placeholder {
  color: #8d9399;
}

.notify__form .btn {
  min-height: 3.25rem;
  padding-inline: 2rem;
}

.notify__status {
  min-height: 1.6em;
  margin-block: -0.75rem -0.5rem;
  font-size: 0.9375rem;
  color: var(--text-on-ink);
}

.notify__status[data-state="error"] {
  color: var(--error-on-ink);
}

.notify__fine {
  color: var(--dim);
  font-size: 0.875rem;
  max-width: 34rem;
}

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

.footer {
  padding-block: 2rem calc(2rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line-on-ink);
  color: var(--dim-on-ink);
  font-size: 0.875rem;
}

/* Reduced motion and short screens ---------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__product img {
    animation: none;
  }
}

.no-scrub .day__track {
  height: auto;
}

.no-scrub .day__stage {
  position: static;
  min-height: 0;
  padding-block: calc(var(--nav-h) + 2rem) 3rem;
}


/* Setup teaser ------------------------------------------------------ */

.setup__more {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

/* Custom colours ---------------------------------------------------- */

.pill {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  border: 1px solid var(--orange);
  border-radius: 980px;
  color: var(--orange-hi);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.4;
}

.custom__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.custom__copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  gap: 1.5rem;
}

.custom__media {
  margin: 0;
}

.custom__video {
  display: block;
  width: 100%;
  max-width: 26rem;
  height: auto;
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  border-radius: 12px;
  background: #000;
  object-fit: cover;
  -webkit-mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 62%, transparent 100%);
}

@media (max-width: 52rem) {
  .custom__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .custom__video {
    max-width: 18rem;
  }

}

/* Story teaser ------------------------------------------------------ */

.story-teaser__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(2rem, 6vw, 5rem);
}

.story-teaser .h2 {
  max-width: 20ch;
}

.story-teaser__copy {
  display: grid;
  gap: 1.5rem;
}

@media (max-width: 52rem) {
  .story-teaser__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Notify me: interest checkbox -------------------------------------- */

.notify__check {
  flex: 1 0 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  color: var(--dim);
  font-size: 0.9375rem;
  cursor: pointer;
}

.notify__check input {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  accent-color: var(--orange);
}

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

.footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
}

.footer__links a {
  display: inline-block;
  padding-block: 0.5rem;
  color: inherit;
  text-underline-offset: 0.3em;
}

.footer__links a:hover {
  color: var(--text-on-ink);
}

/* Inner pages (Story) ----------------------------------------------- */

.page-head {
  padding-top: calc(var(--nav-h) + clamp(3rem, 8vw, 6rem));
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}

.page-head .h1 {
  max-width: 14ch;
  font-size: clamp(2.5rem, 1.5rem + 4.5vw, 5rem);
  font-weight: 200;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.page-head .lede {
  margin-top: 1.5rem;
}

.prose {
  display: grid;
  gap: 1.5rem;
  max-width: 38rem;
  font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
  line-height: 1.6;
}

.prose h2 {
  margin-top: 1rem;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.prose .sign {
  margin-top: 0.5rem;
  font-weight: 400;
}

.cta {
  display: grid;
  justify-items: start;
  gap: 1.5rem;
}
