/* =========================================================
   Tax Pay Advisor — Stylesheet
   Palette: eggplant purple + turquoise on lilac mist
   Fonts: Epilogue (headings), Atkinson Hyperlegible (body)
   Motif: ledger paper lines and form fields
   ========================================================= */
:root {
  --egg: #3b1f5c;
  --egg-2: #2a1543;
  --egg-3: #52307a;
  --egg-soft: #f3eefa;
  --turq: #14b8a6;
  --turq-2: #0f8f82;
  --turq-soft: #e6f8f6;
  --mist: #f8f6fb;
  --ink: #1e1530;
  --text: #5a5468;
  --line: #e7e1ef;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 18px 40px rgba(59, 31, 92, .12);
  --shadow-sm: 0 6px 18px rgba(59, 31, 92, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
  font-size: 1.03rem;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
  font-family: "Epilogue", "Atkinson Hyperlegible", sans-serif;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.02em;
}
a { color: var(--egg-3); text-decoration: none; transition: color .2s; }
a:hover { color: var(--turq-2); }
img { max-width: 100%; display: block; }

.section { padding: 100px 0; }
.section-sm { padding: 70px 0; }
.bg-mist { background: var(--mist); }
.bg-egg { background: var(--egg); color: rgba(255,255,255,.8); }
.bg-egg h2, .bg-egg h3, .bg-egg h4 { color: var(--white); }
.bg-ledger {
  background-color: var(--white);
  background-image:
    linear-gradient(90deg, transparent 58px, rgba(20,184,166,.35) 58px, rgba(20,184,166,.35) 60px, transparent 60px),
    repeating-linear-gradient(180deg, transparent 0 31px, rgba(59,31,92,.07) 31px 32px);
}

.sec-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--turq-2); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; margin-bottom: 10px; }
.sec-label::before { content: ""; width: 18px; height: 18px; border: 2px solid var(--turq); border-radius: 4px; background: linear-gradient(135deg, transparent 45%, var(--turq) 45% 60%, transparent 60%); }
.sec-title { font-size: clamp(1.9rem, 3.4vw, 2.75rem); margin-bottom: 16px; }
.sec-title .tq { color: var(--turq-2); }
.bg-egg .sec-title .tq { color: var(--turq); }
.sec-intro { max-width: 640px; margin: 0 auto; font-size: 1.07rem; }
.bg-egg .sec-intro { color: rgba(255,255,255,.75); }

/* ---------- Logo ---------- */
.tpa-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Epilogue", sans-serif;
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--white);
  white-space: nowrap;
  letter-spacing: -.03em;
}
.tpa-logo:hover { color: var(--white); }
.tpa-logo .mark {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--turq);
  color: var(--egg-2);
  display: grid; place-items: center;
  font-size: 1.2rem;
}
.tpa-logo .pay { color: var(--turq); }

/* ---------- Header ---------- */
.tpa-header { position: sticky; top: 0; z-index: 1030; background: var(--egg); transition: box-shadow .25s, background .25s; }
.tpa-header.scrolled { background: var(--egg-2); box-shadow: 0 10px 26px rgba(0,0,0,.2); }
.tpa-header .navbar { padding: 16px 0; }
.tpa-header .nav-link { font-weight: 700; color: rgba(255,255,255,.78); padding: 8px 14px !important; position: relative; }
.tpa-header .nav-link:hover { color: var(--white); }
.tpa-header .nav-link.active { color: var(--white); }
.tpa-header .nav-link.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px; background: var(--turq); }
.tpa-header .ph { color: var(--white); font-weight: 700; }
.tpa-header .ph i { color: var(--turq); margin-right: 6px; }
.navbar-toggler { border: 1px solid rgba(255,255,255,.35); padding: 6px 10px; font-size: 1.5rem; color: var(--white); }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(20,184,166,.4); }

/* ---------- Buttons ---------- */
.btn { font-weight: 700; border-radius: 10px; padding: 13px 26px; transition: all .2s; }
.btn-sm { padding: 8px 18px; font-size: .92rem; }
.btn-turq { background: var(--turq); color: var(--egg-2); border: 2px solid var(--turq); }
.btn-turq:hover, .btn-turq:focus { background: var(--turq-2); border-color: var(--turq-2); color: var(--white); }
.btn-egg { background: var(--egg); color: var(--white); border: 2px solid var(--egg); }
.btn-egg:hover, .btn-egg:focus { background: var(--egg-2); border-color: var(--egg-2); color: var(--white); }
.btn-outline-egg { background: transparent; color: var(--egg); border: 2px solid var(--egg); }
.btn-outline-egg:hover { background: var(--egg); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.55); }
.btn-outline-white:hover { background: var(--white); color: var(--egg); }

