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


:root {
  --canvas: #EDEFF3;
  --frame: #FFFFFF;
  --ink: #17191F;
  --muted: #666D7C;
  --line: #D9DCE3;
  --blue: #1B5BFF;
  --blue-soft: #EDF2FF;
  --yellow: #FFD43B;
  --pink: #FF5C8A;
  --green: #14B87A;
  --orange: #FF8A00;

  --display: 'Bricolage Grotesque', 'Arial Black', sans-serif;
  --body: 'Instrument Sans', system-ui, sans-serif;
  --hand: 'Shantell Sans', 'Comic Sans MS', cursive;
  --mono: 'Space Mono', 'Courier New', monospace;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--canvas);
  background-image: radial-gradient(circle, rgba(23,25,31,.14) 1px, transparent 1px);
  background-size: 26px 26px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--blue); color: #fff; }

/* ─── FILE BAR ────────────────────────────── */
.file-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  background: var(--frame);
  border-bottom: 1px solid var(--line);
}

.fb-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.fb-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--yellow);
  flex-shrink: 0;
}

.fb-name {
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fb-name em {
  font-style: normal;
  color: var(--muted);
}

.fb-unsaved {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  margin-left: 6px;
  animation: blink 2.4s infinite;
  vertical-align: middle;
}

@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

.fb-nav {
  display: flex;
  gap: 22px;
}

.fb-nav a {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}

.fb-nav a:hover { color: var(--ink); }

.fb-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fb-avatars { display: flex; }

.fb-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--frame);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -8px;
}

.fb-avatar:first-child { margin-left: 0; }
.fb-avatar.a1 { background: var(--pink); }
.fb-avatar.a2 { background: var(--green); }
.fb-avatar.a3 { background: var(--orange); }

.fb-share {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
  padding: 7px 16px;
  text-decoration: none;
  transition: transform .12s, background .15s;
  white-space: nowrap;
}

.fb-share:hover { background: #0E47E8; transform: translateY(-1px); }


/* ─── BOARD ───────────────────────────────── */
.board {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 140px;
}


/* ─── FRAMES (sections) ───────────────────── */
.frame {
  position: relative;
  background: var(--frame);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 64px;
  margin-top: 96px;
  box-shadow: 0 3px 16px rgba(23,25,31,.05);
}

.frame-tab {
  position: absolute;
  top: -28px;
  left: 4px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--blue);
}

.frame-tab::before { content: '⌗ '; opacity: .6; }

.frame h2 {
  font-family: var(--display);
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.02em;
  margin-bottom: 24px;
  max-width: 18ch;
}

.frame h2 .hl {
  background: linear-gradient(transparent 58%, var(--yellow) 58%);
  padding: 0 2px;
}

.frame-body {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 580px;
}

.frame-body + .frame-body { margin-top: 14px; }
.frame-body strong { color: var(--ink); font-weight: 600; }

.split-label {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 34px 0 8px;
}


/* ─── STICKY NOTES ────────────────────────── */
.sticky {
  position: absolute;
  background: var(--yellow);
  font-family: var(--hand);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  padding: 18px 18px 22px;
  width: 190px;
  box-shadow: 0 8px 20px rgba(23,25,31,.16);
  border-radius: 2px;
  z-index: 8;
}

