/* ============================================================
   CLUE STACK  |  Puzzle sequence software for escape rooms
   Palette: light blue, white panels, deep navy type
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700;800&family=Inter+Tight:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --bg:       #EAF3FB;
  --bg2:      #DBEAF8;
  --bg3:      #C9E1F6;
  --white:    #FFFFFF;

  --navy:     #0C2740;
  --slate:    #3F5F7A;
  --muted:    #7691A9;

  --blue:     #1B7FD6;
  --blue-d:   #0F5FA8;
  --sky:      #7CC4F2;
  --sky-soft: rgba(27,127,214,0.10);
  --mint:     #17A98F;
  --amber:    #F2A13B;

  --line:     rgba(12,39,64,0.10);
  --line-2:   rgba(12,39,64,0.06);
  --shadow:   0 12px 34px rgba(12,39,64,0.09);
  --shadow-s: 0 4px 14px rgba(12,39,64,0.07);

  --display: 'Sora', sans-serif;
  --body:    'Inter Tight', sans-serif;
  --mono:    'IBM Plex Mono', monospace;

  --r:   16px;
  --r-s: 10px;
  --wrap: 1160px;
  --ease: cubic-bezier(.22,.8,.26,1);
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--slate);
  font-size: 16.5px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,h2,h3,h4 { font-family: var(--display); color: var(--navy); line-height: 1.12; letter-spacing: -0.025em; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.2rem; }
a  { color: var(--blue); text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--sky); color: var(--navy); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 30px; }
.tag {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--blue);
}

/* ================= TOP NAV, brand centered ================= */
.topnav {
  position: sticky; top: 0; z-index: 80;
  background: rgba(234,243,251,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topnav .inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 30px; height: 74px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
}
.nav-left { display: flex; gap: 26px; }
.nav-right { display: flex; gap: 26px; justify-content: flex-end; align-items: center; }
.topnav a.link {
  font-size: .93rem; font-weight: 500; color: var(--slate); position: relative; padding: 4px 0;
}
.topnav a.link:hover { color: var(--navy); }
.topnav a.link.on { color: var(--blue); }
.topnav a.link.on::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--blue); border-radius: 2px;
}
.brand { display: flex; align-items: center; gap: 10px; justify-self: center; }
.brand svg { width: 30px; height: 30px; }
.brand b { font-family: var(--display); font-weight: 800; font-size: 1.14rem; color: var(--navy); letter-spacing: -.03em; }
.nav-cta {
  background: var(--blue); color: #fff; font-size: .88rem; font-weight: 600;
  padding: 10px 20px; border-radius: 100px; box-shadow: 0 6px 16px rgba(27,127,214,.28);
  transition: .2s var(--ease);
}
.nav-cta:hover { background: var(--blue-d); color: #fff; transform: translateY(-1px); }
.burger { display: none; background: none; border: 0; font-size: 1.5rem; color: var(--navy); cursor: pointer; }
.drawer { display: none; }

/* ================= BUTTONS ================= */
.btn {
  display: inline-block; font-weight: 600; font-size: .96rem; padding: 14px 28px;
  border-radius: 100px; background: var(--white); color: var(--navy);
  border: 1px solid var(--line); box-shadow: var(--shadow-s); transition: .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--navy); }
.btn-fill { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 8px 22px rgba(27,127,214,.3); }
.btn-fill:hover { background: var(--blue-d); color: #fff; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ================= HERO ================= */
.hero { padding: 74px 0 66px; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; top: -220px; right: -160px; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(124,196,242,.5), transparent 66%); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; position: relative; }
.badge {
  display: inline-flex; align-items: center; gap: 9px; background: var(--white);
  border: 1px solid var(--line); border-radius: 100px; padding: 7px 16px;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy); box-shadow: var(--shadow-s);
}
.badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); display: block; }
.hero h1 { margin: 22px 0 20px; }
.hero h1 span { color: var(--blue); }
.hero p.lead { font-size: 1.13rem; max-width: 33rem; }
.hero .btn-row { margin-top: 30px; }
.hero-meta { display: flex; gap: 34px; margin-top: 40px; flex-wrap: wrap; }
.hero-meta b { font-family: var(--display); font-size: 1.7rem; color: var(--navy); display: block; line-height: 1.1; }
.hero-meta span { font-size: .82rem; color: var(--muted); }