/* ---------- Hero ---------- */
.hero { background: var(--egg); color: rgba(255,255,255,.82); padding: 80px 0 150px; clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%); position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(180deg, transparent 0 31px, rgba(255,255,255,.05) 31px 32px); }
.hero .container { position: relative; }
.hero h1 { color: var(--white); font-size: clamp(2.4rem, 5vw, 3.9rem); margin-bottom: 22px; }
.hero h1 span { color: var(--turq); }
.hero .lead { font-size: 1.14rem; max-width: 540px; margin-bottom: 32px; }
.hero-visual { position: relative; padding-bottom: 60px; }
.hero-visual img { width: 100%; height: 440px; object-fit: cover; border-radius: 18px; }
.form-card {
  position: absolute;
  left: -30px; bottom: 0;
  width: 290px;
  background: var(--white);
  border-radius: 14px;
  padding: 22px 22px 18px;
  box-shadow: var(--shadow);
  color: var(--ink);
}
.form-card .fc-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 10px; font-family: "Epilogue", sans-serif; font-weight: 800; }
.form-card .fc-head span { font-size: .75rem; color: var(--turq-2); text-transform: uppercase; letter-spacing: .1em; }
.form-card ul { list-style: none; padding: 0; margin: 0; }
.form-card li { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .94rem; }
.form-card li:last-child { border-bottom: 0; }
.form-card li i { color: var(--turq-2); }

/* ---------- Services (vertical tabs) ---------- */
.svc-tabs { gap: 10px; }
.svc-tabs .nav-link {
  text-align: left;
  border-radius: 12px;
  padding: 16px 18px;
  font-weight: 700;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px;
  transition: all .2s;
}
.svc-tabs .nav-link i { width: 38px; height: 38px; border-radius: 10px; background: var(--egg-soft); color: var(--egg); display: grid; place-items: center; font-size: 1.1rem; flex: 0 0 38px; }
.svc-tabs .nav-link:hover { border-color: var(--turq); }
.svc-tabs .nav-link.active { background: var(--egg); color: var(--white); border-color: var(--egg); }
.svc-tabs .nav-link.active i { background: var(--turq); color: var(--egg-2); }
.svc-pane { background: var(--white); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); height: 100%; }
.svc-pane img { width: 100%; height: 300px; object-fit: cover; }
.svc-pane .sp-body { padding: 30px 32px 34px; }
.svc-pane h3 { font-size: 1.6rem; margin-bottom: 12px; }

/* Service grid (services page) */
.svc-tile { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.svc-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.svc-tile img { width: 100%; height: 220px; object-fit: cover; }
.svc-tile .st-body { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; position: relative; }
.svc-tile .st-ico { position: absolute; right: 22px; top: -26px; width: 52px; height: 52px; border-radius: 12px; background: var(--turq); color: var(--egg-2); display: grid; place-items: center; font-size: 1.3rem; box-shadow: var(--shadow-sm); }
.svc-tile h3 { font-size: 1.28rem; margin: 6px 60px 10px 0; }
.svc-tile p { flex-grow: 1; font-size: .97rem; margin-bottom: 18px; }
.svc-tile .btn { align-self: flex-start; }

/* ---------- About ---------- */
.about-img { width: 100%; height: 460px; object-fit: cover; border-radius: 18px; }
.about-wrap { position: relative; }
.about-wrap .stamp-badge { position: absolute; right: -16px; top: 30px; background: var(--turq); color: var(--egg-2); font-family: "Epilogue", sans-serif; font-weight: 800; padding: 14px 18px; border-radius: 12px; transform: rotate(4deg); box-shadow: var(--shadow); display: flex; align-items: center; gap: 8px; }
.ledger-list { list-style: none; padding: 0; margin: 22px 0 30px; border-top: 2px solid var(--ink); }
.ledger-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); font-weight: 700; color: var(--ink); }
.ledger-list li i { color: var(--turq-2); font-size: 1.2rem; }

