/* ReNewMe website. One stylesheet, no build step. */

@font-face {
  font-family: 'Barlow Condensed';
  src: url('../fonts/BarlowCondensed_700Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('../fonts/BarlowCondensed_600SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f4f5f8;
  --surface: #ffffff;
  --ink: #0e1013;
  --ink-soft: #494d57;
  --ink-muted: #6f737e;
  --line: rgba(14, 16, 19, 0.1);

  --night: #0b0c0f;
  --night-raised: #15161a;
  --night-ink: #f5f5f7;
  --night-soft: #b5b8c0;
  --night-muted: #8a8d97;
  --night-line: rgba(255, 255, 255, 0.12);

  --accent: #e4502a;
  --accent-strong: #d2441f;
  --accent-night: #ff6b3d;

  --display: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', system-ui, sans-serif;
  --text: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --section: clamp(72px, 11vw, 136px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

/* The page is dark at its edges (header, hero, footer) and light in the middle,
   so the body carries the dark and <main> carries the light. */
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  background: var(--bg);
}

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

a {
  color: inherit;
}

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

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

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

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

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 8px;
}
.skip:focus {
  left: 8px;
}

/* ---------- Type ---------- */

.display {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(60px, 10.5vw, 132px);
  line-height: 0.9;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.008em;
  text-wrap: balance;
}

.h3 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.lead {
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 34em;
  text-wrap: pretty;
}

.muted {
  color: var(--ink-muted);
}

.small {
  font-size: 15px;
  line-height: 1.5;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 17px;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.12s ease,
    background-color 0.12s ease;
}
.btn:active {
  transform: scale(0.98);
}
.btn--primary {
  background: var(--accent-strong);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.14);
}
.btn--primary:hover {
  background: #bf3b19;
}
.btn--quiet {
  color: inherit;
  box-shadow: inset 0 0 0 1.5px currentColor;
  opacity: 0.92;
}
.btn--quiet:hover {
  opacity: 1;
}
.btn--small {
  min-height: 42px;
  padding: 0 20px;
  font-size: 15.5px;
}
.btn svg {
  flex: none;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 12, 15, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--night-line);
  color: var(--night-ink);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.brand svg {
  width: 30px;
  height: 30px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.6vw, 34px);
}
.nav a:not(.btn) {
  text-decoration: none;
  font-size: 15.5px;
  color: var(--night-soft);
}
.nav a:not(.btn):hover {
  color: var(--night-ink);
}
@media (max-width: 720px) {
  .nav a:not(.btn) {
    display: none;
  }
}

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

.hero {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: var(--night-ink);
}
/* The app's own mark, at the size of a building. */
.hero::before {
  content: '';
  position: absolute;
  width: min(1100px, 120vw);
  aspect-ratio: 1;
  right: max(-320px, -32vw);
  top: 50%;
  translate: 0 -46%;
  border-radius: 50%;
  border: clamp(54px, 9vw, 104px) solid rgba(255, 255, 255, 0.035);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
  padding-block: clamp(56px, 8vw, 104px) clamp(64px, 9vw, 120px);
}
.hero .lead {
  color: var(--night-soft);
  margin-top: 28px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.hero__note {
  margin-top: 22px;
  color: var(--night-muted);
  font-size: 15px;
}
.dot {
  color: var(--accent-night);
}

.hero__phones {
  position: relative;
  justify-self: center;
  width: min(320px, 74vw);
}
.hero__phones .phone--back {
  position: absolute;
  inset: 0;
  translate: 46% 9%;
  scale: 0.9;
  opacity: 0.9;
}
@media (max-width: 1040px) {
  .hero__phones .phone--back {
    display: none;
  }
}
@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .hero__phones {
    margin-top: 12px;
  }
}

/* ---------- Phone frame ---------- */

.phone {
  position: relative;
  border-radius: 13.5% / 6.4%;
  padding: 3%;
  background: #1a1b1f;
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.1),
    0 44px 80px -36px rgba(8, 10, 18, 0.55),
    0 14px 28px -14px rgba(8, 10, 18, 0.3);
}
.phone img {
  width: 100%;
  border-radius: 11% / 5.1%;
}

/* ---------- Facts band ---------- */

.facts {
  background: var(--night);
  color: var(--night-ink);
  border-top: 1px solid var(--night-line);
}
.facts ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.facts li {
  padding: clamp(28px, 4vw, 44px) clamp(16px, 3vw, 36px);
  border-left: 1px solid var(--night-line);
}
.facts li:first-child {
  border-left: 0;
  padding-left: 0;
}
.facts strong {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1;
}
.facts span {
  display: block;
  margin-top: 10px;
  color: var(--night-soft);
  font-size: 15.5px;
  line-height: 1.5;
  max-width: 24em;
}
@media (max-width: 760px) {
  .facts ul {
    grid-template-columns: 1fr;
  }
  .facts li {
    border-left: 0;
    border-top: 1px solid var(--night-line);
    padding-inline: 0;
  }
  .facts li:first-child {
    border-top: 0;
  }
}

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

