/* ════════════════════════════════════════════════════════════════════
   RATE landing page
   Brand: salmon gradient (#E27966 to #D66069) on charcoal (#141414)
   ════════════════════════════════════════════════════════════════════ */

/* CSS @import rules MUST come before any other rule per the spec, or the
   browser silently drops them. Forms.css + auth.css define the styles for
   the /join and /account subtrees. */
@import url('styles/forms.css');
@import url('styles/auth.css');
@import url('styles/admin.css');

/* The HTML `hidden` attribute must ALWAYS win. Without this, any class that
   sets an explicit `display` (e.g. .post-reject { display:flex }) overrides
   the browser's built-in [hidden] rule and the element renders anyway —
   which is exactly how the onboarding rejection card leaked onto the
   first-visit screen (2026-07-31). */
[hidden] { display: none !important; }

/* i18n no-flash: i18n-boot.js adds .i18n-pending to <html> only when the
   resolved language is NOT English, so English visitors never pay this
   cost. js/i18n.mjs removes it as soon as the dictionary is applied, and
   i18n-boot.js has a 1.5s failsafe that removes it regardless. */
html.i18n-pending body { visibility: hidden; }
/* If JS never runs at all, nothing can remove the class — but the class is
   also never added, since i18n-boot.js is itself JS. This guard is belt
   and braces for the case where boot runs and the module 404s. */
noscript ~ * { visibility: visible !important; }

/* Language toggle (EN | RU) */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.04);
}
.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-3);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button.is-active {
  background: var(--gradient);
  color: #fff;
}

:root {
  /* Surface scale - aligned with constants/theme.ts in the mobile app so
     the website and the app feel like the same product. */
  --bg:           #0c0c0c;
  --bg-2:         #141414;
  --bg-3:         #1a1818;
  --card:         #1c1c1c;
  --surface-elevated: #1c1c1c;
  --surface-muted: #222222;
  --border:       rgba(255,255,255,0.07);
  --border-2:     rgba(255,255,255,0.12);

  --text:         #f5f4f2;
  --text-2:       rgba(255,255,255,0.65);
  --text-3:       rgba(255,255,255,0.35);
  --text-4:       rgba(255,255,255,0.22);

  --salmon:       #E27966;
  --indian:       #D66069;
  --gradient:     linear-gradient(135deg, #E27966, #D66069);
  --gradient-warm:linear-gradient(180deg, #E2796612 0%, #D6606900 70%);

  /* Radius scale - mirror the mobile radii (theme.ts:60). */
  --radius-xs:    6px;
  --radius-sm:    10px;
  --radius-md:    14px;
  --radius-lg:    18px;
  --radius-xl:    24px;
  --radius-pill:  50px;
  /* Legacy aliases the landing page already uses. */
  --radius:       20px;

  /* Type scale - mirror theme.ts:88. */
  --type-xs:      10px;
  --type-sm:      12px;
  --type-md:      14px;
  --type-lg:      16px;
  --type-xl:      18px;
  --type-xxl:     20px;
  --type-xxxl:    22px;

  /* Form tokens - match the mobile TextField styling (onboarding.tsx:751). */
  --field-bg:           rgba(255,255,255,0.05);
  --field-border:       rgba(255,255,255,0.08);
  --field-border-focus: var(--salmon);

  /* Semantic state colors. */
  --success:      #56c880;
  --danger:       #ff5a5f;
  --gold:         #f0b840;

  --max:          1280px;
  --gutter:       clamp(20px, 5vw, 56px);

  --serif:        'Instrument Serif', Georgia, serif;
  --sans:         'Inter', system-ui, sans-serif;

  --ease-spring:  cubic-bezier(0.34, 1.2, 0.64, 1);
  --ease-snap:    cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*::selection { background: rgba(226,121,102,0.4); color: #fff; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

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

/* ── TYPOGRAPHY ─────────────────────────────────────────────── */
.display {
  font-family: var(--sans);
  font-weight: 900;
  font-size: clamp(48px, 11vw, 112px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--text);
}
.big {
  font-family: var(--sans);
  font-weight: 900;
  font-size: clamp(36px, 7.5vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.big em { line-height: 1.1; display: inline-block; padding-bottom: 0.08em; }
.lede {
  font-size: clamp(15px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 540px;
  font-weight: 400;
}

em, .display em, .big em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
  padding-right: 0.05em;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--salmon);
  margin-bottom: 22px;
  padding: 5px 11px;
  background: rgba(226,121,102,0.08);
  border: 1px solid rgba(226,121,102,0.2);
  border-radius: var(--radius-pill);
}
.section-eyebrow.center { display: flex; margin-inline: auto; width: fit-content; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  margin-bottom: 28px;
  letter-spacing: 0.01em;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(74,222,128,0.18);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

.center { text-align: center; }

/* ── NAV ────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 80;
  padding: 14px 0;
  background: rgba(14,14,14,0);
  backdrop-filter: blur(0px);
  transition: background 0.3s, backdrop-filter 0.3s, padding 0.3s;
}
.nav.scrolled {
  background: rgba(14,14,14,0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 28px; height: 28px;
  background: var(--gradient);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(226,121,102,0.4);
}
.logo-mark-img {
  width: 28px; height: 28px;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(226,121,102,0.3));
}
.logo-word {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.05em;
}

.nav-links {
  display: none;
  gap: 32px;
  font-size: 14px;
  color: var(--text-2);
}
.nav-links a { transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap; /* "Install app" on one line on phones */
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-2);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.18s var(--ease-snap);
}
.nav-cta:hover {
  background: rgba(226,121,102,0.12);
  border-color: rgba(226,121,102,0.35);
  color: #ffb9a8;
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: all 0.2s var(--ease-snap);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 10px 32px rgba(226,121,102,0.35),
              inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(226,121,102,0.5),
              inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border: 1px solid var(--border-2);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.2);
}
.store-ico { width: 18px; height: 18px; }

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 130px 0 80px;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content { text-align: center; }
.hero-content .display { margin-bottom: 22px; }
.hero-content .lede { margin-inline: auto; margin-bottom: 36px; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 32px;
}

.hero-trust {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 16px 8px 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}
/* flex-shrink 0: with a longer label the row was squeezed and the last
   avatar slid over the text. */
.trust-avatars { display: flex; flex-shrink: 0; }
.trust-avatars img {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -10px;
  object-fit: cover;
}
.trust-avatars img:first-child { margin-left: 0; }
.trust-text { text-align: left; line-height: 1.2; }
.trust-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--salmon);
}
.trust-stars span { margin-left: 4px; }
.trust-headline {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--salmon);
}
.trust-label {
  display: block;
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
}

