/* ── Inner pages (About / Features / Prices / Login) ────── */

.page-hero {
  background: linear-gradient(180deg, var(--hero-from) 0%, var(--hero-to) 70%, #fff 100%);
  text-align: center;
  /* Top padding clears the fixed pill navbar (14px top + ~50px tall + gap). */
  padding: 142px 20px 56px;
}
.page-hero h1 {
  font-size: clamp(30px, 4.6vw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 14px;
}
.page-hero .hero-sub { margin-bottom: 0; }

.nav-links a.active { background: rgba(255, 255, 255, .14); }

.page-body { padding: 60px 20px 80px; }
.page-narrow { width: min(760px, 100%); margin: 0 auto; }
.page-wide   { width: min(1000px, 100%); margin: 0 auto; }

/* ── About ──────────────────────────────────────────────── */

.about-copy p {
  font-size: 15.5px;
  line-height: 1.8;
  color: #3c4046;
  margin-bottom: 22px;
}
.about-copy strong { color: var(--ink); }

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 52px 0;
}
.stat {
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  text-align: center;
  padding: 28px 16px;
}
.stat b {
  display: block;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.stat span { font-size: 13px; color: var(--muted); }

/* ── How it works (Features page) ───────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 48px auto 72px;
}
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  padding: 30px 24px 26px;
  text-align: left;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #101114;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}
.step h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 9px; }
.step p  { font-size: 13px; line-height: 1.6; color: var(--muted); }

/* ── Pricing ────────────────────────────────────────────── */

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 380px));
  justify-content: center;
  gap: 26px;
  margin: 10px auto 56px;
}

