/* ==========================================================================
   GlassNet — marketing site
   --------------------------------------------------------------------------
   Cool green-grey paper, deep pine ink, teal accent. Menu bar utility sites
   are almost always dark; going light means the app's own dark panel is the
   only dark thing on the page, so it reads as an object sitting on a surface.
   ========================================================================== */

:root {
  --paper:      #eef2ef;
  --paper-2:    #e3e9e4;
  --paper-3:    #d7e0d9;
  --ink:        #101e19;
  --ink-2:      #47584f;
  --ink-3:      #6c7d73;
  --teal:       #0e7c5c;
  --teal-dark:  #0a5b43;
  --teal-lift:  #35b98d;

  --panel:      #14201c;
  --panel-2:    #1c2a25;
  --panel-line: rgba(255,255,255,.13);
  --panel-text: #e6efe9;

  --shell:      1140px;
  --radius:     12px;

  --step--1: clamp(.86rem, .84rem + .1vw, .92rem);
  --step-0:  clamp(1rem, .97rem + .16vw, 1.09rem);
  --step-1:  clamp(1.2rem, 1.13rem + .34vw, 1.42rem);
  --step-2:  clamp(1.62rem, 1.42rem + .95vw, 2.25rem);
  --step-3:  clamp(2.4rem, 1.85rem + 2.6vw, 4.2rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Familjen Grotesk", system-ui, sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.shell { width: min(100% - 2.5rem, var(--shell)); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--paper);
  padding: .7rem 1rem; border-radius: 0 0 8px 0; z-index: 99;
}
.skip:focus { left: 0; top: 0; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- brand ---------- */

.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  text-decoration: none; color: inherit;
}
.brand__mark { width: 22px; height: 22px; fill: var(--teal); flex: none; }
.brand__name { font-weight: 700; letter-spacing: -.017em; font-size: 1.06rem; }

/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(238,242,239,.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.is-stuck { border-bottom-color: var(--paper-3); }

.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.nav__links { display: flex; align-items: center; gap: 1.75rem; }
.nav__links a {
  color: var(--ink-2); text-decoration: none;
  font-size: var(--step--1); font-weight: 500;
}
.nav__links a:hover { color: var(--ink); }

.nav__buy {
  color: var(--teal) !important;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: .32rem .95rem;
}
.nav__buy:hover { background: var(--teal); color: #fff !important; }

@media (max-width: 620px) {
  .nav__links a:not(.nav__buy) { display: none; }
}

/* ---------- type ---------- */

.hero__title {
  font-size: var(--step-3);
  font-weight: 700;
  line-height: .96;
  letter-spacing: -.038em;
  margin: 0 0 1.4rem;
}

.h2 {
  font-size: var(--step-2);
  font-weight: 700;
  letter-spacing: -.028em;
  line-height: 1.08;
  margin: 0 0 1rem;
  max-width: 20ch;
}
.h2--light { color: var(--panel-text); }

.lede {
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 46ch;
  margin: 0 0 1.1rem;
}
.lede--light { color: rgba(230,239,233,.8); max-width: 54ch; }

.body { color: var(--ink-2); max-width: 54ch; margin: 0 0 1rem; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-size: var(--step-0); font-weight: 600;
  text-decoration: none; cursor: pointer;
  padding: .78rem 1.5rem; border-radius: 8px;
  border: 1px solid transparent;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.btn--solid { background: var(--teal); color: #fff; }
.btn--solid:hover { background: var(--teal-dark); }
.btn--quiet { color: var(--ink); border-color: var(--paper-3); }
.btn--quiet:hover { border-color: var(--ink-3); }
.btn--wide { width: 100%; }

/* ---------- hero ---------- */

.hero { padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(3.5rem, 7vw, 6rem); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
}

.hero__lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 42ch;
  margin: 0 0 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1.2rem; }
.hero__meta { font-size: var(--step--1); color: var(--ink-3); margin: 0; }

.demo__hint {
  font-size: var(--step--1);
  color: var(--ink-3);
  margin: 0 0 .7rem;
  transition: color .2s ease;
}
.demo__hint.is-live { color: var(--teal); font-weight: 600; }

/* ---------- the panel ---------- */

.panel {
  position: relative;
  width: 100%; max-width: 400px;
  border-radius: 14px;
  background: var(--panel);
  color: var(--panel-text);
  box-shadow: 0 24px 60px -18px rgba(16,30,25,.5), 0 2px 8px rgba(16,30,25,.16);
  overflow: hidden;
  isolation: isolate;
}

.panel__scene {
  position: absolute; inset: 0; z-index: 0;
  opacity: 0; transition: opacity .5s ease;
}
.panel[data-theme="harvest"] .panel__scene,
.panel[data-theme="hallows"] .panel__scene,
.panel[data-theme="yule"]    .panel__scene { opacity: 1; }

.panel[data-theme="harvest"] .panel__scene {
  background:
    radial-gradient(60% 42% at 74% 22%, rgba(255,240,200,.5), transparent 60%),
    linear-gradient(#f5d896 0%, #e5a277 34%, #c4726e 52%, #7d8b57 52%, #56603e 100%);
}
.panel[data-theme="hallows"] .panel__scene {
  background:
    radial-gradient(22% 15% at 76% 19%, rgba(237,231,214,.85), transparent 70%),
    linear-gradient(#141026 0%, #2c1a42 38%, #4a2350 60%, #1c1729 61%, #0e0b18 100%);
}
.panel[data-theme="yule"] .panel__scene {
  background:
    radial-gradient(52% 40% at 76% 58%, rgba(232,168,92,.42), transparent 68%),
    linear-gradient(#26191600, #262916 0%, #3e2a22 84%, #2e1e18 100%),
    linear-gradient(#261916, #3e2a22);
}
.panel__scene::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.34));
}

.panel__body { position: relative; z-index: 1; padding: 10px 0; }

.panel__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 14px 6px;
}
.panel__title { font-weight: 600; font-size: 13px; }

.switch {
  width: 26px; height: 15px; border-radius: 999px;
  background: var(--teal-lift); display: inline-block; position: relative;
}
.switch i {
  position: absolute; top: 2px; right: 2px;
  width: 11px; height: 11px; border-radius: 50%; background: #fff;
}

.rule { height: 1px; background: var(--panel-line); margin: 5px 12px; }

.panel__label {
  font-size: 10.5px; font-weight: 700; opacity: .55;
  margin: 6px 0 3px; padding: 0 14px;
}

/* rows */

.rows { list-style: none; margin: 0; padding: 0 6px; min-height: 104px; }

.row {
  display: flex; align-items: center; gap: 8px;
  height: 26px; padding: 0 8px;
  border: 0; width: 100%;
  background: none; color: inherit;
  font: inherit; font-size: 12.5px; text-align: left;
  border-radius: 5px; cursor: pointer;
  animation: rowIn .42s cubic-bezier(.2,.8,.3,1) both;
}
.row:hover, .row:focus-visible { background: var(--teal); color: #fff; outline: none; }
.row.is-out { animation: rowOut .34s ease forwards; pointer-events: none; }

.row__name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__lock { opacity: .6; font-size: 11px; }

.bars { display: grid; gap: 1.8px; flex: none; }
.bars i { display: block; width: 13px; height: 3px; border-radius: 1px; background: currentColor; opacity: .18; }
.bars i.on { opacity: .95; }

@keyframes rowIn  { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
@keyframes rowOut { to { opacity: 0; transform: scale(.96); } }

@media (prefers-reduced-motion: reduce) {
  .row, .row.is-out { animation: none; }
}

/* known network + definition */

.known__row { display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 26px; font-size: 12.5px; }
.known__tick { color: var(--teal-lift); font-weight: 700; }
.known__name { flex: 1; }

.def {
  margin: 2px 12px 8px;
  padding: 10px 11px;
  border-radius: 6px;
  background: rgba(0,0,0,.3);
  border: 1px solid var(--panel-line);
  animation: defIn .3s ease both;
}
.panel[data-theme="standard"] .def { background: rgba(255,255,255,.06); }
.def__term { font-size: 12px; font-weight: 600; margin: 0 0 4px; }
.def__note {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9px; letter-spacing: .04em; opacity: .55; margin: 0 0 6px;
}
.def__text { font-size: 11.5px; line-height: 1.55; opacity: .84; margin: 0 0 9px; }

@keyframes defIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.grade { display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--panel-line); padding-top: 8px; }
.grade__ask { font-size: 10.5px; opacity: .62; flex: 1; }
.grade button {
  width: 28px; height: 19px; border-radius: 4px; cursor: pointer;
  border: 0; background: rgba(255,255,255,.13); color: inherit;
  font: inherit; font-size: 10px; line-height: 1;
}
.grade button:hover { background: rgba(255,255,255,.24); }
.grade button.is-on { background: var(--teal-lift); color: #06231a; font-weight: 700; }

.tally { padding: 4px 14px 2px; font-size: 10.5px; opacity: .6; }

/* theme strip */

.themes { display: flex; gap: 2px; padding: 4px 6px 2px; }
.theme {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 2px; border: 0; border-radius: 5px; cursor: pointer;
  background: none; color: inherit; font: inherit; font-size: 9.5px; font-weight: 500;
  opacity: .62;
}
.theme:hover { background: rgba(255,255,255,.1); opacity: .9; }
.theme.is-on { background: var(--teal); color: #fff; opacity: 1; }
.theme__cube { width: 13px; height: 13px; fill: currentColor; }
.theme__dot { width: 11px; height: 11px; border-radius: 3px; display: block; }
.t-harvest { background: linear-gradient(#f5d896, #c4726e); }
.t-hallows { background: linear-gradient(#2c1a42, #4a2350); }
.t-yule    { background: linear-gradient(#e8a85c, #3e2a22); }

/* sheet */

.sheet {
  position: absolute; inset: 0; z-index: 3;
  display: grid; place-items: center;
  background: rgba(0,0,0,.38);
  padding: 14px;
  animation: fade .2s ease both;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.sheet__card {
  width: 100%; max-width: 268px;
  background: #f2f5f2; color: var(--ink);
  border-radius: 7px; padding: 13px;
  box-shadow: 0 14px 34px rgba(0,0,0,.4);
}
.sheet__head { display: flex; gap: 10px; margin-bottom: 10px; }
.sheet__cube { width: 22px; height: 22px; fill: var(--ink-2); flex: none; margin-top: 1px; }
.sheet__title { font-size: 12.5px; font-weight: 600; margin: 0; }
.sheet__sub { font-size: 11px; color: var(--ink-2); margin: 2px 0 0; line-height: 1.4; }
.sheet__label { display: block; font-size: 10px; font-weight: 700; color: var(--ink-3); margin-bottom: 4px; }

.sheet textarea {
  width: 100%; font: inherit; font-size: 11.5px; line-height: 1.45;
  padding: 7px 8px; border-radius: 5px; resize: none;
  border: 1px solid var(--paper-3); background: #fff; color: var(--ink);
}
.sheet__actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 10px; }

.mini {
  font: inherit; font-size: 11.5px; padding: .35rem .85rem;
  border-radius: 5px; cursor: pointer;
  border: 1px solid var(--paper-3); background: #fff; color: var(--ink);
}
.mini:hover { border-color: var(--ink-3); }
.mini--solid { background: var(--teal); border-color: var(--teal); color: #fff; }
.mini--solid:hover { background: var(--teal-dark); }

/* ---------- bands ---------- */

.band { padding: clamp(3.2rem, 7vw, 6rem) 0; }
.band--tint { background: var(--paper-2); }
.band--ink { background: var(--ink); }

/* ---------- steps ---------- */

.steps {
  list-style: none; margin: 2.6rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; gap: 1.9rem; } }

.step h3 { font-size: var(--step-1); font-weight: 600; letter-spacing: -.02em; margin: .85rem 0 .4rem; }
.step p { color: var(--ink-2); margin: 0; max-width: 40ch; }

/* the icon does the numbering: one, two, then three filled slabs */
.step__mark { display: grid; gap: 3px; width: 30px; }
.step__mark i { display: block; height: 6px; border-radius: 2px; background: var(--teal); }
.step__mark i.off { background: var(--paper-3); }

/* ---------- decks ---------- */

.decks__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
@media (max-width: 860px) { .decks__grid { grid-template-columns: 1fr; } }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .55rem; }
.chip {
  background: var(--paper); border: 1px solid var(--paper-3);
  border-radius: 8px; padding: .6rem .85rem; line-height: 1.25;
}
.chip b { display: block; font-weight: 600; font-size: var(--step--1); }
.chip span { font-size: .78rem; color: var(--ink-3); }
.chip--own { border-style: dashed; border-color: var(--teal); }
.chip--own b { color: var(--teal); }

/* ---------- routes ---------- */

.routes__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
@media (max-width: 860px) { .routes__grid { grid-template-columns: 1fr; } }

.route { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.route li {
  position: relative;
  padding: .8rem 0 .8rem 1.6rem;
  border-bottom: 1px solid var(--paper-3);
}
.route li::before {
  content: ""; position: absolute; left: 0; top: 1.25rem;
  width: 7px; height: 7px; border-radius: 2px; background: var(--paper-3);
}
.route li b { display: block; font-weight: 600; }
.route li span { font-size: var(--step--1); color: var(--ink-3); }
.route__end::before { background: var(--teal) !important; }
.route__end b { color: var(--teal); }

/* ---------- scenes ---------- */

.scenes {
  margin-top: 2.4rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
@media (max-width: 760px) { .scenes { grid-template-columns: repeat(2, 1fr); } }

.scene {
  margin: 0; aspect-ratio: 4 / 5; border-radius: 10px;
  position: relative; overflow: hidden;
  border: 1px solid var(--paper-3);
}
.scene figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: .55rem .7rem; font-size: var(--step--1); font-weight: 500;
  color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.6));
}
.s-standard { background: linear-gradient(#f3f6f3, #dde5df); }
.s-standard figcaption { color: var(--ink); background: none; }
.s-harvest {
  background:
    radial-gradient(38% 26% at 74% 26%, rgba(255,240,200,.75), transparent 62%),
    linear-gradient(#f5d896 0%, #e5a277 36%, #c4726e 52%, #7d8b57 52%, #56603e 100%);
}
.s-hallows {
  background:
    radial-gradient(16% 11% at 74% 20%, rgba(237,231,214,.95), transparent 72%),
    linear-gradient(#141026 0%, #2c1a42 40%, #4a2350 60%, #1c1729 61%, #0e0b18 100%);
}
.s-yule {
  background:
    radial-gradient(44% 34% at 70% 60%, rgba(232,168,92,.5), transparent 70%),
    linear-gradient(#261916, #3e2a22 80%, #2e1e18);
}

/* ---------- privacy ---------- */

.privacy { max-width: 60ch; }

/* ---------- buy ---------- */

.buy {
  display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
@media (max-width: 800px) { .buy { grid-template-columns: 1fr; } }

.buy__card {
  background: var(--paper-2);
  border: 1px solid var(--paper-3);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.buy__icon { display: block; border-radius: 18px; margin-bottom: 1rem; }
.buy__price { font-size: var(--step-2); font-weight: 700; letter-spacing: -.03em; margin: 0; }
.buy__terms { font-size: var(--step--1); color: var(--ink-3); margin: .1rem 0 1.2rem; }
.buy__specs { list-style: none; margin: 1.2rem 0 0; padding: 0; font-size: var(--step--1); color: var(--ink-2); }
.buy__specs li { padding: .38rem 0 .38rem 1.1rem; position: relative; }
.buy__specs li::before {
  content: ""; position: absolute; left: 0; top: .82rem;
  width: 6px; height: 6px; border-radius: 2px; background: var(--teal);
}

/* ---------- footer ---------- */

.foot { background: var(--ink); color: rgba(230,239,233,.72); padding: 2.4rem 0; }
.foot__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2rem; }
.brand--foot .brand__name { color: var(--panel-text); }
.brand--foot .brand__mark { fill: var(--teal-lift); }
.foot__links { display: flex; gap: 1.4rem; }
.foot__links a { color: inherit; text-decoration: none; font-size: var(--step--1); }
.foot__links a:hover { color: var(--panel-text); }
.foot__note { margin: 0 0 0 auto; font-size: .8rem; opacity: .6; }
@media (max-width: 640px) { .foot__note { margin-left: 0; } }
