/* ─────────────────────────────────────────────────────────────
   KNOT HELPFUL — Ray-Ban Meta Display 600×600
   Inter sans-serif throughout. Maximum legibility.
   ───────────────────────────────────────────────────────────── */

:root {
  --bg: #000000;
  --bg-soft: #0d0d0d;
  --line: #2a2a2a;
  --ink: #f5e6c4;            /* warm cream — primary text */
  --ink-soft: #c8b78a;
  --ink-faint: #8a7e5e;
  --ember: #ff7250;          /* bright terracotta accent */
  --ember-soft: #ffb29e;
  --gold: #f0c674;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 600px;
  height: 600px;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

#app {
  position: relative;
  width: 600px;
  height: 600px;
  background: var(--bg);
  overflow: hidden;
}

.screen {
  position: absolute;
  inset: 0;
  padding: 16px 22px 14px;
  display: flex;
  flex-direction: column;
  z-index: 2;
}

.hidden { display: none !important; }

/* ─── header ─── */
.head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--ink);
}
.ribbon {
  width: 14px;
  height: 32px;
  background: var(--ember);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
}
.ribbon-done {
  background: var(--ember);
  width: 18px; height: 36px;
}
.brand {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 36px;
  letter-spacing: 1px;
  color: var(--ink);
  flex: 1;
  line-height: 1;
}
.serial {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: 1.5px;
  padding: 5px 10px;
  border: 2px solid var(--ink-soft);
  border-radius: 3px;
}

/* ─── eyebrow ─── */
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  text-align: center;
  font-size: 28px;
  letter-spacing: 4px;
  color: var(--ember);
  margin: 12px 0 10px;
  line-height: 1.1;
}

/* ─── intent list ─── */
.intent-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  justify-content: space-between;
}
.intent-row {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 8px 14px;
  background: var(--bg-soft);
  border: 2px solid var(--line);
  border-left: 6px solid var(--ink-soft);
  border-radius: 3px;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
  flex: 1;
  min-height: 0;
}
.intent-row.active {
  background: #1a0e08;
  border-color: var(--ember);
  border-left-color: var(--ember);
  transform: translateX(4px);
}
.intent-row .chev {
  font-weight: 800;
  color: var(--line);
  font-size: 26px;
  text-align: center;
  line-height: 1;
}
.intent-row.active .chev {
  color: var(--ember);
}
.intent-row .knot-cell {
  display: flex;
  flex-direction: column;
  gap: 1px;
  justify-content: center;
}
.intent-row .label {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 30px;
  letter-spacing: 0.5px;
  color: var(--ink);
  line-height: 1.05;
}
.intent-row .sub {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--ink-faint);
  line-height: 1.2;
  text-transform: uppercase;
}
.intent-row.active .sub { color: var(--ember-soft); }
.intent-row .pips {
  font-weight: 700;
  font-size: 18px;
  color: var(--gold);
  letter-spacing: 2px;
}

/* ─── learn screen ─── */
.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 6px;
  gap: 10px;
}
.meta-chip {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1.5px;
  color: var(--ink);
  padding: 5px 10px;
  border: 2px dashed var(--ink-soft);
  border-radius: 3px;
  text-transform: uppercase;
}
.meta-pips {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--gold);
  letter-spacing: 3px;
}

.diagram-wrap {
  height: 200px;
  flex: 0 0 200px;
  max-height: 200px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  border: 2px solid var(--line);
  border-radius: 4px;
  padding: 4px;
  margin-bottom: 2px;
}
.diagram {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: hidden;
}
.diagram svg { width: 100%; height: 100%; display: block; }
.knot-img {
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  flex: 1 1 auto;
  min-width: 0;
}

.img-credit {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--ink-faint);
  text-align: right;
  margin: 0 2px 6px;
  text-transform: uppercase;
}

/* ─── step text & tip ─── */
.step-text {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 0.2px;
  line-height: 1.15;
  color: var(--ink);
  text-align: center;
  margin: 4px 4px 8px;
}
.step-text .accent {
  color: var(--ember);
  font-weight: 800;
}

.tip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 2px solid var(--ember);
  border-radius: 4px;
  background: rgba(255, 114, 80, 0.10);
  margin-bottom: 6px;
}
.tip-label {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--ember);
  background: var(--bg);
  padding: 3px 9px;
  border: 2px solid var(--ember);
  border-radius: 3px;
  flex-shrink: 0;
}
.tip-text {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}

/* ─── progress dots ─── */
.progress {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 2px 0 4px;
}
.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--ink-faint);
  background: transparent;
}
.dot.done {
  background: var(--ink);
  border-color: var(--ink);
}
.dot.current {
  background: var(--ember);
  border-color: var(--ember);
  box-shadow: 0 0 0 4px rgba(255, 114, 80, 0.25);
}

/* ─── hints ─── */
.hints {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1.5px;
  color: var(--ink-soft);
  margin-top: auto;
  padding-top: 8px;
  border-top: 2px solid var(--line);
  text-transform: uppercase;
}
.key {
  display: inline-block;
  min-width: 28px;
  text-align: center;
  padding: 3px 8px;
  border: 2px solid var(--ink-soft);
  border-bottom-width: 3px;
  border-radius: 3px;
  color: var(--ink);
  background: var(--bg-soft);
  margin-right: 6px;
  font-size: 16px;
  font-weight: 800;
}

/* ─── done ─── */
.done-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.done-stamp {
  position: relative;
  z-index: 5;
  transform: rotate(-9deg);
  animation: stamp 0.5s cubic-bezier(.7,.1,.3,1.5) both;
}
@keyframes stamp {
  0%   { transform: rotate(-9deg) scale(2.4); opacity: 0; }
  55%  { transform: rotate(-9deg) scale(0.9); opacity: 1; }
  100% { transform: rotate(-9deg) scale(1); opacity: 1; }
}
.done-knot {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 46px;
  letter-spacing: 2px;
  color: var(--ink);
  text-align: center;
  line-height: 1.05;
}
.done-use {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.3px;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.3;
  max-width: 500px;
}
