/* ==========================================================================
   Reelroundupcrewpi — Freelancer Tax Malta
   Contemporary Financial Editorial + Personal Finance Dashboard
   Palette: burgundy, charcoal, tax gold, ivory, stone (no blue)
   ========================================================================== */

:root {
  --color-burgundy: #7A1F2B;
  --color-burgundy-dark: #5E1721;
  --color-charcoal: #252525;
  --color-gold: #D4A72C;
  --color-gold-soft: #F1E2B8;
  --color-ivory: #F5F0E8;
  --color-white: #FFFFFF;
  --color-stone: #E6E1D8;
  --color-success: #3F6B4F;
  --color-warning: #B7791F;
  --color-danger: #A52A2A;
  --color-text: #242424;
  --color-muted: #77716A;
  --color-border: #D5D0C8;

  --font-display: "Didot", "Bodoni MT", "Bodoni 72", "Playfair Display", "Georgia", serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 1px 2px rgba(37, 37, 37, .06), 0 8px 24px rgba(37, 37, 37, .06);
  --shadow-lift: 0 2px 4px rgba(37, 37, 37, .08), 0 18px 40px rgba(37, 37, 37, .12);
  --container: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Descriptively named stylesheet images */
  --image-accounting-desk-with-calculator: url("https://images.unsplash.com/photo-1554224154-26032ffc0d07?auto=format&fit=crop&w=1200&q=80");
  --image-financial-charts-on-laptop: url("https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=1200&q=80");
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-ivory);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-burgundy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--color-burgundy-dark); }
a:visited { color: var(--color-burgundy-dark); }

:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--color-charcoal); color: var(--color-white);
  padding: 10px 16px; border-radius: var(--radius-sm); z-index: 100;
}
.skip-link:focus { left: 12px; color: var(--color-white); }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { color: var(--color-charcoal); margin: 0 0 .5em; line-height: 1.1; }
h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 700; }
h4 { font-family: var(--font-sans); font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }

p { margin: 0 0 1em; }
.lede, .editorial {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.7;
  color: #3a3733;
}
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans);
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--color-burgundy);
  margin-bottom: 14px;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--color-gold); }
.muted { color: var(--color-muted); }
.small { font-size: .875rem; }
.fig {
  font-family: var(--font-display);
  font-weight: 700;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -.02em;
}

/* ---------- Header / Navigation (non-sticky) ---------- */
.site-header {
  position: relative;
  background: var(--color-ivory);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 18px 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--color-charcoal); text-decoration: none;
}
.brand:visited { color: var(--color-charcoal); }
.brand-mark {
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--color-burgundy); color: var(--color-gold);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.18);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.brand-tag { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--color-muted); }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.main-nav a {
  display: inline-block; padding: 8px 14px; border-radius: 999px;
  color: var(--color-charcoal); text-decoration: none; font-weight: 600; font-size: .92rem;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--color-stone); color: var(--color-burgundy); }
.main-nav a:visited { color: var(--color-charcoal); }

.nav-toggle {
  display: none; background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: 10px; padding: 9px 14px; font: 600 .9rem var(--font-sans); color: var(--color-charcoal);
  cursor: pointer;
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-block; }
  .main-nav { display: none; width: 100%; }
  .main-nav.is-open { display: block; }
  .header-inner { flex-wrap: wrap; }
  .main-nav ul { flex-direction: column; padding: 8px 0 4px; }
  .main-nav a { display: block; border-radius: var(--radius-sm); }
}

