/* ================================
   Remindex landing page
================================= */
:root {
  --color-primary: #feca1f;
  --color-secondary: #2f3a49;
  --color-background: #21252c;
  --color-text: #efeee9;
  --color-muted: #b6bbc4;
  --color-hairline: #343c48;
  --color-ink: #181b20;

  --font-primary: "Inria Sans", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --bar-height: 72px;
  --gutter: max(clamp(1.25rem, 5vw, 5rem), calc((100vw - 1240px) / 2));
  --measure: 62ch;

  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-primary);
  font-size: 1.125rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

ul,
ol {
  padding: 0;
  list-style: none;
}

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

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--color-primary);
  color: var(--color-ink);
}

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

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.6rem 1rem;
  background: var(--color-primary);
  color: var(--color-ink);
  border-radius: 10px;
  font-weight: 700;
}
.skip:focus {
  top: 1rem;
}

/* ---------- Type ---------- */
h1 {
  font-size: clamp(2.9rem, 7.4vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.025em;
  font-weight: 700;
  text-wrap: balance;
}
h2 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}
h3 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 700;
  text-wrap: balance;
}
p {
  max-width: var(--measure);
  text-wrap: pretty;
}
.hl {
  color: var(--color-primary);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 48px;
  padding: 0.7rem 1.5rem;
  background: var(--color-primary);
  color: var(--color-ink);
  border-radius: 16px;
  font-weight: 700;
  transition: transform 0.25s var(--ease-out), background-color 0.25s var(--ease-out);
}
.btn:hover {
  background: #ffd84d;
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}
.btn-small {
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  font-size: 1rem;
  border-radius: 12px;
}
.btn-play {
  padding: 0.75rem 1.6rem 0.75rem 1.3rem;
}
.btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  font-size: 1.45rem;
  text-align: left;
}
.btn-text small {
  font-size: 0.8rem;
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.btn-large {
  padding: 1rem 2rem 1rem 1.7rem;
}
.btn-large .btn-text {
  font-size: 1.75rem;
}

.link {
  display: inline-block;
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 2px;
}
.link:hover {
  text-decoration-color: transparent;
}

/* ---------- Header ---------- */
.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--bar-height);
  padding-inline: var(--gutter);
  background: rgba(33, 37, 44, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-hairline);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.4rem;
  font-weight: 700;
}
.brand img,
.foot-brand img {
  border-radius: 10px;
}
.bar-nav {
  display: flex;
  gap: 2rem;
  margin-left: auto;
  color: var(--color-muted);
  font-size: 1rem;
}
.bar-nav a {
  padding-block: 0.5rem;
  transition: color 0.2s;
}
.bar-nav a:hover {
  color: var(--color-text);
}

/* ---------- Phone ---------- */
.phone {
  position: relative;
  width: clamp(240px, 26vw, 340px);
  padding: 9px;
  background: var(--color-ink);
  border-radius: 48px;
  box-shadow:
    0 0 0 1.5px #3b4452,
    0 30px 60px -20px rgba(0, 0, 0, 0.6),
    0 12px 24px -12px rgba(0, 0, 0, 0.5);
}
.phone-screen {
  position: relative;
  aspect-ratio: 580 / 1300;
  overflow: hidden;
  border-radius: 40px;
  background: var(--color-background);
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Hero ---------- */
.hero {
  overflow-x: clip;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  min-height: calc(100svh - var(--bar-height));
  padding: clamp(2.5rem, 6vh, 5rem) var(--gutter);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.75rem;
}
.lede {
  max-width: 34ch;
  font-size: clamp(1.25rem, 2.1vw, 1.6rem);
  line-height: 1.4;
  color: var(--color-muted);
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.75rem;
  color: var(--color-muted);
  font-size: 1rem;
}
.facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.facts li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
}
.hero-art {
  position: relative;
  isolation: isolate;
  justify-self: center;
}
/* Static, dark slate light behind the phone */
.hero-art::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 290%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  z-index: -1;
  background: radial-gradient(
    circle closest-side,
    rgba(62, 77, 100, 0.8),
    rgba(48, 60, 78, 0.45) 50%,
    rgba(47, 58, 73, 0) 100%
  );
  pointer-events: none;
}
.hero-art .phone {
  position: relative;
  width: clamp(230px, min(26vw, calc((100svh - 12rem) / 2.24)), 340px);
}

/* ---------- A day with Remindex ---------- */
.day {
  padding: clamp(3rem, 9vw, 7rem) var(--gutter) 0;
}
.day-intro {
  display: grid;
  gap: 1.25rem;
  max-width: 44rem;
  margin-bottom: clamp(1rem, 4vw, 3rem);
}
.day-intro p {
  color: var(--color-muted);
}
.day-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 5vw, 4rem);
}
.steps {
  position: relative;
}
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  min-height: min(64vh, 560px);
  padding-left: 3.25rem;
  opacity: 0.38;
  transition: opacity 0.5s var(--ease-out);
}
.step.is-active {
  opacity: 1;
}
/* Time rail */
.step::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-hairline);
}
.step:first-child::before {
  top: 50%;
}
.step:last-child::before {
  bottom: 50%;
}
.step::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  border-radius: 50%;
  background: var(--color-background);
  box-shadow: inset 0 0 0 3px var(--color-hairline);
  transition: box-shadow 0.4s var(--ease-out), background-color 0.4s var(--ease-out);
}
.step.is-active::after {
  background: var(--color-primary);
  box-shadow: 0 0 0 5px rgba(254, 202, 31, 0.22);
}
.clock {
  align-self: flex-start;
  padding: 0.2rem 0.8rem;
  background: var(--color-secondary);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background-color 0.4s var(--ease-out), color 0.4s var(--ease-out);
}
.step.is-active .clock {
  background: var(--color-primary);
  color: var(--color-ink);
}
.step p {
  color: var(--color-muted);
}
.step-shot {
  display: none;
}

