/*
 * app.best — the Best app's site.
 *
 * The look of products.best: graphite, a deep blue-black lit from above,
 * glass cards with a hairline edge, headlines in a white-to-silver sheen and
 * white pill buttons. The app's own heart pink is kept for the vote buttons.
 */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #0A0F1A;
  --bg2: #111827;
  --surface: #151D2C;
  --ink: #F4F6FA;
  --muted: #AAB4C5;
  --line: rgba(255, 255, 255, 0.13);
  --accent: #E6EAF1;
  --accent-ink: #CBD3E0;
  --on-accent: #0B1220;
  --blue: #9CC3FF;
  --heart: #F0386B;
  --radius: 18px;
  --shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 18px 44px rgba(0, 0, 0, 0.36);
  --shadow-lift: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 28px 70px rgba(0, 0, 0, 0.5);
  --chrome: linear-gradient(180deg, #FFFFFF 0%, #E9EDF3 45%, #9AA6B8 100%);
  --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip;
  /* Lit from above: a cool silver glow top right, a steel-blue one top left. */
  background:
    radial-gradient(1200px 680px at 78% -12%, rgba(176, 190, 214, 0.2), transparent 62%),
    radial-gradient(900px 600px at -8% 8%, rgba(56, 78, 120, 0.34), transparent 66%),
    linear-gradient(180deg, #0D1422 0%, var(--bg) 60%);
  background-color: var(--bg); background-repeat: no-repeat;
  color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: 10px;
  background: var(--ink); color: var(--bg);
}
.skip:focus { top: 12px; }

/* Header ------------------------------------------------------- */
.bar { padding: 16px 0; border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.bar-in {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  padding: 0 clamp(16px, 3.2vw, 64px);
}
.logo { justify-self: start; display: block; }
.logo img { height: clamp(26px, 2vw, 34px); width: auto; }
.foot .logo img { height: 30px; }
.nav {
  justify-self: center; display: flex; align-items: center;
  gap: clamp(14px, 1.6vw, 30px); font-size: clamp(14.5px, 1.04vw, 18px); color: var(--muted);
}
.nav a {
  white-space: nowrap; padding: 6px 0 4px; border-bottom: 2px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}
.nav a:hover { color: var(--ink); border-bottom-color: rgba(244, 246, 250, 0.4); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.bar-end { justify-self: end; display: flex; align-items: center; gap: 12px; }

/* Buttons ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  border-radius: 999px; padding: 11px 22px; font-size: clamp(15px, 1.04vw, 18px); font-weight: 600;
  border: 1px solid var(--line); background: var(--glass); color: var(--ink);
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  cursor: pointer; font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: linear-gradient(180deg, #FFFFFF 0%, #DCE2EB 100%); border-color: rgba(255, 255, 255, 0.7);
  color: var(--on-accent); font-weight: 700;
  box-shadow: inset 0 -1px 0 rgba(10, 15, 26, 0.12), 0 10px 28px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.btn--primary:hover { background: linear-gradient(180deg, #FFFFFF 0%, #EEF1F6 100%); }

/* Burger + drawer ---------------------------------------------- */
.burger {
  display: none; width: 42px; height: 42px; padding: 0; place-items: center; cursor: pointer;
  border: 1px solid var(--line); border-radius: 10px; background: var(--glass); color: var(--ink);
}
.menu { display: none; }
@media (max-width: 1080px) {
  .nav, .bar-end .btn { display: none; }
  .burger { display: grid; }
  .bar-in { grid-template-columns: 1fr auto; }
  .menu--open { display: block; border-bottom: 1px solid var(--line); background: var(--surface); }
  .menu a:not(.btn) { display: block; padding: 13px clamp(16px, 5vw, 56px); font-size: 16px; color: var(--muted); border-top: 1px solid var(--line); }
  .menu .btn { display: flex; margin: 14px clamp(16px, 5vw, 56px) 18px; }
}

/* Layout ------------------------------------------------------- */
main {
  flex: 1 0 auto; width: 100%; max-width: 1200px; margin: 0 auto;
  padding: clamp(24px, 4vw, 40px) clamp(16px, 5vw, 56px) clamp(56px, 8vw, 88px);
}
.section { margin-top: clamp(96px, 13vw, 176px); scroll-margin-top: 24px; }
.head { text-align: center; max-width: 780px; margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 13px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink);
}
.h1, .h2 {
  background: var(--chrome); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.h2 { margin: 0; font-size: clamp(34px, 5.2vw, 72px); font-weight: 500; letter-spacing: -0.045em; line-height: 1.06; padding-bottom: 0.06em; }
.h2-sub { margin: 14px 0 0; font-size: clamp(17px, 1.6vw, 23px); line-height: 1.5; color: var(--muted); }
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--glass), rgba(21, 29, 44, 0.55);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

/* Hero --------------------------------------------------------- */
.hero { position: relative; text-align: center; padding-top: clamp(28px, 6vw, 84px); }
.hero::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: -160px; left: calc(50% - 50vw); right: calc(50% - 50vw); height: 1400px;
  background:
    radial-gradient(60% 38% at 50% 0%, rgba(156, 195, 255, 0.16), transparent 70%),
    radial-gradient(42% 30% at 50% 62%, rgba(255, 255, 255, 0.07), transparent 70%);
}
/* The app's own vote button: a white heart on a pink disc. */
.hero-heart {
  width: clamp(54px, 4.6vw, 68px); height: clamp(54px, 4.6vw, 68px); margin: 0 auto 26px; border-radius: 999px;
  display: grid; place-items: center; background: var(--heart);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 12px 32px rgba(240, 56, 107, 0.35), 0 10px 24px rgba(0, 0, 0, 0.45);
}
.hero-heart svg { width: 50%; height: 50%; margin-top: 4%; }
.h1 { margin: 0; font-size: clamp(48px, 8.4vw, 124px); font-weight: 600; letter-spacing: -0.05em; line-height: 0.96; padding-bottom: 0.08em; }
/* One line, sized to the screen so it never wraps (the line is about 6.6em wide). */
.hero .h1 { white-space: nowrap; font-size: clamp(32px, 12.8vw, 124px); }
.hero-sub {
  margin: clamp(18px, 2vw, 28px) auto 0; max-width: 36ch;
  font-size: clamp(18px, 1.7vw, 25px); line-height: 1.42; letter-spacing: -0.01em; color: var(--muted);
}
.stores { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: clamp(26px, 3vw, 40px); }
.store { display: block; border-radius: 12px; transition: transform 180ms ease; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4); }
.store:hover { transform: translateY(-1px); }
.store img { height: 52px; width: auto; }
.pills {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; margin: 18px 0 0; padding: 0; list-style: none;
  font-size: 14px; color: var(--muted);
}
.pills li + li::before { content: "·"; margin: 0 12px; opacity: 0.6; }