.notice-bar {
  background: var(--color-charcoal); color: var(--color-stone);
  font-size: .82rem; text-align: center; padding: 8px 16px;
}
.notice-bar strong { color: var(--color-gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font: 700 .98rem var(--font-sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn-primary { background: var(--color-burgundy); color: var(--color-white); }
.btn-primary:hover, .btn-primary:visited { background: var(--color-burgundy-dark); color: var(--color-white); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-secondary { background: transparent; color: var(--color-charcoal); border-color: var(--color-charcoal); }
.btn-secondary:visited { color: var(--color-charcoal); }
.btn-secondary:hover { background: var(--color-charcoal); color: var(--color-white); }
.btn-gold { background: var(--color-gold); color: var(--color-charcoal); }
.btn-gold:visited { color: var(--color-charcoal); }
.btn-gold:hover { background: #c39821; color: var(--color-charcoal); }
.btn-small { padding: 9px 16px; font-size: .86rem; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; border: 1px solid currentColor;
  white-space: nowrap;
}
.badge-burgundy { color: var(--color-burgundy); background: rgba(122,31,43,.06); }
.badge-gold { color: #7a5c0d; background: var(--color-gold-soft); border-color: var(--color-gold); }
.badge-success { color: var(--color-success); background: rgba(63,107,79,.08); }
.badge-warning { color: var(--color-warning); background: rgba(183,121,31,.08); }
.badge-danger { color: var(--color-danger); background: rgba(165,42,42,.07); }
.badge-muted { color: var(--color-muted); background: var(--color-stone); border-color: var(--color-border); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--color-white); border-block: 1px solid var(--color-border); }
.section-stone { background: var(--color-stone); }
.section-dark { background: var(--color-charcoal); color: var(--color-stone); }
.section-dark h2, .section-dark h3 { color: var(--color-white); }
.section-dark .kicker { color: var(--color-gold); }
.section-dark .editorial { color: #d9d3c9; }

.section-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; margin-bottom: 48px; }
.section-head p { margin: 0; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; gap: 12px; } }

.rule { border: 0; border-top: 1px solid var(--color-border); margin: 40px 0; }
.rule-gold { border-top: 2px solid var(--color-gold); width: 64px; margin: 20px 0; }

/* ---------- Cards ---------- */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card-flat:hover { transform: none; box-shadow: var(--shadow-soft); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Hero: Tax Flow Reveal ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 48px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 em { font-style: italic; color: var(--color-burgundy); }
.hero .lede { max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 22px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; }

.hero-stage { position: relative; perspective: 1400px; min-height: 520px; }
.doc-sheet {
  position: absolute; background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: 12px; box-shadow: var(--shadow-soft); padding: 18px;
  font-size: .7rem; color: var(--color-muted);
  transition: transform 1.1s var(--ease);
}
.doc-sheet .doc-line { height: 6px; border-radius: 4px; background: var(--color-stone); margin: 8px 0; }
.doc-sheet .doc-line.short { width: 55%; }
.doc-sheet .doc-title { font: 700 .72rem var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--color-burgundy); }
.doc-invoice { width: 200px; height: 250px; top: 0; right: 4%; transform: rotate(7deg) translateZ(-40px); }
.doc-receipt { width: 130px; height: 220px; bottom: 10px; left: 0; transform: rotate(-9deg); border-style: dashed; }
.doc-form { width: 180px; height: 230px; bottom: 0; right: 0; transform: rotate(-4deg); background: #FFFCF5; }
.hero-stage.is-active .doc-invoice { transform: rotate(10deg) translate(10px, -8px) translateZ(-40px); }
.hero-stage.is-active .doc-receipt { transform: rotate(-12deg) translate(-8px, 6px); }

.coin {
  position: absolute; width: 58px; height: 58px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f3d67a, var(--color-gold) 55%, #a8811a);
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.15), 0 8px 16px rgba(37,37,37,.15);
  display: grid; place-items: center; color: #5a4209; font: 800 1.2rem var(--font-display);
}
.coin-one { top: 40px; left: 6%; }
.coin-two { bottom: 120px; right: -6px; width: 44px; height: 44px; font-size: .95rem; }

.tax-card {
  position: relative; z-index: 2;
  width: min(100%, 440px); margin: 40px auto 0;
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: 26px; padding: 28px; box-shadow: var(--shadow-lift);
}
.tax-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 10px; }
.tax-card-head h2 { font-size: 1.05rem; font-family: var(--font-sans); margin: 0; letter-spacing: .02em; }
.flow-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 0; border-bottom: 1px dashed var(--color-border);
  opacity: .25; transform: translateX(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.flow-row.is-on { opacity: 1; transform: none; }
.flow-row .label { font-size: .9rem; color: var(--color-muted); }
.flow-row .value { font-size: 1.6rem; }
.flow-row.expense .value { color: var(--color-danger); }
.flow-row.profit .value { color: var(--color-success); }
.flow-row.tax { border-bottom: 0; }
.flow-row.tax .value { color: var(--color-burgundy); font-size: 2.3rem; }
.tax-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; font-size: .82rem; }

.flow-strip {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  overflow: hidden;
}
.flow-step {
  position: relative; padding: 20px 18px; border-right: 1px solid var(--color-border);
  transition: background .5s var(--ease);
}
.flow-step:last-child { border-right: 0; }
.flow-step .step-no { font-size: .72rem; font-weight: 700; letter-spacing: .14em; color: var(--color-muted); }
.flow-step .step-name { display: block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--color-charcoal); }
.flow-step .step-bar { height: 4px; background: var(--color-stone); border-radius: 4px; margin-top: 12px; overflow: hidden; }
.flow-step .step-bar span { display: block; height: 100%; width: 0; background: var(--color-gold); transition: width .8s var(--ease); }
.flow-step.is-on { background: #FFFBF1; }
.flow-step.is-on .step-bar span { width: 100%; }
.flow-step.is-on .step-no { color: var(--color-burgundy); }
@media (max-width: 760px) {
  .flow-strip { grid-template-columns: 1fr; }
  .flow-step { border-right: 0; border-bottom: 1px solid var(--color-border); }
}

/* ---------- Scorecards / Stats ---------- */
.scoreboard { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--color-charcoal); }
.score { padding: 28px 22px 10px 0; border-right: 1px solid var(--color-border); margin-right: 22px; }
.score:last-child { border-right: 0; margin-right: 0; }
.score .fig { font-size: clamp(2.6rem, 5vw, 3.8rem); color: var(--color-burgundy); line-height: 1; display: block; }
.score .score-label { display: block; font-weight: 700; margin: 10px 0 4px; }
.score .score-note { font-size: .82rem; color: var(--color-muted); }
@media (max-width: 860px) {
  .scoreboard { grid-template-columns: repeat(2, 1fr); }
  .score { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--color-border); padding-bottom: 20px; }
}
@media (max-width: 480px) { .scoreboard { grid-template-columns: 1fr; } }

/* ---------- Treatment comparison ---------- */
.treatment-card { display: flex; flex-direction: column; gap: 10px; }
.treatment-card .tag-line { font-family: var(--font-serif); font-style: italic; color: var(--color-muted); }
.treatment-card ul { margin: 0; padding-left: 18px; font-size: .94rem; }
.treatment-card ul li { margin-bottom: 6px; }
.treatment-card .card-top { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.treatment-card.is-highlight { border: 2px solid var(--color-burgundy); }

/* ---------- Calculator ---------- */
.calc-shell {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lift);
}
@media (max-width: 960px) { .calc-shell { grid-template-columns: 1fr; } }
.calc-inputs { padding: clamp(24px, 4vw, 40px); border-right: 1px solid var(--color-border); }
.calc-results { padding: clamp(24px, 4vw, 40px); background: #FCF9F3; }

.field { margin-bottom: 24px; }
.field label, .field legend { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 8px; color: var(--color-charcoal); }
.field .hint { font-size: .8rem; color: var(--color-muted); margin-top: 6px; }
.field-row { display: flex; align-items: center; gap: 14px; }
.money-input {
  display: flex; align-items: center; border: 1px solid var(--color-border); border-radius: 10px;
  background: var(--color-white); padding: 0 12px; min-width: 140px;
}
.money-input span { color: var(--color-muted); font-weight: 700; }
.money-input input {
  border: 0; padding: 10px 6px; width: 110px; font: 700 1rem var(--font-sans); color: var(--color-charcoal);
  background: transparent; font-variant-numeric: tabular-nums;
}
.money-input input:focus { outline: none; }
.money-input:focus-within { border-color: var(--color-burgundy); box-shadow: 0 0 0 3px rgba(212,167,44,.35); }

input[type="range"] {
  flex: 1; accent-color: var(--color-burgundy); height: 28px; cursor: pointer; min-width: 0;
}

.segmented { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label {
  margin: 0; font-weight: 600; font-size: .88rem; cursor: pointer;
  padding: 9px 16px; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-white);
  transition: background .2s, color .2s, border-color .2s;
}
.segmented input:checked + label { background: var(--color-charcoal); color: var(--color-white); border-color: var(--color-charcoal); }
.segmented input:focus-visible + label { outline: 3px solid var(--color-gold); outline-offset: 2px; }

select, textarea, input[type="text"], input[type="email"] {
  width: 100%; padding: 12px 14px; border: 1px solid var(--color-border); border-radius: 10px;
  font: 1rem var(--font-sans); color: var(--color-text); background: var(--color-white);
}
select:focus, textarea:focus, input[type="text"]:focus, input[type="email"]:focus {
  outline: none; border-color: var(--color-burgundy); box-shadow: 0 0 0 3px rgba(212,167,44,.35);
}

.result-hero { border-bottom: 1px solid var(--color-border); padding-bottom: 20px; margin-bottom: 20px; }
.result-hero .fig { font-size: clamp(3rem, 6vw, 4.4rem); color: var(--color-burgundy); line-height: 1; display: block; transition: opacity .3s; }
.result-hero .fig.is-updating { opacity: .35; }
.result-lines { list-style: none; padding: 0; margin: 0 0 20px; }
.result-lines li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--color-border); font-size: .94rem; }
.result-lines li strong { font-variant-numeric: tabular-nums; }