/* ── ORBS (atmospheric background) ─────────────────────────── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}
.orb-1 {
  width: 460px; height: 460px;
  background: radial-gradient(circle, #E27966 0%, transparent 70%);
  top: -120px; left: -100px;
  animation: float 16s ease-in-out infinite;
}
.orb-2 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, #D66069 0%, transparent 70%);
  bottom: -180px; right: -160px;
  animation: float 20s ease-in-out infinite reverse;
}
.orb-3 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #E2796688 0%, transparent 65%);
  top: -150px; left: 50%;
  transform: translateX(-50%);
  filter: blur(140px);
  opacity: 0.55;
}
@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(40px, -30px) scale(1.08); }
}

.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ── PHONE MOCK ─────────────────────────────────────────────── */
.hero-phone {
  display: flex;
  justify-content: center;
  perspective: 1500px;
}
.phone {
  width: 290px;
  aspect-ratio: 9 / 19.5;
  background: #050505;
  border-radius: 38px;
  padding: 7px;
  box-shadow:
    0 0 0 2px #1f1f1f,
    0 30px 80px rgba(0,0,0,0.7),
    0 0 60px rgba(226,121,102,0.18);
  position: relative;
  animation: phone-float 6s ease-in-out infinite;
}
@keyframes phone-float {
  0%,100% { transform: translateY(0) rotate(-1deg); }
  50%     { transform: translateY(-12px) rotate(1deg); }
}
.phone-sm { width: 230px; animation-duration: 5s; }
.phone-md { width: 260px; animation-duration: 7s; }

.phone-notch {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 22px;
  background: #050505;
  border-radius: 50px;
  z-index: 10;
}
/* Step phones are smaller: a proportionally smaller island. Steps 2 and 3
   start their status bar 14px lower, so their island moves down with it
   (same spot above the time as on the hero phone). */
.phone-sm .phone-notch { width: 76px; height: 20px; }
.step2-phone .phone-notch,
.step3-phone .phone-notch { top: 26px; }
.phone-screen {
  width: 100%; height: 100%;
  background: var(--bg-2);
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.mock-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px 6px;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.status-right { display: flex; gap: 4px; align-items: center; }

.mock-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 14px 8px;
  flex-shrink: 0;
}
.mock-logo-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mock-logo-img {
  width: 22px; height: 22px;
  display: block;
}
.mock-search {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.mock-filter {
  display: flex;
  gap: 2px;
  padding: 2px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 9px;
  font-weight: 500;
  color: var(--text-3);
}
.mock-filter span { padding: 3px 9px; border-radius: var(--radius-pill); }
.mock-filter .active { background: var(--gradient); color: #fff; font-weight: 700; box-shadow: 0 2px 8px rgba(226,121,102,0.4); }
.mock-gender {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 9px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 9px;
  font-weight: 600;
  color: var(--text-2);
}

.mock-progress {
  padding: 0 14px 8px;
  flex-shrink: 0;
}
.mock-progress-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}
.mock-progress-label {
  font-size: 8px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.12em;
}
.mock-progress-count {
  font-size: 8px;
  font-weight: 700;
  color: var(--salmon);
}
.mock-progress-track {
  height: 1px;
  background: rgba(255,255,255,0.07);
  border-radius: 50px;
}

.mock-caption {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  font-style: italic;
  margin-top: 4px;
  font-weight: 400;
}

.mock-rating-labels {
  display: flex;
  justify-content: space-between;
  padding: 0 18px;
  margin-top: 5px;
  margin-bottom: 4px;
  flex-shrink: 0;
}
.mock-rating-labels span {
  font-size: 7.5px;
  font-weight: 500;
  color: var(--text-4);
  letter-spacing: 0.02em;
}
.mock-rating-labels .mid {
  color: var(--text-3);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.mock-rating-labels .end {
  color: var(--salmon);
  font-weight: 600;
}

.mock-card {
  flex: 1;
  margin: 0 12px 8px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}
.mock-card img { width: 100%; height: 100%; object-fit: cover; }
.mock-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.85) 100%);
}
.mock-info {
  position: absolute;
  bottom: 12px; left: 12px; right: 12px;
}
.mock-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 3px;
}
.mock-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

