/*
 * EaseAway trust and marketing pages (about, help, support, contact,
 * AI disclosure, affiliate disclosure, privacy, terms, and the home page
 * below its hero).
 *
 * Token source: css/living-horizon-production.css (--lh-*). That file is the
 * design system the production pages actually load. The --color-* names in
 * .claude/rules/design-system.md are not defined in any shipped stylesheet,
 * so this file uses only --lh-* tokens and never a literal hex color.
 *
 * Motion is CSS-only and runs only under prefers-reduced-motion: no-preference.
 */

/* ---------- Trust navigation: one row of every trust page ---------- */
.lh-trust-nav {
  width: min(calc(100% - 36px), 960px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ---------- Licensed photo credit on the hero ---------- */
.lh-trust-hero__image-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Section pieces used inside .ea-editorial-prose ---------- */
.tp-lede {
  margin: 0 0 var(--lh-space-6);
  color: var(--lh-forest);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.6;
}

.tp-toc {
  display: flex;
  flex-wrap: wrap;
  gap: var(--lh-space-2);
  margin: 0 0 var(--lh-space-7);
  padding: 0;
  list-style: none;
}
.tp-toc a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: var(--lh-space-2) var(--lh-space-5);
  border: 1px solid var(--lh-line);
  border-radius: var(--lh-radius-pill);
  background: var(--lh-surface);
  color: var(--lh-forest) !important;
  font-size: .82rem;
  font-weight: 700 !important;
  text-decoration: none !important;
}
.tp-toc a:hover, .tp-toc a:focus-visible { border-color: var(--lh-forest-soft); }

.tp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--lh-space-5);
  margin: var(--lh-space-6) 0 0;
  padding: 0;
  list-style: none;
}
.tp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--lh-space-2);
  padding: var(--lh-space-7);
  border: 1px solid var(--lh-line);
  border-radius: var(--lh-radius-card);
  background: var(--lh-surface);
  box-shadow: var(--lh-shadow-soft);
}
.tp-card h3 {
  margin: 0;
  color: var(--lh-forest);
  font-family: var(--lh-display);
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.tp-card p { margin: 0; color: var(--lh-forest-soft); font-size: .95rem; line-height: 1.6; }
.tp-card a.tp-card__link {
  margin-top: auto;
  padding-top: var(--lh-space-2);
  color: var(--lh-coral-deep);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* Whole-card click target without nesting interactive elements. */
.tp-card a.tp-card__link::after { position: absolute; inset: 0; content: ''; border-radius: inherit; }
.tp-card:focus-within { outline: 3px solid var(--lh-butter); outline-offset: 2px; }
.tp-card a.tp-card__link:focus-visible { outline: none; }

.tp-kicker {
  color: var(--lh-coral-deep);
  font: 850 .68rem/1.4 var(--lh-body);
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* Callout for limits and "check before you go" notes. */
.tp-note {
  margin: var(--lh-space-6) 0 0;
  padding: var(--lh-space-6) var(--lh-space-7);
  border-left: 4px solid var(--lh-butter);
  border-radius: var(--lh-radius-sm);
  background: var(--lh-paper);
  color: var(--lh-forest);
  font-size: .95rem;
  line-height: 1.65;
}
.tp-note strong { color: var(--lh-forest); }

/* Labels the planner shows, rendered as the user will see them. */
.tp-labels { display: grid; gap: var(--lh-space-5); margin: var(--lh-space-6) 0 0; }
.tp-labels > div {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: var(--lh-space-5);
  align-items: start;
  padding: var(--lh-space-5) 0;
  border-top: 1px solid var(--lh-line);
}
.tp-labels dt { margin: 0; }
.tp-labels dd { margin: 0; color: var(--lh-forest-soft); font-size: .95rem; line-height: 1.65; }
.tp-chip {
  display: inline-block;
  padding: var(--lh-space-1) var(--lh-space-4);
  border: 1px solid var(--lh-line);
  border-radius: var(--lh-radius-pill);
  background: var(--lh-paper);
  color: var(--lh-forest);
  font-size: .8rem;
  font-weight: 750;
  line-height: 1.5;
}
.tp-chip--warn { border-color: var(--lh-apricot); background: var(--lh-apricot-soft); }
.tp-chip--ok { border-color: var(--lh-line); background: var(--lh-success-surface); color: var(--lh-success-text); }

/* Real product screenshots in a plain device frame. */
.tp-shot { margin: var(--lh-space-7) 0 0; }
.tp-shot__frame {
  overflow: hidden;
  border: 1px solid var(--lh-line);
  border-radius: var(--lh-radius-card);
  background: var(--lh-surface);
  box-shadow: var(--lh-shadow);
}
.tp-shot__bar {
  display: flex;
  gap: 6px;
  padding: var(--lh-space-3) var(--lh-space-5);
  border-bottom: 1px solid var(--lh-line);
  background: var(--lh-paper);
}
.tp-shot__bar span { width: 9px; height: 9px; border-radius: var(--lh-radius-pill); background: var(--lh-line); }
.tp-shot img { width: 100%; height: auto; display: block; }
.tp-shot figcaption,
.tp-credits {
  margin-top: var(--lh-space-4);
  color: var(--lh-forest-soft);
  font-size: .78rem;
  line-height: 1.55;
}
.tp-credits a { color: inherit !important; font-weight: 600 !important; }

/* Simple two-column table for "at a glance" summaries. */
.tp-table-wrap { overflow-x: auto; margin: var(--lh-space-6) 0 0; border: 1px solid var(--lh-line); border-radius: var(--lh-radius-sm); }
.tp-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tp-table caption { padding: var(--lh-space-4) var(--lh-space-5); color: var(--lh-forest-soft); font-size: .8rem; text-align: left; }
.tp-table th, .tp-table td { padding: var(--lh-space-4) var(--lh-space-5); border-top: 1px solid var(--lh-line); color: var(--lh-forest-soft); text-align: left; vertical-align: top; line-height: 1.5; }
.tp-table thead th { border-top: 0; background: var(--lh-paper); color: var(--lh-forest); font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.tp-table tbody th { color: var(--lh-forest); font-weight: 750; }

/* Steps list (numbered with a soft counter). */
.tp-steps { counter-reset: tp-step; display: grid; gap: var(--lh-space-5); margin: var(--lh-space-6) 0 0; padding: 0; list-style: none; }
.tp-steps li {
  counter-increment: tp-step;
  position: relative;
  padding-left: 48px;
  color: var(--lh-forest-soft);
  line-height: 1.65;
}
.tp-steps li::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--lh-radius-pill);
  background: var(--lh-forest);
  color: var(--lh-cream);
  content: counter(tp-step);
  font-size: .85rem;
  font-weight: 800;
}
.tp-steps strong { display: block; color: var(--lh-forest); }

/* ---------- Home page (below the hero) ---------- */
.tp-home-section {
  width: min(calc(100% - 36px), 1180px);
  margin: clamp(48px, 8vw, 104px) auto 0;
}
.tp-home-section > header { max-width: 62ch; margin: 0 0 var(--lh-space-7); }
.tp-home-section h2 {
  margin: var(--lh-space-3) 0 var(--lh-space-5);
  color: var(--lh-forest);
  font-family: var(--lh-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.02;
  text-wrap: balance;
}
.tp-home-section > header p { margin: 0; color: var(--lh-forest-soft); font-size: 1.05rem; line-height: 1.65; }
.tp-home-product {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.tp-home-product .tp-shot { margin: 0; }
.tp-home-points { display: grid; gap: var(--lh-space-6); margin: 0; padding: 0; list-style: none; }
.tp-home-points li { padding-top: var(--lh-space-5); border-top: 1px solid var(--lh-line); }
.tp-home-points h3 { margin: 0 0 var(--lh-space-2); color: var(--lh-forest); font-family: var(--lh-display); font-size: 1.25rem; font-weight: 750; letter-spacing: -.02em; }
.tp-home-points p { margin: 0; color: var(--lh-forest-soft); line-height: 1.65; }
.tp-home-points a { color: var(--lh-coral-deep); font-weight: 750; text-underline-offset: 3px; }
.tp-wayfinder-credits { margin: var(--lh-space-4) 0 0; color: var(--lh-forest-soft); font-size: .74rem; line-height: 1.5; text-align: center; }

/* ---------- Shared footer ---------- */
.tp-footer {
  width: min(calc(100% - 36px), 1180px);
  margin: clamp(56px, 8vw, 96px) auto 0;
  padding: var(--lh-space-9) 0 calc(var(--lh-space-9) + 56px);
  border-top: 1px solid var(--lh-line);
  color: var(--lh-forest-soft);
}
.tp-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: var(--lh-space-8);
}
.tp-footer__brand strong { display: block; color: var(--lh-forest); font-family: var(--lh-display); font-size: 1.4rem; font-weight: 800; letter-spacing: -.03em; }
.tp-footer__brand p { max-width: 34ch; margin: var(--lh-space-3) 0 0; font-size: .9rem; line-height: 1.6; }
.tp-footer h2 {
  margin: 0 0 var(--lh-space-4);
  color: var(--lh-forest);
  font: 800 .7rem/1.4 var(--lh-body);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.tp-footer ul { display: grid; gap: var(--lh-space-1); margin: 0; padding: 0; list-style: none; }
.tp-footer ul a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  color: var(--lh-forest-soft);
  font-size: .9rem;
  text-decoration: none;
}
.tp-footer ul a:hover, .tp-footer ul a:focus-visible { color: var(--lh-forest); text-decoration: underline; text-underline-offset: 3px; }
.tp-footer ul a[aria-current='page'] { color: var(--lh-forest); font-weight: 750; }
.tp-footer__fine {
  margin: var(--lh-space-8) 0 0;
  padding-top: var(--lh-space-6);
  border-top: 1px solid var(--lh-line);
  font-size: .8rem;
  line-height: 1.6;
}
.tp-footer__fine a { color: inherit; font-weight: 650; }

/* ---------- Motion (CSS only) ---------- */
@keyframes tp-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .tp-card, .tp-shot__frame, .tp-home-points li { animation: tp-rise .7s cubic-bezier(.2, .8, .2, 1) both; }
  .tp-grid > li:nth-child(2) .tp-card, .tp-grid > .tp-card:nth-child(2), .tp-home-points li:nth-child(2) { animation-delay: .08s; }
  .tp-grid > li:nth-child(3) .tp-card, .tp-grid > .tp-card:nth-child(3), .tp-home-points li:nth-child(3) { animation-delay: .16s; }
  .tp-grid > li:nth-child(4) .tp-card, .tp-grid > .tp-card:nth-child(4) { animation-delay: .24s; }
  .tp-card { transition: transform .2s ease, box-shadow .2s ease; }
  .tp-card:hover { transform: translateY(-3px); box-shadow: var(--lh-shadow); }
}
@media (prefers-reduced-motion: reduce) {
  .lh-trust-hero__visual img { animation: none !important; transform: none !important; }
  .tp-card, .tp-shot__frame, .tp-home-points li { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .tp-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tp-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .lh-trust-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-home-product { grid-template-columns: 1fr; }
  .tp-labels > div { grid-template-columns: 1fr; gap: var(--lh-space-2); }
  .tp-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .tp-table { table-layout: fixed; font-size: .82rem; }
  .tp-table th, .tp-table td { padding: var(--lh-space-3); overflow-wrap: anywhere; hyphens: auto; }
}
@media (max-width: 480px) {
  .tp-card { padding: var(--lh-space-6); }
  .tp-footer__grid { grid-template-columns: 1fr 1fr; gap: var(--lh-space-7); }
  .lh-trust-nav, .tp-home-section, .tp-footer { width: min(calc(100% - 20px), 1180px); }
}