/* ---- MAZE PANEL ---- */
.maze-panel {
  background: var(--white); border-radius: var(--r); box-shadow: var(--shadow);
  padding: 16px; border: 1px solid var(--line);
}
.maze-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px;
  font-family: var(--mono); font-size: .68rem; color: var(--muted); letter-spacing: .08em;
}
.maze-head b { color: var(--navy); font-family: var(--mono); font-weight: 500; }
#maze { width: 100%; height: auto; display: block; border-radius: var(--r-s); background: var(--bg2); }
.maze-foot { display: flex; gap: 18px; margin-top: 12px; flex-wrap: wrap; font-size: .74rem; color: var(--muted); font-family: var(--mono); }
.maze-foot i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }

/* ================= FEATURE LIST BAND ================= */
.strip { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 34px 0; }
.strip h4 {
  font-family: var(--mono); font-weight: 400; font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 20px;
}
.feature-list {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px 30px;
}
.feature-list li {
  font-size: .95rem; font-weight: 500; color: var(--navy);
  padding-left: 26px; position: relative;
}
.feature-list li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--blue); font-size: .9rem; font-weight: 700;
}
@media (max-width: 900px) { .feature-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .feature-list { grid-template-columns: 1fr; } }

/* ================= SECTIONS ================= */
section.block { padding: 84px 0; }
.head { max-width: 46rem; margin-bottom: 46px; }
.head h2 { margin: 12px 0 14px; }
.head p { font-size: 1.04rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px; box-shadow: var(--shadow-s); transition: .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ico {
  width: 44px; height: 44px; border-radius: 12px; background: var(--sky-soft); color: var(--blue);
  display: grid; place-items: center; font-family: var(--mono); font-size: .82rem; margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: .95rem; }
.card.blue { background: linear-gradient(160deg, #1B7FD6, #0F5FA8); border: 0; color: rgba(255,255,255,.85); }
.card.blue h3 { color: #fff; }
.card.blue .ico { background: rgba(255,255,255,.18); color: #fff; }
.card.navy { background: var(--navy); border: 0; color: rgba(255,255,255,.78); }
.card.navy h3 { color: #fff; }
.card.navy .ico { background: rgba(124,196,242,.18); color: var(--sky); }

.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }

/* numbered rows */
.rows { display: grid; gap: 14px; }
.row {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px 28px; display: grid; grid-template-columns: 54px 1fr 1.4fr; gap: 24px;
  align-items: center; transition: .22s var(--ease);
}
.row:hover { border-color: var(--sky); box-shadow: var(--shadow-s); }
.row .n {
  width: 42px; height: 42px; border-radius: 12px; background: var(--bg2); color: var(--blue);
  display: grid; place-items: center; font-family: var(--mono); font-size: .84rem;
}
.row p { font-size: .95rem; }

/* steps */
.step { display: grid; grid-template-columns: 96px 1fr; gap: 28px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step .mark { font-family: var(--display); font-weight: 800; font-size: 2.6rem; color: var(--bg3); line-height: 1; }
.step:hover .mark { color: var(--blue); }
.step h3 { margin-bottom: 10px; }
.step ul { list-style: none; margin-top: 12px; }
.step li { font-size: .93rem; padding-left: 20px; position: relative; margin-bottom: 5px; }
.step li::before { content: ''; position: absolute; left: 0; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); }

/* ================= PRICING ================= */
.plans { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; align-items: start; }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 24px; box-shadow: var(--shadow-s); }
.plan.pick { background: var(--navy); border: 0; box-shadow: var(--shadow); transform: translateY(-10px); }
.plan.pick h3, .plan.pick .price { color: #fff; }
.plan.pick p, .plan.pick li { color: rgba(255,255,255,.76); }
.plan .pill { font-family: var(--mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.plan.pick .pill { color: var(--sky); }
.plan .price { font-family: var(--display); font-weight: 800; font-size: 2.3rem; color: var(--navy); margin: 10px 0 4px; line-height: 1; }
.plan .price small { font-family: var(--body); font-size: .78rem; font-weight: 500; color: var(--muted); }
.plan p.sub { font-size: .88rem; min-height: 48px; }
.plan ul { list-style: none; margin: 18px 0 22px; }
.plan li { font-size: .89rem; padding-left: 22px; position: relative; margin-bottom: 7px; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--mint); font-size: .82rem; }
.plan.pick li::before { color: var(--sky); }
.plan .btn { width: 100%; text-align: center; }

/* ================= FAQ ================= */
.qa { display: grid; gap: 12px; }
.qa-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; }
.qa-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--display); font-weight: 600; font-size: 1.02rem; color: var(--navy);
  padding: 20px 52px 20px 24px; position: relative; letter-spacing: -.015em;
}
.qa-q::after {
  content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  color: var(--blue); font-size: 1.4rem; font-family: var(--mono); transition: .2s var(--ease);
}
.qa-item.open .qa-q::after { content: '–'; }
.qa-item.open { border-color: var(--sky); }
.qa-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.qa-a p { padding: 0 60px 22px 24px; font-size: .95rem; }
.qa-item.open .qa-a { max-height: 460px; }

/* ================= ABOUT ================= */
.founder { display: grid; grid-template-columns: 290px 1fr; gap: 44px; align-items: start; }
.portrait {
  background: linear-gradient(160deg, #1B7FD6, #0C2740); border-radius: var(--r);
  padding: 32px 26px; text-align: center; color: rgba(255,255,255,.8); box-shadow: var(--shadow);
}
.portrait .initials {
  width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 24px;
  background: rgba(255,255,255,.14); display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 2rem; color: #fff;
}
.portrait b { display: block; font-family: var(--display); font-size: 1.15rem; color: #fff; }
.portrait span { font-size: .84rem; color: rgba(255,255,255,.66); }
.quote {
  background: var(--white); border-left: 4px solid var(--blue); border-radius: var(--r-s);
  padding: 22px 26px; margin: 26px 0; font-family: var(--display); font-weight: 500;
  font-size: 1.22rem; color: var(--navy); line-height: 1.42; box-shadow: var(--shadow-s);
}
.team { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.member { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; text-align: center; }
.member .av {
  width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 14px; background: var(--bg2);
  display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: var(--blue); font-size: 1.1rem;
}
.member b { display: block; font-family: var(--display); color: var(--navy); font-size: 1.04rem; }
.member span { font-size: .8rem; color: var(--blue); }
.member p { font-size: .9rem; margin-top: 10px; }

/* ================= FORM ================= */
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 34px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { font-size: .84rem; font-weight: 600; color: var(--navy); display: block; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--r-s);
  background: var(--bg); font-family: var(--body); font-size: .96rem; color: var(--navy);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px var(--sky-soft);
}
.note { font-size: .84rem; color: var(--muted); margin-top: 14px; }

/* ================= CTA ================= */
.cta {
  background: linear-gradient(140deg, #1B7FD6, #0C2740); border-radius: 24px;
  padding: 62px 44px; text-align: center; color: rgba(255,255,255,.82); box-shadow: var(--shadow);
}
.cta h2 { color: #fff; margin-bottom: 14px; }
.cta p { max-width: 40rem; margin: 0 auto 28px; }
.cta .btn { background: #fff; color: var(--navy); border: 0; }

/* ================= LEGAL ================= */
.legal { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 44px; max-width: 52rem; box-shadow: var(--shadow-s); }
.legal h2 { font-size: 1.35rem; margin: 32px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { font-size: .95rem; margin-bottom: 10px; }
.legal ul { padding-left: 20px; }

/* ================= FOOTER ================= */
footer.foot { background: var(--navy); color: rgba(255,255,255,.6); padding: 62px 0 0; }
.foot-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 44px; }
.foot-cols h4 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); margin-bottom: 14px; font-family: var(--mono); font-weight: 400; }
.foot-cols a { display: block; color: rgba(255,255,255,.6); font-size: .93rem; padding: 4px 0; }
.foot-cols a:hover { color: #fff; }
.foot-cols p { font-size: .93rem; }
.foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.foot-brand b { font-family: var(--display); font-weight: 800; color: #fff; font-size: 1.1rem; }
.foot-brand svg { width: 28px; height: 28px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; }

/* ================= REVEAL ================= */
.rv { opacity: 0; transform: translateY(20px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .plans { grid-template-columns: 1fr 1fr; }
  .plan.pick { transform: none; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .founder { grid-template-columns: 1fr; }
  .row { grid-template-columns: 48px 1fr; }
  .row p { grid-column: 2; }
}
@media (max-width: 780px) {
  .nav-left, .nav-right { display: none; }
  .topnav .inner { grid-template-columns: 1fr auto; height: 64px; }
  .brand { justify-self: start; }
  .burger { display: block; justify-self: end; }
  .drawer {
    display: block; max-height: 0; overflow: hidden; background: var(--white);
    border-bottom: 1px solid var(--line); transition: max-height .3s var(--ease);
  }
  .drawer.open { max-height: 460px; }
  .drawer a { display: block; padding: 15px 30px; border-bottom: 1px solid var(--line-2); color: var(--navy); font-weight: 500; }
  .grid-3, .grid-2, .plans, .team { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 8px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  section.block { padding: 58px 0; }
  .hero { padding: 44px 0 52px; }
  .legal { padding: 28px; }
  .cta { padding: 44px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}
