
/* Layout: a dark gallery; each plugin page is a box printed in its own colour. */
:root {
  --bg: #0C0D0F;  --ink: #ECEAE6;  --dim: #9EA1A8;  --faint: #64676E;
  --rule: rgba(236, 234, 230, .09);  --icon: #E4E2DD;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans);
       font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent, var(--ink)); outline-offset: 4px; border-radius: 6px; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* Top bar: pinned to the top on every page */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(12, 13, 15, .82); backdrop-filter: saturate(140%) blur(14px);
          -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--rule); }
.bar { display: flex; align-items: center; gap: 16px; padding-block: 14px; font-size: 13px; color: var(--dim); position: relative; }
.bar .mark { margin-right: auto; }
.subnav { display: flex; justify-content: space-between; gap: 16px; padding-block: 14px; font-size: 13px; color: var(--dim); }
.subnav a:hover { color: var(--ink); }
.bar .k-account { margin-left: 0; }
.k-menu-btn { display: none; background: none; border: 1px solid var(--rule); border-radius: 10px; color: var(--ink); padding: 6px 8px; cursor: pointer; }
:target, [id] { scroll-margin-top: 84px; }
.mark { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; letter-spacing: .14em; font-size: 12px; }
.mark svg { width: 22px; height: 22px; }
.bar nav.site { display: flex; gap: 22px; }
.bar nav a:hover { color: var(--ink); }

/* The box */
.box { position: relative; overflow: hidden; border-radius: 28px; background: var(--tint);
       border: 1px solid var(--edge); isolation: isolate; }
.box::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 70%; aspect-ratio: 1;
       background: radial-gradient(closest-side, var(--glow), transparent); z-index: -1; }
.box::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
       background-image: linear-gradient(var(--grain) 1px, transparent 1px);
       background-size: 100% 6px; mask-image: linear-gradient(to bottom, #000, transparent 60%); }
.hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px);
        padding: clamp(28px, 5.5vw, 72px); align-items: end; }
.hero .icon { width: clamp(84px, 9vw, 120px); height: auto; margin-bottom: clamp(28px, 4vw, 56px); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
h1 { margin: 0; font-weight: 600; letter-spacing: -.045em; line-height: .92; font-size: clamp(64px, 11vw, 148px); text-wrap: balance; }
h1 .kiln { color: var(--icon); opacity: .45; font-weight: 500; }
.tagline { margin: 22px 0 0; font-size: clamp(22px, 2.6vw, 30px); font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.intro { margin: 16px 0 0; color: var(--dim); max-width: 52ch; font-size: 17px; }

/* The label on the side of the box */
.label { border: 1px solid var(--edge); border-radius: 16px; padding: 22px 22px 18px; background: rgba(12, 13, 15, .28);
         backdrop-filter: blur(6px); font-size: 13px; font-variant-numeric: tabular-nums; }
.label h2 { margin: 0 0 12px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.label dl { margin: 0; display: grid; grid-template-columns: auto 1fr; }
.label dt, .label dd { margin: 0; padding: 9px 0; border-top: 1px solid var(--edge); }
.label dt { color: var(--dim); padding-right: 18px; }
.label dd { text-align: right; }
.chip { display: inline-flex; align-items: center; gap: 8px; }
.chip i { width: 12px; height: 12px; border-radius: 3px; background: var(--accent); display: inline-block; }
.label .origin { margin: 14px 0 0; color: var(--dim); font-size: 12.5px; line-height: 1.5; }

/* The window */
.shot { margin: clamp(48px, 7vw, 96px) 0 0; }
.shot img { width: 100%; border-radius: 14px; border: 1px solid var(--rule);
            box-shadow: 0 50px 120px -60px var(--accent), 0 30px 60px -30px rgba(0,0,0,.8); }
.shot figcaption { margin-top: 14px; font-size: 12.5px; color: var(--faint); }
.showcase figure { margin: 0; }
.view-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--edge); background: var(--tint); }
.view-tabs button { font: 600 13px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); background: none; border: 0;
                    border-radius: 999px; padding: 10px 22px; cursor: pointer; }
.view-tabs button.on { color: #141414; background: var(--accent); }
.view-tabs button[data-glow].glow { animation: kglow 1.1s ease-in-out 2; }
@keyframes kglow { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 35%, transparent), 0 0 28px var(--accent); color: var(--ink); } }
.view-hint { margin: 12px 0 22px; font-size: 14px; color: var(--dim); }

