/* hexu.app refresh, 28 Nov 2026 — pieces 1–3 (privacy, gold, feature cards).
   Built on the site's own layout classes (hx-wrap, hx-sec, hx-h2, hx-lead) and colour variables, so the pieces follow
   the site's light and dark colours and the new switch. Every new class starts with "hxr-" so nothing here can
   change the rest of the site. Add after css/hexu.css and css/hexu-theme.css. */

/* money in: the app's green, which the site's palette doesn't have yet */
:root { --hxr-in: #127e5b; }
:root[data-theme="dark"] { --hxr-in: #4e9e6e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --hxr-in: #4e9e6e; } }

.hxr-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 88px; align-items: center; }
.hxr-split .hx-lead { margin-top: 20px; max-width: 26em; }
.hxr-small { margin: 24px 0 0; max-width: 34em; font-size: 16px; line-height: 1.55; color: var(--ink3); }
.hxr-sample { margin: 12px 0 0; font-size: 15px; color: var(--ink3); }

/* 1 · Privacy: three large lines between thin rules */
.hxr-nos { list-style: none; margin: 0; padding: 0; }
.hxr-nos li { border-top: 2px solid var(--line); padding: 28px 0; font-weight: 700; font-size: 60px; line-height: 1; letter-spacing: -0.015em; color: var(--ink); }
.hxr-nos li:last-child { border-bottom: 2px solid var(--line); }
.hxr-nos b { font-weight: 700; color: var(--accent); }          /* large text: 3:1 is enough, and both themes pass */

/* 2 · Gold: the app's Metals value (gold price line, today's value, gain), sample data */
.hxr-gold-visual { display: flex; flex-direction: column; align-items: center; }
.hxr-gold { --u: 0.84px; text-align: center; }
.hxr-gold p { margin: 0; white-space: nowrap; }
.hxr-gold-price { font-size: calc(39 * var(--u)); letter-spacing: -0.29px; color: var(--ink2); }
.hxr-gold-label { margin-top: calc(72 * var(--u)) !important; font-weight: 600; font-size: calc(39 * var(--u)); letter-spacing: calc(1.75 * var(--u)); text-transform: uppercase; color: var(--ink3); }
.hxr-gold-value { margin-top: calc(26 * var(--u)) !important; font-weight: 600; font-size: calc(90.5 * var(--u)); line-height: 1; letter-spacing: -0.7px; color: var(--ink); font-feature-settings: "tnum" 1, "lnum" 1; }
.hxr-gold-gain { margin-top: calc(26 * var(--u)) !important; font-weight: 600; font-size: calc(45 * var(--u)); color: var(--hxr-in); font-feature-settings: "tnum" 1, "lnum" 1; }

/* 3 · Feature cards: same copy, no icons */
.hxr-cards { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hxr-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 30px 30px 32px; }
.hxr-card h3 { margin: 0; font-weight: 700; font-size: 22px; line-height: 1.2; color: var(--ink); }
.hxr-card p { margin: 10px 0 0; font-size: 16px; line-height: 1.55; color: var(--ink2); }

@media (max-width: 900px) {
  .hxr-split { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .hxr-gold-split .hxr-gold-visual { order: 1; }              /* phones: heading first, then the value */
  .hxr-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .hxr-nos li { font-size: 42px; padding: 20px 0; }
  .hxr-gold { --u: min(0.56px, calc((100vw - 32px) / 560)); }  /* 0.56px from 390 px up; smaller below, so it never overflows */
  .hxr-cards { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 32px; }
  .hxr-card { padding: 22px 20px 24px; }
  .hxr-card h3 { font-size: 20px; }
}
