/* ==========================================================================
   PipWallet — Design System
   Ledger/statement aesthetic: deep ink navy, antique gold, muted signal
   colors. Serif display for gravitas, mono for anything that is a number.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  /* Palette */
  --ink:        #0E1420;
  --ink-2:      #161F30;
  --ink-3:      #1E293D;
  --line:       #2C374C;
  --line-soft:  rgba(255,255,255,0.08);
  --paper:      #F7F4EC;
  --paper-2:    #EFEADC;
  --ink-text:   #E7E9EF;
  --ink-text-dim: #9AA4B8;
  --gold:       #C89B3C;
  --gold-bright:#E0B75C;
  --green:      #4C8B64;
  --rust:       #B4553A;

  /* Type */
  --f-display: 'Spectral', Georgia, serif;
  --f-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --f-mono: 'IBM Plex Mono', 'SF Mono', Menlo, monospace;

  --radius: 3px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  color: var(--ink-text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--ink-text-dim); }

.mono { font-family: var(--f-mono); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  background: var(--gold);
  color: var(--ink);
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 1000;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ---------------------------------- Nav ---------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14,20,32,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.brand-mark {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--paper);
  letter-spacing: -0.01em;
}

.brand-mark span { color: var(--gold-bright); }

.brand-sub {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-text-dim);
  display: none;
}

@media (min-width: 720px) {
  .brand-sub { display: inline; }
}

.nav-links {
  display: none;
  align-items: center;
  gap: 32px;
}

@media (min-width: 900px) {
  .nav-links { display: flex; }
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--ink-text-dim);
  transition: color 0.15s ease;
  position: relative;
}

.nav-links a:hover, .nav-links a.active { color: var(--paper); }

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -22px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}

/* Higher specificity than ".nav-links a" so the button text always stays
   dark on the gold background, in both default and hover states. */
.nav-links a.nav-cta,
.nav-links a.nav-cta:hover,
.mobile-menu a.nav-cta,
.mobile-menu a.nav-cta:hover {
  color: var(--ink);
}

.nav-cta:hover { background: var(--gold-bright); }

.nav-toggle {
  display: block;
  background: none;
  border: 1px solid var(--line);
  color: var(--paper);
  padding: 8px 10px;
  border-radius: var(--radius);
  cursor: pointer;
}

@media (min-width: 900px) { .nav-toggle { display: none; } }

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 0 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.28s ease, opacity 0.2s ease, padding 0.28s ease;
  border-top: 0 solid var(--line-soft);
}

.mobile-menu.open {
  max-height: 420px;
  opacity: 1;
  padding: 8px 0 18px;
  border-top: 1px solid var(--line-soft);
}

.mobile-menu a {
  padding: 12px 4px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-text-dim);
  font-size: 0.95rem;
}

.mobile-menu a.active { color: var(--gold-bright); }

/* --------------------------- Motion: reveal + hero entrance ------------------ */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.hero-enter {
  animation: fadeUp 0.8s cubic-bezier(0.22,1,0.36,1) both;
}

.hero-enter-1 { animation-delay: 0.05s; }
.hero-enter-2 { animation-delay: 0.16s; }
.hero-enter-3 { animation-delay: 0.27s; }
.hero-enter-4 { animation-delay: 0.38s; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 6px;
  animation: pulse 2.2s ease-in-out infinite;
}

/* ------------------------------- Founder section --------------------------- */

.founder-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: flex-start;
}

@media (max-width: 600px) {
  .founder-card { grid-template-columns: 1fr; }
}

.founder-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(155deg, var(--ink-3), var(--ink-2));
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--gold-bright);
  flex-shrink: 0;
}

.founder-name {
  font-size: 1.3rem;
  color: var(--paper);
  margin-bottom: 4px;
}

.founder-role {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 14px;
}

.credential-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.credential-tag {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--ink-text);
  border: 1px solid var(--line);
  padding: 5px 11px;
  border-radius: 20px;
  background: rgba(255,255,255,0.02);
}

.stat-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(200,155,60,0.06);
  border: 1px solid rgba(200,155,60,0.25);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.stat-strip .stat-num {
  font-family: var(--f-mono);
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--gold-bright);
  line-height: 1;
}

.stat-strip .stat-copy { flex: 1; min-width: 220px; }
.stat-strip .stat-copy .k { font-size: 0.85rem; color: var(--paper); font-weight: 600; margin-bottom: 3px; }
.stat-strip .stat-copy p { font-size: 0.8rem; margin: 0; }

