/* Help Center (/help, /es/ayuda) and Trust Center (/trust, /es/confianza).
   Builds on site.css: same tokens, type and motion rules. Loaded only by these four pages, so the home page is untouched.
   Cards stay solid white with soft depth (DESIGN_SYSTEM §15); the only motion is the hero art's slow float (only while
   on screen, still with Reduce Motion) and a small lift on hover. */

.hc { padding: 120px 0 104px; }
.hc .wrap { max-width: 1040px; }

/* ---------- Hero ---------- */
.hc-hero { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 40px; align-items: center; margin-bottom: 56px; }
.hc-hero h1 { font-size: clamp(2.75rem, 6.4vw, 4.5rem); line-height: 1; margin-bottom: 18px; }
.hc-hero .lede { margin-bottom: 0; }
.hc-hero .art { width: 100%; max-width: 300px; justify-self: end; animation: float 10s ease-in-out infinite; animation-play-state: paused; }
.hc-hero.anim.on .art { animation-play-state: running; }
.hc-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 6px 14px 6px 10px; border-radius: 999px;
  background: var(--mint); color: var(--green); font: 600 0.875rem/1.2 var(--body); }
.hc-eyebrow .glyph { width: 18px; height: 18px; }

/* ---------- Search ---------- */
.hc-search { position: relative; margin-top: 28px; max-width: 560px; }
.hc-search input {
  width: 100%; min-height: 56px; padding: 0 20px 0 52px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font: 400 1.0625rem/1.2 var(--body);
  box-shadow: 0 12px 32px -20px rgba(20, 35, 27, 0.35); -webkit-appearance: none; appearance: none;
}
.hc-search input::placeholder { color: #66736B; }
.hc-search input:focus { outline: 3px solid var(--green-bright); outline-offset: 2px; border-color: transparent; }
.hc-search svg { position: absolute; left: 20px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--ink-2); pointer-events: none; }
.hc-search-status { margin-top: 12px; min-height: 1.5em; font-size: 0.9375rem; color: var(--ink-2); }

/* ---------- Topic cards ---------- */
.hc-topics { list-style: none; margin: 0 0 72px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hc-topics a {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; height: 100%;
  padding: 20px; border-radius: 22px; background: var(--card); color: var(--ink); text-decoration: none;
  box-shadow: 0 1px 0 rgba(20, 35, 27, 0.04), 0 14px 30px -24px rgba(20, 35, 27, 0.45);
  transition: transform 250ms var(--ease), box-shadow 250ms var(--ease);
}
.hc-topics a:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(20, 35, 27, 0.04), 0 20px 36px -24px rgba(20, 35, 27, 0.5); }
.hc-topics .tile { grid-row: span 2; }
.hc-topics strong { font-weight: 600; font-size: 1.0625rem; line-height: 1.25; }
.hc-topics span.sub { font-size: 0.9375rem; line-height: 1.35; color: var(--ink-2); }

