/* ============================================
   OneLatex – AddPages Shared Stylesheet
   ============================================ */

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

:root {
  --ink:        #1F1436;
  --violet-700: #5E2E90;
  --violet-500: #9951CE;
  --text-500:   #6D5F88;
  --text-400:   #867AA0;
  --teal:       #1F9688;
  --bg-base:    #F4F1FB;
  --glass-bg:   rgba(255,255,255,0.70);
  --radius-pill: 20px;
  --radius-card: 18px;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  background-color: var(--bg-base);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -5%, rgba(155,81,206,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 100% 80%, rgba(31,150,136,0.05) 0%, transparent 60%),
    linear-gradient(170deg, #FAF8FF 0%, #F7F3FF 50%, #FFF5FB 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Nav ── */
nav {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 40px;
  height: 60px;
  background: rgba(248,246,254,0.90);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(200,170,230,0.2);
  flex-shrink: 0;
}

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, #9951CE, #5E2E90);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: #fff;
}
.logo-text { font-size: 17px; font-weight: 500; color: var(--ink); letter-spacing: -0.02em; }
.logo-text span { color: var(--text-500); font-weight: 300; }

/* ── Layout ── */
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  width: 100%;
}

/* ── Card ── */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(220,190,250,0.35);
  border-radius: var(--radius-card);
  box-shadow: 0 2px 6px rgba(31,20,54,0.06), 0 16px 48px rgba(31,20,54,0.08);
  padding: 40px 44px;
  max-width: 520px;
  width: 100%;
  text-align: center;
}

.card-wide { max-width: 640px; }

.card-icon { font-size: 44px; margin-bottom: 16px; }
.card-title { font-size: 1.375rem; font-weight: 600; color: var(--ink); margin-bottom: 12px; letter-spacing: -0.02em; }
.card-sub { font-size: 0.9375rem; color: var(--text-500); line-height: 1.65; margin-bottom: 24px; }
.card-sub a { color: var(--violet-700); text-decoration: none; font-weight: 500; }
.card-sub a:hover { text-decoration: underline; }

/* ── Button ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #9333C8, #7719AA);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px 28px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
  box-shadow: 0 4px 16px rgba(94,46,144,0.22);
}
.btn-primary:hover { opacity: 0.92; transform: translateY(-1px); color: #fff; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ── Notice boxes ── */
.notice {
  background: rgba(155,81,206,0.07);
  border: 1px solid rgba(155,81,206,0.15);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.8125rem;
  color: var(--text-500);
  line-height: 1.6;
  text-align: left;
  margin-top: 16px;
}
.notice-warn {
  background: rgba(180,118,26,0.08);
  border-color: rgba(180,118,26,0.2);
}

/* ── Feature list (pricing) ── */
.feature-list {
  list-style: none;
  text-align: left;
  margin: 16px 0 24px;
}
.feature-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--text-500);
  padding: 7px 0;
  border-bottom: 1px solid rgba(220,190,250,0.25);
  line-height: 1.5;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before { content: '✓'; color: var(--teal); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

.price { font-size: 1.5rem; font-weight: 700; color: var(--violet-700); margin-bottom: 4px; }
.price-sub { font-size: 0.8125rem; color: var(--text-400); margin-bottom: 24px; }

/* ── Section header (pricing intro) ── */
.intro {
  max-width: 640px;
  text-align: center;
  padding: 40px 20px 0;
}
.intro h2 { font-size: 1.25rem; font-weight: 600; color: var(--ink); margin-bottom: 10px; letter-spacing: -0.02em; }
.intro p { font-size: 0.9375rem; color: var(--text-500); line-height: 1.7; }
