/* Skool Konect — Brand Guidelines. Light mode. */
:root {
  --midnight: #01152F;
  --electric: #191CFF;
  --skyline: #2D87FB;
  --glacier: #CCEDFE;
  --aqua: #00EAE8;
  --lagoon: #00807F;
  --lime: #D5FF2D;
  --meadow: #F9FFE3;
  --fuchsia: #F000BE;
  --tangerine: #F4580C;

  --bg: #FFFFFF;
  --panel: #F3F5F8;
  --panel-2: #EBEEF3;
  --line: #E1E5EC;
  --ink: var(--midnight);
  --ink-2: #4A5568;
  --ink-3: #7A8496;
  --accent: var(--electric);

  --sans: "Urbanist", ui-sans-serif, system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;

  --r: 14px;
  --r-sm: 10px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--electric); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lime); color: var(--midnight); }

.wrap { width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto; }

/* ---------- Floating nav card (top-left) ---------- */
.navcard {
  position: fixed; top: 12px; left: 12px; z-index: 50;
  width: 252px; padding: 6px;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 30px -12px rgba(1,21,47,.18);
}
.navcard__brand {
  display: flex; gap: 10px; align-items: center;
  padding: 6px; border-radius: 11px; text-decoration: none;
  background: #fff; border: 1px solid var(--line);
}
.navcard__tile {
  width: 36px; height: 36px; border-radius: 8px; flex: none;
  background: var(--midnight); color: var(--aqua);
  display: grid; place-items: center;
}
.navcard__tile svg { width: 22px; }
.navcard__name { font-weight: 600; font-size: 15px; line-height: 1.15; }
.navcard__name span { color: var(--accent); }
.navcard__toggle {
  margin-top: 6px; width: 100%;
  display: flex; align-items: center; gap: 8px;
  padding: 9px 10px; border-radius: 11px;
  background: #fff; border: 1px solid var(--line); cursor: pointer;
  font-weight: 600; font-size: 15px; text-align: left;
}
.navcard__toggle .ico { width: 18px; height: 18px; color: var(--accent); flex: none; }
.navcard__toggle .chev { margin-left: auto; width: 16px; transition: transform .3s var(--ease); color: var(--ink-3); }
.navcard[data-open="true"] .chev { transform: rotate(180deg); }
.navcard__menu {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .35s var(--ease);
}
.navcard[data-open="true"] .navcard__menu { grid-template-rows: 1fr; }
.navcard__menu > ul { overflow: hidden; list-style: none; margin: 0; padding: 0; }
.navcard__menu li:first-child { margin-top: 6px; }
.navcard__menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 9px;
  text-decoration: none; font-size: 15px; font-weight: 500;
}
.navcard__menu a:hover { background: var(--panel); }
.navcard__menu a[aria-current="page"] { background: var(--panel); font-weight: 600; }
.navcard__menu .num { font-variant-numeric: tabular-nums; color: var(--ink-3); font-size: 13px; width: 18px; }