/* Phones ------------------------------------------------------- */
.stage { position: relative; margin: clamp(48px, 7vw, 96px) auto 0; max-width: 1000px; display: flex; justify-content: center; align-items: center; }
.stage::before {
  content: ""; position: absolute; z-index: -1; inset: 10% 8% -8%;
  background: radial-gradient(closest-side, rgba(200, 220, 255, 0.22), transparent); filter: blur(30px);
}
.phone {
  flex: none; width: clamp(108px, 26vw, 290px); padding: clamp(6px, 0.8vw, 10px); border-radius: clamp(28px, 4vw, 48px);
  background: linear-gradient(180deg, #2A3344, #121826); border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 40px 90px rgba(0, 0, 0, 0.6);
}
.phone img { width: 100%; height: auto; aspect-ratio: 945 / 2048; object-fit: cover; border-radius: clamp(22px, 3.3vw, 39px); background: #0B111C; }
.stage .phone--side { opacity: 0.9; }
.stage .phone--l { transform: translateX(14%) rotate(-7deg) scale(0.86); z-index: 1; }
.stage .phone--r { transform: translateX(-14%) rotate(7deg) scale(0.86); z-index: 1; }
.stage .phone--c { z-index: 2; }
.qr {
  display: inline-flex; align-items: center; gap: 14px; margin: clamp(28px, 3vw, 40px) auto 0; padding: 12px 18px 12px 12px; text-align: left;
}
/* Dark square modules on white with the standard quiet zone: the
   contrast and shape phone cameras read best. */
.qr img { width: 120px; height: 120px; border-radius: 10px; background: #FFFFFF; image-rendering: pixelated; }
.qr b { display: block; font-size: 16px; }
.qr span { font-size: 14px; color: var(--muted); }

/* Pillars ------------------------------------------------------ */
.pillars { list-style: none; margin: clamp(72px, 9vw, 128px) auto 0; padding: 0; max-width: 1080px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px) 16px; text-align: center; }
@media (max-width: 760px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pillar-v {
  display: block; font-size: clamp(26px, 3vw, 46px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.05;
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.pillar-l { display: block; margin-top: 10px; font-size: clamp(10.5px, 0.85vw, 12.5px); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); line-height: 1.45; }

/* Steps -------------------------------------------------------- */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); margin: clamp(40px, 5vw, 58px) 0 0; }
@media (max-width: 1040px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 26px 24px; }
.step-top { display: flex; align-items: center; gap: 14px; }
.step-n {
  width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; font-weight: 800; font-size: 16px;
  background: linear-gradient(180deg, #FFFFFF, #CFD6E1); color: var(--on-accent); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.step h3 { margin: 18px 0 0; font-size: clamp(19px, 1.3vw, 23px); font-weight: 750; letter-spacing: -0.02em; }
.step p { margin: 8px 0 0; font-size: clamp(15px, 1vw, 17px); line-height: 1.55; color: var(--muted); }

/* Vote buttons, as in the app ---------------------------------- */
.vote { display: inline-flex; align-items: center; gap: 10px; vertical-align: middle; }
.vote i { width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; font-style: normal; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4); }
.vote .v-yes { background: var(--heart); color: #FFFFFF; }
.vote .v-no { background: rgba(120, 128, 140, 0.55); border: 1.5px solid rgba(255, 255, 255, 0.7); color: #FFFFFF; }

/* Feature cards ------------------------------------------------ */
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); margin-top: clamp(36px, 5vw, 56px); }
@media (max-width: 900px) { .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .feats { grid-template-columns: 1fr; } }
.feat { padding: clamp(22px, 2.4vw, 30px); transition: transform 220ms ease, box-shadow 220ms ease; }
.feat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.feat-ic {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: var(--ink);
  background: radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03) 75%);
  border: 1px solid rgba(255, 255, 255, 0.24); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.feat h3 { margin: 18px 0 0; font-size: clamp(18px, 1.3vw, 22px); font-weight: 750; letter-spacing: -0.02em; }
.feat p { margin: 8px 0 0; font-size: clamp(15px, 1vw, 17px); line-height: 1.55; color: var(--muted); }

/* Categories --------------------------------------------------- */
.cats { list-style: none; padding: 0; margin: clamp(36px, 5vw, 52px) auto 0; max-width: 960px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.cats li {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass);
  font-size: clamp(15px, 1.1vw, 18px); font-weight: 600; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.cats li.cats-more { color: var(--muted); font-weight: 500; }

/* Split: text + phones ----------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--flip > :first-child { order: 2; }
@media (max-width: 900px) { .split, .split--flip { grid-template-columns: minmax(0, 1fr); } .split--flip > :first-child { order: 0; } }
.split .h2 { font-size: clamp(32px, 4.4vw, 60px); }
.split .h2-sub { max-width: 52ch; }
.split-p { margin: 16px 0 0; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.65; color: var(--muted); max-width: 56ch; }
.checks { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
@media (max-width: 520px) { .checks { grid-template-columns: minmax(0, 1fr); } }
.checks li { display: flex; align-items: flex-start; gap: 8px; font-size: 15.5px; font-weight: 600; line-height: 1.4; }
.checks svg { flex: none; margin-top: 2px; color: var(--accent-ink); }
.duo { display: flex; justify-content: center; align-items: flex-start; }
.duo .phone { width: clamp(150px, 20vw, 250px); }
.duo .phone + .phone { margin-left: -12%; margin-top: 12%; }

/* Q&A ---------------------------------------------------------- */
.qa { margin: clamp(32px, 4vw, 48px) auto 0; max-width: 900px; overflow: hidden; padding: 0; }
.qa-row { padding: 20px clamp(18px, 3vw, 28px); }
.qa-row + .qa-row { border-top: 1px solid var(--line); }
.qa-q { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.qa-a { margin: 8px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.qa-a a { color: var(--blue); text-decoration: underline; }

/* CTA band ----------------------------------------------------- */
.cta {
  margin-top: clamp(96px, 13vw, 176px); padding: clamp(32px, 5vw, 60px) clamp(20px, 4vw, 48px); text-align: center;
  border-radius: 26px; border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(700px 320px at 80% -10%, rgba(200, 212, 232, 0.28), transparent 70%),
    linear-gradient(160deg, #1C2537 0%, #0E1522 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), var(--shadow-lift);
}
.cta h2 {
  margin: 0; font-size: clamp(30px, 3.6vw, 52px); font-weight: 500; letter-spacing: -0.04em;
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.cta p { margin: 12px auto 0; max-width: 56ch; font-size: clamp(16px, 1.1vw, 19px); line-height: 1.5; color: var(--muted); }
.cta .stores { margin-top: 26px; }

/* Legal pages -------------------------------------------------- */
.legal-head { text-align: center; padding-top: clamp(24px, 5vw, 64px); }
.legal-head .h1 { font-size: clamp(38px, 5.6vw, 76px); }
.legal-date { margin: 14px 0 0; font-size: 15px; color: var(--muted); }
.legal-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.legal-tabs a { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 14.5px; color: var(--muted); background: var(--glass); }
.legal-tabs a:hover { color: var(--ink); }
.legal-tabs a[aria-current="page"] { color: var(--on-accent); background: linear-gradient(180deg, #FFFFFF, #DCE2EB); border-color: rgba(255, 255, 255, 0.7); font-weight: 700; }
.prose { margin: clamp(32px, 4vw, 48px) auto 0; max-width: 860px; padding: clamp(24px, 4vw, 52px); font-size: 16px; line-height: 1.7; color: var(--muted); overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 14px; }
.prose strong, .prose b { color: var(--ink); font-weight: 700; }
.prose p > strong:only-child, .prose h2, .prose h3 {
  display: block; margin: 30px 0 10px; font-size: clamp(18px, 1.4vw, 22px); font-weight: 750; letter-spacing: -0.02em; line-height: 1.3; color: var(--ink);
}
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 1.3em; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--accent-ink); }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

/* 404 ---------------------------------------------------------- */
.lost { text-align: center; padding-top: clamp(48px, 10vw, 140px); }
.lost .h1 { font-size: clamp(64px, 12vw, 160px); }
.lost p { margin: 12px 0 28px; font-size: clamp(17px, 1.5vw, 21px); color: var(--muted); }

/* Footer ------------------------------------------------------- */
.foot { flex: none; border-top: 1px solid var(--line); padding: clamp(34px, 5vw, 52px) clamp(16px, 5vw, 56px) 28px; background: linear-gradient(180deg, rgba(17, 24, 39, 0.6), #070B13); }
.foot-grid { max-width: min(1440px, 100%); margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: clamp(20px, 2.6vw, 40px); }
@media (max-width: 1000px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-tag { margin: 12px 0 0; max-width: 38ch; font-size: 15px; line-height: 1.55; color: var(--muted); }
.foot-h { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: 0.02em; }
.foot-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14.5px; color: var(--muted); }
.foot-list a { display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; }
.foot-list a:hover { color: var(--ink); }
.foot-legal {
  max-width: min(1440px, 100%); margin: clamp(28px, 4vw, 40px) auto 0; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 22px; font-size: 14px; color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .btn:hover, .feat:hover, .store:hover { transform: none; }
}
