:root {
  --bg-charcoal: #1a1a1a;
  --surface-app: #2b2b2b;
  --surface-card: #222222;
  --surface-card-2: #333333;
  --border-app: rgba(255, 255, 255, 0.08);
  --border-focus: #f59e0b;
  
  --emerald: #10b981;
  --emerald-dark: #059669;
  --emerald-light: #34d399;
  
  --gold: #f59e0b;
  --gold-light: #fbbf24;
  --gold-dark: #d97706;
  --gold-grad: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #fde047 100%);
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-charcoal);
}

html, body {
  max-width: 100% !important;
  overflow-x: clip !important;
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

/* 430px Centered Mobile App-Shell Container */
.app-shell {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  background-color: var(--surface-app);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.85);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.main-content {
  flex: 1;
  padding: 12px 14px 80px 14px;
}

/* Links & Buttons */
a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-gold {
  background: var(--gold-grad);
  color: #111827;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45);
}

.btn-emerald {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  color: #064e3b;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-emerald:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-app);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-block {
  display: flex;
  width: 100%;
}

/* Typography & Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: #ffffff;
  line-height: 1.3;
}

h1.page-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 16px 0 12px 0;
  letter-spacing: -0.01em;
  color: #ffffff;
}

h2.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 24px 0 10px 0;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

h2.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 16px;
  background: var(--gold-grad);
  border-radius: 2px;
}

p {
  font-size: 0.92rem;
  color: #d1d5db;
  margin-bottom: 12px;
}

/* Informational Cards */
.info-card {
  background-color: var(--surface-card);
  border: 1px solid var(--border-app);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
}

.info-card--highlight {
  border-color: rgba(245, 158, 11, 0.3);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.06) 0%, rgba(34, 34, 34, 0.95) 100%);
}

.info-card--emerald {
  border-color: rgba(16, 185, 129, 0.3);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.06) 0%, rgba(34, 34, 34, 0.95) 100%);
}

/* Data Tables */
.table-wrapper {
  overflow-x: auto;
  margin: 14px 0 18px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-app);
  background-color: var(--surface-card);
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

table.data-table th {
  background-color: #1a1a1a;
  color: var(--gold-light);
  font-weight: 700;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-app);
}

table.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #e5e7eb;
}

table.data-table tr:last-child td {
  border-bottom: none;
}

/* English PAA Answer Capsule Pattern */
.paa-capsule {
  background-color: #1e241f;
  border-left: 4px solid var(--emerald);
  padding: 12px 14px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 10px 0 14px 0;
  font-size: 0.90rem;
  color: #e5e7eb;
  line-height: 1.5;
}

.paa-capsule strong {
  color: var(--emerald-light);
}

/* Numbered Steps List */
.steps-list {
  list-style: none;
  counter-reset: step-counter;
  margin: 14px 0;
}

.steps-list li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 12px;
  font-size: 0.90rem;
  color: #d1d5db;
}

.steps-list li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  background: var(--surface-card-2);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
}

/* Bullet list */
.custom-list {
  list-style: none;
  margin: 12px 0;
}

.custom-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.90rem;
  color: #d1d5db;
}

.custom-list li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: var(--gold);
  font-size: 1.2rem;
  line-height: 1;
}

/* Breadcrumb */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--gold-light);
}

.breadcrumbs span.separator {
  color: var(--text-dim);
}

.breadcrumbs span.current {
  color: var(--gold-light);
  font-weight: 600;
}

/* Quick specs bar */
.specs-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background-color: #1c221e;
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  margin: 12px 0 18px 0;
  text-align: center;
}

.specs-item {
  display: flex;
  flex-direction: column;
}

.specs-label {
  font-size: 0.70rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.specs-val {
  font-size: 0.88rem;
  color: var(--gold-light);
  font-weight: 800;
  margin-top: 2px;
}