/* ---------- Floating actions (bottom-right) ---------- */
.fab {
  position: fixed; right: 14px; bottom: 14px; z-index: 40;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 999px;
  border: 0; cursor: pointer; text-decoration: none;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s;
}
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--midnight); color: #fff; }
.btn--primary:hover { background: #0a2347; }
.btn--accent { background: var(--electric); color: #fff; }
.btn--accent:hover { background: #3437ff; }
.btn--ghost { background: var(--panel); color: var(--ink); }
.btn--ghost:hover { background: var(--panel-2); }
.btn--sm { height: 34px; padding: 0 14px; font-size: 14px; }

/* ---------- Home hero ---------- */
.hero {
  min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  padding: 120px var(--gutter) 40px;
  position: relative; overflow: hidden;
}
.hero h1 {
  margin: 0;
  font-size: clamp(56px, 11vw, 168px);
  line-height: .92; letter-spacing: -.045em; font-weight: 700;
}
.hero h1 em { font-family: var(--serif); font-style: normal; font-weight: 400; letter-spacing: -.02em; }
.hero__sub { margin: 22px auto 28px; max-width: 46ch; color: var(--ink-2); font-size: 18px; }
.hero__cta { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.hero__meta {
  width: 100%; max-width: var(--max); margin: 28px auto 0;
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--ink-3);
}

/* Signature: the living pattern band */
.band { position: relative; }
.band__canvas {
  height: clamp(220px, 34vw, 440px);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--midnight);
}
.band__canvas svg { width: 100%; height: 100%; }
.band__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 12px;
}
.band__label { font-size: 14px; color: var(--ink-2); }
.band__label b { color: var(--ink); font-weight: 600; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 12px 0 6px; border-radius: 999px;
  background: var(--panel); border: 1px solid transparent; cursor: pointer;
  font-size: 14px; font-weight: 500;
}
.chip i { width: 22px; height: 22px; border-radius: 50%; display: block; position: relative; overflow: hidden; }
.chip i::after { content: ""; position: absolute; inset: 0 0 0 50%; background: var(--b); }
.chip[aria-pressed="true"] { background: #fff; border-color: var(--midnight); }

/* ---------- Section index cards ---------- */
.index { padding: clamp(64px, 9vw, 120px) 0; }
.index__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.index__head h2 { margin: 0; font-size: clamp(32px, 4.4vw, 56px); line-height: 1; letter-spacing: -.035em; font-weight: 600; }
.index__head p { margin: 0; max-width: 40ch; color: var(--ink-2); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.card {
  display: flex; flex-direction: column;
  background: var(--panel); border-radius: var(--r);
  text-decoration: none; overflow: hidden;
  transition: background .25s;
}
.card:hover { background: var(--panel-2); }
.card__art {
  aspect-ratio: 4 / 3; position: relative; overflow: hidden;
  margin: 8px 8px 0; border-radius: var(--r-sm);
  background: #fff;
}
.card__art > * { transition: transform .6s var(--ease); }
.card:hover .card__art > * { transform: scale(1.035); }
.card__foot { display: flex; align-items: center; gap: 10px; padding: 14px 16px 16px; }
.card__num { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.card__title { font-weight: 600; font-size: 17px; }
.card__go { margin-left: auto; width: 18px; color: var(--ink-3); transition: transform .25s var(--ease), color .25s; }
.card:hover .card__go { transform: translateX(3px); color: var(--ink); }

/* card art helpers */
.art-center { position: absolute; inset: 0; display: grid; place-items: center; }
.art-grid {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 33.333% 33.333%;
  background-position: center;
}
.art-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Footer block ---------- */
.foot { border-top: 1px solid var(--line); }
.foot__grid { display: grid; grid-template-columns: 1fr 1fr; }
.foot__left { padding: 48px var(--gutter) 40px 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.foot__left .lockup { width: min(100%, 520px); color: var(--midnight); }
.foot__right > div { padding: 40px 0 40px var(--gutter); }
.foot__right > div + div { border-top: 1px solid var(--line); }
.foot h3 { margin: 0 0 10px; font-size: 15px; font-weight: 600; }
.foot p { margin: 0; color: var(--ink-2); max-width: 48ch; }
.pagelist { list-style: none; margin: 0; padding: 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--panel); border-radius: 12px; }
.pagelist a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; background: #fff; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 15px; }
.pagelist a:hover { background: var(--glacier); }
.pagelist .num { color: var(--ink-3); font-weight: 500; font-size: 13px; }
.credit { font-size: 13px; color: var(--ink-3); padding: 18px 0 28px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); }

/* ---------- Section pages ---------- */
.phead { padding: 140px 0 48px; }
.phead__num { font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.phead h1 { margin: 6px 0 18px; font-size: clamp(48px, 8vw, 112px); line-height: .95; letter-spacing: -.045em; font-weight: 700; }
.phead p { margin: 0; max-width: 56ch; font-size: 19px; color: var(--ink-2); }

.row { display: grid; grid-template-columns: minmax(280px, 1fr) 2fr; gap: 12px; margin-bottom: 12px; }
.row--wide { grid-template-columns: 1fr; }
.row--half { grid-template-columns: 1fr 1fr; }
.panel { background: var(--panel); border-radius: var(--r); padding: 24px; position: relative; }
.panel--white { background: #fff; border: 1px solid var(--line); }
.panel--ink { background: var(--midnight); color: #fff; }
.panel h2 { margin: 0 0 12px; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.08; letter-spacing: -.025em; font-weight: 600; }
.panel h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.panel p { margin: 0 0 12px; color: var(--ink-2); }
.panel--ink p { color: rgba(255,255,255,.72); }
.panel .rules { margin: 14px 0 18px; padding: 0; list-style: none; display: grid; gap: 8px; }
.panel .rules li { padding-left: 20px; position: relative; color: var(--ink-2); font-size: 15px; }
.panel .rules li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--electric); }
.text-panel { display: flex; flex-direction: column; }
.text-panel .actions { margin-top: auto; padding-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.stage { min-height: 360px; display: grid; place-items: center; overflow: hidden; }
.stage__tools { position: absolute; top: 14px; right: 14px; display: flex; gap: 6px; z-index: 2; flex-wrap: wrap; justify-content: flex-end; }

.seg { display: inline-flex; padding: 3px; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.seg button { border: 0; background: transparent; height: 30px; padding: 0 12px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--midnight); color: #fff; }

.toggle { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); cursor: pointer; font-size: 13px; font-weight: 600; }
.toggle .sw { width: 28px; height: 16px; border-radius: 999px; background: var(--panel-2); position: relative; transition: background .2s; }
.toggle .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .25s var(--ease); }
.toggle[aria-pressed="true"] .sw { background: var(--electric); }
.toggle[aria-pressed="true"] .sw::after { transform: translateX(12px); }

.dont { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dont figure { margin: 0; }
.dont .box { aspect-ratio: 4/3; background: #fff; border-radius: var(--r-sm); display: grid; place-items: center; position: relative; overflow: hidden; border: 1px solid var(--line); }
.dont .box::after { content: ""; position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; background: #E5484D url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center/12px no-repeat; }
.dont .box.ok::after { background-color: #18A058; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }
.dont figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-2); line-height: 1.4; }

.toast {
  position: fixed; left: 50%; bottom: 22px; z-index: 80;
  transform: translate(-50%, 20px); opacity: 0;
  background: var(--midnight); color: #fff; padding: 10px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600; pointer-events: none;
  transition: opacity .2s, transform .3s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* page-to-page pager */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 48px 0 64px; }
.pager a { background: var(--panel); border-radius: var(--r); padding: 22px 24px; text-decoration: none; display: flex; flex-direction: column; gap: 4px; transition: background .2s; }
.pager a:hover { background: var(--panel-2); }
.pager span { font-size: 13px; color: var(--ink-3); }
.pager b { font-size: clamp(22px, 2.6vw, 32px); letter-spacing: -.025em; font-weight: 600; }
.pager a:last-child { text-align: right; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(1,21,47,.92); display: none; place-items: center; padding: 24px; }
.lb.open { display: grid; }
.lb img { max-height: 88vh; width: auto; border-radius: 10px; }
.lb button { position: absolute; top: 16px; right: 16px; }
.zoom { cursor: zoom-in; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .row { grid-template-columns: 1fr; }
  .dont { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .navcard { width: auto; right: 12px; }
  .navcard__toggle { margin-top: 0; }
  .navcard { display: grid; grid-template-columns: auto 1fr; gap: 6px; }
  .navcard__brand { padding: 4px; }
  .navcard__brand .navcard__name { display: none; }
  .navcard__menu { grid-column: 1 / -1; }
  .cards { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; }
  .foot__left { border-right: 0; padding-right: 0; }
  .foot__right > div { padding-left: 0; }
  .pagelist { grid-template-columns: 1fr; }
  .row--half { grid-template-columns: 1fr; }
  .dont { grid-template-columns: 1fr 1fr; }
  .panel { padding: 18px; }
  .stage { min-height: 280px; }
  .hero { padding-top: 100px; }
  .hero__meta { font-size: 12px; }
  .fab { right: 10px; bottom: 10px; }
  .fab .btn span { display: none; }
  .fab .btn { padding: 0 12px; }
  .pager b { font-size: 20px; }
  .phead { padding-top: 110px; }
}
