/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Design tokens ─────────────────────────────────────────────────────── */
:root {
  --accent:        #ff4d6d;
  --accent-hover:  #ff2d55;
  --accent-glow:   rgba(255, 77, 109, 0.18);
  --bg:            #0d0d0d;
  --surface:       #141414;
  --surface-2:     #1e1e1e;
  --surface-3:     #252525;
  --border:        #272727;
  --border-l:      #333;
  --text:          #f0f0f0;
  --muted:         #777;
  --dim:           #444;
  --success:       #4ade80;
  --error:         #f87171;
  --r-sm:          6px;
  --r:             12px;
  --r-lg:          20px;
  --max-w:         1100px;
  --nav-h:         64px;
}

/* ── Base ───────────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.75rem;
}

/* ── Navigation ─────────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 1.75rem;
  background: rgba(13,13,13,0.88);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  width: 100%; margin: 0 auto;
  display: flex; align-items: center; gap: 1.5rem;
}

.nav-logo {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 1.05rem; font-weight: 800; letter-spacing: -0.02em;
  color: var(--text); text-decoration: none; flex-shrink: 0;
}
.nav-logo:hover { text-decoration: none; }

.logo-mark {
  width: 30px; height: 30px;
  background: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: #fff; flex-shrink: 0;
  font-weight: 900;
}

.nav-links {
  display: flex; align-items: center; gap: 1.5rem;
  list-style: none; margin-left: 0.75rem;
}
.nav-links a {
  font-size: 0.875rem; font-weight: 500;
  color: var(--muted); transition: color 0.15s; text-decoration: none;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

.nav-actions {
  display: flex; align-items: center; gap: 0.65rem;
  margin-left: auto;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem;
  padding: 0.575rem 1.2rem;
  border-radius: var(--r-sm);
  font-size: 0.875rem; font-weight: 600;
  cursor: pointer; border: none;
  transition: all 0.15s ease;
  text-decoration: none; white-space: nowrap;
  font-family: inherit; letter-spacing: -0.01em;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover); color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
  text-decoration: none;
}

.btn-ghost {
  background: transparent; color: var(--muted);
  border: 1px solid var(--border-l);
}
.btn-ghost:hover:not(:disabled) {
  color: var(--text); border-color: #444;
  background: var(--surface-2); text-decoration: none;
}

.btn-danger {
  background: transparent;
  color: var(--error);
  border: 1px solid rgba(248,113,113,0.25);
}
.btn-danger:hover:not(:disabled) {
  background: rgba(248,113,113,0.07);
  border-color: rgba(248,113,113,0.5);
}

.btn-lg { padding: 0.75rem 1.65rem; font-size: 0.975rem; border-radius: var(--r); }
.btn-block { width: 100%; }

/* ── Forms ──────────────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

label {
  font-size: 0.75rem; font-weight: 700;
  color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 0.9rem; font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
input::placeholder { color: var(--dim); }

.alert {
  padding: 0.7rem 0.9rem;
  border-radius: var(--r-sm);
  font-size: 0.82rem; line-height: 1.5;
}
.alert-error {
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.25);
  color: var(--error);
}
.alert-success {
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.25);
  color: var(--success);
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  padding: calc(var(--nav-h) + 5rem) 1.75rem 5rem;
  text-align: center;
  max-width: var(--max-w);
  margin: 0 auto;
}

.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--accent);
  background: rgba(255,77,109,0.09);
  border: 1px solid rgba(255,77,109,0.22);
  border-radius: 99px; padding: 0.28rem 0.85rem;
  margin-bottom: 1.75rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.75rem);
  font-weight: 900; line-height: 1.08;
  letter-spacing: -0.035em; margin-bottom: 1.25rem;
}
.hero h1 .accent { color: var(--accent); }

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.175rem);
  color: var(--muted); max-width: 540px;
  margin: 0 auto 2.75rem; line-height: 1.75;
}

/* ── Signup card ────────────────────────────────────────────────────────── */
.signup-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem 2rem 1.75rem;
  max-width: 420px;
  margin: 0 auto;
  text-align: left;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03);
}