.mock-burst {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(0);
  font-size: 64px;
  font-weight: 900;
  color: #fff;
  opacity: 0;
  text-shadow: 0 0 40px rgba(226,121,102,0.8);
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  z-index: 5;
  pointer-events: none;
  letter-spacing: -0.05em;
}
.mock-burst.show {
  animation: burst 0.9s ease forwards;
}
@keyframes burst {
  0%   { transform: translate(-50%,-50%) scale(0.4); opacity: 0; }
  35%  { transform: translate(-50%,-50%) scale(1.15); opacity: 1; }
  70%  { transform: translate(-50%,-50%) scale(0.95); opacity: 1; }
  100% { transform: translate(-50%,-50%) scale(1); opacity: 0; }
}

.mock-rating-row {
  display: flex;
  gap: 3px;
  padding: 8px 10px;
  margin: 0 12px 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  justify-content: space-between;
  flex-shrink: 0;
}
.mock-rating-row button {
  width: 22px; height: 28px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  transition: all 0.18s var(--ease-spring);
}
.mock-rating-row button.hi {
  background: rgba(226,121,102,0.12);
  color: rgba(255,255,255,0.8);
}
.mock-rating-row button.selected {
  background: var(--gradient);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  transform: scale(1.1);
  box-shadow: 0 4px 14px rgba(226,121,102,0.5);
}
.mock-rating-row.static button { transition: none; }

.mock-bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0 18px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.mock-bottom-nav div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 12px;
}
.mock-bottom-nav div span {
  font-size: 8px;
  font-weight: 500;
  color: rgba(255,255,255,0.35);
}
.mock-bottom-nav .active span { color: var(--salmon); font-weight: 700; }

/* Step 2 phone */
.step2-phone .phone-screen { padding-top: 14px; }
.step2-phone .mock-card-static {
  flex: 1 1 auto;
  margin: 0 12px 10px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  min-height: 0;
}
.step2-phone .mock-card-static img { width: 100%; height: 100%; object-fit: cover; display: block; }
.step2-phone .mock-rating-row { margin: 0 12px 16px; }
.step2-burst {
  position: absolute;
  top: 42%; left: 50%;
  transform: translate(-50%,-50%);
  font-size: 84px;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(226,121,102,0.6));
  letter-spacing: -0.05em;
  pointer-events: none;
  z-index: 5;
  line-height: 1;
}

/* Step 1 phone, grid */
.step1-screen { padding: 14px 0 0; }
.step1-screen .mock-statusbar { padding: 0 22px 8px; }
.step1-screen .mock-newpost-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 12px;
  font-size: 13px;
  font-weight: 700;
}
.step1-screen .mock-newpost-bar .step-pill {
  font-size: 9px;
  font-weight: 700;
  color: var(--salmon);
  background: rgba(226,121,102,0.1);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}
.mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 0 12px;
}
.grid-tile {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}
.grid-tile img { width: 100%; height: 100%; object-fit: cover; }
.grid-tile.add {
  border: 1.5px dashed rgba(226,121,102,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.grid-tag {
  position: absolute;
  bottom: 4px; left: 4px;
  background: var(--gradient);
  color: #fff;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 5px;
  border-radius: var(--radius-pill);
}
.mock-cta {
  background: var(--gradient);
  color: #fff;
  text-align: center;
  font-weight: 800;
  font-size: 12px;
  padding: 11px;
  margin: 8px 12px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 20px rgba(226,121,102,0.4);
}

/* Step 3 phone, analytics */
.step3-phone .phone-screen { padding-top: 14px; }
.mock-analytics { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.mock-analytics .ma-bars { margin-top: auto; }
.ma-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.ma-eyebrow {
  font-size: 9px;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--text-3);
}
.ma-delta {
  font-size: 10px;
  font-weight: 700;
  color: #4ade80;
  background: rgba(74,222,128,0.12);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}
.ma-premium {
  font-size: 9px;
  font-weight: 700;
  color: #f0b840;
  background: rgba(240,184,64,0.1);
  border: 1px solid rgba(240,184,64,0.2);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
}
.ma-score {
  font-size: 56px;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: 4px;
}
.ma-score-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ma-score-big {
  font-size: 64px; font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  letter-spacing: -0.05em;
}
.ma-score-meta { text-align: right; font-size: 10px; color: var(--text-3); }
.ma-score-meta b { display: block; font-size: 18px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.ma-sub { font-size: 10px; color: var(--text-3); margin-bottom: 14px; }
.ma-chart { margin-bottom: 14px; }
.ma-chart svg { width: 100%; height: 50px; }
.deep-chart svg { height: 80px; }
.ma-bars { display: flex; flex-direction: column; gap: 8px; }
.ma-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.ma-bar > span { font-size: 14px; }
.ma-bar-label {
  width: 36px;
  color: var(--text-3);
  font-size: 10px;
  font-weight: 600;
}
.ma-bar-track {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.ma-bar-track > div {
  height: 100%;
  background: rgba(226,121,102,0.35);
  border-radius: var(--radius-pill);
  transform-origin: left;
  transition: width 0.8s var(--ease-spring);
}
.ma-bar-track > div.hi,
.ma-bar.primary .ma-bar-track > div { background: var(--gradient); box-shadow: 0 0 10px rgba(226,121,102,0.4); }
.ma-bar b { font-size: 11px; font-weight: 700; color: var(--salmon); width: 30px; text-align: right; }
.ma-section-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-3);
  text-transform: uppercase;
  margin: 4px 0 10px;
}
.ma-tip {
  margin-top: auto;
  padding: 10px 12px;
  background: rgba(226,121,102,0.07);
  border: 1px solid rgba(226,121,102,0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-2);
}
.ma-tip b { color: var(--salmon); font-weight: 700; }
.ma-tip-ico { font-size: 13px; }

/* ── Post Analytics phone (deep section) ─────────────────── */
.pa-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px 12px;
  flex-shrink: 0;
}
.pa-back {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
}
.pa-title { font-size: 13px; font-weight: 700; letter-spacing: -0.01em; }
.pa-avatar { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid rgba(226,121,102,0.5); object-fit: cover; }

.pa-body {
  flex: 1;
  overflow: hidden;
  padding: 0 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}
.pa-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
}
.pa-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.pa-premium {
  font-size: 8px;
  font-weight: 700;
  color: #f0b840;
  background: rgba(240,184,64,0.1);
  border: 1px solid rgba(240,184,64,0.25);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
}
.pa-top-pct {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  color: var(--text-3);
}
.pa-score-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}
.pa-score {
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pa-score-sub { font-size: 9px; color: var(--text-3); margin-top: 3px; }
.pa-ratings { text-align: right; }
.pa-ratings-num { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.pa-ratings-sub { font-size: 9px; color: var(--text-3); margin-top: 2px; }
.pa-delta {
  display: inline-block;
  margin-top: 5px;
  font-size: 9px;
  font-weight: 700;
  color: #4ade80;
  background: rgba(74,222,128,0.12);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}
.pa-section-eyebrow {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-3);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.pa-section-eyebrow.no-mb { margin-bottom: 0; }
.pa-chart svg { width: 100%; height: 50px; display: block; }
.pa-days {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: var(--text-3);
  margin-top: 4px;
}
.pa-age-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 10px;
}
.pa-age-bar:last-of-type { margin-bottom: 0; }
.pa-age-label { width: 30px; color: var(--text-3); font-weight: 600; font-size: 9px; }
.pa-age-track {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.pa-age-track > div {
  height: 100%;
  background: rgba(226,121,102,0.35);
  border-radius: var(--radius-pill);
}
.pa-age-track > div.hi {
  background: var(--gradient);
  box-shadow: 0 0 10px rgba(226,121,102,0.4);
}
.pa-age-bar b { font-size: 9px; color: var(--text-3); font-weight: 700; width: 26px; text-align: right; }
.pa-age-bar.primary b { color: var(--salmon); }
.pa-foot { font-size: 9px; color: var(--text-4); margin-top: 8px; }
.pa-country {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.pa-flag-mini {
  width: 20px; height: 20px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; font-weight: 700;
  color: var(--text-2);
  flex-shrink: 0;
}
.pa-country-body { flex: 1; }
.pa-country-row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 3px;
}
.pa-country-row b { color: var(--salmon); font-weight: 700; }

/* ── Compare visual (deep section) ───────────────────────── */
.compare {
  width: 100%;
  max-width: 480px;
  background: linear-gradient(180deg, rgba(28,28,28,0.95) 0%, rgba(20,18,18,0.95) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.5),
    0 0 60px rgba(226,121,102,0.12);
  position: relative;
  overflow: hidden;
}
.compare::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(226,121,102,0.2) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.compare-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: 0.15em;
  margin-bottom: 18px;
  position: relative;
}
.compare-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--salmon);
  box-shadow: 0 0 0 4px rgba(226,121,102,0.18);
  animation: pulse-dot 2s ease infinite;
}

.compare-cards {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: stretch;
  position: relative;
  margin-bottom: 18px;
}

.compare-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.3s var(--ease-snap);
}
.compare-card.loser { opacity: 0.7; }
.compare-card.winner {
  background: linear-gradient(180deg, rgba(226,121,102,0.08) 0%, rgba(214,96,105,0.03) 100%);
  border-color: rgba(226,121,102,0.35);
  box-shadow:
    0 12px 32px rgba(226,121,102,0.18),
    inset 0 1px 0 rgba(255,255,255,0.05);
  transform: translateY(-6px);
}

.compare-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.01em;
}
.compare-card.loser .compare-label { color: var(--text-3); }
.compare-pill {
  font-size: 9px;
  font-weight: 800;
  color: #4ade80;
  background: rgba(74,222,128,0.12);
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.03em;
}

