/* Pennylume site. One system, four themes: studio (default), strides, dues, kyulift (set with data-app).
   Direction: dark canvas, hairline borders, white pill CTA, tinted app tiles, giant footer wordmark.
   Motion: one ease, 240 / 420 / 900ms. Everything is CSS; no inline styles (CSP). */
@font-face { font-family: "Unbounded"; font-weight: 800; font-display: swap; src: url("fonts/unbounded_800.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 400; font-display: swap; src: url("fonts/outfit_400.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 600; font-display: swap; src: url("fonts/outfit_600.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 700; font-display: swap; src: url("fonts/outfit_700.woff2") format("woff2"); }

:root, [data-app="studio"] {
  --bg: #0E0B1A; --a1: #FFB547; --a2: #FF4F7B; --second: #8B6CFF;
  --hi: #F7F5FF; --lo: #C9C3E2;
}
[data-app="strides"] { --bg: #0D0A1F; --a1: #FF8A3D; --a2: #FF4F7B; --second: #3DDC97; --hi: #F7F5FF; --lo: #C4BDE4; }
[data-app="kyulift"] { --bg: #0B0B12; --a1: #8B5CFF; --a2: #FF4FA3; --second: #B8F53A; --hi: #F6F4FF; --lo: #C3BEDD; }
[data-app="dues"] { --bg: #0E0B08; --a1: #F6BD4A; --a2: #F08A3C; --second: #6FD3A4; --hi: #F8F1E4; --lo: #CDC0AC; }
:root {
  --ink: #150F2E;
  --line: rgba(255, 255, 255, .11);
  --line-hi: rgba(255, 255, 255, .24);
  --radius: 22px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --t-state: 240ms; --t-move: 420ms; --t-scene: 900ms;
  color-scheme: dark;
}
[data-app] { --surface: color-mix(in srgb, var(--bg) 88%, #fff); --glass: var(--surface); color: var(--hi); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--hi); overflow-x: hidden;
  font: 400 18px/1.65 "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--a1); text-underline-offset: 3px; }
a:hover { color: var(--hi); }
:focus-visible { outline: 3px solid var(--a1); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { margin: 0; line-height: 1.1; text-wrap: balance; }
h1 { font-family: "Unbounded", system-ui, sans-serif; font-weight: 800; letter-spacing: -.035em; font-size: clamp(36px, 7.6vw, 76px); }
h2 { font-family: "Outfit", system-ui, sans-serif; font-weight: 700; letter-spacing: -.03em; font-size: clamp(30px, 5vw, 52px); margin: 14px 0 28px; }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 14px; }
.wrap { width: 100%; max-width: 1152px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 600px) { .wrap { padding: 0 24px; } }
.narrow { max-width: 780px; }
.center { text-align: center; }
.center .cta { justify-content: center; }
.muted, .note { color: var(--lo); }
.note { font-size: 15px; margin-top: 16px; }
.lead { color: var(--lo); font-size: clamp(18px, 2.2vw, 22px); max-width: 34em; text-wrap: pretty; }
.eyebrow { display: inline-block; color: var(--hi); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  margin: 0; padding: 6px 14px; border: 1px solid var(--line-hi); border-radius: 999px; }
.grad { background: linear-gradient(90deg, var(--a1), var(--a2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; background: var(--hi); color: var(--ink); padding: 10px 16px; border-radius: 12px; font-weight: 700; }
.skip:focus { top: 12px; }

/* Backdrop: one still glow behind the top of the page (was an animated mesh) */
.mesh { position: absolute; inset: 0 0 auto 0; height: 720px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(50% 60% at 50% 0%, color-mix(in srgb, var(--a2) 26%, transparent), transparent 72%),
    radial-gradient(34% 40% at 82% 18%, color-mix(in srgb, var(--second) 20%, transparent), transparent 72%),
    radial-gradient(34% 40% at 14% 24%, color-mix(in srgb, var(--a1) 16%, transparent), transparent 72%); }

/* Nav: floating pill */
.top { position: sticky; top: 12px; z-index: 10; margin-top: 12px; }
.top nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 72%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--hi); text-decoration: none;
  font-family: "Unbounded", sans-serif; font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.brand img { border-radius: 10px; }
.links { display: flex; gap: 4px; }
.links a { color: var(--hi); text-decoration: none; font-weight: 600; font-size: 15.5px; padding: 9px 16px; border-radius: 999px; transition: background var(--t-state) var(--ease); }
.links a:hover { background: rgba(255, 255, 255, .09); color: var(--hi); }
@media (max-width: 400px) { .brand { font-size: 15px; gap: 8px; } .brand img { width: 30px; height: 30px; } .links a { font-size: 15px; padding: 9px 12px; } }

/* Buttons: white pill with an accent underglow (CTA-only role) */
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 28px; border-radius: 999px;
  background: var(--hi); color: var(--ink); font-weight: 700; text-decoration: none;
  box-shadow: inset 0 -4px 0 color-mix(in srgb, var(--a2) 70%, transparent), 0 16px 36px -18px var(--a2);
  transition: transform var(--t-state) var(--ease), box-shadow var(--t-state) var(--ease); }
.btn:hover { color: var(--ink); transform: translateY(-2px); box-shadow: inset 0 -4px 0 var(--a1), 0 20px 40px -16px var(--a2); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: rgba(255, 255, 255, .06); color: var(--hi); border: 1px solid var(--line-hi); box-shadow: none; }
.btn.ghost:hover { background: rgba(255, 255, 255, .12); color: var(--hi); box-shadow: none; }
.btn.soon { background: transparent; color: var(--hi); border: 1px dashed var(--lo); box-shadow: none; cursor: default; }
.btn.soon:hover { transform: none; }

/* Sections */
main > .wrap + .wrap { margin-top: clamp(80px, 11vw, 140px); }
.sg > .wrap { padding-top: 56px; padding-bottom: 56px; }
.hero { display: grid; gap: 28px; align-items: center; }
.hero h1 { margin: 18px 0 20px; }
.hero-img { width: min(72vw, 340px); justify-self: center; filter: drop-shadow(0 36px 70px color-mix(in srgb, var(--a1) 38%, transparent)); }
.page-head h1 { margin-bottom: 16px; }
.app-eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.app-eyebrow img { border-radius: 9px; }
.split { display: grid; gap: 40px; align-items: center; }
main > .hero:first-child { margin-top: clamp(40px, 7vw, 88px); }
@media (min-width: 880px) {
  .hero { grid-template-columns: 1.15fr .85fr; }
  .hero-img { width: 100%; max-width: 460px; }
  .split { grid-template-columns: 1.1fr .9fr; gap: 64px; }
}
/* Home: centered stack, mascot above the headline */
.hero.stack { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.hero.stack > div { display: flex; flex-direction: column; align-items: center; }
.hero.stack .lead { margin-inline: auto; }
.hero.stack .cta { justify-content: center; }
.hero.stack .hero-img { order: -1; width: min(56vw, 300px); }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card p { color: var(--lo); margin: 8px 0 0; }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
@media (min-width: 600px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .features { grid-template-columns: repeat(3, 1fr); } }
.num { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; margin-bottom: 16px;
  background: color-mix(in srgb, var(--a1) 18%, transparent); border: 1px solid color-mix(in srgb, var(--a1) 45%, transparent); color: var(--a1); font-weight: 700; }

/* Bright tiles: dark ink on light colour only */
.tiles { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
@media (min-width: 520px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.bright { border-radius: var(--radius); padding: 24px 22px 26px; color: var(--ink); min-height: 168px; }
.bright h3 { font-family: "Unbounded", sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -.03em; margin-bottom: 8px; }
.bright p { margin: 0; font-size: 16.5px; }
.bright a { color: var(--ink); font-weight: 700; }
.sun { background: #FFD66B; } .mint { background: #86EABD; } .lilac { background: #CDBDFF; } .peach { background: #FFBC9E; } .sky { background: #95D6FF; }

/* App cards: tinted tile, mascot bleeding off the corner. One --lift drives lift, shadow, border, mascot and arrow. */
.app-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.app-card { --lift: 0; position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 340px; padding: 28px; border-radius: 28px;
  text-decoration: none; color: var(--hi); border: 1px solid color-mix(in srgb, var(--a1) calc(18% + var(--lift) * 40%), transparent); overflow: hidden;
  background: radial-gradient(120% 80% at 100% 100%, color-mix(in srgb, var(--a2) 30%, transparent), transparent 62%),
    radial-gradient(90% 60% at 0% 0%, color-mix(in srgb, var(--a1) 14%, transparent), transparent 70%), var(--surface);
  transform: translateY(calc(var(--lift) * -6px));
  box-shadow: 0 calc(var(--lift) * 26px) calc(var(--lift) * 44px) calc(var(--lift) * -22px) color-mix(in srgb, var(--a2) 70%, transparent);
  transition: transform var(--t-move) var(--ease), box-shadow var(--t-move) var(--ease), border-color var(--t-move) var(--ease); }
a.app-card:hover, a.app-card:focus-visible { --lift: 1; color: var(--hi); }
.app-card .app-icon { border-radius: 18px; margin-bottom: 12px; }
.app-card h3 { font-family: "Unbounded", sans-serif; font-weight: 800; font-size: 28px; letter-spacing: -.035em; }
.app-card p { color: var(--lo); margin: 0; max-width: 56%; }
.app-mascot { position: absolute; right: -14px; bottom: -18px; width: 46%; max-width: 200px; pointer-events: none;
  transform: translate(calc(var(--lift) * -6px), calc(var(--lift) * -10px)) rotate(calc(var(--lift) * -3deg));
  transition: transform var(--t-move) var(--ease); filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); }
.app-cat { color: var(--a1); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.app-go { margin-top: auto; padding-top: 16px; font-weight: 700; color: var(--hi); position: relative; z-index: 1;
  transform: translateX(calc(var(--lift) * 4px)); transition: transform var(--t-move) var(--ease); }
.app-card.next { border-style: dashed; border-color: var(--line-hi); background: transparent; box-shadow: none; transform: none; }

/* Privacy receipt: paper, monospace, dotted leaders, torn edges */
.receipt { margin: 0 auto; width: 100%; max-width: 420px; padding: 34px 24px 30px; color: #1D1830; background-color: #F7F1E3;
  font: 500 14.5px/1.5 ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;
  background-image: repeating-linear-gradient(0deg, rgba(40, 30, 10, .03) 0 1px, transparent 1px 3px);
  -webkit-mask: radial-gradient(circle at 8px 0, #0000 6px, #000 6.5px) top / 16px 51% repeat-x, radial-gradient(circle at 8px 100%, #0000 6px, #000 6.5px) bottom / 16px 51% repeat-x;
          mask: radial-gradient(circle at 8px 0, #0000 6px, #000 6.5px) top / 16px 51% repeat-x, radial-gradient(circle at 8px 100%, #0000 6px, #000 6.5px) bottom / 16px 51% repeat-x;
  transform: rotate(-1.2deg); }
.r-head { text-align: center; font-weight: 800; letter-spacing: .08em; margin-bottom: 18px; }
.r-head span { font-weight: 500; letter-spacing: .2em; font-size: 12.5px; }
.receipt dl { margin: 0; padding: 14px 0; border-top: 2px dashed #1D183080; border-bottom: 2px dashed #1D183080; }
.receipt dl div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; padding: 4px 0; }
.receipt dt { flex: 1 0 auto; display: flex; align-items: baseline; }
.receipt dt::after { content: ""; flex: 1; min-width: 16px; margin-left: 8px; border-bottom: 2px dotted #1D183070; }
.receipt dd { margin: 0 0 0 auto; text-align: right; font-weight: 700; }
.r-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 17px; margin: 14px 0; }
.r-foot { text-align: center; font-size: 12.5px; margin: 0; }

/* Trust bar */
.trust { list-style: none; padding: 0; margin: 28px 0 10px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 520px) { .trust { grid-template-columns: repeat(4, 1fr); } }
.trust li { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; color: var(--lo); font-size: 15px; }
.trust strong { display: block; font-family: "Unbounded", sans-serif; font-size: 24px; letter-spacing: -.03em; color: var(--hi); font-variant-numeric: tabular-nums; }
.trust-note { color: var(--lo); font-size: 14.5px; }

/* Crew */
.crew { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.crew li { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px 24px;
  transition: transform var(--t-move) var(--ease), border-color var(--t-move) var(--ease); }
.crew li:hover { transform: translateY(-4px); border-color: var(--line-hi); }
.crew-img { width: 140px; transition: transform var(--t-move) var(--ease); }
.crew li:hover .crew-img { transform: translateY(-4px) rotate(-3deg); }
.crew h3 { font-family: "Unbounded", sans-serif; font-weight: 800; font-size: 18px; letter-spacing: -.03em; margin: 6px 0; }
.crew p { color: var(--lo); font-size: 15.5px; margin: 0; }

/* Screenshots: CSS scroll-snap, no JS */
.shots { list-style: none; margin: 0; padding: 4px 0 20px; display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; }
.phone { flex: 0 0 min(64vw, 250px); scroll-snap-align: center; border-radius: 34px; padding: 8px; background: #05040a; border: 1px solid var(--line-hi); }
.phone img { display: block; border-radius: 27px; }

/* FAQ */
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 600; font-size: 19px; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 28px; color: var(--a1); transition: transform var(--t-state) var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--lo); margin: 0 0 20px; }

/* CTA band */
.band { display: grid; gap: 12px; justify-items: center; text-align: center; border-radius: 36px; padding: 36px 22px 44px; border: 1px solid var(--line-hi); overflow: hidden;
  background: radial-gradient(90% 130% at 50% 0%, color-mix(in srgb, var(--a1) 24%, transparent), transparent 70%), var(--surface); }
.band h2 { margin: 0 0 8px; }
.band p { color: var(--lo); }
.band .cta { justify-content: center; }
.band-img { width: 160px; }
@media (min-width: 760px) { .band { grid-template-columns: auto 1fr; text-align: left; justify-items: start; padding: 44px 56px; } .band .cta { justify-content: flex-start; } .band-img { width: 200px; } }

/* Long-form text (legal, about) */
.prose h2 { font-size: clamp(22px, 3.2vw, 28px); margin: 44px 0 12px; }
.prose p, .prose li { color: var(--lo); }
.prose strong, .prose em { color: var(--hi); }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .9em; background: var(--surface); border: 1px solid var(--line); padding: 1px 7px; border-radius: 7px; color: var(--hi); overflow-wrap: anywhere; }

/* Ledger */
.table-wrap { overflow-x: auto; }
.ledger { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ledger caption { text-align: left; color: var(--lo); padding-bottom: 8px; }
.ledger th, .ledger td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.ledger .num { text-align: right; }
.ledger tfoot { font-weight: 700; }

/* Footer: small link columns, then the wordmark cropped by the page edge */
.foot { margin-top: clamp(72px, 10vw, 128px); border-top: 1px solid var(--line); padding: 48px 0 0; background: color-mix(in srgb, var(--bg) 82%, #000); overflow: hidden; }
.foot .cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.foot h2 { font-family: "Outfit", sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--lo); margin: 0 0 10px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li a { display: inline-block; color: var(--hi); text-decoration: none; padding: 5px 0; font-size: 16px; }
.foot li a:hover { color: var(--a1); }
.foot-brand p { color: var(--lo); margin-top: 12px; }
.fine { color: var(--lo); font-size: 14px; margin-top: 36px; }
.wordmark { margin: 8px 0 0; text-align: center; white-space: nowrap; user-select: none; pointer-events: none;
  font-family: "Unbounded", sans-serif; font-weight: 800; letter-spacing: -.06em; line-height: .8; font-size: clamp(40px, 11.6vw, 176px);
  height: .66em; overflow: hidden; color: transparent;
  background: linear-gradient(180deg, color-mix(in srgb, var(--hi) 30%, transparent), color-mix(in srgb, var(--hi) 2%, transparent) 85%); -webkit-background-clip: text; background-clip: text; }

/* Styleguide */
.sg { background: var(--bg); border-bottom: 1px solid var(--line); }
.sg > .wrap > * + * { margin-top: 24px; }

/* Motion. Entrance: scripted reveal; scroll response: mascot drifts as the hero leaves (progressive, CSS only). */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; translate: 0 22px; transition: opacity var(--t-scene) var(--ease), translate var(--t-scene) var(--ease); }
  .reveal.in { opacity: 1; translate: 0 0; }
  .app-grid > .reveal:nth-child(2), .tiles > .reveal:nth-child(2), .crew > .reveal:nth-child(2) { transition-delay: 70ms; }
  .app-grid > .reveal:nth-child(3), .tiles > .reveal:nth-child(3), .crew > .reveal:nth-child(3) { transition-delay: 140ms; }
  .app-grid > .reveal:nth-child(4), .tiles > .reveal:nth-child(4), .crew > .reveal:nth-child(4) { transition-delay: 210ms; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-img { animation: arrive var(--t-scene) var(--ease) both; }
  @keyframes arrive { from { opacity: 0; transform: translateY(24px) scale(.94); } }
  @supports (animation-timeline: view()) {
    .hero-img { animation: arrive var(--t-scene) var(--ease) both, leave linear both; animation-timeline: auto, view(); animation-range: normal, exit 0% exit 90%; }
    @keyframes leave { to { transform: translateY(-48px) scale(.92) rotate(-3deg); opacity: .25; } }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .app-card, .app-mascot, .app-go, .crew li, .crew-img, .links a { transition: none; }
}