.meter { margin: 18px 0 8px; }
.meter-track { height: 14px; background: var(--color-stone); border-radius: 999px; overflow: hidden; position: relative; }
.meter-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--color-gold), var(--color-burgundy)); border-radius: 999px; transition: width .8s var(--ease); }
.meter-scale { display: flex; justify-content: space-between; font-size: .72rem; color: var(--color-muted); margin-top: 6px; }

.compare-bars { display: grid; gap: 12px; margin-top: 20px; }
.compare-bar .bar-label { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: 4px; }
.compare-bar .bar-track { height: 10px; background: var(--color-stone); border-radius: 999px; overflow: hidden; }
.compare-bar .bar-fill { height: 100%; width: 0; border-radius: 999px; transition: width .8s var(--ease); }
.bar-fill.parttime { background: var(--color-gold); }
.bar-fill.standard { background: var(--color-burgundy); }

.calc-disclaimer { font-size: .8rem; color: var(--color-muted); border-left: 3px solid var(--color-gold); padding-left: 12px; margin-top: 20px; }

/* ---------- Expandable "What does this mean?" ---------- */
details.explain {
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  background: var(--color-white); margin-top: 14px; overflow: hidden;
}
details.explain summary {
  cursor: pointer; list-style: none; padding: 14px 18px; font-weight: 700; font-size: .92rem;
  display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--color-burgundy);
}
details.explain summary::-webkit-details-marker { display: none; }
details.explain summary::after { content: "+"; font: 700 1.3rem var(--font-sans); transition: transform .3s; }
details.explain[open] summary::after { transform: rotate(45deg); }
details.explain .explain-body { padding: 0 18px 18px; font-family: var(--font-serif); font-size: 1rem; color: #3a3733; }

/* ---------- Checker ---------- */
.checker { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; }
@media (max-width: 960px) { .checker { grid-template-columns: 1fr; } }
.checker-q { margin-bottom: 22px; border: 0; padding: 0; }
.checker-q legend { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; color: var(--color-charcoal); }
.checker-progress { margin-bottom: 20px; }
.checker-output { min-height: 320px; }
.outcome-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.outcome {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  padding: 16px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-white);
  animation: rise .5s var(--ease) both;
}
.outcome h4 { margin: 0 0 4px; text-transform: none; letter-spacing: 0; font-size: 1rem; }
.outcome p { margin: 0; font-size: .92rem; color: #4a4642; }
.outcome-icon {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  font: 800 .95rem var(--font-sans); color: var(--color-white); background: var(--color-burgundy);
}
.outcome-icon.gold { background: var(--color-gold); color: var(--color-charcoal); }
.outcome-icon.green { background: var(--color-success); }
.outcome-icon.amber { background: var(--color-warning); }

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

/* ---------- Timeline / Journey ---------- */
.journey { position: relative; display: grid; gap: 0; }
.journey::before {
  content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: var(--color-border);
}
.journey-progress {
  position: absolute; left: 27px; top: 10px; width: 2px; height: 0; background: var(--color-burgundy);
  transition: height 1.2s var(--ease);
}
.journey-item { display: grid; grid-template-columns: 56px 1fr; gap: 22px; padding: 0 0 36px; position: relative; }
.journey-marker {
  width: 56px; height: 56px; border-radius: 50%; background: var(--color-white);
  border: 2px solid var(--color-border); display: grid; place-items: center;
  font: 700 1.2rem var(--font-display); color: var(--color-muted); position: relative; z-index: 1;
  transition: border-color .5s, background .5s, color .5s;
}
.journey-item.is-on .journey-marker { border-color: var(--color-burgundy); background: var(--color-burgundy); color: var(--color-gold); }
.journey-content { padding-top: 8px; }
.journey-content h3 { margin-bottom: 6px; }
.journey-content p { margin-bottom: 8px; }
.journey-content .badges { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Featured guides (magazine) ---------- */
.guide-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.guide-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.guide-card .guide-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.guide-card .guide-body p { font-family: var(--font-serif); color: #4a4642; margin: 0; }
.guide-card a.guide-link { margin-top: auto; font-weight: 700; text-decoration: none; }
.guide-card a.guide-link::after { content: " →"; }
.guide-lead { grid-column: span 2; }
.guide-lead img { aspect-ratio: 16/8; }
@media (max-width: 640px) { .guide-lead { grid-column: span 1; } }

/* ---------- Deadlines ---------- */
.deadline-card { position: relative; display: flex; flex-direction: column; gap: 6px; }
.deadline-card .date { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; line-height: 1; color: var(--color-charcoal); }
.deadline-card .countdown { font-size: 2.8rem; color: var(--color-burgundy); line-height: 1; }
.deadline-card .countdown-unit { font-size: .82rem; color: var(--color-muted); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.deadline-card.is-soon { border-color: var(--color-warning); }
.deadline-card.is-soon::after {
  content: ""; position: absolute; top: 18px; right: 18px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--color-warning); animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(183,121,31,.55); }
  70% { box-shadow: 0 0 0 14px rgba(183,121,31,0); }
  100% { box-shadow: 0 0 0 0 rgba(183,121,31,0); }
}

/* ---------- VAT comparison ---------- */
.vat-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.vat-table th, .vat-table td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--color-border); font-size: .93rem; }
.vat-table thead th { background: var(--color-charcoal); color: var(--color-white); font-family: var(--font-display); font-size: 1.15rem; }
.vat-table thead th:first-child { font-family: var(--font-sans); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--color-gold); }
.vat-table tbody th { font-weight: 700; color: var(--color-charcoal); width: 22%; background: #FCF9F3; }
.vat-table tr:last-child td, .vat-table tr:last-child th { border-bottom: 0; }
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); }