.signup-card-title {
  font-size: 1.05rem; font-weight: 700;
  margin-bottom: 1.25rem;
}

.form-stack { display: flex; flex-direction: column; gap: 0.85rem; }

.form-footer-note {
  text-align: center; font-size: 0.78rem;
  color: var(--muted); margin-top: 1rem;
}
.form-footer-note a { color: var(--muted); text-decoration: underline; }
.form-footer-note a:hover { color: var(--text); }

/* Success state */
.signup-success { display: none; text-align: center; }

.success-icon {
  width: 50px; height: 50px;
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin: 0 auto 1rem;
  color: var(--success);
}

.signup-success h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.signup-success p {
  font-size: 0.84rem; color: var(--muted);
  line-height: 1.65; margin-bottom: 1.25rem;
}
.signup-success .install-note {
  font-size: 0.72rem; color: var(--dim);
  margin-top: 0.65rem; margin-bottom: 0;
}

/* ── Sections ───────────────────────────────────────────────────────────── */
.section { padding: 5rem 1.75rem; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-eyebrow {
  font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.65rem;
}
.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800; letter-spacing: -0.025em; margin-bottom: 0.75rem;
}
.section-header p { color: var(--muted); max-width: 500px; margin: 0 auto; }

/* ── Feature cards ──────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.1rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.85rem;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: rgba(255,77,109,0.28);
  transform: translateY(-3px);
}

.feature-icon {
  width: 42px; height: 42px;
  background: rgba(255,77,109,0.09);
  border: 1px solid rgba(255,77,109,0.18);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; margin-bottom: 1.15rem;
}

.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.45rem; }
.feature-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.72; }

/* ── Steps ──────────────────────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.1rem;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
}

.step-num {
  width: 30px; height: 30px;
  background: var(--accent); color: #fff;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 800;
  margin-bottom: 1rem;
}

.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.step p { font-size: 0.875rem; color: var(--muted); line-height: 1.72; }

/* ── Rule ───────────────────────────────────────────────────────────────── */
hr.section-rule {
  border: none; border-top: 1px solid var(--border);
  margin: 0 1.75rem;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 1.75rem 2rem;
}

.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; flex-wrap: wrap;
  gap: 2rem; justify-content: space-between; align-items: flex-start;
}

.footer-brand p {
  font-size: 0.8rem; color: var(--dim);
  max-width: 210px; line-height: 1.65; margin-top: 0.5rem;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 2.5rem; }

.footer-col h4 {
  font-size: 0.67rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--dim); margin-bottom: 0.75rem;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; }
.footer-col ul a {
  font-size: 0.85rem; color: var(--muted);
  text-decoration: none; transition: color 0.15s;
}
.footer-col ul a:hover { color: var(--text); text-decoration: none; }

.footer-bottom {
  max-width: var(--max-w); margin: 1.75rem auto 0;
  padding-top: 1.5rem; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  justify-content: space-between; align-items: center;
  font-size: 0.75rem; color: var(--dim);
}

/* ── Policy pages ───────────────────────────────────────────────────────── */
.policy-wrap {
  padding: calc(var(--nav-h) + 3.5rem) 1.75rem 5rem;
  max-width: 760px; margin: 0 auto;
}

.policy-wrap h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800; letter-spacing: -0.025em; margin-bottom: 0.35rem;
}