.section {
  padding-block: var(--section);
}
/* A section that continues the one above it, without a second helping of space. */
.section--follow {
  padding-top: 0;
}
.section--night {
  background: var(--night);
  color: var(--night-ink);
}
.section--night .lead {
  color: var(--night-soft);
}
.section__head {
  max-width: 46em;
}
.section__head .lead {
  margin-top: 22px;
}

/* How it works: a real sequence, so it is numbered. */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(44px, 6vw, 72px);
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  border-top: 2px solid var(--ink);
  padding-top: 20px;
}
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 44px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 14px;
}
.steps p {
  margin-top: 8px;
  color: var(--ink-soft);
}
@media (max-width: 820px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* Features: copy on one side, the real screen on the other, alternating. */
.features {
  display: grid;
  gap: clamp(72px, 11vw, 148px);
  padding-bottom: var(--section);
}
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  align-items: center;
  gap: clamp(32px, 7vw, 104px);
}
.feature .phone {
  width: min(300px, 72vw);
  justify-self: center;
}
.feature:nth-child(even) .feature__copy {
  order: 2;
}
.feature__copy .lead {
  margin-top: 20px;
}
.points {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}
.points li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
@media (max-width: 820px) {
  .feature {
    grid-template-columns: 1fr;
  }
  .feature:nth-child(even) .feature__copy {
    order: 0;
  }
}

/* Privacy: plain terms and what they mean. */
.terms {
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--night-line);
}
.terms div {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--night-line);
}
.terms dt {
  font-family: var(--display);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.1;
}
.terms dd {
  color: var(--night-soft);
  max-width: 36em;
}
@media (max-width: 680px) {
  .terms div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* Get it */
.get {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(40px, 5vw, 60px);
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(24px, 3.4vw, 40px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.panel__platform {
  font-family: var(--display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
}
.panel p {
  margin-top: 14px;
  color: var(--ink-soft);
}
.panel .btn {
  margin-top: 26px;
}
.panel ol {
  margin-top: 22px;
  counter-reset: s;
  width: 100%;
  border-top: 1px solid var(--line);
}
.panel ol li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 28px 1fr;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 16px;
}
.panel ol li::before {
  content: counter(s);
  font-weight: 700;
  color: var(--ink);
}
.panel .small {
  margin-top: 18px;
}
.get__also {
  margin-top: 24px;
  color: var(--ink-soft);
}
@media (max-width: 820px) {
  .get {
    grid-template-columns: 1fr;
  }
}
[hidden] {
  display: none !important;
}

/* FAQ */
.faq {
  margin-top: clamp(32px, 4vw, 52px);
  border-top: 1px solid var(--line);
  max-width: 820px;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  flex: none;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--ink-muted);
  border-bottom: 2px solid var(--ink-muted);
  rotate: 45deg;
  translate: 0 -3px;
  transition: rotate 0.15s ease;
}
.faq details[open] summary::after {
  rotate: -135deg;
  translate: 0 3px;
}
.faq p {
  padding: 0 0 24px;
  color: var(--ink-soft);
  max-width: 40em;
}

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

.site-footer {
  background: var(--night);
  color: var(--night-soft);
  padding-block: clamp(48px, 7vw, 80px) 36px;
  font-size: 15.5px;
}
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
}
.site-footer .brand {
  color: var(--night-ink);
}
.site-footer__about {
  margin-top: 14px;
  max-width: 26em;
}
.site-footer h2 {
  font-size: 13px;
  font-weight: 650;
  color: var(--night-muted);
  margin-bottom: 14px;
}
.site-footer li + li {
  margin-top: 8px;
}
.site-footer a {
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--night-ink);
}
.credit__name {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  color: var(--night-ink);
  font-weight: 650;
  font-size: 19px;
}
.credit__name svg {
  width: 22px;
  height: 22px;
}
.site-footer__bottom {
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 24px;
  border-top: 1px solid var(--night-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  color: var(--night-muted);
  font-size: 14px;
}
.site-footer__bottom p {
  max-width: 46em;
}
@media (max-width: 820px) {
  .site-footer__top {
    grid-template-columns: 1fr;
  }
}

/* ---------- Plain pages (privacy, 404) ---------- */

.page {
  padding-block: clamp(56px, 8vw, 104px) var(--section);
}
.prose {
  max-width: 720px;
}
.prose h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(48px, 7vw, 84px);
  line-height: 0.95;
}
.prose h2 {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin-top: 44px;
}
.prose p,
.prose ul {
  margin-top: 14px;
  color: var(--ink-soft);
}
.prose ul {
  list-style: disc;
  padding-left: 22px;
}
.prose li + li {
  margin-top: 6px;
}
.prose a {
  color: var(--accent-strong);
}
.prose .updated {
  margin-top: 18px;
  color: var(--ink-muted);
  font-size: 15px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  .faq summary::after {
    transition: none;
  }
}