/* ---------- Editorial banner (stylesheet image) ---------- */
.editorial-banner--accounting-desk {
  position: relative; border-radius: 28px; overflow: hidden; min-height: 360px;
  background-image: linear-gradient(90deg, rgba(37,37,37,.88) 0%, rgba(37,37,37,.55) 55%, rgba(37,37,37,.15) 100%), var(--image-accounting-desk-with-calculator);
  background-size: cover; background-position: center;
  display: flex; align-items: center; color: var(--color-white);
}
.editorial-banner--accounting-desk .banner-inner { padding: clamp(28px, 5vw, 56px); max-width: 620px; }
.editorial-banner--accounting-desk h2 { color: var(--color-white); }
.editorial-banner--accounting-desk p { color: #eee8de; font-family: var(--font-serif); font-size: 1.1rem; }

.panel-financial-charts {
  border-radius: var(--radius-lg); min-height: 260px;
  background-image: linear-gradient(0deg, rgba(122,31,43,.55), rgba(122,31,43,.2)), var(--image-financial-charts-on-laptop);
  background-size: cover; background-position: center;
}

/* ---------- SSC ---------- */
.ssc-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .ssc-grid { grid-template-columns: 1fr; } }
.ssc-class { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(213,208,200,.25); }
.ssc-class:last-child { border-bottom: 0; }
.ssc-class .fig { font-size: 2.6rem; color: var(--color-gold); line-height: 1; min-width: 70px; }
.ssc-class h3 { font-size: 1.15rem; margin-bottom: 4px; }
.ssc-class p { margin: 0; color: #d9d3c9; font-size: .95rem; }
.section-dark .card { background: #2f2f2f; border-color: #444; color: var(--color-stone); }
.section-dark .card h3 { color: var(--color-white); }
.section-dark a { color: var(--color-gold); }

/* ---------- Resources ---------- */
.resource-card { display: flex; flex-direction: column; gap: 10px; }
.resource-card .resource-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.resource-card .resource-url { font-size: .82rem; color: var(--color-muted); word-break: break-all; }
.resource-card p { font-size: .94rem; margin: 0; }
.resource-card .resource-link { margin-top: auto; font-weight: 700; text-decoration: none; }
.resource-card .resource-link::after { content: " ↗"; }
.resource-index {
  width: 44px; height: 44px; border-radius: 12px; background: var(--color-stone);
  display: grid; place-items: center; font: 700 1.1rem var(--font-display); color: var(--color-burgundy);
}

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--color-border); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 0; font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700;
  display: flex; justify-content: space-between; gap: 16px; color: var(--color-charcoal);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--color-burgundy); font: 700 1.5rem var(--font-sans); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 0 22px; font-family: var(--font-serif); font-size: 1.05rem; color: #3a3733; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li label {
  display: flex; gap: 14px; align-items: start; padding: 14px 16px; background: var(--color-white);
  border: 1px solid var(--color-border); border-radius: var(--radius-md); cursor: pointer;
  transition: background .25s, border-color .25s;
}
.checklist input { width: 20px; height: 20px; accent-color: var(--color-success); margin-top: 3px; flex-shrink: 0; }
.checklist li label:has(input:checked) { background: rgba(63,107,79,.06); border-color: var(--color-success); }
.checklist .item-title { font-weight: 700; display: block; }
.checklist .item-note { font-size: .88rem; color: var(--color-muted); }
.progress-wrap { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.progress-track { flex: 1; height: 12px; background: var(--color-stone); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--color-success); transition: width .6s var(--ease); }
.progress-value { font: 700 1.6rem var(--font-display); color: var(--color-success); min-width: 70px; text-align: right; }