.stage {
  position: sticky;
  top: var(--bar-height);
  height: calc(100vh - var(--bar-height));
  display: flex;
  align-items: center;
  justify-content: center;
}
.stage-phone {
  width: clamp(250px, 24vw, 330px);
}
.stage-phone .phone-screen img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  filter: blur(6px);
  transition:
    opacity 0.55s var(--ease-out),
    transform 0.7s var(--ease-out),
    filter 0.55s var(--ease-out);
}
.stage-phone .phone-screen img.on {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

/* ---------- What's inside ---------- */
.inside {
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
}
.inside h2 {
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
}
.inside-list {
  border-top: 1px solid var(--color-hairline);
}
.inside-list > div {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 1rem 3rem;
  align-items: baseline;
  padding: clamp(1.25rem, 3vw, 2rem) 0;
  border-bottom: 1px solid var(--color-hairline);
}
.inside-list dt {
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.inside-list dd {
  max-width: 44ch;
  color: var(--color-muted);
}

/* ---------- Privacy ---------- */
.privacy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  margin-inline: var(--gutter);
  padding: clamp(2rem, 6vw, 4.5rem);
  background: var(--color-secondary);
  border-radius: clamp(24px, 4vw, 40px);
}
.privacy-copy {
  display: grid;
  justify-items: start;
  gap: 1.5rem;
}
.privacy-art {
  width: 100%;
  max-width: 460px;
  justify-self: center;
  height: auto;
}
.privacy h2 {
  max-width: 18ch;
}
.privacy p {
  color: #d3d6dc;
}

/* ---------- Final call ---------- */
.get {
  display: grid;
  justify-items: center;
  gap: 1.5rem;
  padding: clamp(5rem, 12vw, 9rem) var(--gutter);
  text-align: center;
}
.get p {
  color: var(--color-muted);
}

/* ---------- Footer ---------- */
.foot {
  padding: clamp(2rem, 4vw, 3rem) var(--gutter) 1.5rem;
  background: var(--color-ink);
  color: var(--color-muted);
  font-size: 1rem;
}
.foot-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem clamp(1.5rem, 4vw, 3.5rem);
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  flex: none;
  color: var(--color-text);
}
.foot-brand img {
  border-radius: 12px;
}
.foot-name {
  display: flex;
  flex-direction: column;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.15;
}
.foot-name small {
  color: var(--color-muted);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.4;
}
.foot-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem clamp(1.25rem, 3vw, 2.5rem);
}
.foot-nav a,
.foot-meta a {
  display: inline-block;
  padding-block: 0.5rem;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.3em;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.foot-nav a {
  color: var(--color-text);
}
.foot-nav a:hover,
.foot-meta a:hover {
  color: var(--color-primary);
  text-decoration-color: currentColor;
}
.foot-main .btn {
  flex: none;
}
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-hairline);
  font-size: 0.9rem;
}
.foot-copy {
  max-width: none;
  font-size: inherit;
}
.foot-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.75rem;
}

/* ---------- Policy page ---------- */
.policy {
  max-width: calc(46rem + 2 * var(--gutter));
  margin-inline: auto;
  padding: clamp(2rem, 6vw, 4rem) var(--gutter) clamp(3rem, 8vw, 6rem);
}
.policy .back {
  display: inline-block;
  margin-bottom: 2rem;
  padding-block: 0.5rem;
  color: var(--color-primary);
  font-weight: 700;
}
.policy .back:hover {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}
.policy h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
}
.policy-date {
  margin-top: 0.75rem;
  color: var(--color-muted);
}
.policy section {
  margin-top: clamp(2rem, 5vw, 3rem);
}
.policy h2 {
  margin-bottom: 0.6rem;
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  line-height: 1.2;
}
.policy p {
  max-width: 62ch;
  color: #d3d6dc;
}
.policy strong {
  color: var(--color-text);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .bar-nav {
    display: none;
  }
  .bar {
    justify-content: space-between;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 3rem;
    padding-top: 2.5rem;
  }
  .hero-art {
    width: min(86vw, 380px);
  }
  .hero-art .phone {
    width: min(66vw, 290px);
    margin-inline: auto;
  }

  .day-grid {
    grid-template-columns: 1fr;
  }
  .stage {
    display: none;
  }
  .step {
    min-height: 0;
    padding-block: 2.5rem;
    opacity: 1;
  }
  .step-shot {
    display: block;
    width: min(70vw, 280px);
    margin-top: 1.5rem;
  }
  .step::after {
    top: 3.4rem;
    margin-top: 0;
  }
  .step::before {
    top: 0;
    bottom: 0;
  }
  .step:first-child::before {
    top: 3.4rem;
  }
  .step:last-child::before {
    bottom: auto;
    height: 3.4rem;
  }
  .step .clock {
    background: var(--color-primary);
    color: var(--color-ink);
  }
  .step::after {
    background: var(--color-primary);
  }

  .privacy {
    grid-template-columns: 1fr;
  }
  .privacy-art {
    max-width: 320px;
  }

  .inside-list > div {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .foot-main {
    flex-wrap: wrap;
  }
  .foot-nav {
    order: 3;
    flex-basis: 100%;
  }
  .foot-nav ul {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .foot-main .btn {
    width: 100%;
    justify-content: center;
  }
  body {
    font-size: 1.0625rem;
  }
  .btn-play {
    width: 100%;
    justify-content: center;
  }
  .btn-large {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
