/* ===========================================================================
   Home Kruncher: shared styles for standalone content pages
   (about, faq, privacy, terms, contact)
   Loaded after /blog/blog.css, which provides the colour + radius tokens.
   =========================================================================== */

:root {
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--gray-50);
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-700);
  -webkit-font-smoothing: antialiased;
}

/* ───────────────────────── header (navy band + bubbles) ──────────────────── */

header { background: var(--blue-900); padding: 0; }

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  position: relative;
}

.logo-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-area img {
  height: 80px;
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, .25));
}

.header-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Keep these numbers in sync with the .pill rule inside index.html and
   how-it-works.html, so the bubbles never change size between pages. */
.pill {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .85);
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Sora', sans-serif;
  transition: background .18s, border-color .18s, color .18s, transform .15s, box-shadow .18s;
}

.pill:hover {
  background: rgba(255, 255, 255, .28);
  border-color: rgba(255, 255, 255, .5);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}

.pill:active { transform: translateY(0); box-shadow: none; }

.pill.amber  { background: rgba(245, 158, 11, .18); border-color: rgba(245, 158, 11, .35); color: #fbbf24; }
.pill.green  { background: rgba(34, 197, 94, .15);  border-color: rgba(34, 197, 94, .30);  color: var(--green-400); }
.pill.purple { background: rgba(124, 58, 237, .20); border-color: rgba(124, 58, 237, .35); color: #c4b5fd; }
.pill.blue   { background: rgba(96, 165, 250, .20); border-color: rgba(96, 165, 250, .40); color: #bfdbfe; }

.pill.amber:hover  { background: rgba(245, 158, 11, .34); border-color: rgba(245, 158, 11, .60); color: #fcd34d; }
.pill.green:hover  { background: rgba(34, 197, 94, .35);  border-color: rgba(34, 197, 94, .60);  color: #86efac; }
.pill.purple:hover { background: rgba(124, 58, 237, .38); border-color: rgba(124, 58, 237, .62); color: #ddd6fe; }
.pill.blue:hover   { background: rgba(96, 165, 250, .38); border-color: rgba(96, 165, 250, .65); color: #dbeafe; }

.lang-pill {
  position: absolute;
  right: 24px;
  top: 16px;
  z-index: 3;
  background: #dc2626;
  color: #facc15;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
  padding: 5px 14px;
  border-radius: 100px;
  text-decoration: none;
  border: 1px solid #b91c1c;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
  transition: opacity .2s;
}

.lang-pill:hover { opacity: .85; }

/* ──────────────────────────── page shell + hero ──────────────────────────── */

.page-wrap { max-width: 880px; margin: 0 auto; padding: 0 24px 64px; }

.crumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--gray-500);
  padding: 18px 0 0;
}

.crumbs a { color: var(--blue-600); text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { color: var(--gray-300); }
.crumbs .here { color: var(--gray-500); font-weight: 500; }

.page-hero {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--hk-navy) 62%, #22507f 100%);
  border-radius: var(--radius-xl);
  padding: 40px 42px 42px;
  margin: 18px 0 26px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 34px rgba(12, 26, 58, .22);
}

/* soft glow in the corner of the hero */
.page-hero::after {
  content: '';
  position: absolute;
  top: -70px;
  right: -60px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(92, 184, 92, .26) 0%, rgba(92, 184, 92, 0) 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #cfe6ff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .10em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.page-hero h1 {
  font-family: 'Sora', sans-serif;
  font-size: 36px;
  line-height: 1.18;
  font-weight: 700;
  color: #fff;
  margin: 0 0 14px;
  letter-spacing: -.02em;
  position: relative;
}

.hero-lead {
  font-size: 16px;
  line-height: 1.68;
  color: rgba(255, 255, 255, .80);
  margin: 0;
  max-width: 62ch;
  position: relative;
}

.hero-meta {
  margin: 18px 0 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .62);
  position: relative;
}

/* stat chips inside the hero */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
  position: relative;
}

.hero-stat {
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  min-width: 112px;
}

.hero-stat b {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 19px;
  font-weight: 500;
  color: var(--green-400);
  line-height: 1.2;
}

.hero-stat span {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, .66);
  margin-top: 3px;
  line-height: 1.35;
}

/* ───────────────────────────────── cards ─────────────────────────────────── */

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 30px 34px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.card > *:first-child { margin-top: 0; }
.card > *:last-child  { margin-bottom: 0; }

.card h2 {
  font-family: 'Sora', sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -.01em;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card h2 .ti {
  color: var(--hk-blue);
  font-size: 20px;
  flex: none;
}

.card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 24px 0 8px;
}

.card p {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--gray-700);
  margin: 0 0 14px;
}

.card p:last-child { margin-bottom: 0; }
.card a { color: var(--blue-500); font-weight: 600; }

/* "who built this" credibility card */
.card.builder { border-left: 4px solid var(--hk-green); }

.builder-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.builder-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  padding: 5px 13px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gray-700);
}

.builder-meta span .ti { font-size: 14px; color: var(--hk-green-mid); }

/* numbered legal sections */
.card.numbered { counter-reset: sec; }

