/* ============================================================
   Moony — Apple product-page adaptation (layout aesthetic only)
   Reuses tokens from styles.css; adds Apple-style scale,
   full-bleed media, centered big type, chapter nav.
   ============================================================ */

.ap { background: #000; color: var(--text); overflow-x: clip; position: relative; isolation: isolate; }
.ap::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("moony-texture.webp"); background-repeat: repeat; background-size: 75px;
  opacity: 0.1;
}
.ap > * { position: relative; z-index: 1; }
.ap ::selection { background: rgba(167,139,250,0.3); }

/* film-grain overlay — subtle premium dark-mode texture */
.ap::after {
  content: ""; position: fixed; inset: 0; z-index: 3; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.04; mix-blend-mode: overlay;
}

/* hairline top-highlight on panels — makes them feel lit, not drawn */
.ap-reserve-chart, .ap-usdf, .ap-reserve-flow .flow-card, .lin-node, .code-card, .term {
  box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.07);
}

/* generous, Apple-like rhythm */
.ap-sec { position: relative; padding-block: clamp(80px, 12vw, 170px); }
.ap-sec.ruled::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: min(360px, 64%); height: 1px; background: linear-gradient(90deg, transparent, rgba(216,197,253,0.5) 34%, rgba(255,242,217,0.45) 66%, transparent); pointer-events: none; }
.ap-wrap { max-width: 1120px; margin: 0 auto; padding-inline: clamp(20px, 5vw, 40px); }
.ap-narrow { max-width: 740px; margin-inline: auto; }
.ap-center { text-align: center; }