.compare-img {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.compare-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.compare-card.loser .compare-img img { filter: grayscale(0.45) brightness(0.7); }
.compare-img.placeholder {
  background: linear-gradient(180deg, #1a1a1a 0%, #131111 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.compare-img.placeholder.winner-bg {
  background: linear-gradient(180deg, rgba(226,121,102,0.12) 0%, rgba(214,96,105,0.04) 100%);
}
.compare-icon {
  width: 44%;
  height: auto;
  opacity: 0.85;
}
.compare-icon.hi { opacity: 1; filter: drop-shadow(0 4px 14px rgba(226,121,102,0.45)); }
.compare-corner {
  position: absolute;
  bottom: 8px; left: 8px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0;
}
.compare-card.winner .compare-corner {
  background: var(--gradient);
  color: #fff;
  border-color: rgba(255,255,255,0.15);
}
.compare-crown {
  position: absolute;
  top: 8px; right: 8px;
  font-size: 14px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
}

.compare-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.compare-score {
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.compare-card.winner .compare-score {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.compare-card.loser .compare-score { color: var(--text-3); }

.compare-bar {
  height: 4px;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.compare-bar > div {
  height: 100%;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-pill);
}
.compare-bar > div.hi {
  background: var(--gradient);
  box-shadow: 0 0 10px rgba(226,121,102,0.5);
}
.compare-sub { font-size: 10px; color: var(--text-3); font-weight: 500; }

.compare-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.compare-vs span {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--text-3);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compare-tip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(226,121,102,0.08);
  border: 1px solid rgba(226,121,102,0.18);
  border-radius: 14px;
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.45;
}
.compare-tip b { color: var(--salmon); font-weight: 700; }
.compare-tip-ico { font-size: 15px; }

@media (max-width: 460px) {
  .compare { padding: 16px; }
  .compare-cards { grid-template-columns: 1fr; gap: 10px; }
  .compare-vs {
    transform: rotate(90deg);
  }
  .compare-card.winner { transform: none; }
}

/* ── Profile phone mockup (deep section visual) ─────────────
   Mobile /me preview that anchors the "Beyond the number" pitch,
   in the app's profile layout of 2026-09-28 (app/(tabs)/profile.tsx):
   handle top left, visitors / bell / settings top right, score band +
   rank, flat stats, "Rate to get seen" ring, photo tiles. Wrapped in
   .phone-mock (positions the floating insight chip) inside the shared
   .phone + .phone-md chassis. Pure CSS + inline SVG, no images. All
   classes are prefixed pm-* to avoid colliding with the np-* (New
   Post) phone further down. */
.phone-mock {
  --pm-text: #f5f4f2;
  --pm-text-2: rgba(255,255,255,0.55);
  --pm-text-3: rgba(255,255,255,0.32);
  --pm-border: rgba(255,255,255,0.07);
  --pm-card: rgba(255,255,255,0.03);
  --pm-gold: #F0B840;
  position: relative;
  display: flex;
  justify-content: center;
}

.pm-screen {
  padding-top: 0;
  background: #0d0c0c;
  isolation: isolate;
}
.pm-screen::before {
  content:"";
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  top: -130px; left: -100px;
  background: radial-gradient(closest-side, rgba(226,121,102,0.16), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}
.pm-screen > * { position: relative; z-index: 1; }
.pm-screen .mock-statusbar { padding: 14px 18px 8px; }
.pm-emoji { font-size: 0.9em; line-height: 1; }

/* App bar */
.pm-appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 12px 14px 14px;
}
.pm-appbar__right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pm-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--pm-text);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.pm-caret { font-size: 7px; color: var(--pm-text-3); }
.pm-icon-plain {
  width: 22px; height: 22px;
  display: inline-grid;
  place-items: center;
  color: rgba(255,255,255,0.6);
}
.pm-icon-plain svg { width: 15px; height: 15px; }
.pm-icon-btn {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: var(--pm-text);
}
.pm-icon-btn--cog { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.08); }
.pm-icon-btn svg { width: 14px; height: 14px; }

/* Identity */
.pm-ident {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px 14px;
}
/* Coral ring, a dark gap, then the picture; soft coral glow. Each layer
   rounds itself, nothing relies on a parent's clip. */
.pm-avatar {
  width: 62px; height: 62px;
  border-radius: 50%;
  padding: 2px;
  background: var(--gradient);
  flex-shrink: 0;
  box-shadow: 0 6px 16px -3px rgba(214,96,105,0.6);
}
.pm-avatar svg {
  display: block;
  width: 100%; height: 100%;
  border-radius: 50%;
  border: 2px solid #0d0c0c;
  background: #0d0c0c;
}
.pm-ident__body { flex: 1; min-width: 0; }
.pm-ident__name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--pm-text);
  line-height: 1.1;
  margin-bottom: 3px;
}
.pm-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 50px;
  border: 1px solid transparent;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.pm-badge--gold {
  background: rgba(240,184,64,0.12);
  border-color: rgba(240,184,64,0.45);
  color: var(--pm-gold);
}
.pm-ident__handle {
  font-size: 11.5px;
  color: var(--pm-text-3);
  margin-bottom: 4px;
}
.pm-ident__loc {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--pm-text-2);
}

