/* PenEcho Lines told as nodes that join into lines: the opening chapter of lines.html, written by tools/build-lines-page.py.
   It uses the family page's tokens and cards (products.css) and adds only what the chapter itself needs. */
.family-page .ln-hero { padding-bottom:clamp(30px,4vw,52px); }
.family-page .ln-claim { max-width:780px; margin:22px auto 0; font-size:clamp(22px,2.7vw,31px); line-height:1.22; font-weight:650; letter-spacing:-.02em; text-wrap:balance; }
.family-page .ln-hero .lead { margin-top:14px; }

/* One line, from a first idea to a result. It draws itself once, left to right. */
.family-page .ln-line-wrap { max-width:1040px; margin:clamp(34px,4.6vw,56px) auto 0; overflow-x:auto; scrollbar-width:none; }
.family-page .ln-line-wrap::-webkit-scrollbar { display:none; }
.ln-line { display:block; width:100%; min-width:780px; height:auto; }
.ln-line-rule { fill:none; stroke:#64748b; stroke-width:3; stroke-linecap:round; stroke-dasharray:1; stroke-dashoffset:1; animation:ln-draw 1.5s .15s cubic-bezier(.3,.7,.2,1) forwards; }
.ln-stop { opacity:0; animation:ln-pop .45s calc(.3s + var(--i) * .17s) ease-out forwards; }
.ln-stop-kind { font:650 15px var(--sans); fill:var(--ink); text-anchor:middle; }
.ln-stop-say { font:500 13px var(--sans); fill:var(--ink3); text-anchor:middle; }
@keyframes ln-draw { to { stroke-dashoffset:0; } }
@keyframes ln-pop { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }
@media (prefers-reduced-motion:reduce) { .ln-line-rule { animation:none; stroke-dashoffset:0; } .ln-stop { animation:none; opacity:1; } }

.ln-mark { display:block; flex:none; }
.family-page .ln-node { gap:10px; }
.family-page .ln-node h3 { margin-top:2px; }

/* The Canvas has two chapters that read as one band: where it sits on a line, then what you can do on it. */
.family-page .section.tint:has(+ .ln-follow) { padding-bottom:clamp(36px,4.4vw,60px); border-bottom:0; }
.family-page .section.tint.ln-follow { padding-top:0; border-top:0; }
.family-page .ln-pic { padding:14px 14px 20px; }
.family-page .ln-pic img { display:block; width:100%; height:auto; aspect-ratio:16/9; object-fit:cover; object-position:left top; margin-bottom:6px; border:1px solid var(--line); border-radius:8px; background:#fff; }
.family-page .ln-pic h3, .family-page .ln-pic p { padding-inline:6px; }

/* What a line is, in four short facts under the map. */
.family-page .ln-facts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px 28px; margin-top:clamp(24px,3vw,36px); }
.family-page .ln-facts li { padding-top:14px; border-top:2px solid var(--ink); }
.family-page .ln-facts h3 { font-size:16px; }
.family-page .ln-facts p { margin-top:6px; color:var(--ink2); font-size:15px; line-height:1.45; }
.family-page .ln-film { max-width:960px; margin:clamp(40px,5.4vw,64px) auto 0; }
.family-page .ln-agents { justify-content:center; margin-top:22px; }
.family-page .product-copy .name .ln-mark { margin-right:-1px; }

/* One balance, three places it is spent. */
.family-page .ln-wallet { display:flex; align-items:center; justify-content:center; gap:0; max-width:760px; margin-inline:auto; }
.family-page .ln-wallet-coin { display:grid; place-items:center; flex:none; width:132px; height:132px; padding:14px; border-radius:50%; background:var(--accent); color:#fff; font-size:17px; font-weight:680; line-height:1.2; text-align:center; box-shadow:0 14px 34px -14px rgba(37,99,235,.7); }
.family-page .ln-wallet ul { position:relative; display:grid; gap:12px; flex:1; min-width:0; margin-left:44px; }
.family-page .ln-wallet ul::before { content:""; position:absolute; left:-44px; top:50%; width:22px; border-top:2px solid var(--line2); }
.family-page .ln-wallet ul::after { content:""; position:absolute; left:-22px; top:28px; bottom:28px; border-left:2px solid var(--line2); }
.family-page .ln-wallet li { position:relative; display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:2px 12px; padding:13px 16px; border:1px solid var(--line); border-radius:12px; background:var(--paper); }
.family-page .ln-wallet li::before { content:""; position:absolute; left:-23px; top:50%; width:22px; border-top:2px solid var(--line2); }
.family-page .ln-wallet li .ln-mark { grid-row:span 2; }
.family-page .ln-wallet li strong { font-size:16px; font-weight:650; }
.family-page .ln-wallet li span { color:var(--ink2); font-size:14.500px; }
.family-page .ln-plan-actions { justify-content:center; margin-top:clamp(26px,3vw,36px); }

@media (max-width:900px) {
  .family-page .ln-facts { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:820px) {
  /* The line is wider than a phone: it slides, and fades out where there is more of it. */
  .family-page .ln-line-wrap { margin-inline:-16px; padding-left:16px; -webkit-mask-image:linear-gradient(90deg,#000 80%,transparent); mask-image:linear-gradient(90deg,#000 80%,transparent); }
  .ln-line { width:780px; margin-right:72px; }
}
@media (max-width:640px) {
  .family-page .ln-facts { grid-template-columns:minmax(0,1fr); }
  .family-page .ln-wallet { flex-direction:column; }
  .family-page .ln-wallet-coin { width:112px; height:112px; font-size:16px; }
  .family-page .ln-wallet ul { width:100%; margin:26px 0 0; }
  .family-page .ln-wallet ul::before { left:50%; top:-26px; width:0; height:26px; border-top:0; border-left:2px solid var(--line2); }
  .family-page .ln-wallet ul::after, .family-page .ln-wallet li::before { display:none; }
}