.policy-meta {
  font-size: 0.82rem; color: var(--muted);
  margin-bottom: 2.75rem; padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.policy-body h2 {
  font-size: 1.15rem; font-weight: 700;
  margin: 2.5rem 0 0.7rem;
}
.policy-body h3 {
  font-size: 0.95rem; font-weight: 600;
  margin: 1.5rem 0 0.4rem; color: var(--text);
}
.policy-body p {
  color: var(--muted); margin-bottom: 1rem;
  line-height: 1.82; font-size: 0.915rem;
}
.policy-body ul, .policy-body ol {
  color: var(--muted); padding-left: 1.35rem; margin-bottom: 1rem;
}
.policy-body li { font-size: 0.915rem; line-height: 1.82; margin-bottom: 0.2rem; }
.policy-body a { color: var(--accent); }
.policy-body strong { color: var(--text); font-weight: 600; }

/* ── Account page ───────────────────────────────────────────────────────── */
.account-wrap {
  padding: calc(var(--nav-h) + 4rem) 1.75rem 5rem;
  max-width: 460px; margin: 0 auto;
}

.account-wrap > h1 {
  font-size: 1.7rem; font-weight: 800;
  letter-spacing: -0.025em; margin-bottom: 0.35rem;
}
.account-wrap > .page-sub {
  font-size: 0.875rem; color: var(--muted); margin-bottom: 2rem;
}

/* Sign-in form (shown when logged out) */
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.85rem;
}
.auth-card h2 { font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; }

/* Account card (shown when logged in) */
.account-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: none;
}

.account-head {
  padding: 1.6rem 1.75rem;
  display: flex; align-items: center; gap: 1rem;
  border-bottom: 1px solid var(--border);
}

.account-avatar {
  width: 50px; height: 50px; flex-shrink: 0;
  background: var(--accent); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; font-weight: 800; color: #fff;
  overflow: hidden;
}
.account-avatar img {
  width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 12px;
}

.account-email {
  font-size: 0.925rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.account-since { font-size: 0.78rem; color: var(--muted); margin-top: 0.15rem; }

.account-rows { padding: 0.4rem 0; }

.account-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1.75rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.account-row:last-child { border-bottom: none; }
.row-label { color: var(--muted); }
.row-value { font-weight: 600; }

.plan-pill {
  display: inline-flex; align-items: center; gap: 0.25rem;
  background: rgba(255,77,109,0.09);
  color: var(--accent);
  border: 1px solid rgba(255,77,109,0.22);
  border-radius: 99px;
  font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 0.2rem 0.65rem;
}

.account-actions {
  padding: 1.1rem 1.75rem 1.4rem;
  display: flex; flex-direction: column; gap: 0.6rem;
  border-top: 1px solid var(--border);
}

/* Delete confirmation panel */
.delete-confirm {
  margin-top: 0.4rem;
  background: rgba(248,113,113,0.05);
  border: 1px solid rgba(248,113,113,0.2);
  border-radius: var(--r);
  padding: 1rem 1.15rem;
  display: none;
}
.delete-confirm p {
  font-size: 0.83rem; color: var(--muted);
  line-height: 1.6; margin-bottom: 0.75rem;
}
.delete-confirm-btns { display: flex; gap: 0.5rem; }

/* ── Spinner ────────────────────────────────────────────────────────────── */
.spin {
  display: inline-block; width: 13px; height: 13px;
  border: 2px solid rgba(255,255,255,0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.55s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 660px) {
  .nav-links { display: none; }
  .hero { padding-top: calc(var(--nav-h) + 3rem); }
  .features-grid, .steps-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 2rem; }
  .footer-links { gap: 1.5rem; }
}

/* ── Google button ──────────────────────────────────────────────────────── */
.btn-google {
  background: #fff;
  color: #3c4043;
  border: 1px solid #dadce0;
  font-weight: 500;
  gap: 0.55rem;
}
.btn-google:hover:not(:disabled) {
  background: #f8f9fa;
  border-color: #bbb;
  box-shadow: 0 1px 6px rgba(0,0,0,0.18);
  transform: none;
  text-decoration: none;
  color: #3c4043;
}

/* ── Or divider ─────────────────────────────────────────────────────────── */
.or-divider {
  display: flex; align-items: center; gap: 0.75rem;
  margin: 1rem 0 0.15rem;
  font-size: 0.75rem; color: var(--dim);
  user-select: none;
}
.or-divider::before, .or-divider::after {
  content: ''; flex: 1; height: 1px;
  background: var(--border);
}

/* ── Logo image ─────────────────────────────────────────────────────────── */
.logo-img {
  width: 30px; height: 30px;
  border-radius: 7px;
  object-fit: contain;
  display: block; flex-shrink: 0;
}

/* ── Active nav link ─────────────────────────────────────────────────────── */
.nav-links a.nav-active,
.nav-links a[style*="color:var(--text)"] { color: var(--text) !important; }

/* ── Page fade-in ────────────────────────────────────────────────────────── */
@keyframes page-fade-in {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}
main, .policy-wrap, .account-wrap, .contact-wrap {
  animation: page-fade-in 0.22s ease both;
}

/* ── Select ──────────────────────────────────────────────────────────────── */
select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 0.9rem; font-family: inherit;
  outline: none; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); outline: none; }
