/* Link$terr site — redesign 2026-12-01 (owner: mixed, base style = Bounty Board concept).
   Dark is the brand; light mirrors it with darker greens for contrast. Used by website/templates/website/index.html
   and its partials (hero_bounty, home_board, home_visitor, home_calculator, home_receipts). */

/* ── type: Inter for reading, Syne for display (every page except the dashboard, redesign 2026-12-01) ── */
html.ls-page { --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; }   /* pages that read var(--font-sans) */
.ls-page body, body.ls-page { font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; }
.light .ls-auth-word, .light .ls-brand-word { filter: brightness(.28) saturate(1.8); }
.ls-page h1, .ls-page h2, .ls-page h3, .ls-page h4, .ls-page .btn-primary, .ls-display { font-family: "Syne", "Inter", sans-serif; }

.ls-eyebrow { margin: 0 0 12px; font-family: "Space Mono", monospace; font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #00ff87; }
.light .ls-eyebrow { color: #007a3f; }
.ls-h2 { margin: 0; font-family: "Syne", sans-serif; font-weight: 800; font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; }
.dark .ls-h2 { color: #fff; }
.light .ls-h2 { color: #0d1117; }

/* ── hero ── */
.ls-hero { position: relative; overflow: hidden; }
.ls-hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.dark .ls-hero .hero-video-overlay { background: linear-gradient(90deg, #080a0f 0%, rgba(8,10,15,.9) 38%, rgba(8,10,15,.55) 70%, rgba(8,10,15,.78) 100%), linear-gradient(0deg, #080a0f 0%, transparent 35%); }
.light .ls-hero .hero-video-overlay { background: linear-gradient(90deg, #f4f6fa 0%, rgba(244,246,250,.93) 40%, rgba(244,246,250,.72) 100%); }
.dark .ls-hero .hero-video { opacity: .42; }
.ls-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
@media (min-width: 1024px) { .ls-hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; } }
.ls-hero-copy { text-align: left; }
.ls-h1 { font-family: "Syne", sans-serif; font-weight: 800; font-size: clamp(2.7rem, 6.4vw, 5.2rem); line-height: .98; letter-spacing: -.045em; text-wrap: balance; }

/* ── cards ── */
.ls-card { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: 20px; border: 1px solid; }
.dark .ls-card { background: #0d1018; border-color: rgba(255,255,255,.08); color: #e8edf5; }
.light .ls-card { background: #fff; border-color: rgba(0,0,0,.08); color: #0d1117; box-shadow: 0 10px 30px -18px rgba(0,0,0,.25); }
.dark .ls-card-glass { background: rgba(12,15,22,.84); border-color: rgba(0,255,135,.32); backdrop-filter: blur(6px); }
.light .ls-card-glass { border-color: rgba(0,160,80,.3); }
.dark .ls-card-lead { border-color: rgba(0,255,135,.35); }
.light .ls-card-lead { border-color: rgba(0,160,80,.35); }
.ls-hud::before, .ls-hud::after { content: ""; position: absolute; width: 22px; height: 22px; pointer-events: none; }
.ls-hud::before { left: -1px; top: -1px; border-left: 3px solid #00ff87; border-top: 3px solid #00ff87; border-radius: 20px 0 0 0; }
.ls-hud::after { right: -1px; bottom: -1px; border-right: 3px solid #00ff87; border-bottom: 3px solid #00ff87; border-radius: 0 0 20px 0; }
.light .ls-hud::before, .light .ls-hud::after { border-color: #009f52; }
.ls-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: "Space Mono", monospace; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: #8a94a8; }
.light .ls-card-top { color: #5b6577; }
.ls-open { display: inline-flex; align-items: center; gap: 7px; color: #00ff87; }
.light .ls-open { color: #007a3f; }
.ls-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #00ff87; box-shadow: 0 0 10px rgba(0,255,135,.9); animation: lsPulse 2s ease-in-out infinite; }
.light .ls-live-dot { background: #009f52; box-shadow: none; }
@keyframes lsPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.75); } }
.ls-card-title { margin: 0; font-family: "Syne", sans-serif; font-weight: 700; font-size: 1.65rem; letter-spacing: -.02em; line-height: 1.1; }
.ls-rate { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.ls-rate-num { font-family: "Syne", sans-serif; font-weight: 800; font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1; letter-spacing: -.04em; color: #00ff87; font-variant-numeric: tabular-nums; }
.light .ls-rate-num { color: #007a3f; }
.ls-rate-plain { font-size: 2.6rem; }
.dark .ls-rate-plain { color: #e8edf5; }
.light .ls-rate-plain { color: #0d1117; }
.ls-rate-unit { font-size: .9rem; color: #b4bccb; }
.light .ls-rate-unit { color: #3d4656; }
.ls-flags { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.ls-flags li { display: flex; flex-direction: column; align-items: center; gap: 3px; font-family: "Space Mono", monospace; font-size: .6rem; color: #8a94a8; }
.ls-flags img, .ls-flag-stack img { width: 100%; max-width: 38px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; box-shadow: 0 0 0 1px rgba(255,255,255,.14); }
.ls-flag-stack { display: inline-flex; }
.ls-flag-stack img { width: 36px; margin-right: -10px; border: 2px solid #0d1018; box-shadow: none; }
.light .ls-flag-stack img { border-color: #fff; }
.ls-globe { color: #b4bccb; }
.ls-card-note { margin: 0; font-size: .92rem; line-height: 1.6; color: #b4bccb; }
.light .ls-card-note { color: #3d4656; }
.ls-bar { height: 8px; border-radius: 999px; overflow: hidden; }
.dark .ls-bar { background: #1b2130; }
.light .ls-bar { background: #e3e8ef; }
.ls-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #00cc6a, #00ff87); }
.ls-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; font-family: "Space Mono", monospace; font-size: .72rem; color: #8a94a8; font-variant-numeric: tabular-nums; }
.light .ls-meta { color: #5b6577; }
.ls-card-cta { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 13px 20px; border-radius: 12px; font-family: "Syne", sans-serif; font-weight: 700; font-size: .9rem; text-decoration: none; background: #00ff87; color: #04110a; box-shadow: 0 0 28px rgba(0,255,135,.3); transition: box-shadow .2s, transform .2s; }
.ls-card-cta:hover { box-shadow: 0 0 40px rgba(0,255,135,.5); transform: translateY(-1px); }
.light .ls-card-cta { background: #009f52; color: #fff; box-shadow: none; }
.ls-mini-receipt { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; padding: 14px 16px; border-radius: 14px; font-family: "Space Mono", monospace; font-size: .78rem; }
.dark .ls-mini-receipt { background: #080a0f; border: 1px solid rgba(255,255,255,.08); }
.light .ls-mini-receipt { background: #f4f6fa; border: 1px solid rgba(0,0,0,.08); }
.ls-mini-receipt strong { font-size: 1rem; }
.ls-mini-receipt a { color: #00ff87; }
.light .ls-mini-receipt a { color: #007a3f; }
.ls-chip-lg { display: inline-block; padding: 4px 10px; border-radius: 999px; font-family: "Space Mono", monospace; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: none; background: rgba(0,255,135,.12); color: #00ff87; }
.light .ls-chip-lg { background: rgba(0,160,80,.1); color: #007a3f; }
.ls-chip-soft { display: inline-block; padding: 4px 10px; border-radius: 999px; font-family: "Space Mono", monospace; font-size: .68rem; text-transform: none; letter-spacing: .04em; }
.dark .ls-chip-soft { background: rgba(255,255,255,.07); color: #c3cad6; }
.light .ls-chip-soft { background: rgba(0,0,0,.05); color: #3d4656; }

/* ── visitor flow phones ── */
.ls-phone-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.ls-phone { width: 210px; height: 400px; box-sizing: border-box; border-radius: 34px; border: 6px solid; padding: 18px 14px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.dark .ls-phone { background: #0b0e14; border-color: #1b2130; box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.light .ls-phone { background: #fff; border-color: #dfe5ee; box-shadow: 0 24px 50px -24px rgba(0,0,0,.35); }
.ls-phone-notch { width: 60px; height: 5px; border-radius: 3px; background: currentColor; opacity: .18; margin-bottom: 8px; }
.ls-ring { width: 104px; height: 104px; border-radius: 50%; border: 6px solid rgba(127,127,127,.25); border-top-color: #00ff87; border-right-color: #00ff87; display: flex; align-items: center; justify-content: center; font-family: "Syne", sans-serif; font-weight: 800; font-size: 32px; }
.ls-phone-small { font-size: 11px; color: #8a94a8; text-align: center; }
.ls-ad { width: 100%; flex: 1; border-radius: 12px; border: 1px dashed rgba(127,127,127,.4); display: flex; align-items: center; justify-content: center; font-family: "Space Mono", monospace; font-size: 10px; color: #8a94a8; }
.ls-phone-label { margin-top: 14px; font-family: "Space Mono", monospace; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #8a94a8; }
.ls-phone-media { width: 100%; height: 140px; border-radius: 14px; background: linear-gradient(135deg, rgba(0,255,135,.18), rgba(59,130,246,.12)); }
.ls-phone-line { height: 10px; border-radius: 5px; background: rgba(127,127,127,.22); align-self: flex-start; }
.ls-phone-btn { margin-top: auto; width: 100%; padding: 11px; border-radius: 12px; text-align: center; font-weight: 700; font-size: 13px; background: #00ff87; color: #04110a; }
.light .ls-phone-btn { background: #009f52; color: #fff; }
.ls-phone-heading { margin-top: 14px; font-family: "Syne", sans-serif; font-weight: 700; font-size: 15px; text-align: center; }
.ls-tiles { display: grid; grid-template-columns: repeat(3, 50px); gap: 8px; }
.ls-tiles i { height: 50px; border-radius: 10px; background: rgba(127,127,127,.2); }
.ls-tiles i.on { background: #00ff87; box-shadow: 0 0 22px rgba(0,255,135,.45); }
.light .ls-tiles i.on { background: #009f52; box-shadow: none; }
.ls-check { margin-top: 70px; width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid #00ff87; color: #00ff87; background: rgba(0,255,135,.1); }
.light .ls-check { border-color: #009f52; color: #009f52; }
.ls-mono { font-family: "Space Mono", monospace; }
.ls-phone-fig figcaption { text-align: center; line-height: 1.45; }
.ls-phone-fig figcaption strong { display: block; font-family: "Syne", sans-serif; font-size: 1.05rem; margin-bottom: 3px; }
.ls-phone-fig figcaption span { font-size: .88rem; color: #8a94a8; }
.light .ls-phone-fig figcaption span { color: #5b6577; }

/* ── calculator ── */
.ls-formula { display: inline-block; padding: 18px 22px; border-radius: 16px; font-family: "Space Mono", monospace; font-size: clamp(.86rem, 1.5vw, 1.05rem); }
.dark .ls-formula { background: #0b0e14; border: 1px solid rgba(255,255,255,.08); }
.light .ls-formula { background: #fff; border: 1px solid rgba(0,0,0,.08); }
.ls-calc input[type=range] { accent-color: #00ff87; }
.light .ls-calc input[type=range] { accent-color: #009f52; }
.ls-calc-prog { font: inherit; text-align: left; padding: 11px 13px; border-radius: 12px; cursor: pointer; border: 1px solid; display: flex; flex-direction: column; gap: 3px; }
.dark .ls-calc-prog { background: #121722; border-color: rgba(255,255,255,.08); color: #e8edf5; }
.light .ls-calc-prog { background: #f4f6fa; border-color: rgba(0,0,0,.08); color: #0d1117; }
.ls-calc-prog[aria-pressed="true"] { border-color: #00ff87; background: rgba(0,255,135,.1); }
.light .ls-calc-prog[aria-pressed="true"] { border-color: #009f52; background: rgba(0,160,80,.08); }
.ls-calc-prog-name { font-size: .85rem; font-weight: 600; }
.ls-calc-prog-rate { font-family: "Space Mono", monospace; font-size: .74rem; color: #8a94a8; }
.ls-calc-out { padding: 20px; border-radius: 16px; }
.dark .ls-calc-out { background: #080a0f; border: 1px solid rgba(0,255,135,.3); }
.light .ls-calc-out { background: #f4f6fa; border: 1px solid rgba(0,160,80,.3); }
.ls-calc-total { margin: 6px 0 14px; font-family: "Syne", sans-serif; font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; letter-spacing: -.03em; color: #00ff87; font-variant-numeric: tabular-nums; }
.light .ls-calc-total { color: #007a3f; }
.ls-calc-rows { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; font-size: .9rem; }
.ls-calc-rows dt { color: #b4bccb; }
.light .ls-calc-rows dt { color: #3d4656; }
.ls-calc-rows dd { margin: 0; font-family: "Space Mono", monospace; font-variant-numeric: tabular-nums; text-align: right; }

/* ── receipts ledger ── */
.ls-ledger { overflow-x: auto; border-radius: 18px; border: 1px solid; }
.dark .ls-ledger { border-color: rgba(255,255,255,.08); background: #0b0e14; }
.light .ls-ledger { border-color: rgba(0,0,0,.08); background: #fff; }
.ls-ledger table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .9rem; }
.ls-ledger th { padding: 14px 20px; text-align: left; font-weight: 500; font-size: .8rem; color: #8a94a8; }
.dark .ls-ledger th { background: #0f131c; }
.light .ls-ledger th { background: #f4f6fa; color: #5b6577; }
.ls-ledger td { padding: 16px 20px; border-top: 1px solid rgba(127,127,127,.15); }
.ls-ledger .text-right { text-align: right; }

a.ls-card-cta:focus-visible, .ls-calc-prog:focus-visible, .ls-calc input:focus-visible { outline: 2px solid #00ff87; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .ls-live-dot { animation: none; } }