/* Average score (three stat columns wide) + rank (the fourth) */
.pm-scorerow {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 6px;
  margin: 0 14px 10px;
}
.pm-scorecard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 10px 11px;
  border: 1px solid var(--pm-border);
  border-radius: 13px;
  background: var(--pm-card);
  min-width: 0;
}
.pm-scorecard__left { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pm-scorecard__label {
  font-size: 7.5px;
  font-weight: 700;
  color: var(--pm-text-3);
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.pm-scorecard__ratings {
  font-size: 9.5px;
  font-weight: 700;
  color: #6fce8f;
  white-space: nowrap;
}
.pm-scorecard__value {
  font-family: var(--serif);
  font-style: italic;
  font-size: 27px;
  color: #E8836E;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.pm-scorecard__value small {
  font-size: 11px;
  color: var(--pm-text-3);
  font-style: normal;
  font-family: var(--sans);
  font-weight: 700;
}
.pm-rank {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0 3px;
  border: 1px solid var(--pm-border);
  border-radius: 12px;
  background: var(--pm-card);
  min-width: 0;
}
.pm-rank__label {
  font-size: 6.5px;
  font-weight: 700;
  color: var(--pm-text-3);
  letter-spacing: 0.1em;
}
.pm-rank__value {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--pm-text);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* Stats: flat numbers with hairline dividers */
.pm-stats {
  display: flex;
  align-items: center;
  padding: 2px 10px;
  margin-bottom: 12px;
}
.pm-stat { flex: 1; min-width: 0; text-align: center; }
.pm-stat__n {
  display: block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--pm-text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.pm-stat__l {
  display: block;
  font-size: 7px;
  font-weight: 700;
  color: var(--pm-text-3);
  letter-spacing: 0.02em;
  margin-top: 4px;
  white-space: nowrap;
}
.pm-stat-div {
  width: 1px;
  height: 22px;
  background: var(--pm-border);
  flex-shrink: 0;
}

/* Actions */
.pm-actions {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 8px;
  padding: 0 14px;
  margin-bottom: 14px;
}
.pm-btn {
  height: 34px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
}
.pm-btn svg { width: 10px; height: 10px; }
.pm-btn--ghost {
  background: transparent;
  border-color: var(--salmon);
  color: var(--salmon);
}
.pm-btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow:
    0 6px 14px -3px rgba(214,96,105,0.6),
    inset 0 1px 0 rgba(255,255,255,0.25);
}

.pm-divider {
  height: 1px;
  background: var(--pm-border);
  margin: 0 14px 10px;
}

/* "Rate to get seen" ring + Analytics */
.pm-posts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  margin-bottom: 9px;
}
.pm-reach {
  position: relative;
  width: 24px; height: 24px;
  display: inline-grid;
  place-items: center;
}
.pm-reach svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pm-reach__n {
  position: relative;
  font-size: 8px;
  font-weight: 800;
  color: var(--pm-text);
  letter-spacing: -0.02em;
}
.pm-posts-analytics {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--salmon);
  letter-spacing: -0.01em;
}

/* Posts grid: photo tiles (sample artwork here). It takes the rest of the
   screen and clips the second row at the tab bar, like a real scroll. */