select option { background: var(--surface-2); color: var(--text); }

/* ── Textarea ────────────────────────────────────────────────────────────── */
textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 0.9rem; font-family: inherit;
  outline: none; resize: vertical;
  min-height: 130px;
  line-height: 1.65;
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
textarea::placeholder { color: var(--dim); }

/* ── Contact page ────────────────────────────────────────────────────────── */
.contact-wrap {
  padding: calc(var(--nav-h) + 3.5rem) 1.75rem 5rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.contact-head { margin-bottom: 2.5rem; }
.contact-head h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800; letter-spacing: -0.025em; margin-bottom: 0.35rem;
}
.contact-head .page-sub { color: var(--muted); font-size: 0.9rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
  align-items: start;
}

.contact-form-card,
.contact-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.85rem;
}

.contact-form-card h2 { font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; }

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.contact-success { text-align: center; padding: 0.5rem 0; display: none; }
.contact-success .success-icon {
  width: 50px; height: 50px;
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin: 0 auto 1rem;
  color: var(--success);
}
.contact-success h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.contact-success p { font-size: 0.875rem; color: var(--muted); line-height: 1.65; margin-bottom: 1rem; }

.contact-info-card h3 {
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--dim);
  margin-bottom: 0.5rem;
}

.contact-info-row {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-row:last-child { border-bottom: none; padding-bottom: 0; }
.contact-info-label {
  display: block;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--dim);
  margin-bottom: 0.3rem;
}
.contact-info-value {
  font-size: 0.85rem; color: var(--muted); line-height: 1.6;
}
.contact-info-value a { color: var(--accent); text-decoration: none; }
.contact-info-value a:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   REDESIGN — appended below, all new classes + targeted overrides
   ═══════════════════════════════════════════════════════════════════════════ */

/* New tokens */
:root {
  --feed-card-r: 10px;
  --section-alt:  #101010;
}

/* ── Scroll reveal ──────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: var(--delay, 0s);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Nav scroll state ───────────────────────────────────────────────────── */
.nav--scrolled {
  border-bottom-color: var(--border-l);
  background: rgba(13,13,13,0.97);
}

/* ── CTA shimmer ────────────────────────────────────────────────────────── */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.09) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
  pointer-events: none;
}
.btn-primary:hover:not(:disabled)::after { transform: translateX(100%); }

/* ── Hero — full redesign ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  /* reset old */
  padding: 0;
  text-align: left;
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* gradient: hard bg on left, fades right so feed shows */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, var(--bg) 30%, rgba(13,13,13,0.65) 52%, transparent 72%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative; z-index: 2;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 5.5rem) 1.75rem 5.5rem;
}

.hero-text-wrap { max-width: 470px; }

/* Override centering from original hero-sub */
.hero-text-wrap .hero-sub  { margin: 0 0 2.5rem; max-width: 420px; }
.hero-text-wrap .signup-card { margin: 0; max-width: 420px; }

/* ── Animated listing feed ──────────────────────────────────────────────── */
.hero-feed {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 54%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  padding: calc(var(--nav-h) + 1.5rem) 2.5rem 1.5rem 1rem;
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
}

.feed-col {
  display: flex; flex-direction: column; gap: 0.65rem;
}