.legal-sec { padding: 20px 0 0; border-top: 1px solid var(--gray-100); margin-top: 20px; }
.legal-sec:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }

.legal-sec h2 {
  counter-increment: sec;
  font-size: 17px;
  margin-bottom: 10px;
  align-items: flex-start;
}

.legal-sec h2::before {
  content: counter(sec);
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--blue-50);
  color: var(--blue-600);
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* ─────────────────────────────── callouts ────────────────────────────────── */

.callout {
  display: flex;
  gap: 14px;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 0 0 20px;
  border: 1px solid;
  font-size: 14px;
  line-height: 1.7;
}

.callout .ti { font-size: 20px; flex: none; margin-top: 1px; }
.callout .co-body { flex: 1; }
.callout strong { display: block; font-size: 14px; margin-bottom: 4px; color: var(--gray-900); }
.callout p { margin: 0; font-size: 14px; line-height: 1.7; }

.callout.green { background: var(--green-50); border-color: #bbf7d0; }
.callout.green .ti, .callout.green strong { color: var(--hk-green-mid); }

.callout.blue { background: var(--blue-50); border-color: var(--blue-100); }
.callout.blue .ti { color: var(--blue-500); }

.callout.amber { background: #fffbeb; border-color: #fde68a; }
.callout.amber .ti { color: #b45309; }
.callout.amber strong { color: #92400e; }

/* ──────────────────────────── feature grid ──────────────────────────────── */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(226px, 1fr));
  gap: 14px;
  margin: 0 0 20px;
}

.feature {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 22px 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}

.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-300);
}

.feature .fico {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
  background: var(--blue-50);
  color: var(--blue-600);
}

.feature .fico.green { background: var(--green-50);  color: var(--green-600); }
.feature .fico.amber { background: var(--amber-100); color: #b45309; }
.feature .fico.navy  { background: var(--hk-navy-light); color: var(--hk-navy); }

.feature h3 {
  font-family: 'Sora', sans-serif;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 7px;
}

.feature p {
  font-size: 13.5px;
  line-height: 1.68;
  color: var(--gray-600);
  margin: 0;
}

/* ──────────────────────────── check lists ───────────────────────────────── */

.ticks { list-style: none; padding: 0; margin: 0; }

.ticks li {
  position: relative;
  padding: 0 0 0 30px;
  margin-bottom: 11px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--gray-700);
}

.ticks li:last-child { margin-bottom: 0; }

.ticks li::before {
  content: '\ea5e';                 /* tabler check */
  font-family: 'tabler-icons';
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--green-600);
  font-size: 15px;
}

.ticks.crosses li::before { content: '\eb55'; color: var(--red-500); }

.ticks li strong { color: var(--gray-900); }

/* ─────────────────────────────── FAQ (details) ──────────────────────────── */

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

.faq-group > h2 {
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin: 0 0 12px;
  padding-left: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-group > h2 .ti { color: var(--hk-blue); font-size: 16px; }

details.qa {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-bottom: 9px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color .18s, box-shadow .18s;
}

details.qa[open] { border-color: var(--blue-300); box-shadow: var(--shadow-md); }
details.qa:hover { border-color: var(--blue-300); }

details.qa > summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 48px 16px 20px;
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.5;
  position: relative;
  user-select: none;
}

details.qa > summary::-webkit-details-marker { display: none; }

details.qa > summary::after {
  content: '\ea5f';                 /* tabler chevron-down */
  font-family: 'tabler-icons';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 17px;
  color: var(--gray-400);
  transition: transform .2s;
}

details.qa[open] > summary::after { transform: translateY(-50%) rotate(180deg); color: var(--blue-500); }
details.qa > summary:focus-visible { outline: 2px solid var(--blue-400); outline-offset: -2px; }

.qa-body { padding: 0 20px 18px; }

.qa-body p {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--gray-700);
  margin: 0 0 12px;
}

.qa-body p:last-child { margin-bottom: 0; }
.qa-body a { color: var(--blue-500); font-weight: 600; }
.qa-body ul { margin: 0 0 12px; padding-left: 20px; }
.qa-body li { font-size: 14.5px; line-height: 1.7; margin-bottom: 6px; }

/* ─────────────────────── data table (privacy page) ──────────────────────── */

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 4px 0 0;
  font-size: 14px;
}

.data-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--gray-500);
  padding: 0 12px 9px 0;
  border-bottom: 1.5px solid var(--gray-200);
}

.data-table td {
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid var(--gray-100);
  line-height: 1.6;
  color: var(--gray-700);
  vertical-align: top;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table td:first-child { font-weight: 600; color: var(--gray-900); width: 38%; }

.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 100px;
  letter-spacing: .02em;
  white-space: nowrap;
}

.tag.no  { background: var(--green-100); color: #15803d; }
.tag.yes { background: var(--amber-100); color: #b45309; }

/* ────────────────────────────── contact form ────────────────────────────── */

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 15px;
}

.field { margin-bottom: 15px; }

.field label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 6px;
}