/* ---------- Calculator ---------- */
.calc-sheet { background: var(--white); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); }
.calc-in { padding: 38px; }
.calc-in .form-label, .calc-in .range-label label { font-weight: 700; color: var(--ink); }
.field-line { border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; padding: 8px 2px; background: transparent; font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.field-line:focus { border-color: var(--turq); box-shadow: none; background: var(--turq-soft); }
.range-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.range-label output { background: var(--turq-soft); color: var(--turq-2); font-weight: 800; padding: 2px 12px; border-radius: 6px; }
.form-range::-webkit-slider-thumb { background: var(--turq-2); }
.form-range::-moz-range-thumb { background: var(--turq-2); }
.calc-out { background: var(--egg); color: rgba(255,255,255,.8); padding: 38px; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.calc-out .line-item { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px dashed rgba(255,255,255,.2); }
.calc-out .line-item strong { font-family: "Epilogue", sans-serif; font-size: 1.5rem; color: var(--white); }
.calc-out .line-total { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0 6px; border-top: 3px double rgba(255,255,255,.6); margin-top: 8px; }
.calc-out .line-total span { font-weight: 700; color: var(--white); }
.calc-out .line-total strong { font-family: "Epilogue", sans-serif; font-size: 2.3rem; color: var(--turq); }
.calc-out .msg { margin: 16px 0 18px; font-size: .94rem; }

/* ---------- Documents checklist ---------- */
.doc-col { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); padding: 26px 22px; height: 100%; border-top: 5px solid var(--turq); }
.doc-col h4 { font-size: 1.2rem; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.doc-col h4 i { color: var(--egg-3); }
.doc-col ul { list-style: none; padding: 0; margin: 0; }
.doc-col li { display: flex; gap: 10px; padding: 7px 0; font-size: .95rem; color: var(--ink); }
.doc-col li::before { content: ""; flex: 0 0 16px; height: 16px; margin-top: 5px; border: 2px solid var(--egg-3); border-radius: 4px; }

/* ---------- Steps ---------- */
.step-tile { background: var(--egg-3); border-radius: 16px; padding: 30px 24px; height: 100%; position: relative; overflow: hidden; }
.step-tile::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 110px; height: 110px; border-radius: 50%; background: rgba(20,184,166,.18); }
.step-tile i { font-size: 1.9rem; color: var(--turq); display: block; margin-bottom: 14px; }
.step-tile h4 { font-size: 1.2rem; margin-bottom: 8px; }
.step-tile p { margin: 0; font-size: .95rem; position: relative; z-index: 1; }

/* ---------- Testimonials ---------- */
.review-card { background: var(--white); border-radius: 16px; padding: 28px 26px; height: 100%; border: 1px solid var(--line); display: flex; flex-direction: column; background-image: repeating-linear-gradient(180deg, transparent 0 31px, rgba(59,31,92,.05) 31px 32px); }
.review-card .top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.review-card .av { width: 48px; height: 48px; border-radius: 12px; background: var(--turq); color: var(--egg-2); display: grid; place-items: center; font-family: "Epilogue", sans-serif; font-weight: 800; }
.review-card h5 { margin: 0; font-size: 1.02rem; }
.review-card .stars { color: #f59e0b; letter-spacing: 1px; font-size: .9rem; }
.review-card p { margin: 0; color: var(--ink); }

/* ---------- Blog ---------- */
.note-card { background: var(--white); border-radius: 16px; overflow: hidden; height: 100%; display: flex; flex-direction: column; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.note-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.note-card .nc-top { padding: 24px 24px 18px; }
.note-card h3 { font-size: 1.22rem; margin: 0; }
.note-card h3 a { color: var(--ink); }
.note-card h3 a:hover { color: var(--turq-2); }
.note-card img { width: 100%; height: 210px; object-fit: cover; }
.note-card .nc-body { padding: 20px 24px 24px; display: flex; flex-direction: column; flex-grow: 1; }
.note-card p { flex-grow: 1; font-size: .96rem; }
.more-link { font-weight: 700; color: var(--egg-3); display: inline-flex; align-items: center; gap: 6px; }
.more-link:hover { color: var(--turq-2); gap: 10px; }

/* ---------- FAQ ---------- */
.faq .accordion-item { border: 0; border-bottom: 1px solid var(--line); background: transparent; }
.faq .accordion-button { font-family: "Epilogue", sans-serif; font-weight: 800; font-size: 1.08rem; color: var(--ink); padding: 20px 4px; background: transparent; gap: 14px; }
.faq .accordion-button::before { content: "Q"; flex: 0 0 32px; height: 32px; border-radius: 8px; background: var(--egg-soft); color: var(--egg); display: grid; place-items: center; font-size: .9rem; }
.faq .accordion-button:not(.collapsed) { color: var(--egg-3); box-shadow: none; }
.faq .accordion-button:not(.collapsed)::before { background: var(--turq); color: var(--egg-2); }
.faq .accordion-button:focus { box-shadow: none; }
.faq .accordion-body { padding: 0 4px 20px 50px; }

/* ---------- Newsletter ---------- */
.news-split { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.news-split .ns-left { background: var(--turq); color: var(--egg-2); padding: 48px 44px; height: 100%; }
.news-split .ns-left h2 { color: var(--egg-2); font-size: clamp(1.7rem, 3vw, 2.3rem); }
.news-split .ns-right { background: var(--egg); padding: 48px 44px; height: 100%; display: flex; align-items: center; }
.news-split .ns-right form { width: 100%; }
.cta-field { display: flex; gap: 10px; }
.cta-field .form-control { border: 0; border-radius: 10px; padding: 14px 16px; }
.cta-field.is-invalid .form-control { box-shadow: 0 0 0 3px #fca5a5; }
.news-split .invalid-feedback { color: #fecaca; font-weight: 700; }

/* ---------- Page top ---------- */
.page-top { background: var(--egg); color: rgba(255,255,255,.8); clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%); position: relative; }
.page-top::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(180deg, transparent 0 31px, rgba(255,255,255,.05) 31px 32px); }
.page-top .inner { padding: 80px 0 100px; position: relative; }
.page-top h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); max-width: 820px; }
.page-top p { max-width: 640px; margin: 10px 0 0; }
.page-top .breadcrumb { margin: 20px 0 0; }
.page-top .breadcrumb-item, .page-top .breadcrumb-item a { color: rgba(255,255,255,.75); font-weight: 700; }
.page-top .breadcrumb-item a:hover { color: var(--turq); }
.page-top .breadcrumb-item.active { color: var(--turq); }
.page-top .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }

/* ---------- About page ---------- */
.mvv { background: var(--white); border-radius: 16px; padding: 30px 26px; height: 100%; border: 1px solid var(--line); }
.mvv i { font-size: 1.5rem; width: 54px; height: 54px; border-radius: 12px; background: var(--egg); color: var(--turq); display: grid; place-items: center; margin-bottom: 16px; }
.mvv h3 { font-size: 1.2rem; margin-bottom: 8px; }

/* ---------- Single post ---------- */
.post-hero { width: 100%; height: 440px; object-fit: cover; border-radius: 18px; margin-bottom: 36px; }
.post-body p { font-size: 1.08rem; margin-bottom: 20px; }
.post-body h2 { font-size: 1.6rem; margin: 34px 0 14px; }
.tax-tip { background: var(--turq-soft); border-left: 5px solid var(--turq); border-radius: 0 14px 14px 0; padding: 22px 24px; margin: 28px 0; display: flex; gap: 14px; color: var(--egg-2); font-weight: 700; }
.tax-tip i { color: var(--turq-2); font-size: 1.4rem; }
.side-card { background: var(--mist); border-radius: 16px; padding: 26px; margin-bottom: 26px; border: 1px solid var(--line); }
.side-card h4 { font-size: 1.15rem; margin-bottom: 18px; }
.side-card.egg { background: var(--egg); border-color: var(--egg); color: rgba(255,255,255,.82); }
.side-card.egg h4 { color: var(--white); }
.side-post { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.side-post:last-child { margin-bottom: 0; }
.side-post img { width: 80px; height: 64px; object-fit: cover; border-radius: 10px; flex: 0 0 80px; }
.side-post a { color: var(--ink); font-weight: 700; font-size: .95rem; line-height: 1.4; }
.side-post a:hover { color: var(--turq-2); }
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list li { border-bottom: 1px solid var(--line); }
.side-list li:last-child { border-bottom: 0; }
.side-list a { display: block; padding: 10px 0; color: var(--text); font-weight: 700; }
.side-list a:hover { color: var(--turq-2); }
.post-pager { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 36px; }

/* ---------- Contact ---------- */
.c-strip { display: flex; gap: 14px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; height: 100%; }
.c-strip i { flex: 0 0 48px; height: 48px; border-radius: 12px; background: var(--egg-soft); color: var(--egg); display: grid; place-items: center; font-size: 1.2rem; }
.c-strip h5 { font-size: 1rem; margin-bottom: 2px; }
.c-strip p, .c-strip a { margin: 0; font-size: .95rem; word-break: break-word; }
.form-ledger { background-color: var(--white); border-radius: 18px; padding: 40px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-ledger .form-label, .nl-body .form-label { font-weight: 700; color: var(--ink); font-size: .94rem; }
.form-control, .form-select { border-radius: 10px; padding: 12px 14px; border-color: var(--line); }
.form-control:focus, .form-select:focus { border-color: var(--turq); box-shadow: 0 0 0 3px rgba(20,184,166,.18); }
.form-check-input:checked { background-color: var(--egg); border-color: var(--egg); }
.map-frame { border-radius: 18px; overflow: hidden; height: 100%; min-height: 440px; }
.map-frame iframe { width: 100%; height: 100%; min-height: 440px; border: 0; display: block; }
.form-alert { display: none; margin-top: 16px; border-radius: 10px; padding: 12px 16px; font-weight: 700; }
.form-alert.show { display: block; }

/* ---------- Newsletter pages ---------- */
.nl-card { background: var(--white); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.nl-img { height: 100%; min-height: 300px; }
.nl-img img { width: 100%; height: 100%; object-fit: cover; }
.nl-body { padding: 46px; }

/* ---------- Legal ---------- */
.legal h2 { font-size: 1.4rem; margin: 34px 0 12px; }
.legal .updated { display: inline-block; background: var(--turq-soft); color: var(--turq-2); font-weight: 700; padding: 6px 14px; border-radius: 8px; margin-bottom: 20px; font-size: .9rem; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }

/* ---------- Footer ---------- */
.tpa-footer { background: var(--egg-2); color: rgba(255,255,255,.72); }
.tpa-footer .ft-main { padding: 80px 0 50px; }
.tpa-footer h5 { color: var(--white); font-size: 1.1rem; margin-bottom: 20px; }
.tpa-footer a { color: rgba(255,255,255,.72); }
.tpa-footer a:hover { color: var(--turq); }
.ft-list { list-style: none; padding: 0; margin: 0; }
.ft-list li { margin-bottom: 10px; }
.ft-contact li { display: flex; gap: 10px; }
.ft-contact i { color: var(--turq); margin-top: 3px; }
.ft-social { display: flex; gap: 10px; margin-top: 20px; }
.ft-social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.ft-social a:hover { background: var(--turq); color: var(--egg-2); }
.ft-news .form-control { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); color: var(--white); }
.ft-news .form-control::placeholder { color: rgba(255,255,255,.5); }
.ft-news .invalid-feedback { color: #fca5a5; }
.ft-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; font-size: .9rem; }
.ft-bottom a { margin-left: 18px; }
.ft-bottom a:first-child { margin-left: 0; }

/* ---------- Back to top ---------- */
.tpa-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--turq);
  color: var(--egg-2);
  border: 0;
  font-size: 1.2rem;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden;
  transform: translateY(12px);
  transition: all .25s;
  z-index: 1040;
}
.tpa-top.show { opacity: 1; visibility: visible; transform: none; }
.tpa-top:hover { background: var(--egg); color: var(--white); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .section { padding: 76px 0; }
  .hero { padding: 60px 0 110px; clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%); }
  .hero-visual img { height: 340px; }
  .form-card { left: 12px; }
  .tpa-header .navbar-collapse { padding: 14px 0 8px; }
  .tpa-header .nav-link.active::after { display: none; }
  .about-img { height: 380px; }
  .about-wrap .stamp-badge { right: 12px; }
  .calc-in, .calc-out { padding: 30px; }
  .svc-tabs { flex-direction: row !important; flex-wrap: wrap; }
  .svc-tabs .nav-link { flex: 1 1 calc(50% - 10px); }
}
@media (max-width: 767.98px) {
  .form-ledger, .nl-body { padding: 28px 22px; }
  .post-hero { height: 280px; }
  .ft-bottom a { margin: 0 8px; }
  .nl-img { min-height: 220px; }
  .cta-field { flex-direction: column; }
  .news-split .ns-left, .news-split .ns-right { padding: 32px 24px; }
  .bg-ledger { background-image: repeating-linear-gradient(180deg, transparent 0 31px, rgba(59,31,92,.07) 31px 32px); }
}
@media (max-width: 575.98px) {
  .tpa-logo { font-size: 1.22rem; }
  .tpa-logo .mark { width: 34px; height: 34px; }
  .form-card { position: relative; left: 0; width: auto; margin-top: -40px; }
  .hero-visual { padding-bottom: 0; }
  .svc-tabs .nav-link { flex: 1 1 100%; }
}