/* -------------------------------- Buttons -------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--f-body);
}

.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: var(--gold-bright); transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--paper); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }

.btn-whatsapp { background: #25D366; color: #06210F; }
.btn-whatsapp:hover { background: #33e077; }

.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 17px 32px; font-size: 1rem; }

/* --------------------------------- Layout -------------------------------- */

section { padding: 88px 0; }
.section-tight { padding: 56px 0; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--gold-bright);
}

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--paper); }
.section-head p { font-size: 1.05rem; }

.on-paper { background: var(--paper); color: var(--ink); }
.on-paper p { color: #5B5646; }
.on-paper h1, .on-paper h2, .on-paper h3, .on-paper h4 { color: var(--ink); }
.on-paper .eyebrow { color: #8A6A22; }
.on-paper .eyebrow::before { background: #8A6A22; }

.divider {
  border: none;
  border-top: 1px solid var(--line-soft);
  margin: 0;
}

.on-paper .divider { border-top-color: rgba(14,20,32,0.12); }

/* ---------------------------------- Hero --------------------------------- */

.hero {
  padding: 72px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(560px 320px at 82% -8%, rgba(200,155,60,0.16), transparent 65%),
    linear-gradient(180deg, var(--ink) 0%, #0B0F19 100%);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 40px; }
}

.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  color: var(--paper);
  max-width: 15ch;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-bright);
}

.hero-lede {
  font-size: 1.1rem;
  max-width: 46ch;
  color: var(--ink-text-dim);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-facts {
  display: flex;
  gap: 28px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.hero-fact .num {
  font-family: var(--f-mono);
  font-size: 1.5rem;
  color: var(--gold-bright);
  display: block;
}

.hero-fact .label {
  font-size: 0.78rem;
  color: var(--ink-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* --------------------------- Ledger (signature) --------------------------- */

.ledger {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 26px 26px 22px;
  color: var(--ink);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.55), 0 0 0 1px rgba(0,0,0,0.04);
}

.ledger-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 16px;
  border-bottom: 1px solid rgba(14,20,32,0.14);
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.ledger-title {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7A745E;
}

.ledger-week {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: #7A745E;
}

.ledger-days {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 18px;
}

.ledger-day {
  text-align: center;
  padding: 10px 4px;
  border-radius: 2px;
  background: rgba(14,20,32,0.03);
}

.ledger-day .d { font-family: var(--f-mono); font-size: 0.65rem; color: #8A6A22; text-transform: uppercase; letter-spacing: 0.06em; }
.ledger-day .v { font-family: var(--f-mono); font-size: 0.92rem; font-weight: 600; margin-top: 4px; }
.ledger-day .v.pos { color: var(--green); }
.ledger-day .v.neg { color: var(--rust); }

.ledger-spark {
  display: block;
  width: 100%;
  height: 84px;
  margin-bottom: 18px;
}

.ledger-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ledger-split .cell {
  background: rgba(14,20,32,0.03);
  padding: 14px 16px;
  border-radius: 2px;
}

.ledger-split .cell .k {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7A745E;
  margin-bottom: 4px;
}

.ledger-split .cell .v {
  font-family: var(--f-mono);
  font-size: 1.35rem;
  font-weight: 600;
}

.ledger-split .cell.client .v { color: var(--green); }
.ledger-split .cell.fee .v { color: #8A6A22; }

.ledger-foot {
  margin-top: 16px;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: #9A957F;
}

@media (max-width: 400px) {
  .ledger { padding: 20px 16px 18px; }
  .ledger-days { gap: 4px; }
  .ledger-day { padding: 8px 2px; }
  .ledger-day .d { font-size: 0.58rem; }
  .ledger-day .v { font-size: 0.78rem; }
  .ledger-split { gap: 10px; }
  .ledger-split .cell { padding: 12px 12px; }
  .ledger-split .cell .v { font-size: 1.15rem; }
}

/* -------------------------------- Trust strip ------------------------------ */

.trust-strip {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 26px 0;
}

.trust-strip .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

@media (min-width: 780px) {
  .trust-strip .container { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}

.trust-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.trust-item svg { flex-shrink: 0; color: var(--gold-bright); margin-top: 2px; }
.trust-item .t { font-size: 0.88rem; color: var(--paper); font-weight: 600; margin-bottom: 2px; }
.trust-item .d { font-size: 0.8rem; color: var(--ink-text-dim); margin: 0; }

/* ---------------------------------- Cards --------------------------------- */

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 680px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(200,155,60,0.4);
  box-shadow: 0 16px 32px -20px rgba(0,0,0,0.6);
}

.card .icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--gold-bright);
  margin-bottom: 18px;
}

.card h3 { font-size: 1.05rem; color: var(--paper); font-family: var(--f-body); font-weight: 600; }
.card p { font-size: 0.9rem; margin-bottom: 0; }

.card .tag {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-bright);
  border: 1px solid rgba(200,155,60,0.35);
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 14px;
}

/* Numbered steps */
.steps { counter-reset: step; }

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line-soft);
}

.step:last-child { border-bottom: none; }

.step-num {
  counter-increment: step;
  font-family: var(--f-mono);
  color: var(--gold-bright);
  font-size: 0.95rem;
}

.step-num::before {
  content: counter(step, decimal-leading-zero);
}

.step h4 { color: var(--paper); font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: 0.92rem; margin-bottom: 6px; }
.step ul { margin: 10px 0 0; padding-left: 18px; }
.step li { font-size: 0.9rem; color: var(--ink-text-dim); margin-bottom: 6px; }

/* ---------------------------------- Tables -------------------------------- */

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table.ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

table.ledger-table th {
  text-align: left;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-bright);
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

table.ledger-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-text);
}