/* ---------- chapter sub-nav (Apple's sticky product bar) ---------- */
.ap-subnav { position: sticky; top: 0; z-index: 60; padding-top: env(safe-area-inset-top, 0px); background: rgba(12,12,16,0.78); backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px); }
.ap-subnav::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent 42%); }
.ap-subnav::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(216,197,253,0.5) 28%, rgba(255,242,217,0.4) 62%, transparent); opacity: 0.7; }
.ap-subnav-in { position: relative; z-index: 1; max-width: none; margin: 0; padding: 0 clamp(20px, 3.5vw, 40px); height: 56px; display: flex; align-items: center; gap: 14px; }
.ap-subnav .ap-pname { font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-right: auto; display: flex; align-items: center; gap: 9px; transition: transform .2s cubic-bezier(.2,.7,.2,1); }
.ap-subnav .ap-pname img { height: 19px; width: auto; transition: filter .2s ease; }
.ap-subnav .ap-pname:hover { transform: scale(1.06); }
.ap-subnav .ap-pname:hover img { filter: drop-shadow(0 0 10px rgba(216,197,253,0.55)); }
.ap-subnav .ap-chaps { display: flex; gap: 4px; margin-right: 6px; }
.ap-subnav .ap-chaps a { font-size: 12.5px; color: var(--dim); text-decoration: none; padding: 7px 13px; border-radius: 999px; transition: color .18s ease, background .18s ease; white-space: nowrap; }
.ap-subnav .ap-chaps a:hover { color: var(--text); background: rgba(231,217,253,0.08); }
.ap-subnav .ap-buy { position: relative; overflow: hidden; isolation: isolate; font-size: 12.5px; font-weight: 600; letter-spacing: 0.01em; background: var(--grad); color: #140f1e; padding: 8px 17px; border-radius: 980px; text-decoration: none; white-space: nowrap; box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.35), 0 6px 22px -8px rgba(216,197,253,0.55); transition: transform .18s ease, box-shadow .18s ease; }
.ap-subnav .ap-buy::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,0.6) 46%, transparent 72%); transform: translateX(-130%) skewX(-18deg); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.ap-subnav .ap-buy:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.45), 0 10px 30px -8px rgba(216,197,253,0.8); }
.ap-subnav .ap-buy:hover::after { transform: translateX(130%) skewX(-18deg); }
.ap-subnav .ap-buy:active { transform: translateY(0); }
@media (max-width: 740px) { .ap-subnav .ap-chaps { display: none; } }
.ap-subnav .ap-chaps .ap-social { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: 9px; border: 1px solid var(--line-2, rgba(255,255,255,0.14)); color: var(--dim); transition: color .18s ease, border-color .18s ease, background .18s ease; }
.ap-subnav .ap-chaps .ap-social:hover { color: var(--text); border-color: var(--acc, #8b5cf6); background: rgba(139,92,246,0.1); }
.ap-subnav .ap-chaps .ap-social svg { width: 15px; height: 15px; display: block; }

/* ---------- Apple link (colored text + chevron) ---------- */
.ap-link { display: inline-flex; align-items: center; gap: 3px; color: var(--acc-bright); text-decoration: none; font-size: clamp(16px, 1.5vw, 21px); transition: opacity .15s ease; }
.ap-link:hover { opacity: 0.8; }
.ap-link::after { content: "›"; font-size: 1.15em; line-height: 0; position: relative; top: 0.02em; }
.ap-links { display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: center; }

/* ---------- type scale ---------- */
.ap-eyebrow { font-family: var(--display); font-weight: 600; font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -0.01em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ap-title { font-family: var(--display); font-weight: 600; font-size: clamp(52px, 10vw, 128px); line-height: 0.95; letter-spacing: -0.05em; text-wrap: balance; }
.ap-hero .ap-title .ap-grad { background-size: 220% 100%; background-position: 0% 50%; }
.ap-h2 { font-family: var(--display); font-weight: 600; font-size: clamp(34px, 5.6vw, 76px); line-height: 1.03; letter-spacing: -0.035em; text-wrap: balance; }
.ap-h3 { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3.4vw, 44px); line-height: 1.06; letter-spacing: -0.03em; }
.ap-intro { font-family: var(--display); font-weight: 500; font-size: clamp(21px, 2.6vw, 32px); line-height: 1.25; letter-spacing: -0.02em; color: var(--text); text-wrap: balance; }
.ap-body { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; color: var(--dim); }
.ap-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.08em; }
.ap-dim { color: var(--mute); }

/* ---------- hero ---------- */
.ap-hero { text-align: center; min-height: 86vh; display: flex; flex-direction: column; justify-content: center; padding-block: clamp(72px, 12vh, 132px); position: relative; }
.ap-hero::before { content: none; }
.ap-trust { position: relative; }
.ap-trust::after { content: ""; position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%); width: min(420px, 70%); height: 1px; background: linear-gradient(90deg, transparent, rgba(216,197,253,0.55) 32%, rgba(255,242,217,0.5) 68%, transparent); }
.ap-hero > * { position: relative; z-index: 1; }
.ap-hero .ap-title { margin-top: 14px; }
.ap-hero-mark { line-height: 0; }
.ap-hero-mark img { height: 22px; width: auto; display: inline-block; opacity: 0.92; }
.ap-hero-wordmark { display: block; width: clamp(280px, 52vw, 600px); height: auto; margin: 0 auto; opacity: 0.94; }
.ap-hero-glyph { display: block; width: clamp(96px, 13vw, 132px); height: auto; margin: 0 auto; border-radius: clamp(22px, 3vw, 30px); box-shadow: 0 24px 60px -22px rgba(216,197,253,0.5), inset 0 1px 0 0 rgba(255,255,255,0.12); }
.ap-hero-hook { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 4.2vw, 50px); line-height: 1.05; letter-spacing: -0.03em; margin-top: clamp(26px, 4vw, 44px); text-wrap: balance; }
.ap-hero-hook .ap-grad { background-size: 220% 100%; background-position: 0% 50%; }
@media (max-width: 600px) { .ap-hero-hook { font-size: clamp(31px, 8.6vw, 42px); margin-top: clamp(22px, 5vw, 32px); } }
@media (max-width: 600px) {
  .ap-hero { min-height: 84vh; overflow: hidden; }
  .ap-hero-glyph { width: clamp(112px, 30vw, 140px); }
  .ap-hero::before { content: ""; position: absolute; top: 41%; left: 50%; transform: translate(-50%, -50%); width: 420px; height: 420px; background: radial-gradient(circle, rgba(139,92,246,0.18), rgba(139,92,246,0.05) 42%, transparent 68%); filter: blur(34px); pointer-events: none; z-index: 0; }
}
.ap-hero .ap-intro { margin: clamp(16px, 2vw, 22px) auto 0; max-width: 32ch; color: var(--dim); }
.ap-hero .ap-intro { margin: 26px auto 0; max-width: 24ch; color: var(--dim); }
.ap-hero .ap-links { margin-top: clamp(30px, 4vw, 42px); gap: 14px; }
.ap-hero .ap-link { font-size: clamp(14px, 1.2vw, 16px); padding: 11px 22px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.02); color: var(--text); transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.ap-hero .ap-link:hover { opacity: 1; border-color: transparent; transform: translateY(-1px); background: linear-gradient(#0b0b0d, #0b0b0d) padding-box, var(--grad) border-box; }
.ap-hero .ap-link::after { color: var(--acc-bright); }
.ap-hero .ap-links .ap-link:first-child { border-color: var(--line-2); background: rgba(255,255,255,0.02); color: var(--text); }
.ap-hero .ap-links .ap-link:first-child::after { color: var(--acc-bright); }
.ap-hero .ap-links .ap-link:first-child:hover { border-color: transparent; background: linear-gradient(#0b0b0d, #0b0b0d) padding-box, var(--grad) border-box; }
.ap-hero-media { margin-top: clamp(36px, 5vw, 60px); }

/* hero credibility anchor (built on …) */
.ap-trust { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: clamp(9px, 1.5vw, 16px); margin-top: clamp(40px, 6vh, 72px); }
.ap-trust .t-lead { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute); }
.ap-trust .t-solana { height: 14px; width: auto; display: block; opacity: 0.9; }
.ap-trust .t-item { font-family: var(--mono); font-size: 12px; letter-spacing: 0.03em; color: var(--dim); white-space: nowrap; }
.ap-trust .t-sep { width: 1px; height: 13px; background: rgba(255,255,255,0.16); }
.ap-trust .t-fc { display: inline-flex; align-items: center; gap: 8px; }
.ap-trust .t-fcmark { height: 16px; width: auto; display: block; }
.ap-trust .t-fcsuffix { font-family: var(--mono); font-size: 12px; letter-spacing: 0.03em; color: var(--dim); }
.ap-trust .t-fcsuffix::before { content: "·"; margin-right: 8px; color: var(--mute); }
.ap-trust .t-ico { display: inline-flex; align-items: center; gap: 7px; }
.ap-trust .t-ico svg { width: 14px; height: 14px; color: var(--lav); opacity: 0.85; flex: none; }
.ap-trust .t-sec3 { height: 20px; width: auto; display: block; }
.ap-trust .t-mid { color: var(--mute); margin: 0 3px; }
.ap-trust .t-break { display: none; }
@media (max-width: 600px) { .ap-trust .t-break { display: block; flex-basis: 100%; width: 100%; height: 0; } }
@media (max-width: 600px) {
  .ap-trust { flex-wrap: nowrap; justify-content: center; align-items: center; gap: 14px; margin-top: clamp(26px, 4vh, 40px); max-width: none; margin-inline: auto; padding-inline: 16px; opacity: 0.9; }
  .ap-trust .t-sep, .ap-trust .t-break, .ap-trust .t-fcsuffix, .ap-trust .t-item:not(.t-fc), .ap-trust .t-lead { display: none; }
  .ap-trust .t-solana { height: 13px; }
  .ap-trust .t-fcmark { height: 17px; }
  .ap-trust .t-sec3 { height: 17px; }
}
/* intermediate (tablet / large phone): tighten so it holds one line */
@media (min-width: 601px) and (max-width: 880px) {
  .ap-trust { gap: 6px 9px; }
  .ap-trust .t-lead { font-size: 9.5px; letter-spacing: 0.13em; }
  .ap-trust .t-item, .ap-trust .t-fcsuffix { font-size: 10px; }
  .ap-trust .t-solana { height: 11px; }
  .ap-trust .t-fcmark { height: 12px; }
  .ap-trust .t-sec3 { height: 15px; }
  .ap-trust .t-sep { height: 11px; }
}

/* reserve: contained chart + flow column */
.ap-reserve { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: clamp(16px, 2.4vw, 26px); align-items: stretch; margin-top: clamp(34px, 4.5vw, 52px); }
@media (max-width: 860px) { .ap-reserve { grid-template-columns: 1fr; } }
.ap-reserve-chart { border: 1px solid rgba(255,255,255,0.10); border-radius: 18px; background: radial-gradient(120% 100% at 50% 0%, rgba(139,92,246,0.10), transparent 62%), #08080b; padding: clamp(14px, 2vw, 20px); display: flex; flex-direction: column; }
.rc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.rc-title { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.rc-scale { font-family: var(--mono); font-size: 10.5px; color: var(--mute); }
.rc-plot { width: 100%; flex: 1; min-height: 230px; }
.rc-plot svg { display: block; width: 100%; height: 100%; }
.ap-reserve-flow { display: flex; flex-direction: column; gap: clamp(12px, 1.6vw, 16px); }
.ap-reserve-flow .flow-card { background: #08080b; flex: 1; display: flex; flex-direction: column; }
.ap-reserve-flow .flow-card .fee { margin-top: auto; }

.ap-usdf-intro { display: flex; align-items: center; gap: 16px; margin-top: clamp(40px, 5vw, 64px); margin-bottom: clamp(16px, 2vw, 22px); }
.ap-usdf-intro::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(216,197,253,0.45), rgba(255,242,217,0.35) 55%, transparent); }
.ap-usdf-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--lav); flex: none; }

/* reserve asset (USDF credibility anchor) */
.ap-usdf { border: 1px solid rgba(255,255,255,0.12); border-radius: 20px; background: radial-gradient(130% 150% at 0% 0%, rgba(139,92,246,0.12), transparent 52%), linear-gradient(180deg, #0c0c11, #08080b); padding: clamp(22px, 3vw, 32px) clamp(24px, 3.4vw, 38px); margin-top: clamp(16px, 2.4vw, 26px); }
.ap-usdf .u-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: clamp(18px, 2.4vw, 24px); margin-bottom: clamp(18px, 2.4vw, 24px); border-bottom: 1px solid var(--line); }
.ap-usdf .u-id { display: flex; align-items: center; gap: 16px; }
.ap-usdf .u-coin { flex: none; width: 56px; height: 56px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; }
.ap-usdf .u-coin img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ap-usdf .u-coin-legacy { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 26px; color: #140f1e; background: var(--grad); box-shadow: 0 10px 28px -10px rgba(216,197,253,0.6), inset 0 2px 0 0 rgba(255,255,255,0.4); }
.ap-usdf .u-k { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); margin-bottom: 5px; white-space: nowrap; }
.ap-usdf .u-name { font-family: var(--display); font-size: clamp(28px, 3.2vw, 40px); font-weight: 600; letter-spacing: -0.02em; line-height: 1; color: var(--text); }
.ap-usdf .u-peg { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.02em; color: var(--dim); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 15px; background: var(--bg-1); }
.ap-usdf .u-peg b { color: var(--text); font-weight: 500; }
.ap-usdf .u-pegdot { width: 7px; height: 7px; border-radius: 50%; background: var(--pos, #4ade80); box-shadow: 0 0 9px var(--pos, #4ade80); flex: none; }
.ap-usdf .u-desc { color: var(--dim); font-size: clamp(15px, 1.45vw, 17px); line-height: 1.6; max-width: 70ch; }
.ap-usdf .u-desc b { color: var(--text); font-weight: 600; }
.ap-usdf .u-foot { display: flex; align-items: center; gap: 16px; margin-top: clamp(20px, 2.6vw, 26px); }
.ap-usdf .u-foot-k { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); }
.ap-usdf .u-marks { display: flex; align-items: center; gap: 14px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-1); }
.ap-usdf .u-marks .u-cb { height: 16px; width: auto; display: block; filter: brightness(0) invert(1); opacity: 0.95; }
.ap-usdf .u-marks .u-x { width: 1px; height: 16px; background: var(--line-2); display: block; }
.ap-usdf .u-marks .u-fc { height: 16px; width: auto; display: block; opacity: 0.95; }
@media (max-width: 560px) { .ap-usdf .u-head { flex-direction: column; align-items: flex-start; } .ap-usdf .u-foot { flex-wrap: wrap; gap: 10px; } }
.lin-logo { height: 26px; width: auto; display: block; margin: 0; }
.lin-logo-moony { height: 22px; }

/* Moony Labs: claim-left, proof-terminal-right split */
.ap-labs-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 60px); align-items: center; position: relative; }
@media (max-width: 880px) { .ap-labs-split { grid-template-columns: 1fr; gap: clamp(28px, 5vw, 40px); } }
.ap-labs-claim { position: relative; z-index: 1; min-width: 0; }
.ap-labs-claim .ap-body { max-width: 46ch; }
.ap-labs-proof { min-width: 0; }
.ap-labs-proof .term { max-width: 100%; }
.ap-labs-proof .term { box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.07), 0 30px 70px -30px rgba(139,92,246,0.45); }
.ap-labs-proof .term-body .hl { color: var(--acc-bright); }
.ap-grad-shimmer { background-size: 220% 100%; animation: apGradShift 7s ease-in-out infinite; }