.field .req { color: var(--red-500); margin-left: 2px; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: 'Sora', sans-serif;
  font-size: 16px;            /* 16px stops iOS zooming on focus */
  color: var(--gray-900);
  background: var(--white);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}

.field textarea { resize: vertical; min-height: 128px; line-height: 1.6; }
.field select { cursor: pointer; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--hk-blue);
  box-shadow: 0 0 0 3px rgba(58, 143, 212, .15);
}

.field input::placeholder,
.field textarea::placeholder { color: var(--gray-400); }

.turnstile-wrap { display: flex; justify-content: center; margin-bottom: 18px; }

.form-error {
  display: none;
  background: var(--red-100);
  border: 1px solid #fca5a5;
  border-radius: var(--radius-md);
  padding: 11px 15px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #b91c1c;
  margin-bottom: 15px;
}

.submit-btn {
  width: 100%;
  padding: 15px;
  background: var(--hk-navy);
  border: none;
  border-radius: 12px;
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .18s, transform .16s;
}

.submit-btn:hover:not(:disabled) { background: var(--blue-500); transform: translateY(-1px); }
.submit-btn:disabled { opacity: .72; cursor: default; }

.form-note {
  font-size: 12.5px;
  color: var(--gray-500);
  line-height: 1.65;
  text-align: center;
  margin: 14px 0 0;
}

.sent-state { display: none; text-align: center; padding: 26px 0 10px; }

.sent-state .sent-icon {
  width: 74px;
  height: 74px;
  background: var(--green-100);
  color: var(--green-600);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 36px;
}

.sent-state h2 {
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 9px;
  display: block;
}

.sent-state p { font-size: 14.5px; color: var(--gray-600); line-height: 1.7; margin: 0 0 20px; }

@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; display: inline-block; }

/* ─────────────────────────────── CTA band ───────────────────────────────── */

.cta-band {
  background: linear-gradient(135deg, var(--hk-navy) 0%, var(--blue-800) 100%);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  box-shadow: 0 8px 26px rgba(12, 26, 58, .20);
}

.cta-band h2 {
  font-family: 'Sora', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 5px;
}

.cta-band p {
  font-size: 14px;
  color: rgba(255, 255, 255, .76);
  margin: 0;
  line-height: 1.6;
}

.cta-btn {
  flex: none;
  background: var(--hk-green);
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 100px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(92, 184, 92, .34);
  transition: transform .16s, box-shadow .16s, background .16s;
}

.cta-btn:hover {
  background: var(--hk-green-mid);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(92, 184, 92, .42);
}

/* ──────────────────── "more from Home Kruncher" link row ────────────────── */

.more-nav { margin: 30px 0 0; }

.more-nav h2 {
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin: 0 0 13px;
  padding-left: 2px;
}

.more-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 11px;
}

.more-link {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 15px 17px;
  text-decoration: none;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}

.more-link:hover {
  border-color: var(--blue-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.more-link .ti {
  font-size: 19px;
  color: var(--hk-blue);
  flex: none;
  margin-top: 1px;
}

.more-link b {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 3px;
}

.more-link span {
  display: block;
  font-size: 12.5px;
  color: var(--gray-500);
  line-height: 1.55;
}

/* ──────────────────────────────── footer ────────────────────────────────── */

.site-footer {
  background: var(--blue-900);
  color: rgba(255, 255, 255, .62);
  text-align: center;
  font-size: 13px;
  line-height: 1.85;
  padding: 36px 20px 40px;
}

.site-footer .tagline {
  display: block;
  max-width: 660px;
  margin: 0 auto 16px;
  color: rgba(255, 255, 255, .58);
  font-size: 12.5px;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  margin-bottom: 14px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, .3);
  padding-bottom: 1px;
}

.footer-links a:hover { border-bottom-color: #fff; }
.footer-links a.contact { color: var(--hk-green); border-bottom-color: rgba(92, 184, 92, .45); }
.footer-links a.contact:hover { border-bottom-color: var(--hk-green); }

.site-footer .copy { font-size: 12px; color: rgba(255, 255, 255, .42); }

/* ──────────────────────────────── mobile ────────────────────────────────── */

@media (max-width: 760px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .page-hero { padding: 30px 22px 32px; border-radius: var(--radius-lg); }
  .page-hero h1 { font-size: 27px; }
  .hero-lead { font-size: 15px; }
  .card { padding: 22px 20px; }
  .cta-band { padding: 24px 22px; flex-direction: column; align-items: flex-start; }
  .cta-btn { width: 100%; justify-content: center; }
}

@media (max-width: 640px) {
  .header-inner { flex-direction: column; padding: 8px 16px 12px; gap: 12px; }
  .logo-area img { height: 48px; }
  .header-pills { gap: 5px; }
  .pill { font-size: 12px; padding: 4px 9px; }
  .lang-pill { right: 10px; top: 10px; font-size: 11px; padding: 4px 10px; }
  .page-wrap { padding: 0 16px 48px; }
  .data-table td:first-child { width: auto; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table thead { display: none; }
  .data-table tr { border-bottom: 1px solid var(--gray-100); padding: 11px 0; }
  .data-table td { border: none; padding: 2px 0; }
}