/* ---------- Guide article layout ---------- */
.page-hero { padding: clamp(48px, 7vw, 88px) 0 40px; border-bottom: 1px solid var(--color-border); }
.page-hero .lede { max-width: 720px; }
.article-layout { display: grid; grid-template-columns: 260px 1fr; gap: 56px; }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } }
.toc { position: relative; }
.toc-inner { border: 1px solid var(--color-border); background: var(--color-white); border-radius: var(--radius-md); padding: 20px; }
.toc ol { margin: 0; padding-left: 20px; font-size: .9rem; }
.toc li { margin-bottom: 8px; }
.toc a { text-decoration: none; color: var(--color-charcoal); }
.toc a:hover { color: var(--color-burgundy); }
.article section { padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--color-border); scroll-margin-top: 20px; }
.article section:last-child { border-bottom: 0; }
.article h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.article p, .article li { font-family: var(--font-serif); font-size: 1.08rem; line-height: 1.75; }
.article ul, .article ol { padding-left: 22px; }
.article li { margin-bottom: 8px; }
.callout {
  border-left: 4px solid var(--color-gold); background: var(--color-white); padding: 18px 22px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0; margin: 20px 0;
}
.callout p:last-child { margin: 0; }
.callout-warning { border-left-color: var(--color-warning); }
.callout-success { border-left-color: var(--color-success); }
.article figure { margin: 24px 0; }
.article figure img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.article figcaption { font-size: .85rem; color: var(--color-muted); margin-top: 8px; }