/* Sections */
section.block { padding-block: clamp(56px, 8vw, 104px) 0; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; }
section.block > h2 { margin: 6px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.features > div { padding: 22px 24px 24px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
                  background: color-mix(in srgb, var(--accent) 6%, transparent); }
.features h3 { margin: 0 0 8px; font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
.features h3::before { content: ""; display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-bottom: 16px; }
.features p { margin: 0; color: var(--dim); }
.controls { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.controls div { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-top: 1px solid var(--rule); font-size: 15px; }
.controls dt { font-weight: 500; }
.controls dd { margin: 0; color: var(--dim); text-align: right; }
.block .lede { max-width: 68ch; margin: 0 0 36px; color: var(--dim); font-size: 17px; }
.block .note { max-width: 68ch; margin: 28px 0 0; color: var(--faint); font-size: 14px; }
.shot.inset { margin: 0 0 44px; }
.features.stages { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.features.stages > div { padding: 18px 18px 20px; }
@media (max-width: 1000px) { .features.stages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .features.stages { grid-template-columns: minmax(0, 1fr); } }

/* Next */
.next { margin-block: clamp(72px, 10vw, 128px) 0; display: flex; align-items: center; justify-content: space-between; gap: 24px;
        padding: 30px clamp(24px, 4vw, 44px); border-radius: 22px; background: var(--ntint); border: 1px solid var(--nedge); transition: transform .3s ease; }
.next:hover { transform: translateY(-3px); }
.next small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.next strong { font-size: clamp(26px, 3.4vw, 40px); font-weight: 600; letter-spacing: -.03em; }
.next svg { width: 64px; height: 64px; flex: none; }
.site-foot { margin-top: clamp(80px, 10vw, 140px); border-top: 1px solid var(--rule); padding-block: 56px 40px; font-size: 14px; color: var(--dim); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot-grid nav { display: grid; gap: 10px; align-content: start; }
.foot-grid h3 { margin: 0 0 6px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.foot-grid a:hover, .foot-link:hover { color: var(--ink); }
.foot-link { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.foot-rally { margin: 16px 0 18px; color: var(--ink); font-size: 26px; font-weight: 600; letter-spacing: -.03em; }
.k-sub { display: grid; gap: 10px; max-width: 380px; } .k-sub label { font-size: 13.5px; } .k-sub input { flex: 1; }
.foot-base { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--faint); }
.socials { display: flex; gap: 14px; } .socials a, .socials span { color: var(--dim); display: inline-flex; }
.socials a:hover { color: var(--ink); } .socials .off { opacity: .35; cursor: default; }

/* Index: the shelf */
.lead { padding-block: clamp(40px, 7vw, 96px) clamp(40px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 40px; align-items: end; }
.lead h1 { font-size: clamp(64px, 10.5vw, 150px); }
.home-eyebrow { color: #E9A15B; }
.lead p { margin: 0; color: var(--dim); font-size: 17px; }
.lead p strong { color: var(--ink); font-weight: 500; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.filters button { font: 500 13.5px var(--sans); color: var(--dim); background: none; border: 1px solid var(--rule); border-radius: 999px; padding: 8px 15px; cursor: pointer; }
.filters button:hover { color: var(--ink); }
.filters button.on { color: var(--ink); border-color: rgba(236,234,230,.45); background: rgba(255,255,255,.05); }
.group { padding-top: 34px; }
.group-head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
.group-head h2 { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.group-head h2 span { color: var(--faint); margin-right: 10px; }
.group-head p { margin: 0; color: var(--dim); font-size: 14.5px; }
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 16px; }
.pkg { position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 4 / 5; border-radius: 20px; padding: 22px;
       background: var(--tint); border: 1px solid var(--edge); display: grid; grid-template-rows: auto 1fr auto;
       transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .35s, opacity .3s, filter .3s; }
.pkg-text { grid-row: 3; }
.pkg .line { min-height: calc(3 * 1.45em); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wall.filtering .pkg:not(.match) { opacity: .22; filter: saturate(.3); }
.wall.filtering .pkg.match { border-color: var(--accent); }
.pkg::before { content: ""; position: absolute; inset: -30% -30% auto auto; width: 90%; aspect-ratio: 1; z-index: -1;
       background: radial-gradient(closest-side, var(--glow), transparent); opacity: .8; transition: opacity .35s; }
.pkg:hover { transform: translateY(-4px); border-color: var(--accent); }
.pkg:hover::before { opacity: 1.4; }
.pkg svg { width: 64px; height: 64px; }
.pkg .name { font-size: 26px; font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
.pkg .role { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-top: 8px; }
.pkg .line { margin-top: 10px; color: var(--dim); font-size: 13.5px; line-height: 1.45; }
.about { padding-block: clamp(64px, 9vw, 112px) 0; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; }
.about h2 { margin: 6px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.about p { margin: 0 0 16px; max-width: 62ch; color: var(--dim); font-size: 17px; }
.about p strong { color: var(--ink); font-weight: 500; }

/* Home: mission, story, how it's built */
.home-sec { padding-block: clamp(64px, 9vw, 112px) 0; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; scroll-margin-top: 24px; }
.home-sec > h2 { margin: 6px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.home-sec p.big { margin: 0 0 22px; color: var(--ink); font-size: clamp(30px, 4vw, 48px); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; }
.home-sec p { margin: 0 0 16px; max-width: 64ch; color: var(--dim); font-size: 17px; }
.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; margin-top: 28px; }
.points h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.points p { margin: 0; font-size: 15px; }
.built { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.built div { padding: 22px 22px 20px; border: 1px solid var(--rule); border-radius: 16px; background: rgba(255,255,255,.02); }
.built h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; color: var(--ink); }
.built h3::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #E9A15B; margin-right: 10px; vertical-align: middle; }
.built p { margin: 0; font-size: 14.5px; line-height: 1.55; }
.bar nav.site a { color: var(--dim); }

/* Videos */
.videos { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.videos.single { grid-template-columns: minmax(0, 1fr); }
.vid { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--rule); background: rgba(255,255,255,.025); }
.vid.wide { aspect-ratio: 16 / 9; }
.vid.tall { aspect-ratio: 9 / 16; max-height: 560px; }
.vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid.soon { display: grid; place-items: center; text-align: center; color: var(--faint); font-size: 13px; letter-spacing: .04em; }
.vid.soon b { display: block; color: var(--dim); font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.vid.soon::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 40%, var(--glow, rgba(233,161,91,.18)), transparent); }
.vid.soon span { position: relative; }
.social { display: flex; gap: 18px; }
.social a:hover { color: var(--ink); }

/* Get Kiln, platforms, plugin name line */
.cta { display: flex; align-items: center; gap: 22px; margin-top: 26px; flex-wrap: wrap; }
.k-btn.big { font-size: 16px; padding: 15px 26px; border-radius: 12px; }
.cta-link { color: var(--ink); font-weight: 500; font-size: 15px; } .cta-link:hover { color: #E9A15B; }
.platforms { margin: 0 0 clamp(36px, 5vw, 56px); }
.plat-note { margin: 0 0 14px; color: var(--dim); font-size: 14.5px; }
.plat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.plat { border: 1px solid var(--rule); border-radius: 14px; padding: 16px 18px; background: rgba(255,255,255,.02); }
.plat.on { border-color: rgba(233,161,91,.45); background: rgba(233,161,91,.06); }
.plat-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.plat-top b { font-size: 17px; font-weight: 600; }
.plat-top span { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.plat.on .plat-top span { color: #E9A15B; }
.plat p { margin: 8px 0 0; color: var(--dim); font-size: 13.5px; line-height: 1.5; }
.plat:not(.on) { opacity: .7; }
.name-line { margin: 22px 0 0; max-width: 52ch; color: var(--dim); font-size: 14px; font-style: italic; }
.name-line span { display: block; font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
/* The download, after registering */
.k-dl { display: grid; gap: 16px; }
.k-dl .plat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.k-dl .plat { padding: 12px 14px; cursor: default; } .k-dl .plat p { display: none; }
.k-dl .plat-top { flex-direction: column; align-items: flex-start; gap: 3px; }
.k-dl pre { margin: 0; white-space: pre-wrap; word-break: break-all; background: #0f1012; border: 1px solid var(--rule); border-radius: 10px; padding: 12px; font-size: 12.5px; color: var(--ink); }

/* The showreel under the wall: edge to edge, fading into the page at top and bottom */
.showreel { position: relative; margin: clamp(56px, 8vw, 104px) 0 0; overflow: hidden; aspect-ratio: 16 / 9; max-height: 88vh; width: 100%;
            background: #0c0d0f; }
.showreel::after { content: ""; position: absolute; inset: 0; pointer-events: none;
            background: linear-gradient(var(--bg) 0, transparent 9%, transparent 91%, var(--bg) 100%); }
@media (max-width: 700px) { .showreel { aspect-ratio: 16 / 10; } }
.showreel video { display: block; width: 100%; height: 100%; object-fit: cover; }
.reel-toggle { position: absolute; right: max(20px, env(safe-area-inset-right, 0px)); bottom: 7%; z-index: 1; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18);
               background: rgba(12,13,15,.55) center / 14px no-repeat; cursor: pointer; opacity: 0; transition: opacity .25s;
               background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 2h3v10H3zM8 2h3v10H8z' fill='%23ECEAE6'/%3E%3C/svg%3E"); }
.showreel:hover .reel-toggle, .reel-toggle:focus-visible, .showreel.paused .reel-toggle { opacity: 1; }
.showreel.paused .reel-toggle { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 1.5v11l9-5.5z' fill='%23ECEAE6'/%3E%3C/svg%3E"); }

/* Watch */
.watch { padding-top: clamp(40px, 6vw, 72px); }
.w-film .vid { border-radius: 18px; }
.w-note { color: var(--dim); font-size: 15px; margin: 14px 0 0; }
.w-pick { margin-top: clamp(64px, 8vw, 104px); }
.w-h { margin: 0; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.025em; }
.w-picker { display: grid; gap: 22px; margin-top: 28px; }
.w-group h3 { margin: 0 0 10px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.w-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.w-tile { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--tint); border: 1px solid var(--edge);
          transition: border-color .2s, transform .2s; }
.w-tile:hover { transform: translateY(-2px); border-color: var(--accent); }
.w-tile.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.w-tile svg { width: 40px; height: 40px; flex: none; }
.w-tile b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.w-tile small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.w-player { margin-top: 28px; }
.w-caption { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-top: 18px; }
.w-caption h2 { margin: 0 0 6px; font-size: 26px; letter-spacing: -.02em; } .w-caption p { margin: 0; color: var(--dim); max-width: 64ch; }

/* Small pages: legal, download, what's new, press */
.doc { max-width: 820px; padding-top: clamp(40px, 6vw, 72px); }
.doc-title { font-size: clamp(44px, 7vw, 76px); margin-bottom: 28px; }
.doc-body { color: var(--dim); font-size: 16.5px; }
.doc-body h2 { margin: 44px 0 12px; color: var(--ink); font-size: 22px; letter-spacing: -.015em; }
.doc-body h3 { margin: 28px 0 8px; color: var(--ink); font-size: 17px; }
.doc-body strong { color: var(--ink); font-weight: 600; } .doc-body a { color: #E9A15B; text-decoration: underline; text-underline-offset: 3px; }
.doc-body ul { padding-left: 1.2em; } .doc-body li { margin: 6px 0; }
.doc-body pre { background: #121417; border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; overflow-x: auto; color: var(--ink); font-size: 13.5px; }
.press-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.press-grid figure { margin: 0; border: 1px solid var(--rule); border-radius: 12px; padding: 12px; background: rgba(255,255,255,.02); }
.press-grid figcaption { margin-top: 8px; font-size: 13px; }
.press-grid.logos img { background: #15171a; border-radius: 8px; padding: 14px; }

@media (max-width: 860px) {
  .hero, .lead, section.block, .about, .home-sec { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; }
  .plat-row { grid-template-columns: minmax(0, 1fr); }
  .k-menu-btn { display: inline-flex; }
  .bar nav.site { display: none; position: absolute; top: calc(100% + 1px); left: 0; right: 0; flex-direction: column; gap: 0;
                  background: #0C0D0F; border-bottom: 1px solid var(--rule); padding: 8px 20px 14px; box-shadow: 0 30px 60px -20px #000; }
  .topbar:has(nav.site.open) { backdrop-filter: none; -webkit-backdrop-filter: none; background: #0C0D0F; }
  .bar nav.site.open { display: flex; } .bar nav.site a { padding: 10px 0; font-size: 15px; }
  .points, .built, .videos { grid-template-columns: minmax(0, 1fr); }
  .features, .controls { grid-template-columns: minmax(0, 1fr); }
  .hero .icon { margin-bottom: 24px; }
}

/* Accounts, help, contact, admin */
:root { --k: var(--accent, #E9A15B); --panel: #15171A; --panel2: #1C1F23; }
.bar { flex-wrap: wrap; }
.k-account { position: relative; margin-left: auto; }
.bar nav + .k-account, .bar nav.site + .k-account { margin-left: 0; }
.k-pill { font: 500 13px/1 var(--sans); color: var(--ink); background: transparent; border: 1px solid var(--rule); border-radius: 999px;
          padding: 9px 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.k-pill:hover, .k-pill.on { border-color: color-mix(in srgb, var(--k) 55%, transparent); }
.k-avatar { width: 20px; height: 20px; border-radius: 50%; background: var(--k); color: #111; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.k-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 220px; background: var(--panel2); border: 1px solid var(--rule);
          border-radius: 12px; padding: 6px; box-shadow: 0 20px 50px -20px #000; }
.k-menu a, .k-menu button { display: block; width: 100%; text-align: left; font: 400 14px/1.4 var(--sans); color: var(--ink); background: none; border: 0;
          padding: 9px 12px; border-radius: 8px; cursor: pointer; }
.k-menu a:hover, .k-menu button:hover { background: rgba(255,255,255,.05); }
.k-menu-who { padding: 8px 12px 10px; color: var(--faint); font-size: 12.5px; border-bottom: 1px solid var(--rule); margin-bottom: 4px; overflow-wrap: anywhere; }

.k-btn { font: 600 14px/1 var(--sans); color: #121212; background: var(--k); border: 1px solid var(--k); border-radius: 10px; padding: 11px 16px;
         cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.k-btn:hover { filter: brightness(1.08); }
.k-btn:disabled { opacity: .6; cursor: default; }
.k-btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule); font-weight: 500; }
.k-btn.ghost:hover { border-color: color-mix(in srgb, var(--k) 55%, transparent); }
.k-btn.danger:hover { border-color: #ff6b6b; color: #ff8a8a; }
.k-link { background: none; border: 0; padding: 0; color: var(--k); font: 500 13.5px var(--sans); cursor: pointer; text-align: left; }
.k-x { background: none; border: 0; color: var(--dim); font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.k-x:hover { color: var(--ink); background: rgba(255,255,255,.06); }
.k-dim { color: var(--dim); }
.k-err { color: #ff8a8a; margin: 0; font-size: 14px; }
.k-row { display: flex; align-items: center; gap: 10px; }
.k-row.k-wrap { flex-wrap: wrap; }
.k-stack { display: grid; gap: 14px; }
.k-pad { padding: 18px; }
.k-field { display: grid; gap: 6px; font-size: 13px; color: var(--dim); }
input, textarea, select { font: 400 15px/1.4 var(--sans); color: var(--ink); background: #0F1012; border: 1px solid var(--rule); border-radius: 10px;
         padding: 10px 12px; width: 100%; min-width: 0; }
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: color-mix(in srgb, var(--k) 70%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--k) 18%, transparent); }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--k); padding: 0; }

.k-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(5,6,8,.66); display: grid; place-items: center; padding: 16px; }
.k-modal { width: min(440px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--panel2); border: 1px solid var(--rule);
           border-radius: 18px; padding: 20px 22px 24px; box-shadow: 0 40px 100px -40px #000; }
.k-modal.wide { width: min(720px, 100%); }
.k-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.k-modal-head h2 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.k-modal p { margin: 0; }

/* Help pop-up */
.k-fab { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40;
         display: inline-flex; align-items: center; gap: 10px; font: 600 14px/1 var(--sans); color: var(--ink); background: var(--panel2);
         border: 1px solid color-mix(in srgb, var(--k) 45%, transparent); border-radius: 999px; padding: 13px 18px; cursor: pointer;
         box-shadow: 0 16px 40px -16px #000, 0 0 0 1px rgba(0,0,0,.4); }
.k-fab-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--k); box-shadow: 0 0 12px var(--k); }
.k-fab.open { background: #0F1012; }
.k-help { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: 76px; z-index: 41; width: 380px; height: min(580px, calc(100dvh - 110px));
          display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--rule); border-radius: 18px; overflow: hidden;
          box-shadow: 0 40px 90px -30px #000; }
.k-help[hidden] { display: none; }
.k-tabs { display: flex; align-items: center; gap: 4px; padding: 10px 10px 0 12px; border-bottom: 1px solid var(--rule); }
.k-tabs [role=tab] { font: 500 14px var(--sans); color: var(--dim); background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 10px 12px; cursor: pointer; }
.k-tabs [role=tab].on { color: var(--ink); border-bottom-color: var(--k); }
.k-tabs .k-x { margin-left: auto; }
.k-pane { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: auto; gap: 12px; }
.k-chat { flex: 1; overflow: auto; padding: 16px 16px 4px; display: flex; flex-direction: column; gap: 10px; }
.k-msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; background: var(--panel2); align-self: flex-start; }
.k-msg p { margin: 0 0 8px; white-space: pre-wrap; } .k-msg p:last-of-type { margin-bottom: 0; }
.k-msg.me { align-self: flex-end; background: color-mix(in srgb, var(--k) 22%, #15171A); }
.k-msg.them { align-self: flex-start; }
.k-msg.wait { color: var(--dim); }
.k-msg.err { color: #ff8a8a; }
.k-msg small { display: block; margin-top: 6px; color: var(--faint); font-size: 11.5px; }
.k-msg-extra { margin-top: 8px; display: grid; gap: 6px; }
.k-src { font-size: 12px; color: var(--faint); } .k-src a { color: var(--dim); text-decoration: underline; text-underline-offset: 2px; }
.k-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px; }
.k-chips button { font: 400 13px var(--sans); color: var(--dim); background: none; border: 1px solid var(--rule); border-radius: 999px; padding: 7px 11px; cursor: pointer; }
.k-chips button:hover { color: var(--ink); border-color: color-mix(in srgb, var(--k) 50%, transparent); }
.k-ask { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--rule); }
.k-tlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.k-tlist button { width: 100%; text-align: left; display: grid; gap: 4px; background: var(--panel2); border: 1px solid transparent; border-radius: 12px; padding: 12px 14px; color: var(--ink); cursor: pointer; font: inherit; }
.k-tlist button:hover { border-color: var(--rule); }
.k-tl-sub { font-weight: 500; font-size: 14.5px; }
.k-meta { font-size: 12.5px; color: var(--faint); }
.k-status { font-size: 11.5px; font-weight: 600; letter-spacing: .02em; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--dim); }
.k-status.open { background: color-mix(in srgb, var(--k) 22%, transparent); color: var(--ink); }
.k-status.waiting { background: rgba(143,179,201,.18); color: #cfe2ee; }
.k-t-title { margin: 4px 0 0; font-size: 17px; }
.k-thread { display: flex; flex-direction: column; gap: 10px; }

/* Contact */
.k-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; max-width: 760px; }
.k-contact .wide { grid-column: 1 / -1; }
.k-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.k-form-note { margin: 0; font-size: 14px; color: var(--dim); } .k-form-note.ok { color: #9fe0b0; }

/* Admin */
.k-admin { padding-bottom: 96px; }
.k-admin-title { font-size: clamp(44px, 7vw, 72px); margin: 24px 0 24px; }
.k-demo { margin: 0 0 18px; padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, var(--k) 14%, transparent); color: var(--ink); font-size: 14px; }
.k-gate { padding: 48px 0; display: grid; gap: 16px; justify-items: start; } .k-gate p { margin: 0; color: var(--dim); }
.k-admin-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--rule); margin-bottom: 24px; overflow-x: auto; }
.k-admin-tabs button { font: 500 15px var(--sans); color: var(--dim); background: none; border: 0; border-bottom: 2px solid transparent; padding: 12px 14px; cursor: pointer; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.k-admin-tabs button.on { color: var(--ink); border-bottom-color: var(--k); }
.k-count { font-size: 11px; font-weight: 700; background: var(--k); color: #111; border-radius: 999px; padding: 2px 7px; }
.k-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
.k-col { background: var(--panel); border: 1px solid var(--rule); border-radius: 14px; padding: 12px; display: grid; gap: 10px; min-height: 160px; align-content: start; }
.k-col.drop { border-color: var(--k); }
.k-col h3 { margin: 2px 4px 2px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.k-card { text-align: left; display: grid; gap: 6px; background: var(--panel2); border: 1px solid transparent; border-radius: 10px; padding: 11px 12px; color: var(--ink); font: inherit; font-size: 14px; cursor: grab; }
.k-card:hover { border-color: var(--rule); }
.k-card strong { font-weight: 500; line-height: 1.35; }
.k-card .k-dim, .k-card-top { font-size: 12px; color: var(--faint); display: flex; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.k-pri { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex: none; } .k-pri.high { background: #ff6b6b; } .k-pri.low { background: #4b5058; }
.k-inbox { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.k-mlist { list-style: none; margin: 0; padding: 6px; display: grid; gap: 4px; background: var(--panel); border: 1px solid var(--rule); border-radius: 14px; align-content: start; }
.k-mlist button { width: 100%; text-align: left; display: grid; gap: 3px; background: none; border: 0; border-radius: 10px; padding: 10px 12px; color: var(--dim); font: inherit; font-size: 14px; cursor: pointer; }
.k-mlist button.unread { color: var(--ink); } .k-mlist button.unread .k-tl-sub::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--k); margin-right: 8px; vertical-align: middle; }
.k-mlist button.on, .k-mlist button:hover { background: var(--panel2); }
.k-mview { background: var(--panel); border: 1px solid var(--rule); border-radius: 14px; padding: 20px 22px; display: grid; gap: 12px; align-content: start; min-height: 220px; }
.k-mview h3 { margin: 0; font-size: 19px; } .k-mbody p { margin: 0 0 12px; white-space: pre-wrap; }
.k-todo-add { max-width: 720px; } .k-todo-add input[type=date] { width: auto; }
.k-todos { list-style: none; margin: 18px 0 0; padding: 0; max-width: 720px; }
.k-todos li { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-top: 1px solid var(--rule); }
.k-todos label { flex: 1; display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 15px; }
.k-todos li.done label span { color: var(--faint); text-decoration: line-through; }
.k-due { font-size: 12.5px; color: var(--dim); white-space: nowrap; } .k-due.late { color: #ff8a8a; }
.k-h { margin: 8px 0 0; font-size: 18px; }
.k-row > select { width: auto; }
.k-more { margin-top: 12px; }
.k-give { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--rule); }
.k-give > .k-row > span { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.k-give .k-num { width: 72px; flex: none; }
.k-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 16px 0; }
.k-stat { background: var(--panel); border: 1px solid var(--rule); border-radius: 14px; padding: 14px 16px; display: grid; gap: 4px; align-content: start; }
.k-stat span { font-size: 13px; } .k-stat strong { font-size: 24px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.k-stat.big strong { color: var(--k); } .k-stat.warn { border-color: color-mix(in srgb, var(--k) 40%, transparent); }
.k-stat .k-num { width: 64px; padding: 2px 6px; display: inline-block; margin: 0 2px; font-size: 13px; }
.k-juce { background: var(--panel); border: 1px solid var(--rule); border-radius: 14px; padding: 14px 16px; display: grid; gap: 8px; }
.k-juce .k-row { justify-content: space-between; font-size: 14px; }
.k-meter { height: 8px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.k-meter i { display: block; height: 100%; background: var(--k); border-radius: 99px; } .k-meter i.hot { background: #ff6b6b; }
.k-bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; height: 140px; margin: 20px 0 6px; align-items: end; }
.k-bar { height: 100%; display: grid; grid-template-rows: 1fr auto; gap: 6px; text-align: center; font-size: 11px; color: var(--faint); }
.k-bar i { align-self: end; display: block; background: color-mix(in srgb, var(--k) 80%, transparent); border-radius: 4px 4px 0 0; min-height: 2px; }
.k-note { color: var(--faint); font-size: 13px; max-width: 80ch; margin: 10px 0 24px; }
.k-fin-add { margin: 12px 0 8px; } .k-fin-add input, .k-fin-add select { width: auto; flex: 1 1 140px; } .k-fin-add .k-num { flex: 0 1 120px; }
.k-table-wrap { overflow-x: auto; margin-top: 14px; border: 1px solid var(--rule); border-radius: 14px; }
.k-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.k-table th, .k-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.k-table th { color: var(--faint); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.k-table td.num { font-variant-numeric: tabular-nums; text-align: right; } .k-table td.in { color: #9fe0b0; }
.k-flash { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 70; background: var(--panel2); border: 1px solid var(--rule); padding: 10px 16px; border-radius: 10px; font-size: 14px; }

@media (max-width: 860px) {
  .k-board { grid-template-columns: minmax(0, 1fr); }
  .k-inbox { grid-template-columns: minmax(0, 1fr); }
  .k-contact { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .k-help { right: 8px; left: 8px; width: auto; bottom: 72px; height: calc(100dvh - 96px); }
  .k-fab { padding: 12px 16px; }
  .k-todo-add { flex-wrap: wrap; }
}

/* What's right for me (top bar link) */
.bar nav.site a.nav-quiz { color: var(--ink); border: 1px solid rgba(233,161,91,.5); border-radius: 999px; padding: 5px 12px; margin: -6px 0; }
.bar nav.site a.nav-quiz:hover { border-color: #E9A15B; }
@media (max-width: 860px) { .bar nav.site a.nav-quiz { border: 0; padding: 10px 0; margin: 0; color: #E9A15B; } }

/* Gifts and coming soon on the wall */
.pkg .badge { position: absolute; top: 18px; right: 18px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
              color: var(--accent); border: 1px solid var(--edge); border-radius: 999px; padding: 4px 9px; background: rgba(12,13,15,.35); }
.pkg.soon { --tint: #121315; --edge: rgba(236,234,230,.12); --accent: #9EA1A8; --glow: transparent; border-style: dashed; opacity: .55;
            color: var(--dim); cursor: default; }
.pkg.soon:hover { transform: none; border-color: var(--edge); }
.pkg.soon svg { color: var(--dim); }
.group.gifts .group-head p a { color: var(--ink); white-space: nowrap; }
.earn { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 18px 0 0; color: var(--ink); font-size: 15px; }
.earn span { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
             border: 1px solid var(--edge); border-radius: 999px; padding: 3px 9px; }
.earn a { color: var(--accent); }

/* Free with Kiln */
.free, .quiz { padding-top: clamp(40px, 6vw, 72px); padding-bottom: 40px; }
.free .w-h { margin: 56px 0 14px; }
.free-lede, .quiz .lede { max-width: 62ch; color: var(--dim); font-size: 17px; margin: 0 0 32px; }
.gift-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.gift-card { border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; background: #131417; transition: border-color .25s, transform .25s; }
.gift-card:hover { border-color: var(--edge); transform: translateY(-3px); }
.gift-band { background: var(--tint); display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px; color: #C9C7C2; font-size: 17px; }
.gift-band b { color: #F2F0EC; } .gift-band svg { width: 36px; height: 36px; }
.gift-body { padding: 14px 16px 16px; } .gift-body small { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.gift-body p { margin: 6px 0 0; color: var(--dim); font-size: 14.5px; line-height: 1.5; }
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 8px; }
.way { border: 1px solid var(--rule); border-radius: 16px; padding: 22px; background: rgba(255,255,255,.02); display: flex; flex-direction: column; gap: 8px; }
.way h3 { margin: 0; font-size: 18px; } .way p { margin: 0; color: var(--dim); font-size: 14.5px; line-height: 1.55; }
.way .way-n { color: #E9A15B; font-size: 12px; font-weight: 700; letter-spacing: .14em; }
.way .way-get { color: var(--ink); } .way .k-btn { align-self: flex-start; margin-top: auto; }
@media (max-width: 860px) { .ways { grid-template-columns: minmax(0, 1fr); } }

/* The quiz */
.quiz-box { max-width: 760px; }
.q-progress { height: 3px; background: var(--rule); border-radius: 3px; overflow: hidden; margin-bottom: 26px; }
.q-progress i { display: block; height: 100%; background: #E9A15B; transition: width .3s; }
.q-count { color: var(--faint); font-size: 13px; letter-spacing: .08em; margin: 0 0 6px; }
.q-title { font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 6px; letter-spacing: -.02em; }
.q-hint { color: var(--dim); margin: 0 0 22px; }
.q-answers { display: grid; gap: 10px; }
.q-answers button { text-align: left; font: 500 16px var(--sans); color: var(--ink); background: rgba(255,255,255,.025); border: 1px solid var(--rule);
                    border-radius: 12px; padding: 15px 18px; cursor: pointer; transition: border-color .2s, background .2s; }
.q-answers button:hover, .q-answers button:focus-visible { border-color: rgba(233,161,91,.6); background: rgba(233,161,91,.06); }
.q-answers button.on { border-color: #E9A15B; }
.q-nav { display: flex; justify-content: space-between; margin-top: 22px; }
.q-nav button { background: none; border: 0; color: var(--dim); font: 500 14px var(--sans); cursor: pointer; padding: 6px 0; }
.q-nav button:hover { color: var(--ink); }
.r-head { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin: 34px 0 12px; }
.r-list { display: grid; gap: 10px; }
.r-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 16px; border-radius: 14px;
          border: 1px solid var(--rule); background: rgba(255,255,255,.02); }
.r-item:hover { border-color: var(--edge); }
.r-item svg { width: 44px; height: 44px; }
.r-item b { font-size: 17px; } .r-item small { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-left: 8px; }
.r-item p { margin: 3px 0 0; color: var(--dim); font-size: 14px; line-height: 1.5; }
.r-item .go { color: var(--accent); font-size: 14px; white-space: nowrap; }
.r-item.free-tag b::after { content: "Free"; margin-left: 8px; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
          color: var(--accent); border: 1px solid var(--edge); border-radius: 999px; padding: 2px 7px; vertical-align: 2px; }
.r-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 30px; }
@media (max-width: 520px) { .r-item { grid-template-columns: 36px minmax(0, 1fr); } .r-item svg { width: 36px; height: 36px; } }

/* Your account */
.k-acct { display: grid; gap: 4px; }
.k-acct-sec { border-top: 1px solid var(--rule); padding: 16px 0 12px; }
.k-acct-sec:first-child { border-top: 0; padding-top: 0; }
.k-acct-sec h3 { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.k-acct-plan { margin: 0 0 8px; font-size: 17px; color: var(--ink); }
.k-acct .k-row p { margin: 0; flex: 1; min-width: 200px; }
.k-comps, .k-gifts { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.k-comps li, .k-gifts li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px;
                           border: 1px solid var(--rule); border-radius: 10px; background: rgba(255,255,255,.02); }
.k-comps li div, .k-gifts li a { display: flex; flex-direction: column; } .k-comps small, .k-gifts small { color: var(--faint); font-size: 12.5px; }
.k-gifts li span { font-size: 13px; color: var(--faint); } .k-gifts li.have span { color: #E9A15B; font-weight: 600; }
.k-gifts li:not(.have) b { color: var(--dim); }
.k-btn.small { padding: 7px 11px; font-size: 13px; }
.k-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--dim); line-height: 1.5; cursor: pointer; }
.k-check input { margin-top: 3px; accent-color: #E9A15B; }
.k-acct .k-row input { flex: 1; min-width: 0; }

/* The cart */
.k-cart-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0;
              border-radius: 50%; border: 1px solid var(--rule); background: transparent; color: var(--ink); cursor: pointer; margin-left: 8px; }
.k-cart-btn:hover { border-color: rgba(236,234,230,.35); }
.k-cart-btn b { position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: #E9A15B;
                color: #141518; font: 700 10.5px/17px var(--sans); text-align: center; }
.k-cart-btn b:empty { display: none; }
.buy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 22px 0 0; }
.buy-row .k-btn.in { background: transparent; color: var(--accent); }
.k-cart { display: grid; gap: 10px; }
.k-cart ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.k-cart li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 11px 12px;
             border: 1px solid var(--rule); border-radius: 10px; background: rgba(255,255,255,.02); }
.k-cart li i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.k-cart li small { display: block; color: var(--faint); font-size: 12.5px; }
.k-cart li .price { color: var(--ink); font-size: 14px; }
.k-cart li button { background: none; border: 0; color: var(--faint); cursor: pointer; font-size: 18px; line-height: 1; padding: 2px 4px; }
.k-cart li button:hover { color: var(--ink); }
.k-cart .k-cart-hint { border: 1px dashed rgba(233,161,91,.45); border-radius: 10px; padding: 10px 12px; color: var(--dim); font-size: 14px; }
.k-cart .k-cart-hint button { margin-left: 6px; }
.k-cart .k-row { justify-content: space-between; align-items: center; }
.r-item .acts { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.r-item .add { background: none; border: 1px solid var(--edge); color: var(--ink); border-radius: 999px; padding: 6px 11px; font: 600 12.5px var(--sans); cursor: pointer; }
.r-item .add:hover { border-color: var(--accent); } .r-item .add.in { color: var(--accent); border-style: dashed; }
.r-item a.name { color: inherit; } .r-item a.name:hover b { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 520px) { .r-item .acts { grid-column: 2; } .r-item .acts .go { display: none; } }

/* Add to cart on each plugin tile */
.pkg-cell { position: relative; display: grid; }
.pkg-buy { position: absolute; top: 12px; right: 12px; z-index: 2; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.pkg-buy > * { pointer-events: auto; }
.pkg-buy .k-price { font-size: 12px; font-weight: 600; color: var(--ink); opacity: .8; margin-top: -4px; letter-spacing: .01em; }
.pkg-add { width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
           display: grid; place-items: center; color: var(--ink); transition: opacity .3s; }
.pkg-add span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--edge);
                background: rgba(12,13,15,.35); transition: border-color .2s, background .2s, transform .2s; }
.pkg-add:hover span, .pkg-add:focus-visible span { border-color: var(--accent); background: rgba(12,13,15,.6); }
.pkg-add:active span { transform: scale(.92); }
.pkg-add.in span { border-color: var(--accent); color: var(--accent); }
.pkg-cell:hover .pkg { transform: translateY(-4px); border-color: var(--accent); }
.pkg-cell:hover .pkg-buy { transform: translateY(-4px); }
.pkg-buy { transition: opacity .3s, transform .35s cubic-bezier(.2,.7,.2,1); }
.pkg-add { transition: opacity .3s, transform .35s cubic-bezier(.2,.7,.2,1); }
.wall.filtering .pkg-cell:has(.pkg:not(.match)) .pkg-buy { opacity: .22; }

/* Info and the coming-soon pages */
.info, .future { padding-top: clamp(40px, 6vw, 72px); padding-bottom: 40px; }
.pledge .give-card { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 22px; border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; background: var(--rule); }
.pledge .give-card div { background: var(--bg); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pledge .give-card span { font-size: 12.5px; }
.pledge .give-card + p { margin-top: 22px; }
.pledge #give p a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(236,234,230,.35); }
.pledge .give-card b { font-size: 17px; color: var(--ink); font-weight: 600; }
.pledge .give-card a b { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(236,234,230,.3); }
.fp-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 18px; }
.fp-table th, .fp-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.fp-table thead th { font-size: 12px; color: var(--dim); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.fp-table td { white-space: nowrap; color: var(--ink); font-variant-numeric: tabular-nums; }
.fp-table tbody th { font-weight: 600; color: var(--ink); }
.fp-table tbody th small { display: block; font-weight: 400; color: var(--dim); font-size: 12.5px; margin-top: 3px; }
.fp-table tbody th::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 9px; vertical-align: middle; background: #E9A15B; }
.fp-table .fp-pot th::before { background: #B98B6E; }
.fp-table .fp-food th::before { background: #8C8A86; }
.pledge .fp-asof { font-size: 13px; margin-top: 12px; }
.fp-method { margin-top: 18px; border: 1px solid var(--rule); border-radius: 14px; padding: 4px 18px; }
.fp-method summary { cursor: pointer; padding: 12px 0; font-weight: 600; color: var(--ink); }
.fp-method p, .fp-method li { font-size: 14px; line-height: 1.55; }
.fp-method ul { padding-left: 18px; margin: 4px 0 16px; }
.give-bar { margin: 26px 0 0; padding: 12px 16px; border: 1px solid var(--rule); border-radius: 12px; font-size: 13.5px; color: var(--dim); text-align: center; }
.give-bar b { color: var(--ink); font-weight: 600; }
.give-bar a { color: var(--ink); }
@media (max-width: 700px) {
  .pledge .give-card { grid-template-columns: minmax(0, 1fr); }
  .fp-table thead { display: none; }
  .fp-table, .fp-table tbody, .fp-table tr { display: block; }
  .fp-table tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 10px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .fp-table tbody th { grid-column: 1 / -1; padding: 0 0 6px; border: 0; }
  .fp-table td { border: 0; padding: 0; white-space: normal; font-size: 13.5px; }
  .fp-table td::before { display: block; font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
  .fp-table td:nth-of-type(1)::before { content: "Energy"; }
  .fp-table td:nth-of-type(2)::before { content: "CO₂e"; }
  .fp-table td:nth-of-type(3)::before { content: "Water"; }
}
.info-sub { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.info-sub a { font-size: 13.5px; color: var(--dim); border: 1px solid var(--rule); border-radius: 999px; padding: 7px 14px; }
.info-sub a:hover { color: var(--ink); border-color: rgba(236,234,230,.35); }
.info .home-sec { scroll-margin-top: 80px; }
.info-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; }
.info-links a { color: var(--ink); font-weight: 500; } .info-links a:hover { color: #E9A15B; }
.future .lede { max-width: 64ch; color: var(--dim); font-size: 17px; margin: 0 0 10px; }
.future .group:first-of-type { padding-top: 18px; }

/* Written guides on the Watch page */
.w-guide { display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 16px 18px; border: 1px solid var(--rule); border-radius: 14px;
           background: rgba(255,255,255,.025); transition: border-color .2s; }
.w-guide:hover { border-color: rgba(233,161,91,.55); }
.w-guide-ic { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: rgba(233,161,91,.12); color: #E9A15B; flex: none; }
.w-guide b { display: block; color: var(--ink); } .w-guide small { color: var(--dim); font-size: 14px; }
.w-guide-go { margin-left: auto; color: #E9A15B; font-weight: 600; font-size: 14px; white-space: nowrap; }
.w-acts { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 520px) { .w-guide-go { display: none; } }

/* Prices */
.k-price { white-space: nowrap; } .k-price s { opacity: .55; font-weight: 400; margin-right: 2px; }
.buy-row .k-price { font-size: 20px; font-weight: 600; color: var(--ink); }
.r-item .k-price { font-size: 14px; font-weight: 600; color: var(--ink); }
.k-cart li .price s { color: var(--faint); margin-right: 4px; }
.k-cart-total { justify-content: space-between; padding: 4px 4px 0; font-size: 15px; } .k-cart-total b { font-size: 17px; }
.cta { flex-wrap: wrap; }
.launch-note { margin-top: 10px !important; font-size: 14px !important; color: #E9A15B !important; }

/* Price and Add to cart in the corner of a plugin's panel */
.box { position: relative; }
.box-buy { position: absolute; top: clamp(18px, 3vw, 32px); right: clamp(18px, 3vw, 32px); z-index: 2; display: flex; align-items: center; gap: 12px; }
.box-buy .k-price { font-size: 22px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.box-add { font: 600 13.5px var(--sans); color: #141518; background: var(--accent); border: 1px solid var(--accent); border-radius: 999px;
           padding: 10px 18px; cursor: pointer; transition: filter .2s, background .2s, color .2s; }
.box-add:hover { filter: brightness(1.08); }
.box-add.in { background: rgba(12,13,15,.35); color: var(--accent); }
@media (max-width: 520px) { .box-buy { top: 16px; right: 16px; gap: 10px; } .box-buy .k-price { font-size: 18px; } .box-add { padding: 9px 14px; } }

/* Admin: People */
.k-people-head { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-bottom: 14px; }
.k-people-head input { flex: 1; min-width: 220px; max-width: 360px; }
.k-people-head p { margin: 0; }
.k-people { display: grid; gap: 10px; }
.k-person { border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; background: var(--panel); display: grid; gap: 10px; }
.k-person-who { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.k-person-who small { color: var(--faint); font-size: 12.5px; } .k-person-note { width: 100%; color: var(--dim) !important; }
.k-levels { display: flex; flex-wrap: wrap; gap: 6px; }
.k-level { font: 600 12.5px var(--sans); color: var(--dim); background: none; border: 1px solid var(--rule); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.k-level:hover { color: var(--ink); border-color: rgba(236,234,230,.35); }
.k-level.on { color: #141518; background: #E9A15B; border-color: #E9A15B; } .k-level small { font-weight: 500; opacity: .8; }
.k-person-opts input { width: auto; flex: 0 1 200px; font-size: 13px; padding: 6px 9px; }
.k-access { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; } .k-access small { color: var(--faint); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