.price-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 20px;
  padding: 34px 30px 30px;
  text-align: left;
}
.price-card.featured {
  border: 2px solid var(--cyan);
  box-shadow: 0 20px 50px rgba(15, 210, 238, .14);
}
.price-pop {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cyan);
  color: #06262b;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 5px 14px;
}
.price-name { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.price-amount {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1.5px;
}
.price-amount small {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
  margin-left: 6px;
}
.price-desc { font-size: 13px; color: var(--muted); margin: 8px 0 22px; }

.price-list { list-style: none; margin-bottom: 28px; }
.price-list li {
  font-size: 13.5px;
  color: #3c4046;
  padding: 7px 0;
}
.price-list li::before {
  content: "✓";
  color: #1fb771;
  font-weight: 700;
  margin-right: 10px;
}
.price-list li.dim { color: #b6bac2; }
.price-list li.dim::before { content: "\2717"; color: #c2c6cf; }  /* ✗ — clearer "not included" than a bare dash */

.price-card .btn { width: 100%; justify-content: center; }
.btn-outline {
  border: 1.5px solid #d6d8de;
  color: var(--ink);
  background: #fff;
}
.btn-outline:hover { border-color: #9aa0ab; }

.price-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: #1f9d57;
}

.price-note {
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}
.price-note a { color: var(--accent); font-weight: 600; }

.faq { width: min(680px, 100%); margin: 64px auto 0; text-align: left; }
.faq h2 { text-align: center; font-size: 24px; font-weight: 800; margin-bottom: 28px; }
.faq details {
  border: 1px solid var(--card-line);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
  background: #fff;
}
.faq summary { font-size: 14px; font-weight: 600; cursor: pointer; }
.faq details p { font-size: 13.5px; line-height: 1.65; color: var(--muted); padding-top: 12px; }

/* ── Auth / Account (Login page) ────────────────────────── */

.auth-shell {
  width: min(420px, 100%);
  margin: 0 auto;
}

.auth-card, .account-card {
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 20px;
  padding: 30px 28px;
  box-shadow: 0 18px 44px rgba(30, 35, 60, .07);
}

.auth-tabs {
  display: flex;
  background: #f1f2f5;
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 24px;
}
.auth-tabs button {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  border-radius: 999px;
  padding: 9px 0;
  cursor: pointer;
}
.auth-tabs button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .07);
}

.field { position: relative; margin-bottom: 14px; }
.field input {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #f6f7f9;
  border: 1px solid #e3e5ea;
  border-radius: 11px;
  padding: 13px 44px 13px 15px;
  outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.field input:focus { border-color: var(--accent); background: #fff; }
.field .eye {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  cursor: pointer;
  color: #9aa0ab;
  font-size: 15px;
  padding: 2px;
}

.auth-msg { font-size: 13px; min-height: 18px; margin: 4px 2px 12px; color: var(--muted); }
.auth-msg.err { color: #d44; }
.auth-msg.ok  { color: #1fb771; }

.btn-block { width: 100%; justify-content: center; }
.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(24, 114, 252, .25);
}
.btn-accent:hover { background: #2e80ff; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 12.5px;
  margin: 20px 0;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--card-line);
}

.auth-links {
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
}
.auth-links a,
.auth-links .linklike { color: var(--accent); font-weight: 600; cursor: pointer; }
.auth-links .linklike { background: none; border: 0; padding: 0; font: inherit; }

/* Account dashboard */

.account-shell { width: min(720px, 100%); margin: 0 auto; }

.account-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
}
.acc-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}
.acc-avatar-fallback {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
}
.account-head h2 { font-size: 21px; font-weight: 800; letter-spacing: -0.3px; }
.account-head p  { font-size: 13.5px; color: var(--muted); margin-top: 3px; }

.chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 12px;
  vertical-align: 2px;
  margin-left: 10px;
}
.chip-free    { background: #ececef; color: #3a3a3a; }
.chip-premium { background: #f6e96b; color: #3d3400; }

.account-rows { margin-top: 6px; }
.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 2px;
  border-top: 1px solid var(--card-line);
}
.account-row:first-child { border-top: 0; }
.account-row .r-label { font-size: 14px; font-weight: 600; }
.account-row .r-sub   { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.account-row .r-val   { font-size: 13.5px; color: var(--muted); }

.btn-sm {
  font-size: 12.5px;
  padding: 9px 18px;
  white-space: nowrap;
}
.btn-danger {
  background: #fdecec;
  color: #c5302f;
  box-shadow: none;
}
.btn-danger:hover { background: #fbdddd; }

.account-row-danger {
  margin-top: 12px;
  padding-top: 20px;
  border-top: 1px solid #fbd5d5 !important;
}
.account-row-danger .r-label { color: #c5302f; }
.account-row-danger .r-sub   { color: #d97474; }

.redeem-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.redeem-row input {
  flex: 1;
  font-family: inherit;
  font-size: 13.5px;
  background: #f6f7f9;
  border: 1px solid #e3e5ea;
  border-radius: 10px;
  padding: 10px 14px;
  outline: none;
}
.redeem-row input:focus { border-color: var(--accent); background: #fff; }

.hidden { display: none !important; }

.skeleton {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 60px 0;
}

/* ── Blog ───────────────────────────────────────────────── */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.post-card {
  display: block;
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  text-align: left;
  transition: box-shadow .2s ease, transform .2s ease;
}
.post-card:hover {
  box-shadow: 0 14px 34px rgba(30, 35, 60, .08);
  transform: translateY(-2px);
}
.post-card.featured { grid-column: 1 / -1; }
.post-card.featured h3 { font-size: 22px; }

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}
.post-tag {
  background: #ece8fb;
  color: #6b4ee6;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  padding: 3px 11px;
}
.post-tag.t-eng    { background: #e6f6fd; color: #0c9fc4; }
.post-tag.t-guides { background: #e8f6ec; color: #1f9d57; }

.post-card h3 {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin-bottom: 10px;
}
.post-card p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 16px;
}
.post-more { font-size: 13px; font-weight: 600; color: var(--accent); }

/* ── Help center ────────────────────────────────────────── */

.help-section { margin-bottom: 44px; }
.help-section > h2 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 16px;
}
.help-section .faq-list details {
  border: 1px solid var(--card-line);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
  background: #fff;
}
.help-section .faq-list summary { font-size: 14px; font-weight: 600; cursor: pointer; }
.help-section .faq-list p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
  padding-top: 12px;
}
.help-section .faq-list kbd {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 12px;
  background: #f1f2f5;
  border: 1px solid #dfe1e6;
  border-radius: 6px;
  padding: 1px 7px;
}

.help-contact {
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 18px;
  text-align: center;
  padding: 36px 24px;
  margin-top: 14px;
}
.help-contact h2 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.help-contact p  { font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }

/* ── Legal pages (Privacy / Terms) ──────────────────────── */

.legal { width: min(760px, 100%); margin: 0 auto; }
.legal-updated {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 34px;
}
.legal h2 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.2px;
  margin: 36px 0 12px;
}
.legal p, .legal li {
  font-size: 14px;
  line-height: 1.75;
  color: #3c4046;
}
.legal p  { margin-bottom: 13px; }
.legal ul { padding-left: 22px; margin-bottom: 14px; }
.legal li { margin-bottom: 7px; }
.legal a  { color: var(--accent); font-weight: 600; }
.legal strong { color: var(--ink); }

@media (max-width: 860px) {
  .blog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .stats-row, .steps { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: minmax(0, 420px); }
  .page-hero { padding-top: 118px; }
}
