/* =========================================================
   Allpaanelexch Guide — Core styles
   Dark premium theme with gold CTA accents. System fonts.
   ========================================================= */

:root {
  --primary-bg: #081018;
  --secondary-bg: #101b26;
  --card-bg: #142230;
  --accent: #f7c948;
  --accent-dark: #d9a900;
  --text-main: #ffffff;
  --text-muted: #c9d4df;
  --success: #25d366;
  --success-dark: #1da851;
  --cta-green: #0e7a3d;
  --cta-green-dark: #0b6331;
  --border: rgba(255, 255, 255, 0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1140px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  background: var(--primary-bg);
  color: var(--text-main);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}

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

a { color: var(--accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent-dark); }
/* In-text links must be distinguishable by more than colour (WCAG). */
.prose a:not(.btn), p a:not(.btn), li a:not(.btn), td a:not(.btn), .faq-answer a:not(.btn) {
  text-decoration: underline; text-underline-offset: 2px;
}

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3.2vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.35rem); }
p { margin: 0 0 1.1em; color: var(--text-muted); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--accent); color: #000; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-weight: 700; text-align: center;
  padding: 13px 26px; border-radius: 50px; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  font-size: 1rem; line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #10130a; box-shadow: 0 6px 18px rgba(247, 201, 72, .28); }
.btn-primary:hover { background: var(--accent-dark); color: #10130a; }
.btn-secondary { background: transparent; color: var(--text-main); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-success { background: var(--cta-green); color: #fff; }
.btn-success:hover { background: var(--cta-green-dark); color: #fff; }
.btn-lg { padding: 16px 34px; font-size: 1.08rem; }
.btn-cta-header { background: var(--cta-green); color: #fff; padding: 10px 20px; }
.btn-cta-header:hover { background: var(--cta-green-dark); color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(8, 16, 24, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text-main); font-weight: 800; min-width: 0; }
.brand img { width: auto; height: 38px; flex: none; }
/* Logo SVG already contains the "Allpaanelexch" wordmark, so the text label is
   hidden to avoid duplication and to keep the nav on one line. */
.brand-text { display: none; font-size: 1.2rem; letter-spacing: .3px; white-space: nowrap; }
.brand:hover { color: var(--accent); }

.primary-nav { display: flex; align-items: center; gap: 22px; }
.primary-nav ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.primary-nav a { color: var(--text-muted); font-weight: 600; font-size: .95rem; white-space: nowrap; }
.primary-nav a:hover, .primary-nav a.active { color: var(--accent); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 8px; flex: none;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--text-main); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
section.tight { padding: 36px 0; }
.section-alt { background: var(--secondary-bg); }

.page-hero { padding: 60px 0 48px; background: radial-gradient(1200px 500px at 70% -10%, rgba(247,201,72,.10), transparent 60%), var(--secondary-bg); }
.page-hero .lead, .lead { font-size: 1.15rem; color: var(--text-muted); max-width: 760px; }
.page-hero img { width: 100%; height: auto; margin-top: 28px; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
.eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; font-size: .8rem; margin-bottom: 10px; }

/* Home hero split */
.hero { padding: 64px 0; background: radial-gradient(900px 500px at 15% -20%, rgba(37,211,102,.10), transparent 55%), radial-gradient(900px 500px at 90% 0%, rgba(247,201,72,.12), transparent 55%), var(--primary-bg); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 22px 0 14px; }
.hero-media { min-width: 0; }
.hero-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }

/* ---------- Cards ---------- */
.card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.card h3 { color: var(--text-main); }
.grid { display: grid; gap: 22px; }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.icon-badge {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(247,201,72,.14); color: var(--accent); font-size: 1.4rem; margin-bottom: 14px;
}

/* Steps */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { position: relative; padding-left: 62px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #10130a; font-weight: 800; display: grid; place-items: center; font-size: 1.15rem;
}

/* Lists */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; color: var(--text-muted); }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 800; }

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.feature-list li { padding-left: 26px; position: relative; color: var(--text-muted); }
.feature-list li::before { content: "▸"; position: absolute; left: 0; color: var(--accent); }

/* ---------- Notices ---------- */
.notice {
  border: 1px solid var(--border); border-left: 4px solid var(--accent);
  background: var(--card-bg); border-radius: var(--radius-sm); padding: 18px 20px; margin: 22px 0;
}
.notice.safety { border-left-color: var(--success); }
.age-badge { display: inline-block; background: var(--accent); color: #10130a; font-weight: 800; border-radius: 6px; padding: 2px 10px; font-size: .85rem; }

/* ---------- CTA box ---------- */
.cta-box {
  background: linear-gradient(135deg, #12202e, #0c1622);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  text-align: center;
}
.cta-box h2 { color: var(--text-main); }
.cta-box p { max-width: 640px; margin: 0 auto 22px; }
.cta-box small.age-notice, small.age-notice { display: block; margin-top: 14px; color: var(--text-muted); font-size: .82rem; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; max-width: 900px; }
.faq-item { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 20px; }
.faq-item summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; color: var(--text-main); position: relative; padding-right: 28px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 12px; color: var(--accent); font-size: 1.4rem; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 0 16px; color: var(--text-muted); }
.faq-answer p:last-child { margin-bottom: 0; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding: 16px 0 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; font-size: .85rem; }
.breadcrumbs li { color: var(--text-muted); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: var(--border); }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }

/* ---------- Internal link block ---------- */
.link-grid a { display: block; }
.link-card { display: flex; align-items: center; gap: 12px; }
.link-card:hover { border-color: var(--accent); }

/* ---------- Prose ---------- */
.prose { max-width: 820px; overflow-wrap: break-word; word-wrap: break-word; }
.prose h2 { margin-top: 1.6em; }
.prose ul, .prose ol { color: var(--text-muted); padding-left: 22px; margin: 0 0 1.1em; }
.prose li { margin-bottom: 8px; }
.updated { color: var(--text-muted); font-size: .85rem; margin-bottom: 18px; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; }
table.styled { width: 100%; border-collapse: collapse; background: var(--card-bg); border-radius: var(--radius-sm); overflow: hidden; }
table.styled th, table.styled td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); color: var(--text-muted); }
table.styled th { background: rgba(255,255,255,.04); color: var(--text-main); }

/* ---------- Footer ---------- */
.site-footer { background: var(--secondary-bg); border-top: 1px solid var(--border); padding-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; }
.footer-brand { font-size: 1.3rem; font-weight: 800; color: var(--text-main); margin-bottom: 12px; }
.footer-col h3 { font-size: 1rem; color: var(--text-main); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-col a { color: var(--text-muted); font-size: .93rem; }
.footer-col a:hover { color: var(--accent); }
.age-notice-inline { font-size: .85rem; color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; }
.footer-bottom p { margin: 6px 0; font-size: .85rem; }
.responsible-note { color: var(--text-muted); }

/* ---------- Mobile sticky CTA (base hidden; shown in responsive.css) ---------- */
.mobile-sticky-cta { display: none; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.section-head { max-width: 760px; margin-bottom: 34px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