@media (prefers-reduced-motion: no-preference) {
  .feed-col--up   { animation: ticker-up   27s linear infinite; }
  .feed-col--down { animation: ticker-down 34s linear infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-feed { opacity: 0.25; }
}

@keyframes ticker-up {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}
@keyframes ticker-down {
  from { transform: translateY(-50%); }
  to   { transform: translateY(0); }
}

/* ── Listing card (feed) ────────────────────────────────────────────────── */
.listing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--feed-card-r);
  overflow: hidden; flex-shrink: 0;
}

.listing-card-photo {
  aspect-ratio: 1;
  background-color: hsl(var(--hue, 335), 38%, 17%);
  background-image: var(--photo, none);
  background-size: cover;
  background-position: center;
  position: relative;
}
.listing-card-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 55%);
}

.listing-card-info  { padding: 0.55rem 0.7rem 0.6rem; }
.listing-card-name  {
  display: block; font-size: 0.7rem; font-weight: 500; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 0.28rem; line-height: 1.3;
}
.listing-card-bottom { display: flex; justify-content: space-between; align-items: center; }
.listing-card-size  { font-size: 0.62rem; color: var(--muted); }
.listing-card-price { font-size: 0.74rem; font-weight: 700; color: var(--text); }

/* ── Feature card global hover override ─────────────────────────────────── */
.feature-card {
  transition: border-color 0.25s, box-shadow 0.25s;
}
.feature-card:hover {
  transform: none;
  border-color: rgba(255, 77, 109, 0.35);
  box-shadow: 0 0 0 1px rgba(255,77,109,0.07) inset, 0 10px 36px rgba(0,0,0,0.38);
}

/* ── Features bento grid ────────────────────────────────────────────────── */
.features-bento {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
}

/* Primary card — spans two rows, no default padding (demo fills top, text fills bottom) */
.feature-card--primary {
  grid-row: 1 / 3;
  padding: 0;
  overflow: hidden;
  display: flex; flex-direction: column;
}

/* Icon for sm cards and feature-text area */
.feature-icon-svg {
  width: 36px; height: 36px;
  background: rgba(255,77,109,0.08);
  border: 1px solid rgba(255,77,109,0.15);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  color: var(--accent); flex-shrink: 0;
}

/* Text area at bottom of primary card */
.feature-text {
  padding: 1.5rem 1.75rem 1.75rem;
  border-top: 1px solid var(--border);
}
.feature-text h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.feature-text p  { font-size: 0.875rem; color: var(--muted); line-height: 1.72; }

/* ── Feature demo (top of primary card) ─────────────────────────────────── */
.feature-demo {
  flex: 1;
  padding: 1.4rem 1.5rem 1.25rem;
  display: flex; flex-direction: column; gap: 0.45rem;
  overflow: hidden;
}

.demo-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.2rem;
}
.demo-title {
  font-size: 0.68rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.07em;
}
.demo-count { font-size: 0.65rem; color: var(--dim); }

.demo-row {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.42rem 0.5rem;
  border-radius: 7px;
  background: var(--surface-2);
  border: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.feature-card--primary.demo-active .demo-row {
  animation: demo-select 4.5s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.3s);
}
@keyframes demo-select {
  0%, 25%   { background: var(--surface-2); border-color: transparent; }
  38%, 88%  { background: rgba(255,77,109,0.07); border-color: rgba(255,77,109,0.2); }
  100%      { background: var(--surface-2); border-color: transparent; }
}

.demo-check {
  width: 14px; height: 14px;
  border: 1.5px solid var(--border-l);
  border-radius: 4px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; color: #fff; transition: background 0.3s, border-color 0.3s;
}
.feature-card--primary.demo-active .demo-row .demo-check {
  animation: check-fill 4.5s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.3s);
}
@keyframes check-fill {
  0%, 25%   { background: transparent; border-color: var(--border-l); }
  38%, 88%  { background: var(--accent); border-color: var(--accent); }
  100%      { background: transparent; border-color: var(--border-l); }
}