table.ledger-table td.num, table.ledger-table th.num { font-family: var(--f-mono); }

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

.on-paper table.ledger-table th { color: #8A6A22; border-bottom-color: rgba(14,20,32,0.15); }
.on-paper table.ledger-table td { color: #3B3728; border-bottom-color: rgba(14,20,32,0.08); }

/* -------------------------------- Callouts -------------------------------- */

.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  background: var(--ink-2);
  padding: 22px 24px;
  border-radius: var(--radius);
}

.callout.risk { border-left-color: var(--rust); }
.callout.risk h4 { color: var(--rust); }
.callout h4 { color: var(--gold-bright); font-family: var(--f-body); font-size: 0.95rem; margin-bottom: 8px; }
.callout p { font-size: 0.9rem; margin-bottom: 0; }
.callout p + p { margin-top: 10px; }

/* -------------------------------- Calculator ------------------------------- */

.calc {
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  gap: 28px;
}

@media (min-width: 780px) {
  .calc { grid-template-columns: 1fr 1fr; align-items: center; }
}

.calc-label {
  font-size: 0.8rem;
  color: var(--ink-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.calc input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
}

.calc-amount {
  font-family: var(--f-mono);
  font-size: 2.1rem;
  color: var(--gold-bright);
  margin: 10px 0 4px;
}

.calc-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.calc-result {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-soft);
  padding: 16px;
  border-radius: 2px;
}

.calc-result .k { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-text-dim); }
.calc-result .v { font-family: var(--f-mono); font-size: 1.3rem; color: var(--paper); margin-top: 4px; }

/* --------------------------------- Forms ---------------------------------- */

.form-panel {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 36px;
}

.form-row { margin-bottom: 20px; }
.form-row-2 { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 20px; }
@media (min-width: 600px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }

label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6B664F;
  margin-bottom: 8px;
}

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #D8D2BE;
  border-radius: 2px;
  background: #FFFEFB;
  font-family: var(--f-body);
  font-size: 0.95rem;
  color: var(--ink);
}

textarea { resize: vertical; min-height: 90px; }

input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
}

