/* TendLife subpages — same vibe as the landing refresh */
:root {
  --ink: #103e34;
  --muted: #52645c;
  --mint: #c8f7dc;
  --mint-strong: #94e7b8;
  --paper: #fffefa;
  --line: #dbe3dd;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
  --shell: 1120px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(48px, 8vw, 88px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

h1,
h2,
h3,
.logo,
.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #22814e;
  outline-offset: 5px;
}

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

.skip-link,
.skip {
  position: fixed;
  left: 20px;
  top: -100px;
  z-index: 50;
  padding: 12px;
  background: white;
  color: var(--ink);
}

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

.shell,
.wrap {
  width: min(var(--shell), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
}

section[id] {
  scroll-margin-top: 100px;
}

.eyebrow {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}

.lede {
  margin: 0;
  max-width: 42rem;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  color: var(--muted);
}

/* Buttons */
.btn,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 14px 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover,
.button:hover {
  text-decoration: none;
  background: #0c322a;
}

.btn-secondary,
.button-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-secondary:hover,
.button-ghost:hover {
  background: var(--mint);
}

.btn-light {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.btn-light:hover {
  background: var(--mint);
  border-color: var(--mint);
}

.btn-lg {
  min-height: 54px;
  padding: 16px 26px;
  font-size: 16px;
}

.button-small {
  min-height: 42px;
  padding: 10px 16px;
  font-size: 14px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Header */
.nav,
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 250, 0.94);
  backdrop-filter: blur(10px);
}

.nav-inner,
.header .nav.wrap,
.header .wrap.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 24px;
}

.logo,
.wordmark {
  font-size: 28px;
  letter-spacing: -1.4px;
  line-height: 1;
  text-decoration: none;
}

.logo:hover,
.wordmark:hover {
  text-decoration: none;
}

.logo span,
.wordmark > span:first-child {
  font-weight: 700;
}

.wordmark-dot {
  color: #22814e;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a,
.header nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.nav-links a[aria-current="page"],
.header nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-actions .btn {
  min-height: 42px;
  padding: 10px 16px;
  font-size: 14px;
}

.nav-toggle,
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 44px;
  padding: 8px;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span,
.menu-toggle span {
  display: block;
  height: 1.5px;
  width: 24px;
  background: currentColor;
}

.mobile-nav {
  display: grid;
  gap: 4px;
  padding: 8px var(--gutter) 20px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.mobile-nav[hidden] {
  display: none !important;
}

.mobile-nav a {
  padding: 12px 4px;
  font-weight: 600;
  text-decoration: none;
}

.mobile-nav .btn {
  margin-top: 8px;
  width: fit-content;
}

/* Page hero */
.subhead {
  padding-top: clamp(36px, 6vw, 64px);
  padding-bottom: clamp(28px, 4vw, 48px);
}

.subhead h1 {
  margin: 0 0 16px;
  max-width: 14ch;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.subhead-lede {
  max-width: 46rem;
}

/* Pricing */
.price-section {
  padding-top: 0;
}

.billing-toggle {
  margin: 0 0 28px;
  padding: 0;
  border: 0;
}

.billing-toggle legend {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.billing-options {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.billing-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.billing-options label {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.billing-options input:checked + label {
  background: var(--ink);
  color: #fff;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.price-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
}

.price-card.is-recommended,
.price-card.price-future {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.price-card.is-recommended h3,
.price-card.is-recommended .price-amount,
.price-card.is-recommended .price-period,
.price-card.is-recommended .price-reassurance,
.price-card.is-recommended .price-note,
.price-card.is-recommended .price-list {
  color: #fff;
}

.price-badge {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-badge-current {
  background: var(--mint);
  color: var(--ink);
}

.price-badge-best {
  background: rgba(200, 247, 220, 0.18);
  color: var(--mint-strong);
}

.price-card h3 {
  margin: 0 0 8px;
  font-size: 28px;
}

.price-amount {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.price-unit {
  margin-left: 4px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
}

.price-period,
.price-reassurance,
.price-note {
  color: var(--muted);
  font-size: 14px;
}

.price-card.is-recommended .price-period,
.price-card.is-recommended .price-reassurance,
.price-card.is-recommended .price-note {
  color: rgba(255, 255, 255, 0.78);
}

.price-cta {
  width: 100%;
  margin: 18px 0 14px;
}

.price-card.is-recommended .btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.price-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.price-list li {
  position: relative;
  padding: 8px 0 8px 22px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.45;
}

.price-card.is-recommended .price-list li {
  border-top-color: rgba(255, 255, 255, 0.14);
}

.price-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #22814e;
  font-weight: 700;
}

.price-card.is-recommended .price-list li::before {
  color: var(--mint-strong);
}

.price-card[data-billing="yearly"] .price-when-monthly,
.price-card[data-billing="monthly"] .price-when-yearly {
  display: none;
}

/* Compare table */
.compare-section h2,
.faq-head {
  margin: 0 0 24px;
  max-width: 16ch;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.05;
}

.compare-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.compare-table th,
.compare-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

.compare-table thead th {
  background: #f4f8f5;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.compare-table tbody th {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0;
}

.compare-sub {
  display: block;
  margin-top: 2px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
}

.compare-yes,
.tick {
  color: #22814e;
  font-weight: 700;
}

.compare-no,
.dash {
  color: var(--muted);
}

.compare-foot {
  margin: 16px 0 0;
  max-width: 58rem;
  color: var(--muted);
  font-size: 14px;
}

/* FAQ / accordion */
.faq-list,
.faq-group {
  display: grid;
  gap: 10px;
}

.faq-group {
  margin-bottom: 36px;
}

.faq-group h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 4vw, 40px);
}

.faq-list details,
.accordion-item,
[data-accordion] {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}

.faq-list summary,
.accordion-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list details[open] summary,
[data-accordion].is-open .accordion-question {
  border-bottom: 1px solid var(--line);
}

.faq-list details p,
.accordion-answer,
[data-accordion] .accordion-panel {
  margin: 0;
  padding: 16px 20px 20px;
  color: var(--muted);
}

.accordion-toggle {
  border: 0;
  background: none;
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
}

/* Prose / legal */
.prose {
  max-width: 46rem;
}

.prose > * + * {
  margin-top: 1rem;
}

.prose h2 {
  margin-top: 2.4rem;
  margin-bottom: 0.6rem;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
}

.prose .callout {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--mint);
  color: var(--ink);
}

.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 24px 0 8px !important;
  padding: 0 !important;
  list-style: none !important;
}

.legal-toc a {
  font-size: 14px;
}

/* Support */
.support-contact {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
}

.support-contact h2 {
  margin-bottom: 10px;
  font-size: 32px;
}

.support-contact p {
  color: var(--muted);
}

/* Changelog */
.changelog-list,
.change-list {
  display: grid;
  gap: 16px;
}

.change-card,
.changelog-item {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}

.change-card h2,
.changelog-item h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.change-meta,
.changelog-date {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Final CTA band */
.final {
  background: var(--ink);
  color: #fff;
}

.final h2 {
  margin: 0 0 12px;
  max-width: 12ch;
  color: #fff;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.02;
}

.final p {
  color: rgba(255, 255, 255, 0.78);
}

.final-availability,
.final-terms {
  margin-top: 16px;
  font-size: 14px;
}

.final-terms a {
  color: #fff;
  text-decoration: underline;
}

/* Footer */
.footer {
  padding: 48px 0 36px;
  border-top: 1px solid var(--line);
}

.footer .footer-top {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.footer-brand p,
.footer-top > p {
  margin: 12px 0 0;
  color: var(--muted);
  max-width: 18ch;
}

.footer-links,
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
}

.footer-links a,
.footer nav a {
  font-weight: 600;
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-bottom a {
  margin-right: 14px;
  text-decoration: none;
}

/* Consent */
.consent-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 40px rgba(16, 62, 52, 0.14);
  backdrop-filter: blur(10px);
}

.consent-banner[hidden] {
  display: none !important;
}

.consent-banner p {
  margin: 0;
  max-width: 46ch;
  font-size: 14px;
}

.consent-banner a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.consent-actions .btn {
  min-height: 42px;
  padding: 10px 16px;
  font-size: 14px;
}

/* Compare / marketing extras often used on /vs */
.vs-grid,
.team-grid,
.card-grid {
  display: grid;
  gap: 16px;
}

.card,
.vs-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}

@media (max-width: 900px) {
  .price-grid,
  .support-contact {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle,
  .menu-toggle {
    display: flex;
  }

  .nav-actions .btn {
    display: none;
  }

  .footer .footer-top {
    flex-direction: column;
  }
}

@media (max-width: 580px) {
  .subhead h1 {
    max-width: none;
  }

  .price-card,
  .support-contact,
  .compare-scroll {
    border-radius: 20px;
  }

  .consent-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
}

/* Changelog */
.log-section { padding-top: 0; }
.log-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.log-entry {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}
.log-date {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.log-body h2 { margin: 0 0 8px; font-size: 24px; }
.log-body p { margin: 0; color: var(--muted); }

/* Compare verdict cards */
.vs-checked { margin-top: 16px; color: var(--muted); font-size: 14px; }
.verdict-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.verdict-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
}
.verdict-card-ours { background: var(--ink); color: #fff; border-color: var(--ink); }
.verdict-card-ours p, .verdict-card-ours h2, .verdict-card-ours h3 { color: #fff; }
.verdict-card h2, .verdict-card h3 { margin: 0 0 10px; font-size: 28px; }
.verdict-card p { color: var(--muted); }

/* Marketing feature rail */
.intent-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.intent-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--tint, #fff);
}
.intent-card h3 { margin: 12px 0 8px; font-size: 22px; }
.intent-card p { margin: 0; color: var(--muted); }
.intent-icon { display: inline-flex; color: var(--ink); }

.reveal { opacity: 1; transform: none; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

@media (max-width: 800px) {
  .log-entry, .verdict-grid, .intent-rail { grid-template-columns: 1fr; }
}