/* An icon on a mint tile: a D139 glyph (.glyph) or a small inline line icon (svg) */
.tile { width: 44px; height: 44px; border-radius: 50%; background: var(--green-vivid); color: #fff; display: grid; place-items: center; flex: none; }
.tile .glyph { width: 22px; height: 22px; }
.tile svg { width: 22px; height: 22px; }
.tile.blue { background: var(--scheduled); color: #fff; }
.tile.amber { background: #E8A33A; color: var(--ink); } /* solid mode colors, matching the home page's step icons */

/* ---------- Question sections ---------- */
.hc-section { margin-top: 64px; scroll-margin-top: 104px; }
.hc-section > header { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.hc-section h2 { font-size: clamp(1.75rem, 3.2vw, 2.375rem); line-height: 1.1; }
.hc-section > p.intro { color: var(--ink-2); margin: -4px 0 20px; max-width: 40em; }
.qa-list { border-radius: 24px; background: var(--card); box-shadow: 0 1px 0 rgba(20, 35, 27, 0.04), 0 18px 40px -30px rgba(20, 35, 27, 0.45); overflow: hidden; }
.qa { border-top: 1px solid var(--line); }
.qa:first-child { border-top: 0; }
.qa summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 20px 24px; font-weight: 600; line-height: 1.4;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font: 400 1.5rem/1 var(--body); color: var(--green); transition: transform 250ms var(--ease); margin-top: -1px; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa summary:hover { background: #FBFCFB; }
.qa summary:focus-visible { outline-offset: -3px; border-radius: 0; }
.qa .a { padding: 0 24px 22px; color: var(--ink-2); max-width: 44em; }
.qa .a p + p, .qa .a p + ul, .qa .a ul + p, .qa .a p + ol, .qa .a ol + p { margin-top: 10px; }
.qa .a ul, .qa .a ol { margin: 0; padding-left: 1.25em; }
.qa .a li { margin: 4px 0; }
.qa .a strong { color: var(--ink); font-weight: 600; }
.qa mark { background: #D8F3E4; color: inherit; border-radius: 3px; padding: 0 1px; }
.soon-tag { display: inline-block; vertical-align: 2px; margin-left: 6px; padding: 2px 9px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); font: 600 0.75rem/1.4 var(--body); }
.hc-empty { margin: 32px 0 0; padding: 28px; border-radius: 24px; background: var(--card); text-align: center; color: var(--ink-2); }
.hc-empty a { font-weight: 600; }

/* ---------- Contact card ---------- */
.hc-contact { margin-top: 80px; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center;
  padding: 36px; border-radius: 32px; background: var(--mint); }
.hc-contact img { width: 180px; height: auto; animation: float 10s ease-in-out infinite; animation-play-state: paused; animation-delay: -4s; }
.hc-contact.anim.on img { animation-play-state: running; }
.hc-contact h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.1; margin-bottom: 10px; }
.hc-contact p { color: var(--ink-2); max-width: 36em; }
.hc-contact .btn { margin-top: 18px; }
.hc-contact ul { margin: 12px 0 0; padding-left: 1.2em; color: var(--ink-2); font-size: 1rem; }
.hc-contact .fine { margin-top: 14px; }
.hc-cross { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hc-cross a { display: flex; gap: 14px; align-items: center; padding: 20px; border-radius: 22px; background: var(--card); color: var(--ink);
  text-decoration: none; box-shadow: 0 14px 30px -24px rgba(20, 35, 27, 0.45); transition: transform 250ms var(--ease); }
.hc-cross a:hover { transform: translateY(-2px); }
.hc-cross strong { display: block; font-weight: 600; }
.hc-cross span.sub { font-size: 0.9375rem; color: var(--ink-2); }

/* ---------- Trust Center ---------- */
.tc-facts { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tc-facts li { padding: 22px; border-radius: 22px; background: var(--card); display: grid; gap: 12px; align-content: start;
  box-shadow: 0 1px 0 rgba(20, 35, 27, 0.04), 0 14px 30px -24px rgba(20, 35, 27, 0.45); }
.tc-facts strong { font-weight: 600; font-size: 1.0625rem; line-height: 1.3; }
.tc-facts p { font-size: 0.9375rem; line-height: 1.45; color: var(--ink-2); }
.tc-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.tc-jump a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; font-size: 0.9375rem; }
.tc-jump a:hover { background: #fff; }

.tc-block { margin-top: 64px; scroll-margin-top: 104px; }
.tc-block > header { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.tc-block h2 { font-size: clamp(1.75rem, 3.2vw, 2.375rem); line-height: 1.1; }
.tc-card { padding: 28px; border-radius: 24px; background: var(--card); box-shadow: 0 1px 0 rgba(20, 35, 27, 0.04), 0 18px 40px -30px rgba(20, 35, 27, 0.45); }
.tc-card > * + * { margin-top: 14px; }
.tc-card p, .tc-card li { color: var(--ink-2); }
.tc-card strong { color: var(--ink); font-weight: 600; }
.tc-card ul { margin-bottom: 0; padding-left: 1.25em; }
.tc-card li { margin: 6px 0; }
.tc-card .fine { margin-top: 18px; }

.tc-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tc-list { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: 12px; }
.tc-list li { display: flex; gap: 12px; align-items: flex-start; margin: 0 !important; color: var(--ink); }
.tc-list svg { width: 20px; height: 20px; flex: none; margin-top: 3px; }
.tc-yes svg { color: var(--green); }
.tc-no svg { color: #B4473A; }
.tc-two h3 { font-size: 1.0625rem; margin-bottom: 14px; }

.tc-steps { list-style: none; counter-reset: s; padding: 0 !important; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tc-steps li { counter-increment: s; margin: 0 !important; padding: 22px; border-radius: 20px; background: var(--paper); }
.tc-steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 12px; border-radius: 50%;
  background: var(--green-bright); color: var(--on-bright); font: 600 0.9375rem/1 var(--body); }
.tc-steps strong { display: block; margin-bottom: 4px; }

.tc-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.tc-table table { border-collapse: collapse; width: 100%; min-width: 30rem; font-size: 1rem; line-height: 1.45; }
.tc-table th, .tc-table td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.tc-table th { font-weight: 600; background: var(--paper-2); color: var(--ink); }
.tc-table td:first-child { color: var(--ink); font-weight: 600; }
.tc-table.plain td:first-child { font-weight: 400; }
.tc-table tr:last-child td { border-bottom: 0; }

.tc-updated { margin-top: 56px; color: var(--ink-2); font-size: 0.9375rem; }

.tile img { width: 30px; height: auto; }
.tc-card .tc-big { font: var(--weight-display) clamp(3rem, 6vw, 4.5rem)/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -0.035em; color: var(--green); }
.tc-card p > .btn { margin-top: 4px; }
.tc-updated p + p { margin-top: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hc-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tc-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tc-steps { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hc { padding: 104px 0 80px; }
  .hc-hero { grid-template-columns: 1fr; gap: 8px; margin-bottom: 40px; }
  .hc-hero .art { order: -1; justify-self: start; max-width: 160px; }
  .hc-topics, .tc-facts, .tc-two, .hc-cross { grid-template-columns: 1fr; }
  .hc-topics a { padding: 16px; }
  .hc-contact { grid-template-columns: 1fr; padding: 28px 24px; }
  .hc-contact img { width: 130px; }
  .qa summary { padding: 18px 20px; }
  .qa .a { padding: 0 20px 20px; }
  .tc-card { padding: 22px 20px; }
}
/* On a phone each table row becomes a short block (as on the legal pages), and fact cards put the icon beside the words. */
@media (max-width: 640px) {
  .tc-table table { min-width: 0; }
  .tc-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tc-table tr { display: block; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .tc-table tr:last-child { border-bottom: 0; }
  .tc-table td { display: block; padding: 2px 0; border: 0; }
  .tc-facts li { grid-template-columns: auto 1fr; gap: 4px 14px; padding: 18px; }
  .tc-facts li .tile { grid-row: span 2; }
}
@media (prefers-reduced-motion: reduce) { .hc-topics a:hover, .hc-cross a:hover { transform: none; } }