.form-hint { font-size: 0.8rem; color: #8A8468; margin-top: 6px; }

.form-note {
  display: flex;
  gap: 12px;
  background: rgba(180,85,58,0.08);
  border: 1px solid rgba(180,85,58,0.25);
  padding: 16px 18px;
  border-radius: 2px;
  margin-bottom: 26px;
}

.form-note svg { flex-shrink: 0; color: var(--rust); margin-top: 2px; }
.form-note p { font-size: 0.85rem; color: #6B4030; margin: 0; }

.checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 24px; }
.checkbox-row input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--gold); flex-shrink: 0; }
.checkbox-row label { text-transform: none; font-weight: 400; font-size: 0.85rem; color: #5B5646; letter-spacing: 0; margin: 0; }

/* -------------------------------- Doc cards ------------------------------- */

.doc-card {
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.doc-card:hover {
  transform: translateY(-3px);
  border-color: rgba(200,155,60,0.4);
  box-shadow: 0 16px 32px -20px rgba(0,0,0,0.6);
}

.doc-card .doc-icon {
  width: 44px; height: 54px;
  border: 1.5px solid var(--gold);
  border-radius: 2px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 6px;
}

.doc-card .doc-icon::before, .doc-card .doc-icon::after {
  content: '';
  position: absolute;
  left: 8px; right: 8px;
  height: 1px;
  background: rgba(200,155,60,0.5);
}

.doc-card .doc-icon::before { top: 16px; }
.doc-card .doc-icon::after { top: 24px; }

.doc-card h3 { font-size: 1rem; color: var(--paper); font-family: var(--f-body); font-weight: 600; margin-bottom: 4px; }
.doc-card .meta { font-family: var(--f-mono); font-size: 0.7rem; color: var(--ink-text-dim); }
.doc-card .actions { display: flex; gap: 10px; margin-top: auto; padding-top: 10px; }
.doc-card .actions a { flex: 1; text-align: center; padding: 10px; border: 1px solid var(--line); border-radius: 2px; font-size: 0.82rem; font-weight: 600; }
.doc-card .actions a.primary { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.doc-card .actions a:hover { border-color: var(--gold-bright); }

/* --------------------------------- FAQ ------------------------------------ */

.faq-item {
  border-bottom: 1px solid var(--line-soft);
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--paper);
  font-family: var(--f-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 20px;
}

.faq-q .plus { font-family: var(--f-mono); color: var(--gold-bright); transition: transform 0.2s ease; flex-shrink: 0; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-item.open .faq-a { max-height: 400px; }

.faq-a p { padding-bottom: 22px; font-size: 0.92rem; }

/* -------------------------------- Contact --------------------------------- */

.contact-tile {
  border: 1px solid var(--line-soft);
  background: var(--ink-2);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-tile .icon-lg {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 2px;
}

.contact-tile.wa .icon-lg { background: rgba(37,211,102,0.14); color: #25D366; }
.contact-tile.mail .icon-lg { background: rgba(200,155,60,0.14); color: var(--gold-bright); }

.contact-tile .value { font-family: var(--f-mono); font-size: 1.05rem; color: var(--paper); }

/* --------------------------------- Footer ---------------------------------- */

.site-footer {
  background: #0A0E17;
  border-top: 1px solid var(--line-soft);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (min-width: 780px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

.footer-grid h5 {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-text-dim);
  margin-bottom: 16px;
}

.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { font-size: 0.88rem; color: #B9C0CF; }
.footer-grid a:hover { color: var(--gold-bright); }

.footer-legal {
  border-top: 1px solid var(--line-soft);
  padding-top: 26px;
}

.footer-legal p {
  font-size: 0.78rem;
  color: #6D7688;
  margin-bottom: 12px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 0.78rem;
  color: #6D7688;
}

@media (min-width: 780px) {
  .footer-bottom { flex-direction: row; align-items: center; }
}

/* --------------------------- Page hero (inner pages) ------------------------ */

.page-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, var(--ink) 0%, #0B0F19 100%);
}

.page-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); color: var(--paper); max-width: 24ch; }
.page-hero p { font-size: 1.05rem; max-width: 56ch; }

.breadcrumb {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--ink-text-dim);
  margin-bottom: 20px;
}

.breadcrumb a { color: var(--gold-bright); }

/* ------------------------------ Sticky disclosure bar ----------------------- */

.risk-banner {
  background: #17110A;
  border-bottom: 1px solid rgba(180,85,58,0.3);
}

.risk-banner .container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 28px;
  font-size: 0.78rem;
  color: #D9B79E;
}

.risk-banner svg { flex-shrink: 0; color: var(--rust); }
.risk-banner strong { color: #F0C9B0; }
.risk-banner a { text-decoration: underline; color: #F0C9B0; text-underline-offset: 2px; }

/* ------------------------------------ Misc ---------------------------------- */

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.text-dim { color: var(--ink-text-dim); }
.small { font-size: 0.85rem; }

.badge-unlicensed {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: #D9B79E;
  border: 1px solid rgba(180,85,58,0.35);
  padding: 6px 12px;
  border-radius: 2px;
}

.status-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--rust); flex-shrink: 0;
}

.cta-band {
  background: linear-gradient(135deg, #1B1408 0%, #0E1420 60%);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 72px 0;
  text-align: center;
}

.cta-band h2 { color: var(--paper); font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-band .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
