/* rused landing page — the app's dark theme: near-black, red accent, Nunito. */

/* SN Pro (SIL Open Font License, see fonts/SN-Pro-OFL.txt), served from this site — no font service. */
@font-face {
  font-family: 'SN Pro';
  src: url('../fonts/sn-pro.woff2?v=f504de5d') format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SN Pro';
  src: url('../fonts/sn-pro-italic.woff2?v=f504de5d') format('woff2');
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #0e0e10;
  --surface: #17171a;
  --surface-2: #222226;
  --border: #2e2e33;
  --text: #f1f1f3;
  --muted: #a1a1aa;
  --red: #f2545b;
  --red-logo: #e63946;
  --red-deep: #d62839;
  --radius: 22px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 300 18px/1.6 'SN Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 300; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); text-align: center; }
h3 { font-size: 1.35rem; }
.r { color: var(--red-logo); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--red); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }

/* ── Navigation ─────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px max(20px, calc((100vw - var(--max)) / 2));
  background: rgba(14, 14, 16, .78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.nav-logo { font-weight: 300; font-size: 1.6rem; color: var(--text); text-decoration: none; letter-spacing: -.02em; }
.nav-logo .r { color: var(--red-logo); }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { color: var(--muted); text-decoration: none; font-weight: 300; font-size: .95rem; transition: color .2s; }
.nav nav a:hover { color: var(--text); }
.langs { display: flex; gap: 2px; padding: 3px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; }
.langs button {
  font: inherit; font-weight: 300; font-size: .78rem; color: var(--muted);
  background: transparent; border: 0; border-radius: 999px; padding: 5px 10px; cursor: pointer;
}
.langs button:hover { color: var(--text); }
.langs button[aria-pressed='true'] { background: var(--red); color: #1f0507; }
@media (max-width: 720px) { .nav nav { display: none; } .langs { margin-left: auto; } }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: clip; isolation: isolate;
  min-height: calc(100vh - 64px);
  display: flex; align-items: center;
  padding: 72px 20px 96px;
  background: radial-gradient(ellipse at 15% 20%, rgba(214, 40, 57, .22), transparent 55%),
              radial-gradient(ellipse at 90% 85%, rgba(91, 42, 134, .18), transparent 50%);
}
.hero-inner {
  width: 100%; max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px;
}
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .35; pointer-events: none; z-index: -1; }
.glow-1 { width: 620px; height: 620px; background: var(--red-deep); top: -160px; left: -160px; animation: drift 18s ease-in-out infinite alternate; }
.glow-2 { width: 520px; height: 520px; background: #5b2a86; bottom: -120px; right: -100px; opacity: .22; animation: drift 22s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.12); } }

/* The headline: "reduce unused" drops its middle and becomes "rused". */
.hero-text { position: relative; z-index: 2; }
.morph {
  font-size: clamp(2.4rem, 11.5vw, 6.4rem); font-weight: 300; letter-spacing: -.02em;
  margin: 0; white-space: nowrap; line-height: 1;
}
.morph .m-r { color: var(--text); transition: color .6s ease .2s; display: inline-block; }
.morph .m-used { color: var(--text); display: inline-block; }
.morph .m-drop { display: inline-block; white-space: nowrap; overflow: visible; vertical-align: bottom; color: var(--muted); }
.morph .m-drop > span { display: inline-block; transition: transform .42s cubic-bezier(.5, 0, .75, 0), opacity .32s ease; }
.morph .m-drop.collapse { transition: width .32s cubic-bezier(.7, 0, .84, 0); }
.morph.done .m-r { color: var(--red-logo); }
/* "used" runs into the r, bumps it, and springs back to its place. */
.morph.done .m-used { animation: bump-in .55s cubic-bezier(.3, 1.6, .5, 1); }
.morph.done .m-r { animation: bumped .55s ease-out; transform-origin: 70% 90%; }
@keyframes bump-in { 0% { transform: translateX(0); } 30% { transform: translateX(-.13em); } 60% { transform: translateX(.04em); } 100% { transform: translateX(0); } }
@keyframes bumped { 0%, 22% { transform: none; } 34% { transform: scaleX(.9) rotate(-4deg); } 70% { transform: scaleX(1.03) rotate(1deg); } 100% { transform: none; } }
.tag { color: var(--muted); letter-spacing: .4em; text-transform: uppercase; font-weight: 300; font-size: .8rem; margin: 18px 0 0; opacity: 0; transition: opacity .8s ease; }
.morph.done ~ .tag { opacity: 1; }