.pm-grid {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* Full-height tiles: the tiles clip their own overflow, which would let
     auto rows shrink them to fit the space. */
  grid-auto-rows: max-content;
  align-content: start;
  gap: 8px;
  padding: 0 14px;
}
.pm-post {
  position: relative;
  aspect-ratio: 1 / 1.18;
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid var(--pm-border);
}
.pm-post--a {
  background:
    radial-gradient(circle at 50% 30%, rgba(226,121,102,0.34), transparent 62%),
    linear-gradient(170deg, #3d2b28 0%, #171212 100%);
}
.pm-post--b {
  background:
    radial-gradient(circle at 50% 18%, rgba(140,170,210,0.3), transparent 60%),
    linear-gradient(180deg, #33415a 0%, #1b2130 62%, #131519 100%);
}
.pm-post--c {
  background:
    radial-gradient(circle at 45% 25%, rgba(150,190,140,0.24), transparent 60%),
    linear-gradient(175deg, #2d3a2c 0%, #151a14 100%);
}
.pm-post--d {
  background:
    radial-gradient(circle at 55% 22%, rgba(240,184,64,0.22), transparent 60%),
    linear-gradient(175deg, #3f3326 0%, #19140f 100%);
}
.pm-post__art {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
/* Bottom scrim so the badge and the count stay readable. */
.pm-post::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,0.55) 100%);
}
.pm-post__tag {
  position: absolute;
  top: 7px; left: 7px;
  z-index: 2;
  font-size: 6.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 5px;
  border-radius: 5px;
  background: rgba(12,11,11,0.55);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
}
.pm-post__foot {
  position: absolute;
  left: 6px; right: 6px; bottom: 7px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
}
.pm-post__score {
  display: inline-flex;
  align-items: baseline;
  flex-shrink: 0;
  padding: 3px 6px;
  border-radius: 8px;
  background: rgba(12,11,11,0.6);
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.pm-post__score small {
  font-size: 7px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  white-space: pre;
}
.pm-post__score--pending {
  align-items: center;
  padding: 4px 8px;
}
.pm-post__ratings {
  min-width: 0;
  font-size: 7px;
  font-weight: 600;
  color: rgba(255,255,255,0.78);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tab bar */
.pm-tabbar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 9px 0 12px;
  background: #121111;
}
.pm-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: rgba(255,255,255,0.45);
}
.pm-tab svg { width: 15px; height: 15px; }
.pm-tab small {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.pm-tab--active { color: var(--salmon); }

/* Floating insight chip */
.pm-insight {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translate(-50%, 12px) rotate(2deg);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 11px;
  background: rgba(20,18,18,0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  box-shadow:
    0 20px 40px -10px rgba(0,0,0,0.6),
    0 0 0 1px rgba(226,121,102,0.15);
  font-size: 12px;
  color: var(--pm-text);
  white-space: nowrap;
  z-index: 2;
}
.pm-insight__ico { font-size: 14px; }
.pm-insight b { color: var(--salmon); font-weight: 700; }

@media (max-width: 720px) {
  .pm-insight { transform: translate(-50%, 12px) rotate(0); }
}

/* ── New Post phone (step 01) ────────────────────────────── */
.np-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px 14px;
  flex-shrink: 0;
  gap: 10px;
}
.np-step { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.np-step-num { font-size: 10px; font-weight: 800; color: var(--salmon); letter-spacing: 0.05em; }
.np-step-dots { display: flex; align-items: center; gap: 3px; }
.np-step-dots .dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.np-step-dots .dot.done   { background: var(--salmon); }
.np-step-dots .dot.active { width: 14px; height: 4px; border-radius: 50px; background: var(--gradient); }

.np-body {
  flex: 1;
  padding: 0 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  min-height: 0;
}
.np-section-head { }
.np-h { font-size: 13px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 3px; }
.np-sub { font-size: 9px; color: var(--text-3); }

.np-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.np-tile {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}
.np-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.np-x {
  position: absolute;
  top: 6px; right: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(0,0,0,0.65);
  display: flex; align-items: center; justify-content: center;
}
.np-add {
  border: 1.5px dashed rgba(226,121,102,0.45);
  background: rgba(226,121,102,0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.np-add-circle {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(226,121,102,0.12);
  display: flex; align-items: center; justify-content: center;
}
.np-add > span {
  font-size: 9px;
  font-weight: 600;
  color: rgba(226,121,102,0.85);
}

.np-cap-label {
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 6px;
}
.np-cap-label span {
  font-weight: 400;
  color: var(--text-3);
  font-size: 9px;
}
.np-cap-field {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 10px;
  color: var(--text-3);
  min-height: 46px;
  line-height: 1.4;
}

.np-cta-wrap {
  padding: 8px 14px 18px;
  flex-shrink: 0;
}
.np-cta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px;
  border-radius: var(--radius-pill);
  background: var(--gradient);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 6px 20px rgba(226,121,102,0.4);
}
.np-foot {
  font-size: 8.5px;
  color: var(--text-4);
  text-align: center;
  margin-top: 6px;
}

/* ── SCROLL HINT ────────────────────────────────────────────── */
.scroll-hint {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 36px;
  border: 1.5px solid var(--text-3);
  border-radius: var(--radius-pill);
  display: flex;
  justify-content: center;
  padding-top: 6px;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.scroll-hint:hover { opacity: 1; }
.scroll-hint span {
  width: 2px; height: 8px;
  background: var(--text);
  border-radius: var(--radius-pill);
  animation: scroll-hint 1.6s ease infinite;
}
@keyframes scroll-hint {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

/* ── PROBLEM SECTION ───────────────────────────────────────── */
.problem {
  padding: 100px 0;
  position: relative;
}
.problem .big { margin-bottom: 60px; }

.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.problem-card {
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-snap), border-color 0.3s;
}
.problem-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-warm);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.problem-card:hover { transform: translateY(-4px); border-color: rgba(226,121,102,0.25); }
.problem-card:hover::before { opacity: 1; }
.problem-glyph {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: rgba(226,121,102,0.1);
  border: 1px solid rgba(226,121,102,0.2);
  color: var(--salmon);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  position: relative;
}
.problem-glyph svg { width: 22px; height: 22px; }
.problem-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  position: relative;
}
.problem-card p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.55;
  position: relative;
}

/* ── HOW IT WORKS ──────────────────────────────────────────── */
.how {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-3) 50%, var(--bg) 100%);
}
.how .big { margin-bottom: 80px; }

.steps {
  display: flex;
  flex-direction: column;
  gap: 100px;
}
.step {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  align-items: center;
}
.step-label .step-num {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  color: var(--salmon);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  padding: 4px 12px;
  background: rgba(226,121,102,0.1);
  border-radius: var(--radius-pill);
}
.step-label h3 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 16px;
}
.step-label p {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 440px;
}
.step-art {
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

/* ── FEATURES ──────────────────────────────────────────────── */
.features { padding: 100px 0; }
.features .big { margin-bottom: 60px; }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.feature-card {
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease-snap), border-color 0.25s, background 0.25s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(226,121,102,0.6), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(226,121,102,0.3);
  background: linear-gradient(180deg, #1c1c1c 0%, #1a1716 100%);
}
.feature-card:hover::before { opacity: 1; }
.feature-emoji {
  font-size: 32px;
  margin-bottom: 16px;
  display: inline-block;
}
.feature-num { margin-bottom: 14px; }
.big-number {
  font-size: 56px;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.feature-card h3 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.55;
}

/* ── DEEP DIVE ─────────────────────────────────────────────── */
.deep {
  padding: 100px 0;
  position: relative;
  background: var(--bg-3);
  overflow: hidden;
}
.deep::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(226,121,102,0.18) 0%, transparent 70%);
  filter: blur(80px);
}
.deep-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.deep-text .big { margin-bottom: 32px; }
.deep-text .lede { margin-bottom: 28px; }
.deep-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.deep-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-2);
}
.check {
  width: 22px; height: 22px;
  background: var(--gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(226,121,102,0.4);
}
.deep-art {
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

/* ── COUNTERS ──────────────────────────────────────────────── */
.counters {
  padding: 90px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* FAQ (SEO section — content mirrors the FAQPage JSON-LD) */
.faq { padding: 110px 0 90px; }
.faq-list {
  max-width: 760px;
  margin: 46px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item[open] { border-color: var(--border-2); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  font-weight: 700;
  font-size: 16.5px;
  color: var(--text);
  position: relative;
  padding-right: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  font-size: 20px;
  font-weight: 400;
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.65;
}
.counter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 20px;
  text-align: center;
}
.counter-num {
  font-size: clamp(36px, 7vw, 64px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  display: block;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}
.counter-label {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── DOWNLOAD ──────────────────────────────────────────────── */
.download {
  padding: 130px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.download .big { margin-bottom: 22px; }
.download .lede { margin-bottom: 40px; margin-inline: auto; }

.dl-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-2);
  transition: all 0.2s var(--ease-snap);
  min-width: 220px;
  justify-content: center;
}
.dl-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}
.dl-btn.suggested {
  background: var(--gradient);
  border-color: transparent;
  box-shadow: 0 14px 40px rgba(226,121,102,0.4),
              inset 0 1px 0 rgba(255,255,255,0.2);
}
.dl-btn.suggested:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 50px rgba(226,121,102,0.55),
              inset 0 1px 0 rgba(255,255,255,0.2);
}
.dl-btn span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}
.dl-btn small {
  font-size: 10px;
  opacity: 0.7;
  letter-spacing: 0.02em;
}
.dl-btn strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.dl-btn .store-ico { width: 26px; height: 26px; }
.dl-note {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 18px;
}

/* ── FOOTER ────────────────────────────────────────────────── */
.footer {
  padding: 60px 0 32px;
  border-top: 1px solid var(--border);
  background: #0a0a0a;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand { max-width: 280px; }
.footer-logo-row { margin-bottom: 14px; }
.footer-tag {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.5;
}
.footer-cols {
  display: grid;
  /* Pre-launch we ship only Product + Legal columns -- "Company" and
     social handles were removed until we have something real to put
     there. Wider gap keeps the two columns from looking lonely. */
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}
.footer-col h5 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-3);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-2);
  padding: 5px 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-3);
  align-items: center;
}
.footer-socials { display: flex; gap: 12px; color: var(--text-3); }
.footer-socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
}
.footer-socials a:hover { color: var(--salmon); border-color: rgba(226,121,102,0.4); transform: translateY(-1px); }