.sticky-pink { background: #FFD9E4; }


/* ─── CTA ─────────────────────────────────── */
.cta-frame {
  background: var(--yellow);
  border: none;
  transform: rotate(-.4deg);
  box-shadow: 0 18px 44px rgba(23,25,31,.18);
}

.cta-frame .frame-tab { color: rgba(23,25,31,.55); }

.cta-frame h2 {
  max-width: 14ch;
}

.cta-frame .frame-body {
  color: rgba(23,25,31,.72);
  font-weight: 500;
}

.cta-email {
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(22px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 7px;
  margin: 34px 0 18px;
  transition: text-decoration-color .15s;
  overflow-wrap: anywhere;
}

.cta-email:hover { text-decoration-color: var(--blue); color: var(--blue); }

.cta-note {
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(23,25,31,.6);
  line-height: 1.9;
}

.cta-hand {
  font-family: var(--hand);
  font-size: 17px;
  font-weight: 700;
  margin-top: 30px;
  transform: rotate(-1deg);
  width: fit-content;
}

.cta-hand::before { content: '↳ '; }


/* ─── FOOTER ──────────────────────────────── */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 80px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.footer-logo {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.footer-logo b { color: var(--ink); }

.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }

.footer-links a {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}

.footer-links a:hover { color: var(--blue); }


/* ─── REVEAL ──────────────────────────────── */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.rv.on { opacity: 1; transform: none; }


/* ─── HERO ────────────────────────────────── */
.hero {
  position: relative;
  padding: 80px 0 56px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 3px solid var(--frame);
  box-shadow: 0 8px 24px rgba(23,25,31,.14);
  margin-bottom: 26px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--frame);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 7px 16px 7px 10px;
  font-family: var(--mono);
  font-size: 11px;
  width: fit-content;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(23,25,31,.06);
}

.hero-badge .live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(20,184,122,.2);
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(38px, 6.6vw, 78px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.025em;
  max-width: 16ch;
  margin-bottom: 26px;
}

/* selection box around a word */
.sel {
  position: relative;
  display: inline-block;
  color: var(--blue);
  white-space: nowrap;
}

.sel::before {
  content: '';
  position: absolute;
  inset: -2px -10px -6px;
  border: 2px solid var(--blue);
  pointer-events: none;
}

.sel .h {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #fff;
  border: 2px solid var(--blue);
  z-index: 2;
}

.sel .h1 { top: -7px; left: -15px; }
.sel .h2 { top: -7px; right: -15px; }
.sel .h3 { bottom: -11px; left: -15px; }
.sel .h4 { bottom: -11px; right: -15px; }

.sel-name {
  position: absolute;
  top: -30px;
  left: -10px;
  background: var(--blue);
  color: #fff;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1;
  padding: 4px 8px;
  white-space: nowrap;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 520px;
}

/* ─── LINK ROWS ───────────────────────────── */
.link-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.link-row {
  display: grid;
  grid-template-columns: 104px 1fr auto auto;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 22px;
  text-decoration: none;
  background: var(--frame);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}

.link-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(23,25,31,.09);
  border-color: var(--blue);
}

.link-feature {
  background: #FFFBEE;
  border-color: #F0DFA8;
}

.link-feature:hover { border-color: var(--blue); }

.lr-chip {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: 100px;
  text-align: center;
  white-space: nowrap;
}

.chip-ig { background: #FFE3EC; color: #C42E62; }
.chip-th { background: #E8E2FF; color: #5B3FD1; }
.chip-x { background: #E3E7EE; color: #3A4150; }
.chip-pin { background: var(--blue-soft); color: var(--blue); }
.chip-shop { background: #FFF3C4; color: #8A6A00; }
.chip-me { background: #DFF5EB; color: #0D7A50; }

.lr-main { min-width: 0; }

.lr-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.lr-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.lr-num {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.lr-num sup {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--blue);
}

.lr-arrow {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--muted);
  transition: transform .15s, color .15s;
}

.link-row:hover .lr-arrow { color: var(--blue); transform: translate(2px, -2px); }

/* ─── STAT ROW ────────────────────────────── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 38px;
  max-width: 560px;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
  background: var(--frame);
}

.stat-num {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
}

.stat-num span {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--blue);
  margin-left: 2px;
  letter-spacing: 0;
}

.stat-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .05em;
  color: var(--muted);
  display: block;
  margin-top: 6px;
}

/* ─── CTA EXTRAS ──────────────────────────── */
.cta-note a { color: var(--ink); font-weight: 600; }

/* ─── RESPONSIVE ──────────────────────────── */
@media (max-width: 720px) {
  .frame { padding: 40px 24px; margin-top: 72px; }
  .hero { padding: 56px 0 40px; }
  .hero-avatar { width: 84px; height: 84px; }
  .sticky { position: static; width: auto; max-width: 300px; margin-top: 28px; transform: rotate(-1deg) !important; }
  .link-row {
    grid-template-columns: 1fr auto;
    grid-template-areas: "chip arrow" "main main" "num num";
    gap: 10px;
    padding: 16px 18px;
  }
  .lr-chip { grid-area: chip; justify-self: start; }
  .lr-arrow { grid-area: arrow; }
  .lr-main { grid-area: main; }
  .lr-num { grid-area: num; font-size: 20px; }
  .stat-row { grid-template-columns: 1fr; max-width: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fb-unsaved { animation: none !important; }
  .rv { opacity: 1; transform: none; transition: none; }
  .link-row, .fb-share { transition: none; }
}