.demo-thumb {
  width: 28px; height: 28px; border-radius: 5px;
  background: hsl(var(--hue, 200), 35%, 20%); flex-shrink: 0;
}
.demo-info { flex: 1; min-width: 0; }
.demo-name {
  display: block; font-size: 0.72rem; font-weight: 500; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.demo-age  { display: block; font-size: 0.62rem; color: var(--dim); margin-top: 0.1rem; }

.demo-footer { margin-top: auto; padding-top: 0.7rem; }
.demo-btn {
  width: 100%; padding: 0.55rem 1rem;
  background: var(--accent); color: #fff;
  border: none; border-radius: 7px;
  font-size: 0.78rem; font-weight: 700;
  cursor: default; font-family: inherit;
  letter-spacing: -0.01em;
}
.feature-card--primary.demo-active .demo-btn {
  animation: btn-pulse 4.5s ease-in-out infinite;
  animation-delay: 1.2s;
}
@keyframes btn-pulse {
  0%, 32%   { opacity: 0.45; }
  44%, 88%  { opacity: 1; }
  100%      { opacity: 0.45; }
}

/* ── Showcase section ───────────────────────────────────────────────────── */
.section--showcase { background: var(--section-alt); }

.browser-frame {
  max-width: 900px; margin: 0 auto;
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,255,255,0.04);
}

.browser-chrome {
  background: var(--surface-2);
  padding: 0.65rem 1rem;
  display: flex; align-items: center; gap: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.browser-dots { display: flex; align-items: center; gap: 5px; }
.browser-dot  { width: 11px; height: 11px; border-radius: 50%; display: block; }
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }

.browser-urlbar {
  flex: 1; max-width: 360px;
  background: var(--surface-3); border-radius: 5px;
  padding: 0.28rem 0.7rem;
  font-size: 0.7rem; color: var(--muted);
  font-family: 'SF Mono', 'Consolas', monospace;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.browser-content {
  background: var(--surface);
  aspect-ratio: 16 / 10; overflow: hidden; position: relative;
}

.mock-browser-inner {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1fr 240px;
}

.mock-depop-side {
  border-right: 1px solid var(--border);
  padding: 0.85rem; overflow: hidden;
  background: var(--bg);
}

.mock-depop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}
.mock-listing-thumb { aspect-ratio: 1; border-radius: 5px; }
.mock-listing-thumb:nth-child(1)  { background: hsl(335, 38%, 17%); }
.mock-listing-thumb:nth-child(2)  { background: hsl(200, 38%, 17%); }
.mock-listing-thumb:nth-child(3)  { background: hsl(160, 38%, 17%); }
.mock-listing-thumb:nth-child(4)  { background: hsl(40,  38%, 17%); }
.mock-listing-thumb:nth-child(5)  { background: hsl(280, 38%, 17%); }
.mock-listing-thumb:nth-child(6)  { background: hsl(20,  38%, 17%); }
.mock-listing-thumb:nth-child(7)  { background: hsl(210, 38%, 17%); }
.mock-listing-thumb:nth-child(8)  { background: hsl(350, 38%, 17%); }
.mock-listing-thumb:nth-child(9)  { background: hsl(60,  38%, 17%); }
.mock-listing-thumb:nth-child(10) { background: hsl(180, 38%, 17%); }
.mock-listing-thumb:nth-child(11) { background: hsl(310, 38%, 17%); }
.mock-listing-thumb:nth-child(12) { background: hsl(90,  38%, 17%); }
.mock-listing-thumb:nth-child(13) { background: hsl(0,   38%, 17%); }
.mock-listing-thumb:nth-child(14) { background: hsl(240, 38%, 17%); }
.mock-listing-thumb:nth-child(15) { background: hsl(120, 38%, 17%); }
.mock-listing-thumb:nth-child(16) { background: hsl(25,  38%, 17%); }

.mock-popup-panel {
  padding: 0.9rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  background: var(--surface);
}