/* ── REVEAL ON SCROLL ──────────────────────────────────────── */
/* Plain JS-driven entrance via inline styles, safer than CSS
   animations which can stick at currentTime:0 in some embedded
   iframe environments. JS adds .in when intersecting. */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal.in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
/* Robustness: if the page has been loaded for >5s with reveals still
   stuck, JS adds .force-show, which guarantees visibility regardless
   of transition behaviour. */
.reveal.force-show { opacity: 1 !important; transform: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (min-width: 640px) {
  .hero { padding: 150px 0 100px; }
  .hero-ctas { gap: 14px; }
  .hero-trust { gap: 18px; }

  .problem-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .counter-grid { grid-template-columns: repeat(4, 1fr); }
  .dl-buttons { flex-direction: row; }

  .footer-top { grid-template-columns: 1.4fr 2fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }

  .hero { padding: 170px 0 110px; }
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: 80px; }
  .hero-content { text-align: left; }
  .hero-content .lede { margin-inline: 0; }
  .hero-ctas { justify-content: flex-start; }

  .phone { width: 320px; }
  .phone-sm { width: 270px; }
  .phone-md { width: 300px; }

  .feature-grid { grid-template-columns: repeat(3, 1fr); }

  .step {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
  .step-reverse .step-label { order: 2; }
  .step-reverse .step-art { order: 1; }

  .deep-grid { grid-template-columns: 1.05fr 0.95fr; }
}

@media (min-width: 1200px) {
  .hero { padding: 200px 0 140px; }
  .phone { width: 340px; }
  .phone-sm { width: 280px; }
  .phone-md { width: 310px; }

  .steps { gap: 140px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .phone, .orb { animation: none !important; }
}

/* Auth / account stylesheets are imported at the very top of this file
   (CSS spec requirement). See above. */