.rate-table { width: 100%; border-collapse: collapse; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; font-family: var(--font-sans); }
.rate-table th, .rate-table td { padding: 12px 14px; border-bottom: 1px solid var(--color-border); text-align: left; font-size: .93rem; }
.rate-table thead th { background: var(--color-stone); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.rate-table td.rate { font-weight: 800; color: var(--color-burgundy); }

.month-timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .month-timeline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .month-timeline { grid-template-columns: 1fr; } }
.month { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 18px; }
.month .month-name { font: 700 1.4rem var(--font-display); color: var(--color-burgundy); display: block; }
.month p { font-size: .95rem !important; margin: 6px 0 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.placeholder { background: var(--color-gold-soft); border: 1px dashed var(--color-gold); padding: 1px 6px; border-radius: 4px; font-family: var(--font-sans); font-size: .92em; }
.form-status { margin-top: 14px; font-weight: 600; color: var(--color-success); }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-charcoal); color: #cfc9bf; padding: 72px 0 32px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { color: var(--color-white); font-family: var(--font-sans); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #e8e2d8; text-decoration: none; }
.site-footer a:visited { color: #e8e2d8; }
.site-footer a:hover { color: var(--color-gold); }
.site-footer .brand { color: var(--color-white); margin-bottom: 16px; }
.site-footer .brand:visited { color: var(--color-white); }
.site-footer .brand-tag { color: #a9a39a; }
.footer-disclaimer { border-top: 1px solid #3c3c3c; margin-top: 48px; padding-top: 24px; font-size: .82rem; color: #a9a39a; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 16px; font-size: .82rem; color: #a9a39a; }
.site-footer .placeholder { background: #3a3426; border-color: var(--color-gold); color: var(--color-gold-soft); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.stagger.is-visible > * { opacity: 1; transform: none; }
.stagger.is-visible > *:nth-child(2) { transition-delay: .08s; }
.stagger.is-visible > *:nth-child(3) { transition-delay: .16s; }
.stagger.is-visible > *:nth-child(4) { transition-delay: .24s; }
.stagger.is-visible > *:nth-child(5) { transition-delay: .32s; }
.stagger.is-visible > *:nth-child(6) { transition-delay: .40s; }
.stagger.is-visible > *:nth-child(7) { transition-delay: .48s; }
.stagger.is-visible > *:nth-child(8) { transition-delay: .56s; }

.float-doc { animation: floatDoc 7s ease-in-out infinite; }
@keyframes floatDoc { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* No-JS fallback */
.no-js .reveal, .no-js .stagger > * { opacity: 1; transform: none; }
.no-js .flow-row { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .stagger > *, .flow-row { opacity: 1 !important; transform: none !important; }
}