.mock-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}
.mock-panel-logo {
  font-size: 0.78rem; font-weight: 800; color: var(--accent);
  letter-spacing: -0.02em;
}
.mock-panel-count {
  font-size: 0.62rem; color: var(--muted);
  background: rgba(255,77,109,0.09);
  border: 1px solid rgba(255,77,109,0.18);
  border-radius: 99px; padding: 0.12rem 0.45rem;
}

.mock-panel-rows { display: flex; flex-direction: column; gap: 0.38rem; flex: 1; }
.mock-panel-row {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.35rem 0.4rem; border-radius: 5px;
  background: var(--surface-2); border: 1px solid transparent;
}
.mock-panel-row--checked {
  background: rgba(255,77,109,0.06); border-color: rgba(255,77,109,0.18);
}

.mock-row-check {
  width: 12px; height: 12px;
  border: 1.5px solid var(--border-l); border-radius: 3px;
  flex-shrink: 0; font-size: 7px;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.mock-panel-row--checked .mock-row-check {
  background: var(--accent); border-color: var(--accent);
}

.mock-row-thumb {
  width: 22px; height: 22px; border-radius: 4px;
  background: var(--surface-3); flex-shrink: 0;
}
.mock-panel-row--checked .mock-row-thumb { background: hsl(335, 38%, 20%); }

.mock-row-name {
  font-size: 0.62rem; font-weight: 500; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.mock-panel-btn {
  width: 100%; padding: 0.45rem;
  background: var(--accent); color: #fff;
  border: none; border-radius: 6px;
  font-size: 0.72rem; font-weight: 700;
  cursor: default; font-family: inherit;
  margin-top: auto;
}

/* ── Steps timeline ─────────────────────────────────────────────────────── */
.steps-timeline {
  position: relative;
  display: flex; flex-direction: column; gap: 2.75rem;
  padding-left: 3.5rem;
  max-width: 680px; margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 13px; top: 28px; bottom: 28px; width: 1px;
  background: repeating-linear-gradient(
    to bottom,
    var(--border-l) 0px, var(--border-l) 5px,
    transparent 5px, transparent 11px
  );
}

.step-item { position: relative; }

.step-marker {
  position: absolute; left: -3.5rem; top: 2px;
  width: 28px; height: 28px;
  background: var(--bg);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* Override old step-num inside new timeline */
.step-item .step-num {
  font-size: 0.67rem; font-weight: 800; color: var(--accent);
  background: none; width: auto; height: auto;
  border-radius: 0; margin-bottom: 0;
}

.step-body h3 {
  font-size: 1.05rem; font-weight: 700; margin-bottom: 0.45rem; margin-top: 0.1rem;
}
.step-body p {
  font-size: 0.875rem; color: var(--muted); line-height: 1.72; max-width: 490px;
}

.step-screenshot-placeholder {
  margin-top: 1.2rem;
  aspect-ratio: 16 / 10; max-width: 480px;
  background: var(--surface-2);
  border: 1px dashed var(--border-l);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  color: var(--dim);
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
}

/* Section alt bg */
.section--alt { background: var(--section-alt); }

/* ── Mobile overrides (redesign) ────────────────────────────────────────── */
@media (max-width: 660px) {
  .hero { min-height: auto; }
  .hero::before {
    background: linear-gradient(to bottom, transparent 40%, var(--bg) 85%);
  }
  .hero-feed { width: 100%; opacity: 0.18; }
  .hero-content { padding-top: calc(var(--nav-h) + 3.5rem); padding-bottom: 4rem; }
  .hero-text-wrap { max-width: 100%; }
  .hero-text-wrap .signup-card { max-width: 100%; }

  .features-bento {
    grid-template-columns: 1fr; grid-template-rows: auto;
  }
  .feature-card--primary { grid-row: auto; }

  .mock-browser-inner { grid-template-columns: 1fr; }
  .mock-popup-panel { display: none; }

  .steps-timeline { padding-left: 2.5rem; }
  .timeline-line  { left: 10px; }
  .step-marker    { left: -2.5rem; }
}
