/* ==========================================================
   TallyPrime Lifetime License page
   Bootstrap 5 overrides + brand styling.
   Layout (grid, spacing, collapse, accordion, carousel) comes
   from Bootstrap; this file holds brand tokens and components.
   ========================================================== */

:root {
  --ink: #231f20;
  --navy: #093b5b;
  --blue: #149ec2;
  --teal: #087c9c;
  --yellow: #ffb510;
  --pale: #fffbe5;
  --line: #d9e2e6;
  --muted: #536773;
  --sky: #dcf3fa;
  --soft: #f2faff;
  --card-line: #dbe9ef;

  /* Bootstrap variable overrides */
  --bs-body-font-family: 'Google Sans', Roboto, Arial, sans-serif;
  --bs-body-font-size: 16px;
  --bs-body-line-height: 1.55;
  --bs-body-color: var(--ink);
  --bs-link-color: var(--navy);
  --bs-link-hover-color: var(--teal);
  --bs-border-radius: 6px;
}

html { scroll-behavior: smooth; scroll-padding-top: 25px; }
@media (min-width: 768px) { html { scroll-padding-top: 20px; } }

body { -webkit-tap-highlight-color: transparent; }
a { text-underline-offset: 4px; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

h1, h2, h3, h4 { line-height: 1.25; letter-spacing: normal; }
h1 { font-size: clamp(2rem, 3.6vw, 2.5rem); font-weight: 700; margin-bottom: 20px; }
h2 { font-size: 1.75rem; margin-bottom: 20px; }
h3 { font-size: 1.35rem; margin-bottom: 14px; }
p  { color: var(--muted); margin-bottom: 18px; }

@media (min-width: 768px) { h2 { font-size: 2rem; } }

/* ---------- Utilities / shared ---------- */
.section { padding: 42px 0; scroll-margin-top: 20px; }
@media (min-width: 768px) { .section { padding: 56px 0; } }

.soft { background: #f4faff; }
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .06em; color: var(--navy); margin-bottom: 14px; text-transform: none; }
@media (min-width: 768px) { .eyebrow { font-size: 14px; margin-bottom: 18px; } }

.section-center { text-align: left; margin-bottom: 30px; }
@media (min-width: 768px) { .section-center { text-align: center; margin-bottom: 40px; } }

.fine { font-size: 13px; line-height: 1.5; }
@media (min-width: 768px) { .fine { font-size: 14px; } }

.skip-link { position: absolute; left: 20px; top: -100px; background: #fff; padding: 10px; z-index: 2000; }
.skip-link:focus { top: 10px; }

.fig-caption { font-size: 14px; color: var(--muted); padding: 14px 0; }

/* ---------- Buttons (Bootstrap .btn + brand variants) ---------- */
.btn { border-radius: 5px; font-weight: 400; padding: 14px 22px; font-size: 15px; line-height: 1.4; transition: background .15s, transform .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-tally-yellow { --bs-btn-color: var(--ink); --bs-btn-bg: var(--yellow); --bs-btn-border-color: var(--yellow);
  --bs-btn-hover-color: var(--ink); --bs-btn-hover-bg: #ffc337; --bs-btn-hover-border-color: #ffc337;
  --bs-btn-active-color: var(--ink); --bs-btn-active-bg: #ffc337; --bs-btn-active-border-color: #ffc337; }
.btn-tally-outline { --bs-btn-color: var(--navy); --bs-btn-bg: transparent; --bs-btn-border-color: var(--yellow);
  --bs-btn-hover-color: var(--navy); --bs-btn-hover-bg: #eaf6fa; --bs-btn-hover-border-color: var(--yellow);
  --bs-btn-active-color: var(--navy); --bs-btn-active-bg: #eaf6fa; --bs-btn-active-border-color: var(--yellow); }
.btn-tally-yellow, .btn-tally-outline { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }

.text-button { border: 0; padding: 0; background: none; color: var(--navy); font-size: 14px; font-weight: 400; text-decoration: none; }
.text-button:hover { text-decoration: underline; }

/* ---------- Icons ---------- */
.tally-line-icon { display: block; width: 32px; height: 32px; color: var(--blue); flex-shrink: 0; fill: none; stroke: currentColor;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin: 0 0 16px; }
.tally-line-icon.compact-icon { width: 25px; height: 25px; margin: 0; }

/* ---------- Header / Navbar ---------- */
.site-header { background: var(--pale); border-bottom: 1px solid #eee8c9; position: relative; z-index: 30; }
.site-header .navbar { min-height: 75px; }
@media (min-width: 768px) { .site-header .navbar { min-height: 92px; } }
.navbar-brand img { width: 53px; height: 52px; object-fit: contain; }
@media (min-width: 768px) { .navbar-brand img { width: 65px; height: 62px; } }
.navbar-toggler { border: 1px solid #b9ccd5; border-radius: 4px; color: var(--navy); font-size: 14px; min-height: 44px; padding: 8px 10px; }
.navbar-toggler:focus { box-shadow: none; outline: 3px solid var(--blue); }
.navbar .nav-link { color: var(--ink); font-size: 14px; padding: 12px 8px; }
.navbar .nav-link:hover { color: var(--teal); }
.nav-help { color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
@media (max-width: 767.98px) {
  .navbar-collapse { position: absolute; top: 100%; left: 0; right: 0; background: var(--pale); border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 14px #093b5b12; padding: 8px 20px; z-index: 30; }
  .navbar .nav-link { font-size: 16px; border-bottom: 1px solid #e8e4cd; }
  .navbar-nav li:last-child .nav-link { border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero { background: var(--pale); padding: 28px 0 30px; }
@media (min-width: 768px) { .hero { padding: 52px 0 42px; } }
.hero h1 > span { color: var(--teal); }
.hero .lead { font-size: 18px; color: var(--navy); max-width: 540px; margin-bottom: 14px; }
@media (min-width: 992px) { .hero .lead { font-size: 21px; } }
.hero-feature-points { gap: 8px 20px; margin: 18px 0 24px; padding: 0; }
.hero-feature-points li { display: flex; align-items: center; gap: 7px; font-size: 15px; }
.hero-feature-points li::before { content: "✓"; color: var(--blue); font-weight: 600; }
.hero-actions .btn { min-height: 46px; }
.ownership-price { display: flex; flex-direction: column; gap: 5px; margin: 24px 0 12px; }
.ownership-price strong { font-size: 27px; color: var(--navy); }
.ownership-price small { font-size: 16px; font-weight: 400; }
.ownership-price > span { font-size: 14px; }

.ownership-photo { margin: 0; }
.ownership-photo > img { display: block; width: 100%; height: auto; border-radius: 6px; background: #fff; object-fit: contain; }
.ownership-photo figcaption { display: flex; align-items: center; gap: 15px; padding: 18px; background: #fff; border-left: 3px solid var(--blue); margin-top: 18px; color: var(--navy); }
.ownership-photo figcaption .tally-line-icon { margin: 0; }

/* ---------- Trust strip ---------- */
.trust { background: var(--sky); padding: 20px 0; }
.trust-item strong { display: block; color: var(--navy); font-size: 20px; }
.trust-item span { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
@media (min-width: 768px) { .trust-item + .trust-item { border-left: 1px solid #bcdbe7; } .trust { padding: 24px 0; } }
@media (max-width: 767.98px) {
  .trust-row { text-align: left !important; }
  .trust-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .trust-item strong { font-size: 15px; }
  .trust-item span { font-size: 12px; max-width: 165px; text-align: right; margin: 0; }
}

/* ---------- Icon list items (ownership, features) ---------- */
.icon-item, .feature-item { display: flex; gap: 14px; margin-bottom: 24px; }
.icon-item .tally-line-icon, .feature-item .tally-line-icon { margin: 0; }
.icon-item h3 { font-size: 20px; margin-bottom: 8px; }
.icon-item p, .feature-item p { margin: 0; }

.feature-item { gap: 12px; margin-bottom: 19px; }
.feature-item .tally-line-icon { width: 24px; height: 24px; }
.feature-item h3 { font-size: 19px; margin: 0 0 6px; }
.feature-item p { font-size: 16px; line-height: 1.5; }
.annual-product { display: block; width: 100%; max-height: 330px; object-fit: contain; }

.ownership-trigger { display: flex; flex-direction: column; gap: 10px; background: var(--soft); padding: 24px; margin-top: 35px; border-radius: 5px; }
.ownership-trigger > strong { color: var(--navy); }
.ownership-trigger p { margin: 0; font-size: 15px; }
@media (min-width: 768px) { .ownership-trigger { flex-direction: row; align-items: center; gap: 24px; } .ownership-trigger > strong { flex: 0 0 170px; } }

/* ---------- Industry cards ---------- */
.industry-section { background: var(--soft); }
.card-box { padding: 22px; background: #fff; border: 1px solid var(--card-line); border-radius: 5px; }
@media (min-width: 768px) { .card-box { padding: 26px; } }
.card-box h3 { font-size: 22px; line-height: 1.3; }
.card-box p, .card-box li { font-size: 16px; }
.card-box ul { padding-left: 20px; color: var(--muted); margin: 0; }
.card-box li { margin-bottom: 10px; }

/* ---------- Pricing ---------- */
.lifetime-price-card { padding: 24px; border: 2px solid var(--blue); border-radius: 6px; background: #fff; }
@media (min-width: 768px) { .lifetime-price-card { padding: 32px; } }
.checks { margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); font-size: 14px; }
.checks li::before { content: '✓'; color: var(--blue); margin-right: 10px; }
.license-purchase { padding-top: 24px; border-top: 1px solid var(--line); }
@media (min-width: 992px) { .license-purchase { border-top: 0; border-left: 1px solid var(--line); padding: 0 0 0 40px; } }
.license-purchase h3 { font-size: 28px; }
.annual-price { font-size: 42px; color: var(--navy); font-weight: 700; line-height: 1.2; }
.annual-price > span { font-size: 42px; font-weight: 700; }
.annual-price > small { font-size: 16px; font-weight: 400; }
@media (min-width: 768px) { .annual-price, .annual-price > span { font-size: 48px; } }

.payment-confidence { display: flex; align-items: flex-start; gap: 12px; padding: 18px; background: var(--soft); border-radius: 5px 5px 0 0; margin-top: 30px; color: var(--navy); }
@media (min-width: 768px) { .payment-confidence { align-items: center; padding: 22px; gap: 16px; } }
.payment-confidence .tally-line-icon { width: 30px; height: 30px; margin: 0; }
.payment-confidence p { margin: 5px 0 0; font-size: 15px; }

.purchase-support { border: 1px solid var(--card-line); border-radius: 0 0 6px 6px; padding: 20px; margin-bottom: 24px; }
@media (min-width: 768px) { .purchase-support { padding: 26px; } }
.support-heading { position: relative; display: flex; flex-direction: column; justify-content: center; }
.support-heading h3 { font-size: 22px; margin: 8px 0; }
.support-heading > p { margin: 0; font-size: 15px; }
.support-image { width: 100px; height: 100px; object-fit: contain; margin-bottom: 16px; }
@media (min-width: 768px) {
  .support-heading { min-height: 140px; padding-right: 170px; }
  .support-heading h3 { font-size: 25px; }
  .support-image { position: absolute; right: 10px; top: 0; width: 140px; height: 140px; margin: 0; }
}
.support-grid { margin-top: 10px; }
.support-grid h4 { font-size: 17px; color: var(--navy); line-height: 1.45; margin: 0 0 10px; }
.support-grid p { font-size: 15px; line-height: 1.65; margin: 0 0 12px; }
.support-grid a, .outcome-stories a { color: var(--teal); font-size: 15px; }
.support-grid a:hover, .outcome-stories a:hover { text-decoration: underline; }
@media (min-width: 768px) { .support-grid article + article { border-left: 1px solid #e0ebf0; padding-left: 26px; } }

.outcome-stories { margin-top: 24px; border-top: 1px solid var(--card-line); padding-top: 6px; }
.outcome-toggle { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; padding: 12px 0; text-align: left; font-size: 15px; color: var(--navy); }
.outcome-stories p { font-size: 15px; }

/* ---------- Workflow ---------- */
.work-flow article { padding: 18px; border-top: 3px solid var(--blue); background: var(--soft); }
@media (min-width: 768px) { .work-flow article { padding: 22px; } }
.work-flow article > span { color: var(--teal); font-size: 14px; }
.work-flow h3 { font-size: 18px; margin: 12px 0; }
.work-flow p { font-size: 16px; margin-bottom: 0; }
@media (min-width: 768px) { .work-flow h3 { font-size: 20px; } }
.report-proof ul { padding-left: 20px; }
.report-proof li { margin-bottom: 12px; color: var(--muted); }

.section-buy-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.section-buy-line p { margin: 0; font-size: 15px; color: var(--ink); }
.section-buy-line .btn { flex-shrink: 0; white-space: nowrap; padding: 12px 18px; }
@media (min-width: 768px) { .section-buy-line { align-items: center; gap: 24px; } .section-buy-line p { font-size: 17px; } .section-buy-line .btn { padding: 15px 22px; } }

/* ---------- Digital ---------- */
.digital-section { background: var(--soft); }
.digital-lead { font-size: 16px; line-height: 1.75; }
@media (min-width: 768px) { .digital-lead { font-size: 17px; } }
.digital-grid article { background: #fff; border: 1px solid var(--card-line); border-top: 3px solid var(--blue); padding: 22px; border-radius: 5px; }
@media (min-width: 768px) { .digital-grid article { padding: 24px; } }
.digital-grid .tally-line-icon { box-sizing: content-box; padding: 10px; background: #e7f6fb; border-radius: 5px; }
.digital-grid h3 { font-size: 20px; }
.digital-grid p { font-size: 16px; line-height: 1.65; margin-bottom: 0; }
.digital-grid .digital-label { color: var(--navy); font-size: 14px; font-weight: 500; margin-bottom: 14px; }

/* ---------- Difference ---------- */
.difference-grid article { padding: 18px 0; border-bottom: 1px solid var(--card-line); }
@media (min-width: 768px) { .difference-grid article { padding: 24px; } }
.difference-grid h3 { font-size: 21px; line-height: 1.4; }
.difference-grid p { margin: 0; }
.proof-invitation { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; background: var(--pale); padding: 22px; margin-top: 30px; }
@media (min-width: 768px) { .proof-invitation { flex-wrap: nowrap; padding: 26px; } }
.proof-invitation > div { flex: 1 1 75%; }
.proof-invitation p { margin: 8px 0 0; font-size: 15px; }
.proof-invitation .tally-line-icon { margin: 0; }
.proof-invitation .btn { flex-shrink: 0; width: 100%; }
@media (min-width: 768px) { .proof-invitation .btn { width: auto; } }

/* ---------- Included points ---------- */
.included-points { display: grid; gap: 18px; margin-top: 24px; }
.included-points article { border-left: 3px solid var(--blue); padding-left: 18px; }
.included-points h3 { font-size: 20px; margin: 0 0 7px; }
.included-points p { margin: 0; font-size: 16px; }

/* ---------- People ---------- */
.people-section { background: #edf7fb; }
.intro-wide { max-width: 860px; }
.intro-wide > p { font-size: 16px; line-height: 1.65; max-width: 850px; margin-bottom: 32px; }
@media (min-width: 768px) { .intro-wide > p { font-size: 17px; line-height: 1.75; } }
@media (max-width: 767.98px) { .intro-wide h2 br { display: none; } }
.people-grid { margin-top: 10px; }
.people-grid article { padding: 25px 22px; background: #fff; border-radius: 4px; }
@media (min-width: 768px) { .people-grid article { padding: 32px; } }
.audience-label { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--navy); margin-bottom: 20px; font-weight: 600; }
.people-grid h3 { font-size: 23px; }
.people-grid p { font-size: 16px; line-height: 1.75; }
.people-grid .examples { font-size: 14px; line-height: 1.9; color: var(--navy); border-top: 1px solid var(--line); padding-top: 20px; margin-bottom: 0; }
.examples strong { display: block; margin-bottom: 6px; }
.examples span { color: var(--blue); margin: 0 5px; }
.shared-information { max-width: 830px; margin: 35px auto 0; text-align: left; }
.shared-information h3 { font-size: 24px; }
.shared-information p { font-size: 16px; line-height: 1.75; margin: 0; }
@media (min-width: 768px) { .shared-information { text-align: center; } .shared-information .tally-line-icon { margin-left: auto; margin-right: auto; } .shared-information h3 { font-size: 27px; } }

/* ---------- Video testimonials (horizontal scroll track, jQuery arrows) ---------- */
.original-testimonials { padding-bottom: 22px; }
.testimonial-carousel { position: relative; padding: 0 18px; }
@media (min-width: 768px) { .testimonial-carousel { padding: 0 22px; } }
.testimonial-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.testimonial-track::-webkit-scrollbar { display: none; }
.testimonial-video { flex: 0 0 100%; position: relative; scroll-snap-align: start; display: block; line-height: 0; }
@media (min-width: 768px) { .testimonial-video { flex-basis: calc((100% - 48px) / 3); } }
.testimonial-thumbnail { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 5px; }
.testimonial-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; }
@media (min-width: 768px) { .testimonial-play { width: 54px; height: 54px; } }
.carousel-prev, .carousel-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; border: 0; background: transparent; color: #595959; font-size: 40px; width: 32px; height: 48px; line-height: 1; }
.carousel-prev { left: -12px; }
.carousel-next { right: -12px; }

/* ---------- Written stories (Bootstrap carousel) ---------- */
.testimonial-section { background: var(--pale); }
.written-stories { max-width: 850px; margin: 32px auto 0; }
.written-story { background: #fff; border: 1px solid var(--card-line); border-radius: 6px; padding: 24px; display: flex; flex-direction: column; height: 100%; }
@media (min-width: 768px) { .written-story { padding: 32px 40px; } }
.written-story .quote-mark { font-size: 48px; height: 34px; line-height: 1; color: var(--blue); }
.written-story blockquote { margin: 12px 0 24px; font-size: 18px; line-height: 1.55; color: var(--navy); flex: 1; }
@media (min-width: 768px) { .written-story blockquote { font-size: 20px; } }
.story-person { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.story-person img { width: 64px; height: 64px; object-fit: contain; background: #edf8fc; border-radius: 50%; }
@media (min-width: 768px) { .story-person { gap: 16px; } .story-person img { width: 80px; height: 80px; } }
.story-person p { font-size: 14px; line-height: 1.5; margin: 5px 0 0; }
.written-story > a { font-size: 14px; color: var(--teal); align-self: flex-start; }
.written-story a:hover { text-decoration: underline; }
.written-stories .carousel-item { transition: transform .45s ease-in-out; }
.story-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 22px; }
.story-controls button { width: 44px; height: 44px; border: 1px solid var(--blue); border-radius: 50%; background: #fff; color: var(--teal); font-size: 22px; }
.story-controls button:hover { background: var(--sky); }
.story-position { font-size: 14px; color: var(--navy); min-width: 42px; text-align: center; }

/* ---------- FAQ (Bootstrap accordion) ---------- */
.tally-accordion .accordion-item { background: transparent; border: 0; border-bottom: 1px solid var(--line); }
.tally-accordion .accordion-button { background: transparent; box-shadow: none; padding: 20px 30px 20px 0; font-size: 16px; font-weight: 500; color: var(--ink); }
.tally-accordion .accordion-item:first-child .accordion-button { padding-top: 0; }
.tally-accordion .accordion-button:not(.collapsed) { color: var(--ink); background: transparent; }
.tally-accordion .accordion-button::after { background-image: none; content: '+'; color: var(--blue); font-size: 23px; line-height: 1; width: auto; height: auto; transform: none; }
.tally-accordion .accordion-button:not(.collapsed)::after { content: '−'; transform: none; }
.tally-accordion .accordion-body { padding: 0 30px 20px 0; }
.tally-accordion .accordion-body p { font-size: 16px; line-height: 1.7; margin: 0; }
.more-faqs { padding-top: 24px; }
.arrow:hover img{transform: translateX(5px) translateY(-5px);}
.arrow img{transition: transform 0.3s ease-in-out;}
/* ---------- Final CTA ---------- */
.final-cta { text-align: center; background: var(--pale); padding: 50px 0; }
@media (min-width: 768px) { .final-cta { padding: 75px 0; } }
.closing-logo { display: block; width: 75px; height: 75px; object-fit: contain; margin: 0 auto 24px; }
.final-cta h2 { font-size: 28px; }
@media (min-width: 768px) { .final-cta h2 { font-size: 32px; } }
.final-cta .btn { margin: 0 0 20px; display: flex; max-width: 320px; margin-left: auto; margin-right: auto; }
.final-link { display: block; font-size: 14px; }
@media (min-width: 768px) { .final-cta .btn { display: inline-flex; margin: 0 20px 0 0; max-width: none; } .final-link { display: inline; } }

/* ---------- Footer ---------- */
.site-footer { padding: 35px 0 100px; }
.site-footer p, .site-footer a { font-size: 12px; }

/* ---------- Sticky buy bar ---------- */
.sticky-buy { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; box-shadow: 0 -4px 20px #093b5b12; padding: 10px 0; z-index: 1030; border-top: 1px solid var(--line); }
.sticky-buy strong { display: block; font-size: 12px; }
.sticky-buy span { font-size: 12px; color: var(--muted); }
.sticky-buy .help-link { font-size: 13px; }
.sticky-buy .btn { padding: 10px 14px; font-size: 13px; }
@media (min-width: 768px) { .sticky-buy { padding: 12px 0; } .sticky-buy strong { font-size: 14px; } .sticky-buy .btn { padding: 11px 28px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .written-stories .carousel-item { transition: none; }
}