.slogan { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 300; margin: 14px 0 18px; }
.slogan em { font-style: italic; background: linear-gradient(90deg, var(--red), #ff9a8b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 1.15rem; max-width: 34em; }

.badges { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.badges.center { justify-content: center; }
.badge { position: relative; display: inline-block; height: 56px; }
.badge img { height: 100%; width: auto; }
.badge img[data-badge] { height: 82px; width: auto; max-width: none; margin: -13px -10px; }  /* Google's PNG has its own transparent margin */
.badge.soon img { filter: grayscale(1) brightness(.75); opacity: .55; }
.soon-label {
  position: absolute; top: -16px; right: -12px;
  background: var(--red); color: #1f0507; font-weight: 300; font-size: .72rem;
  padding: 3px 9px; border-radius: 999px; transform: rotate(6deg); white-space: nowrap;
  box-shadow: 0 6px 18px rgba(242, 84, 91, .35);
}

.hero-phones { position: relative; height: 620px; }
.phone {
  margin: 0; position: absolute; width: 270px;
  border-radius: 38px; padding: 10px; background: #050506;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08) inset;
}
.phone img { border-radius: 29px; }
.phone-front { right: 60px; top: 30px; animation: float 7s ease-in-out infinite; }
.phone-back { right: 250px; top: 90px; transform: rotate(-8deg) scale(.88); opacity: .75; animation: float-back 8s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }
@keyframes float-back { 0%, 100% { transform: rotate(-8deg) scale(.88); } 50% { transform: rotate(-6deg) scale(.88) translateY(10px); } }

@media (max-width: 960px) {
  .hero { padding-top: 48px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .lead { margin: 0 auto; }
  .badges { justify-content: center; }
  .hero-phones { height: 540px; }
  .phone-front { right: 50%; transform: translateX(50%); animation: none; }
  .phone-back { display: none; }
}

/* ── Sections ───────────────────────────────────────────────────────────── */
section { padding: 96px 20px; }
/* Jump links land below the sticky navigation, not under it. */
section[id] { scroll-margin-top: 64px; }
.section-lead { text-align: center; color: var(--muted); max-width: 40em; margin: 0 auto 48px; font-size: 1.1rem; }

.how { background: linear-gradient(180deg, transparent, rgba(23, 23, 26, .9) 30%, rgba(23, 23, 26, .9) 70%, transparent); }
.steps { list-style: none; padding: 0; margin: 48px auto 0; max-width: var(--max); display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: none; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; position: relative; overflow: hidden; }
.step h3 { font-size: 2rem; font-style: italic; }
.step p { color: var(--muted); margin: 0; }
.step-no { position: absolute; right: 18px; top: 4px; font-size: 6rem; font-weight: 300; color: rgba(242, 84, 91, .12); line-height: 1; }
.step:hover { border-color: rgba(242, 84, 91, .5); transform: translateY(-4px); }
.step { transition: transform .3s ease, border-color .3s ease, opacity .8s ease; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.features { max-width: var(--max); margin: 0 auto; }
.feature { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; margin: 0 auto 88px; max-width: 920px; }
.feature.flip { grid-template-columns: 1fr 300px; }
.feature.flip .phone { order: 2; }
.feature .phone { position: relative; width: 280px; }
.feature h3 { font-size: 2rem; }
.feature h3::after { content: ''; display: block; width: 48px; height: 5px; border-radius: 3px; background: var(--red); margin-top: 12px; }
.feature p, .feature li { color: var(--muted); }
.feature ul { padding-left: 1.2em; margin: 16px 0; }
.feature li { margin: 6px 0; }
.feature li strong { color: var(--text); }
.feature li::marker { color: var(--red); }
.note { font-size: .95rem; border-left: 3px solid var(--red); padding-left: 12px; }
@media (max-width: 860px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 28px; text-align: left; }
  .feature.flip .phone { order: 0; }
  .feature .phone { margin: 0 auto; width: 250px; }
}

.why { max-width: var(--max); margin: 0 auto; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: transform .3s ease, border-color .3s ease, opacity .8s ease; }
.card:hover { transform: translateY(-4px); border-color: rgba(242, 84, 91, .45); }
.card p { color: var(--muted); margin: 0; }
.card-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(242, 84, 91, .14); color: var(--red); font-size: 1.4rem; font-weight: 300; margin-bottom: 16px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

.categories { text-align: center; }
.az-wrap {
  overflow: hidden; margin: 0 -20px; padding: 10px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.az-row { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; width: max-content; animation: marquee 70s linear infinite; }
.az-wrap:hover .az-row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.az {
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 10px 20px 10px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
  font-weight: 300; transition: background .25s ease, color .25s ease, transform .25s ease;
}
.az-l { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(242, 84, 91, .16); color: var(--red); font-weight: 300; }
.az:hover { background: var(--red); color: #1f0507; transform: translateY(-3px); }
.az:hover .az-l { background: #1f0507; color: var(--red); }
.cats { color: var(--muted); max-width: 46em; margin: 36px auto 0; font-size: .98rem; }
.cats span:first-child { color: var(--text); font-weight: 300; }

.privacy {
  max-width: 760px; margin: 0 auto; text-align: center;
  background: radial-gradient(circle at 50% 0, rgba(242, 84, 91, .18), transparent 70%), var(--surface);
  border: 1px solid var(--border); border-radius: 32px; padding: 56px 32px;
}
.privacy p { color: var(--muted); font-size: 1.1rem; margin: 0; }

.download { text-align: center; padding-bottom: 120px; }
.dl-logo { font-size: clamp(3rem, 8vw, 5rem); font-weight: 300; letter-spacing: -.04em; margin: 0 0 8px; }

.footer { border-top: 1px solid var(--border); text-align: center; padding: 36px 20px 48px; color: var(--muted); font-size: .95rem; }
.footer p { margin: 6px 0; }
.footer .r { color: var(--red-logo); font-weight: 300; }
.footer a { color: var(--muted); }
.footer .small { font-size: .78rem; opacity: .7; max-width: 40em; margin: 14px auto 0; }

/* ── Scroll reveal ──────────────────────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.visible { opacity: 1; transform: none; }

/* Legal pages */
.legal-page { max-width: 760px; margin: 0 auto; padding: 64px 20px 96px; }
.legal-page h1 { font-size: 2.4rem; }
.legal-page h2 { text-align: left; font-size: 1.4rem; margin-top: 2em; }
.legal-page p, .legal-page li { color: var(--muted); }
.fill { background: rgba(242, 84, 91, .18); color: var(--text); padding: 0 .3em; border-radius: 4px; }

/* ── Type weights: headlines and sublines 500, all other text 300 ─────────── */
h1, h2, h3, .morph, .tag, .slogan, .section-lead, .step h3,
.nav-logo, .dl-logo, .footer .r, .step-no, .az-l, .soon-label, .langs button, strong { font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .az-row { flex-wrap: wrap; width: auto; justify-content: center; }
  .az-wrap { -webkit-mask-image: none; mask-image: none; }
}