/* ---------- From the network (X posts) ---------- */
.ap-voices-head { text-align: center; max-width: 860px; margin: 0 auto clamp(34px, 4.5vw, 52px); }
.ap-voices-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .ap-voices-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ap-voices-grid { grid-template-columns: 1fr; max-width: 540px; margin-inline: auto; } }
.ap-post { display: flex; flex-direction: column; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.05); text-decoration: none; color: var(--text); transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease; }
.ap-post:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.08), 0 22px 46px -26px rgba(139,92,246,0.5); }
.ap-post-top { display: flex; align-items: center; gap: 11px; }
.ap-post-av { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 17px; color: #fff; background: radial-gradient(circle at 32% 26%, var(--a), var(--b)); box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.18); }
.ap-post-id { display: flex; flex-direction: column; gap: 1px; min-width: 0; margin-right: auto; }
.ap-post-name { display: inline-flex; align-items: center; gap: 5px; font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; color: var(--text); white-space: nowrap; }
.ap-post-name .vk { width: 15px; height: 15px; flex: none; }
.ap-post-name .vk path:first-child { fill: var(--acc-bright); }
.ap-post-handle { font-family: var(--mono); font-size: 12.5px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-post-x { width: 17px; height: 17px; flex: none; fill: var(--dim); opacity: 0.95; }
.ap-post-body { font-size: 14.5px; line-height: 1.55; color: var(--dim); margin: 0; text-wrap: pretty; flex: 1 0 auto; }
.ap-post-meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); padding-top: 12px; border-top: 1px solid var(--line); }
.ap-post-mention { color: var(--acc-bright); }
.ap-post-av-img { padding: 0; overflow: hidden; background: var(--bg-3); }
.ap-post-av-img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
@keyframes apGradShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) { .ap-grad-shimmer { animation: none; } }
.lin-node .lin-h { min-height: 30px; display: flex; align-items: center; }
.lin-lockup { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.lin-lockup .lin-wm { height: 17px; width: auto; display: block; }
.lin-lockup .lin-bar { color: var(--mute); font-weight: 400; }

/* ethos / principles manifesto */
.ap-ethos-list { max-width: 940px; margin: clamp(36px, 4.5vw, 58px) auto 0; border-top: 1px solid rgba(255,255,255,0.13); }
.ap-ethos-row { display: grid; grid-template-columns: minmax(210px, 0.82fr) 1.18fr; gap: clamp(16px, 4vw, 52px); align-items: baseline; padding: clamp(18px, 2.5vw, 28px) 0; border-bottom: 1px solid rgba(255,255,255,0.10); }
@media (max-width: 680px) { .ap-ethos-row { grid-template-columns: 1fr; gap: 8px; } }
.ap-ethos-row .et { font-family: var(--display); font-size: clamp(24px, 3vw, 38px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.04; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ap-ethos-row .ed { color: var(--dim); font-size: clamp(15px, 1.4vw, 17px); line-height: 1.5; }

/* ---------- image slots ---------- */
image-slot { display: block; width: 100%; --slot-ink: rgba(231,217,253,0.62); --slot-bg: rgba(231,217,253,0.035); --slot-ring: rgba(231,217,253,0.22); }
.ap-media-full { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.ap-media-tall { width: 100%; height: auto; aspect-ratio: 4 / 5; }
.ap-media-sq { width: 100%; height: auto; aspect-ratio: 1 / 1; }
.ap-bleed { max-width: 1480px; margin-inline: auto; padding-inline: clamp(0px, 2vw, 20px); }

/* ---------- highlights band (Apple "Get the highlights") ---------- */
.ap-highlights { border-top: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1); }
.ap-hl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,0.08); }
@media (max-width: 760px) { .ap-hl-grid { grid-template-columns: 1fr 1fr; } }
.ap-hl { background: #000; padding: clamp(26px, 3.5vw, 44px) clamp(18px, 2.5vw, 30px); }
.ap-hl .v { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3.2vw, 46px); letter-spacing: -0.03em; line-height: 1; white-space: nowrap; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ap-hl .k { font-size: 13.5px; color: var(--dim); margin-top: 12px; line-height: 1.4; }

/* ---------- feature section (headline above full-bleed media) ---------- */
.ap-feature .ap-feat-head { text-align: center; max-width: 860px; margin: 0 auto clamp(34px, 4.5vw, 56px); }
.ap-feature .ap-feat-head .ap-body { max-width: 52ch; margin: 22px auto 0; }

/* Moony Labs: centered header + body */
.ap-open-head .ap-body { max-width: 60ch; margin: 24px auto 0; }
#reserve .ap-feat-head { text-align: center; margin: 0 auto clamp(28px,3.5vw,40px); max-width: 860px; }
.ap-reserve-lead { font-family: var(--display); font-weight: 500; font-size: clamp(19px, 2.1vw, 26px); line-height: 1.42; letter-spacing: -0.015em; color: var(--dim); max-width: 30ch; margin: 0 0 clamp(26px, 3.2vw, 38px); text-wrap: pretty; }
.ap-reserve-lead .ap-grad { font-weight: 600; }

/* reserve: editorial split (copy left, chart right) */
#reserve .ap-feat-head { text-align: center; margin: 0 auto clamp(34px,4vw,52px); max-width: 860px; }
.ap-reserve-split { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(28px, 4vw, 64px); align-items: center; text-align: left; }
@media (max-width: 920px) { .ap-reserve-split { grid-template-columns: 1fr; gap: 32px; } }
.ap-reserve-copy .ap-body { max-width: 46ch; font-size: clamp(16px, 1.55vw, 19px); }
.ap-reserve-right { display: flex; flex-direction: column; gap: clamp(14px, 1.8vw, 18px); }
.ap-reserve-points { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 460px) { .ap-reserve-points { grid-template-columns: 1fr; } }
.ap-reserve-points .rp { border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 15px 18px; background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.05); }
.ap-reserve-points .rp-h { display: flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.ap-reserve-points .rp.buy .rp-h { color: var(--pos, #4ade80); }
.ap-reserve-points .rp.sell .rp-h { color: var(--warn, #fbbf24); }
.ap-reserve-points .rp-h .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 9px currentColor; flex: none; }
.ap-reserve-points .rp-fee { margin-left: auto; font-size: 11px; letter-spacing: 0.04em; color: var(--mute); border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 8px; }
.ap-reserve-points .rp p { margin-top: 9px; font-size: 13.5px; line-height: 1.5; color: var(--dim); }
.ap-reserve-right .ap-reserve-chart { margin: 0; }

/* reserve: full-width annotated curve hero */
.ap-curve-hero { margin-top: clamp(36px, 4.5vw, 56px); border: 1px solid rgba(255,255,255,0.1); border-radius: 22px; background: radial-gradient(120% 90% at 50% 0%, rgba(139,92,246,0.12), transparent 62%), linear-gradient(180deg, #0c0c11, #08080b); box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.06); padding: clamp(18px, 2.4vw, 28px); }
.ap-curve-hero .ch-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: clamp(10px, 1.4vw, 16px); }
.ap-curve-hero .ch-title { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.ap-curve-hero .ch-scale { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--mute); }
.ch-stage { position: relative; }
.ch-plot { width: 100%; height: clamp(280px, 34vw, 440px); }
.ch-plot svg { display: block; width: 100%; height: 100%; }
.ch-anno { position: absolute; display: flex; flex-direction: column; gap: 2px; pointer-events: none; }
.ch-anno .ch-price { font-family: var(--display); font-weight: 600; font-size: clamp(15px, 1.6vw, 20px); letter-spacing: -0.01em; color: var(--text); }
.ch-anno .ch-cap { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.ch-anno.ch-start { left: 4px; bottom: 18px; }
.ch-anno.ch-end { right: 8px; top: 4px; text-align: right; align-items: flex-end; }
.ch-axis { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--mute); }
.ch-axis .ch-axis-mid { letter-spacing: 0.14em; text-transform: uppercase; }
.ap-curve-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: clamp(18px, 2.2vw, 24px); padding-top: clamp(18px, 2.2vw, 24px); border-top: 1px solid var(--line); }
@media (max-width: 560px) { .ap-curve-legend { grid-template-columns: 1fr; } }
.ap-curve-legend .cl { display: flex; align-items: center; gap: 11px; font-size: 14px; color: var(--dim); line-height: 1.4; }
.ap-curve-legend .cl b { color: var(--text); font-weight: 600; margin-right: 4px; }
.ap-curve-legend .cl .cl-t { flex: 1; min-width: 0; }
.ap-curve-legend .cl .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ap-curve-legend .cl.buy .dot { background: var(--pos, #4ade80); box-shadow: 0 0 9px var(--pos, #4ade80); }
.ap-curve-legend .cl.sell .dot { background: var(--warn, #fbbf24); box-shadow: 0 0 9px var(--warn, #fbbf24); }
.ap-curve-legend .cl .cl-fee { flex: none; font-family: var(--mono); font-size: 11px; color: var(--mute); border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 8px; }

/* interactive pricing-curve widget (ported from docs) */
.ap-curve-hero .curve-widget { margin-top: clamp(14px, 1.8vw, 20px); border: 0; border-radius: 0; background: none; padding: 0; box-shadow: none; }
.curve-widget .cw-svg { width: 100%; height: auto; display: block; }
.curve-widget .cw-grid { stroke: var(--line); stroke-width: 1; }
.curve-widget .cw-ylab { fill: var(--mute); font-family: var(--mono); font-size: 11px; text-anchor: end; }
.curve-widget .cw-xlab { fill: var(--mute); font-family: var(--mono); font-size: 11px; text-anchor: middle; }
.curve-widget .cw-guide { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 4; }
.curve-widget .cw-dot { fill: #fff; stroke: var(--acc-bright); stroke-width: 2.5; filter: drop-shadow(0 0 8px rgba(139,92,246,0.8)); cursor: ew-resize; }
.curve-widget .cw-svg { cursor: ew-resize; }
.curve-widget .cw-readouts { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--line); }
@media (max-width: 560px){ .curve-widget .cw-readouts { grid-template-columns: 1fr; } }
.curve-widget .cw-ro { background: var(--bg-1); padding: 14px 16px; }
.curve-widget .cw-ro-k { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.curve-widget .cw-ro-v { font-family: var(--display); font-size: clamp(20px,2.4vw,26px); font-weight: 600; letter-spacing: -0.02em; color: var(--text); margin-top: 6px; }
.curve-widget .cw-ro-v small { font-size: 0.55em; color: var(--mute); font-weight: 500; }
.curve-widget .cw-ro-v.cw-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.curve-widget .cw-slider { width: 100%; margin-top: 16px; -webkit-appearance: none; appearance: none; height: 5px; border-radius: 999px; background: linear-gradient(90deg, var(--acc), var(--lav)); outline: none; cursor: pointer; }
.curve-widget .cw-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--acc-bright); box-shadow: 0 2px 10px -2px rgba(139,92,246,0.8); cursor: grab; }
.curve-widget .cw-slider::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--acc-bright); cursor: grab; }

/* duo: two short text columns (Apple pattern under media) ---------- */
.ap-duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); max-width: 940px; margin: clamp(40px,5vw,64px) auto 0; }
@media (max-width: 720px) { .ap-duo { grid-template-columns: 1fr; gap: 32px; } }
.ap-duo .ap-h3 { font-size: clamp(22px, 2.6vw, 32px); }
.ap-duo p { margin-top: 14px; }
.ap-duo .ap-h3 .ap-grad { display: inline; }

/* split: media one side, copy other (alternates) ---------- */
.ap-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 860px) { .ap-split { grid-template-columns: 1fr; gap: 36px; } .ap-split.rev .ap-split-media { order: -1; } }
.ap-split-copy .ap-h2 { font-size: clamp(30px, 4vw, 54px); }
.ap-split-copy .ap-body { margin-top: 22px; max-width: 44ch; }
.ap-split-copy .ap-links { justify-content: flex-start; margin-top: 26px; }
.ap-split.rev .ap-split-media { order: 2; }

/* ---------- giant editorial stat ---------- */
.ap-stat { text-align: center; }
.ap-stat .fig { font-family: var(--display); font-weight: 600; font-size: clamp(46px, 13vw, 184px); line-height: 0.98; letter-spacing: -0.05em; white-space: nowrap; padding-bottom: 0.06em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ap-stat .cap { font-family: var(--display); font-weight: 500; font-size: clamp(22px, 3vw, 38px); letter-spacing: -0.02em; margin-top: 26px; }
.ap-stat .ap-body { max-width: 46ch; margin: 20px auto 0; }

/* ---------- finish / showcase swatch row (Apple color picker) ---------- */
.ap-finish { text-align: center; }
.ap-swatches { display: flex; justify-content: center; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.ap-sw { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ap-sw .dot { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.18); }
.ap-sw .lbl { font-size: 12px; color: var(--dim); }

/* ---------- final CTA ---------- */
.ap-cta { text-align: center; }
.ap-cta-icon { width: 66px; height: 66px; display: block; margin: 0 auto clamp(22px, 3vw, 30px); border-radius: 16px; box-shadow: 0 18px 50px -18px rgba(139,92,246,0.5); }
.ap-cta .ap-h2 { max-width: 16ch; margin-inline: auto; }
.ap-cta .ap-links { margin-top: 30px; }

/* ---------- available on Flipcash ---------- */
.ap-getrow { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; margin-top: clamp(30px, 4vw, 44px); }
.ap-getbtn { display: inline-flex; align-items: center; gap: 11px; white-space: nowrap; background: #f5f5f7; color: #0a0810; padding: 13px 24px; border-radius: 980px; text-decoration: none; font-weight: 600; font-size: 15px; transition: transform .2s ease, box-shadow .2s ease; box-shadow: 0 14px 40px -16px rgba(255,255,255,0.35); }
.ap-getbtn:hover { transform: translateY(-2px); }
.ap-getbtn img { height: 16px; width: auto; display: block; filter: invert(1); }

/* fine print footer */
.ap-fine { border-top: 1px solid rgba(255,255,255,0.08); padding-block: 56px 44px; }
.ap-fine .foot-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 30px; margin-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.ap-fine .foot-brand { display: flex; align-items: center; gap: 14px; }
.ap-fine .foot-brand img { height: 22px; width: auto; display: block; }
.ap-fine .foot-tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); white-space: nowrap; }
@media (max-width: 600px) {
  .ap-fine .foot-brand { flex-direction: column; align-items: flex-start; gap: 12px; }
  .ap-fine .foot-tag { font-size: 10.5px; letter-spacing: 0.1em; }
}
.ap-fine .foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.ap-fine .foot-links a { font-size: 13px; color: var(--dim); text-decoration: none; transition: color .15s ease; }
.ap-fine .foot-links a:hover { color: var(--text); }
.ap-fine p { font-size: 12px; color: var(--mute); line-height: 1.6; max-width: 92ch; }
.ap-fine p a { color: var(--dim); text-decoration: none; }
.ap-fine p a:hover { text-decoration: underline; }

/* reveal-safe: everything visible by default (no animation dependency) */

/* ---------- generated visuals (replace image slots) ---------- */
.ap-viz { position: relative; width: 100%; border-radius: 22px; border: 1px solid rgba(255,255,255,0.10); overflow: hidden; background: radial-gradient(120% 100% at 50% 0%, rgba(139,92,246,0.12), transparent 62%), #08080b; box-sizing: border-box; }
.ap-viz.full { aspect-ratio: 16 / 9; }
.ap-viz.sq { width: 100%; aspect-ratio: 1 / 1; }
.ap-viz[data-viz] { padding: clamp(18px, 3vw, 40px); }
.ap-viz svg { display: block; width: 100%; height: 100%; }

/* hero: pricing curve over binary field */
.ap-hero-viz { position: relative; }
.ap-hero-bin { position: absolute; inset: 0; padding: clamp(14px,2vw,26px); font-family: var(--mono); font-size: clamp(11px,1.1vw,15px); line-height: 1.7; letter-spacing: 0.34em; color: rgba(231,217,253,0.10); white-space: pre; overflow: hidden; -webkit-mask-image: radial-gradient(130% 110% at 28% 24%, #000, transparent 78%); mask-image: radial-gradient(130% 110% at 28% 24%, #000, transparent 78%); }
.ap-hero-bin .hi { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0.45; }
.ap-hero-curve { position: absolute; inset: 0; }

/* hero glyph render */
.ap-glyph { display: grid; place-items: center; }
.ap-glyph .glow { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 48%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(167,139,250,0.40), transparent 66%); filter: blur(34px); }
.ap-glyph .ring { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); border: 1px solid rgba(231,217,253,0.10); border-radius: 50%; }
.ap-glyph .ring.r1 { width: 34%; aspect-ratio: 1; border-color: rgba(231,217,253,0.16); }
.ap-glyph .ring.r2 { width: 52%; aspect-ratio: 1; }
.ap-glyph .ring.r3 { width: 72%; aspect-ratio: 1; opacity: 0.6; }
.ap-glyph .mk { position: relative; z-index: 2; font-family: var(--display); font-weight: 500; font-size: clamp(120px, 24vw, 320px); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* logomark render */
.ap-markviz { display: grid; place-items: center; }
.ap-markviz::before { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 46%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(167,139,250,0.32), transparent 66%); filter: blur(40px); }
.ap-markviz img { position: relative; z-index: 2; width: clamp(150px, 26%, 320px); height: auto; filter: drop-shadow(0 0 36px rgba(167,139,250,0.30)); }

/* code / terminal frame inside a media slot */
.ap-codeframe { max-width: 760px; margin-inline: auto; }
.ap-codeframe .code-card, .ap-codeframe .term { border-radius: 18px; }

/* developer check-points (minimal Apple row) */
.ap-checks { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(18px, 3vw, 44px); max-width: 880px; margin: clamp(34px, 4vw, 48px) auto 0; }
.ap-checks .ck { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.5; color: var(--dim); max-width: 250px; }
.ap-checks .ck svg { width: 18px; height: 18px; color: var(--acc-bright); flex: none; margin-top: 1px; }
.ap-checks .ck b { color: var(--text); font-weight: 600; }


/* ---------- elevated dark panel section (the mark showcase) ---------- */
.ap-sec.panel { background: radial-gradient(120% 80% at 50% 0%, rgba(139,92,246,0.10), transparent 60%), #08080b; }
.ap-sec.panel::before, .ap-sec.panel::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: rgba(255,255,255,0.07); }
.ap-sec.panel::before { top: 0; } .ap-sec.panel::after { bottom: 0; }

/* ---------- asymmetric statement (left headline, lower-right body) ---------- */
.ap-statement { display: grid; grid-template-columns: 1fr 0.78fr; gap: clamp(28px, 5vw, 80px); align-items: end; }
@media (max-width: 820px) { .ap-statement { grid-template-columns: 1fr; gap: 22px; align-items: start; } }
.ap-statement .sk { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); display: block; margin-bottom: 22px; }
.ap-statement .ap-h2 { font-size: clamp(40px, 6.6vw, 88px); }
.ap-statement .ap-body { font-size: clamp(16px, 1.5vw, 20px); max-width: 40ch; padding-bottom: 0.4em; }

/* ---------- tech specs (Apple's substance reservoir) ---------- */
.ap-specs { max-width: 940px; margin-inline: auto; }
.ap-specs .ap-specs-head { text-align: center; margin-bottom: clamp(36px, 4.5vw, 60px); }
.ap-specs .ap-specs-head .ap-eyebrow { font-size: clamp(14px, 1.4vw, 17px); }
.ap-specs .ap-specs-head .ap-h2 { font-size: clamp(30px, 4vw, 52px); margin-top: 12px; }
.spec-group { border-top: 1px solid rgba(255,255,255,0.12); padding-block: clamp(24px, 3vw, 38px); display: grid; grid-template-columns: 232px 1fr; gap: clamp(18px, 4vw, 52px); align-items: start; }
.spec-group:last-child { border-bottom: 1px solid rgba(255,255,255,0.12); }
@media (max-width: 720px) { .spec-group { grid-template-columns: 1fr; gap: 14px; } }
.spec-group > h3 { font-family: var(--display); font-size: clamp(19px, 2.2vw, 24px); font-weight: 600; letter-spacing: -0.02em; color: var(--text); position: sticky; top: 70px; }
@media (max-width: 720px) { .spec-group > h3 { position: static; } }
.spec-rows { display: flex; flex-direction: column; }
.spec-line { display: flex; justify-content: space-between; align-items: baseline; gap: 28px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.spec-line:last-child { border-bottom: 0; }
.spec-line .sl { color: var(--mute); font-size: 14px; flex: none; max-width: 42%; }
.spec-line .sv { color: var(--text); font-size: 14.5px; text-align: right; }
.spec-line .sv .gk { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.spec-line .sv.mono { font-family: var(--mono); font-size: 12px; color: var(--lav); word-break: break-all; }
.spec-line .sv .mono { font-family: var(--mono); font-size: 12px; color: var(--lav); white-space: nowrap; }
.spec-line .sv a { color: var(--acc-bright); text-decoration: none; }
.spec-line .sv a:hover { text-decoration: underline; }




/* ---------- unified site footer (matches docs) ---------- */
.ap .dx-sitefoot { border-top: 1px solid var(--line); margin-top: 0; background: linear-gradient(180deg, transparent, rgba(139,92,246,0.03)); position: relative; z-index: 2; }
.ap .dx-sitefoot-in { max-width: 1100px; margin: 0 auto; padding: clamp(40px, 5vw, 56px) clamp(20px, 4vw, 40px) clamp(36px, 4vw, 48px); }
.ap .dx-foot-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 28px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.ap .dx-foot-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.ap .dx-foot-brand img { height: 20px; width: auto; display: block; opacity: 0.9; }
.ap .dx-foot-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
@media (max-width: 600px) { .ap .dx-foot-brand { flex-direction: column; align-items: flex-start; gap: 12px; } }
@media (max-width: 540px) { .ap .dx-foot-tag { display: none; } }
.ap .dx-foot-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.ap .dx-foot-links > a { font-size: 13.5px; color: var(--dim); text-decoration: none; transition: color .15s ease; }
.ap .dx-foot-links > a:hover { color: var(--text); }
.ap .dx-foot-social { display: inline-flex; align-items: center; gap: 8px; }
.ap .dx-foot-social a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line-2); color: var(--dim); transition: color .15s ease, border-color .15s ease, background .15s ease; }
.ap .dx-foot-social a:hover { color: var(--text); border-color: var(--acc); background: rgba(139,92,246,0.08); }
.ap .dx-foot-social svg { width: 15px; height: 15px; display: block; }
.ap .dx-sitefoot p { font-size: 12px; color: var(--mute); line-height: 1.65; max-width: 96ch; }
.ap .dx-sitefoot p a { color: var(--dim); text-decoration: none; }
.ap .dx-sitefoot p a:hover { color: var(--acc-bright); }


/* ---------- footer sitemap columns (main) ---------- */
.ap .dx-foot-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .ap .dx-foot-top { grid-template-columns: 1fr 1fr; row-gap: 34px; } .ap .dx-foot-brandcol { grid-column: 1 / -1; } }
.ap .dx-foot-brandcol { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.ap .dx-foot-brandcol .dx-foot-brand { display: block; }
.ap .dx-foot-col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); margin: 0 0 14px; font-weight: 500; }
.ap .dx-foot-col a { display: block; font-size: 13.5px; color: var(--dim); text-decoration: none; padding: 5px 0; transition: color .15s ease; }
.ap .dx-foot-col a:hover { color: var(--text); }
