/* ============================================================
   HEXLY — homepage
   Built literal to the Figma "Hexly CSS" node (Hero 497:1146,
   Pricing 497:1263). Inter everywhere, Space Mono for chips/code.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg:            #FCFDFD;
  --ink:           #000000;
  --body:          #434343;
  --muted:         #7A7A7A;
  --dark-2:        #171717;
  --line:          #ECECEC;
  --line-lighter:  #F5F5F5;
  --line-swatch:   #E4E4E4;
  --blue:          #0088FF;
  --blue-dark:     #0062B8;
  --orange:        #FF5100;
  --code-red:      #D73546;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --card-shadow: 0px 12px 24px -4px rgba(0, 0, 0, 0.15);
  --pill: 200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.48px;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; background: none; border: none; cursor: pointer; color: inherit; }
ul { list-style: none; }
::selection { background: var(--blue); color: #fff; }

.shell { max-width: 1440px; margin: 0 auto; padding-inline: clamp(24px, 8.33vw, 120px); }

.ic14 { width: 14px; height: 14px; }
.ic16 { width: 16px; height: 16px; }
.ic18 { width: 18px; height: 18px; }
.ic20 { width: 20px; height: 20px; }
.ic22 { width: 22px; height: 22px; }

/* ---------- Type ---------- */
.h1 {
  font-weight: 500;
  font-size: 80px;
  line-height: 92px;
  letter-spacing: -4px;
  color: var(--ink);
}
.h1 .h1-line { display: block; }
.h2 {
  font-weight: 500;
  font-size: 48px;
  line-height: 56px;
  letter-spacing: -1.92px;
  color: var(--ink);
}
.h3 {
  font-weight: 500;
  font-size: 24px;
  line-height: 28px;
  letter-spacing: -0.96px;
  color: var(--ink);
}
.body-txt {
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.48px;
  color: var(--body);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 12px 24px;
  border-radius: var(--pill);
  font-weight: 500; font-size: 16px; line-height: 24px; letter-spacing: -0.48px;
  white-space: nowrap; border: 1px solid transparent;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease),
              color 0.18s var(--ease), transform 0.14s var(--ease), box-shadow 0.18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--dark-2); transform: translateY(-1px); box-shadow: 0 8px 20px -6px rgba(0,0,0,0.35); }
.btn--secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--secondary:hover { border-color: #D6D6D6; transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(0,0,0,0.12); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(0,0,0,0.4); }
.btn--outline-dark { background: transparent; color: #fff; border-color: #333; }
.btn--outline-dark:hover { border-color: #666; transform: translateY(-1px); }

.cta-row { display: flex; align-items: center; gap: 8px; }
.cta-row--center { justify-content: center; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 60; background: #000; }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 500; font-size: 20px; letter-spacing: -0.6px; }
.brand-hex { width: 24px; height: 24px; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { font-size: 15px; letter-spacing: -0.3px; color: rgba(255,255,255,0.78); transition: color 0.15s var(--ease); }
.nav-links a:hover { color: #fff; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.btn-signin {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 10px 18px; border-radius: var(--pill);
  background: #1A1A1A; color: #fff; font-weight: 500; font-size: 15px; letter-spacing: -0.3px;
  transition: background 0.15s var(--ease);
}
.btn-signin:hover { background: #262626; }
.nav .btn--white { height: 44px; }

/* ---------- Sections ---------- */
.sec { padding: 80px 0; }
.sec--center .sec-head--center { text-align: center; margin-inline: auto; }
.sec-head { display: flex; flex-direction: column; gap: 16px; max-width: 820px; }
.sec-head--center { align-items: center; }
.sec-head .cta-row { margin-top: 16px; }

/* H2 hover inspection accent (block-level) */
.hoverable { position: relative; width: fit-content; transition: color 0.18s var(--ease); }
.sec-head--center .hoverable { margin-inline: auto; }
.hoverable::before {
  content: ""; position: absolute; inset: -8px -14px;
  border: 2px dashed var(--ink); opacity: 0; pointer-events: none;
  transition: opacity 0.18s var(--ease);
}
.hoverable::after {
  content: ".section-headline";
  position: absolute; top: -8px; right: -14px; transform: translateY(-100%);
  font-family: var(--mono); font-weight: 400; font-size: 10px; line-height: 12px; letter-spacing: -0.3px;
  color: var(--line-lighter); background: var(--ink); border-radius: 4px; padding: 4px 6px;
  opacity: 0; pointer-events: none; transition: opacity 0.18s var(--ease);
}
.hoverable:hover { color: var(--blue); }
.hoverable:hover::before, .hoverable:hover::after { opacity: 1; }

/* ============================================================
   1 · HERO
   ============================================================ */
.hero { background: var(--bg); padding: 64px 0; }
.hero-grid { display: flex; gap: 64px; align-items: stretch; justify-content: center; }
.hero-left { flex: 1; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.hero-right { flex: 1; display: flex; align-items: center; justify-content: center; min-width: 0; }

.hero-sub { margin-top: 40px; max-width: 460px; font-weight: 400; font-size: 16px; line-height: 24px; letter-spacing: -0.48px; color: var(--body); }

/* --- H1 word hover: inspected state --- */
.hw { position: relative; transition: color 0.15s var(--ease); }
.hw:hover { color: var(--blue); }
.hw::before {
  content: ""; position: absolute; inset: 2px -8px 6px;
  border: 2px dashed var(--ink); opacity: 0; pointer-events: none;
  transition: opacity 0.15s var(--ease);
}
.hw::after {
  content: attr(data-chip);
  position: absolute; top: 0; right: -8px; transform: translateY(-58%);
  font-family: var(--mono); font-weight: 400; font-size: 10px; line-height: 12px; letter-spacing: -0.3px;
  color: var(--line-lighter); background: var(--ink); border-radius: 4px; padding: 4px 6px;
  opacity: 0; pointer-events: none; white-space: nowrap;
  transition: opacity 0.15s var(--ease);
}
.hw:hover::before, .hw:hover::after { opacity: 1; }

/* --- "Website." — pinned inspected word --- */
.hw-box {
  position: relative; display: inline-block;
  border: 2px dashed var(--ink); padding: 0 8px;
  line-height: 88px; white-space: nowrap;
}
.hw-accent { color: var(--blue); letter-spacing: -4px; }
.hw-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--mono); font-weight: 400; font-size: 10px; line-height: 12px; letter-spacing: -0.3px;
  color: var(--line-lighter); background: var(--ink); border-radius: 4px; padding: 4px 6px;
  white-space: nowrap;
}
.hw-chip--name { top: -10px; right: 12px; transform: translateY(-100%); }
.hw-chip--hex { top: 50%; right: -10px; transform: translate(100%, -50%); }
.hw-chip--hex i { width: 12px; height: 12px; border-radius: 2px; background: var(--blue); }

/* --- spec chip row --- */
.spec-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 28px; }
.spec-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 4px;
  padding: 6px 8px;
  font-weight: 400; font-size: 14px; line-height: 16px; letter-spacing: -0.42px; color: var(--muted);
}
.spec-chip .sq { width: 16px; height: 16px; border-radius: 4px; }
.spec-chip .dot { width: 4px; height: 4px; border-radius: 50%; background: #BFBFBF; }

.hero .cta-row { margin-top: 48px; }

/* ============================================================
   Extension panel mock (hero + history)
   ============================================================ */
.xpanel {
  width: 400px; max-width: 100%;
  background: #fff; border-radius: 20px; overflow: hidden;
  border-right: 1.25px solid var(--line);
  box-shadow: var(--card-shadow);
}
.xtabs { display: flex; align-items: center; gap: 10px; padding: 0 10px; border-bottom: 1.25px solid var(--line-lighter); }
.xtab {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 15px 10px; color: var(--muted);
  border-bottom: 1.25px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.xtab-label {
  font-weight: 500; font-size: 15px; line-height: 20px; letter-spacing: -0.45px;
  max-width: 0; overflow: hidden; opacity: 0;
  transition: max-width 0.32s var(--ease), opacity 0.24s var(--ease);
}
.xtab.is-active { color: var(--ink); border-bottom-color: var(--ink); }
.xtab.is-active .xtab-label { max-width: 110px; opacity: 1; margin-left: 2px; }
.xtab--idle { cursor: default; }

.xbody { position: relative; height: 478px; }
.xbody--auto { height: auto; padding: 20px 15px 15px; }

.xpane {
  position: absolute; inset: 0;
  padding: 20px 15px 15px;
  display: flex; flex-direction: column; gap: 15px;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.xpane.is-active { opacity: 1; transform: none; pointer-events: auto; }

.xtoolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.xfound { display: flex; align-items: center; gap: 10px; min-width: 0; }
.xlogo {
  width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.xfound-txt { display: flex; flex-direction: column; min-width: 0; }
.xfound-txt strong { font-weight: 500; font-size: 15px; line-height: 20px; letter-spacing: -0.24px; color: var(--dark-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xfound-txt strong .sel { font-style: normal; color: var(--blue); }
.xfound-txt em { font-style: normal; font-weight: 400; font-size: 12.5px; line-height: 17px; letter-spacing: -0.075px; color: var(--muted); }
.xactions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.xbtn {
  display: inline-flex; align-items: center; gap: 5px;
  background: #fff; border: 1.25px solid var(--line-swatch); border-radius: 250px;
  padding: 7px 12px; color: var(--dark-2);
  font-weight: 500; font-size: 15px; line-height: 16px; letter-spacing: -0.09px;
}
.xbtn--icon { padding: 7.5px; }
.xbtn--sm { font-size: 12.5px; padding: 4px 9px; gap: 4px; }
.cp { color: var(--muted); flex-shrink: 0; }

/* --- swatch list --- */
.swlist { display: flex; flex-direction: column; gap: 7.5px; }
.swrow {
  display: flex; align-items: stretch; gap: 5px;
  background: var(--line-lighter); border-radius: 7.5px; padding: 5px; overflow: hidden;
}
.sw { flex: 1; min-height: 44px; border-radius: 5px; }
.sw--line { box-shadow: inset 0 0 0 1.25px var(--line-swatch); }
.swmeta { display: flex; flex-direction: column; justify-content: center; gap: 1px; width: 118px; flex-shrink: 0; padding-right: 3px; }
.swtop { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-weight: 500; font-size: 15px; line-height: 20px; letter-spacing: -0.09px; color: var(--dark-2); }
.swuse { font-weight: 400; font-size: 12.5px; line-height: 16px; letter-spacing: -0.075px; color: var(--muted); }

/* stagger swatches each time the pane activates */
.xpane .swrow { opacity: 0; transform: translateY(6px); }
.xpane.is-active .swrow { animation: rowIn 0.45s var(--ease) forwards; }
.xpane.is-active .swrow:nth-child(1) { animation-delay: 0.05s; }
.xpane.is-active .swrow:nth-child(2) { animation-delay: 0.11s; }
.xpane.is-active .swrow:nth-child(3) { animation-delay: 0.17s; }
.xpane.is-active .swrow:nth-child(4) { animation-delay: 0.23s; }
.xpane.is-active .swrow:nth-child(5) { animation-delay: 0.29s; }
.xpane.is-active .swrow:nth-child(6) { animation-delay: 0.35s; }
@keyframes rowIn { to { opacity: 1; transform: none; } }

/* --- font card --- */
.fontcard { background: #fff; border: 1.25px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.fontcard-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fname { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; font-size: 16px; line-height: 20px; letter-spacing: -0.32px; color: var(--dark-2); }
.fname--mono { font-family: var(--mono); font-size: 14px; letter-spacing: -0.4px; }
.badge-free {
  font-style: normal; font-weight: 500; font-size: 11px; line-height: 16px; letter-spacing: -0.1px;
  color: #fff; background: #1FA05C; border-radius: var(--pill); padding: 1px 8px;
}
.badge-aa {
  font-style: normal; font-weight: 500; font-size: 10px; line-height: 14px;
  color: #fff; background: #1FA05C; border-radius: var(--pill); padding: 1px 6px;
}
.badge-tag {
  font-style: normal; font-family: var(--font); font-weight: 500; font-size: 11px; line-height: 16px; letter-spacing: -0.1px;
  color: var(--muted); background: var(--line-lighter); border: 1px solid var(--line); border-radius: 4px; padding: 0 6px;
}
.fontcard-preview {
  border: 1.25px solid var(--line); border-radius: 8px; padding: 14px 12px;
  font-weight: 400; font-size: 26px; line-height: 32px; letter-spacing: -0.5px; color: var(--dark-2);
  text-align: center; white-space: nowrap; overflow: hidden;
}
.specrows { display: flex; flex-direction: column; }
.specrow {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 5px 0;
  font-size: 13px; line-height: 18px; letter-spacing: -0.15px;
}
.specrow span { color: var(--muted); font-weight: 400; }
.specrow b { display: inline-flex; align-items: center; gap: 6px; color: var(--dark-2); font-weight: 500; }
.specrow .link-u { text-decoration: underline; text-underline-offset: 2px; font-weight: 500; }
.minisw { width: 13px; height: 13px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1); display: inline-block; }
.specrows--flat .specrow { border-bottom: 1px solid var(--line-lighter); }
.specrows--flat .specrow:last-child { border-bottom: 0; }
.fontrow-min {
  display: flex; align-items: center; justify-content: space-between;
  border: 1.25px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--muted);
}

/* --- asset grid --- */
.assetgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.atile {
  position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden;
  display: flex; align-items: flex-end;
  box-shadow: inset 0 0 0 1.25px rgba(0,0,0,0.05);
}
.alabel {
  font-family: var(--mono); font-size: 9.5px; line-height: 12px; letter-spacing: -0.2px;
  color: var(--muted); background: rgba(255,255,255,0.92); width: 100%; padding: 4px 6px;
}
.at1 { background: linear-gradient(135deg, #0088FF, #0062B8); }
.at2 { background: linear-gradient(135deg, #FFB347, #FF5100); }
.at3 { background: repeating-linear-gradient(45deg, #F0F2F4 0 8px, #E3E7EA 8px 16px); }
.at4 { background: linear-gradient(135deg, #16C284, #0E8A5F); }
.at5 { background: linear-gradient(135deg, #7C3AED, #4F24B8); }
.at6 { background: linear-gradient(135deg, #171717, #4A4A4A); }
.at7 { background: linear-gradient(135deg, #FF5E9A, #E1306C); }
.at8 { background: repeating-linear-gradient(-45deg, #EBF6FF 0 8px, #D7ECFF 8px 16px); }
.at9 { background: linear-gradient(135deg, #FFD84D, #FFA800); }

/* --- inspect box model --- */
.boxmodel {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: var(--line-lighter); border-radius: 10px; padding: 16px;
}
.bm-n { font-family: var(--mono); font-size: 11px; line-height: 14px; color: var(--muted); }
.bm-pad { display: flex; align-items: center; gap: 10px; width: 100%; justify-content: center; }
.bm-core {
  background: #DBEDFF; border: 1.25px dashed var(--blue); border-radius: 4px;
  padding: 12px 26px;
  font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--dark-2);
  white-space: nowrap;
}

/* ============================================================
   2 · EXTRACTION — bento
   ============================================================ */
.sec-head--center + .bento, .trio { margin-top: 64px; }
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; text-align: left; }
.fcard {
  background: #F7F9FA; border-radius: 24px; padding: 40px;
  display: flex; flex-direction: column; gap: 32px; overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.fcard:hover { transform: translateY(-3px); box-shadow: var(--card-shadow); }
.fcard--wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 56px; }
.fcard--wide .fcard-copy { flex: 1; min-width: 0; }
.fcard--wide .fcard-visual { flex: 1.1; min-width: 0; }
.fcard-copy { display: flex; flex-direction: column; gap: 16px; }
.fcard-visual { position: relative; }

/* Colors card visual: swatch list + copy popover */
.fv-colors { display: flex; justify-content: flex-start; padding: 8px 0; }
.fv-colors .mini-panel {
  width: 320px; background: #fff; border-radius: 16px; padding: 12px;
  box-shadow: 0 8px 20px -6px rgba(0,0,0,0.1);
}
.copycard {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 264px; background: #fff; border-radius: 14px; padding: 6px 0;
  box-shadow: var(--card-shadow);
}
.copysec { padding: 10px 16px; }
.copysec + .copysec { border-top: 1px solid var(--line-lighter); }
.copysec-h {
  display: flex; align-items: center; gap: 8px;
  font-weight: 500; font-size: 14px; line-height: 20px; letter-spacing: -0.28px; color: var(--dark-2);
  margin-bottom: 4px;
}
.copysec-h .cp { margin-left: auto; }
.copied-flag {
  font-family: var(--mono); font-size: 11px; line-height: 14px; color: #1FA05C;
  opacity: 0; animation: copiedCycle 9s infinite;
}
@keyframes copiedCycle {
  0%, 3% { opacity: 0; }
  6%, 30% { opacity: 1; }
  33%, 100% { opacity: 0; }
}
.code {
  font-family: var(--mono); font-weight: 400; font-size: 11.5px; line-height: 17px; letter-spacing: -0.2px;
  color: var(--code-red); white-space: pre-wrap; word-break: break-word;
}
.code--lg { font-size: 14px; line-height: 24px; }
.code--block {
  background: #fff; border: 1.25px solid var(--line); border-radius: 8px;
  padding: 10px 12px; margin-top: 8px;
}

/* Typography card visual: stacked specimen */
.fv-type { display: flex; justify-content: center; padding: 16px 0 8px; }
.typestack { position: relative; width: min(340px, 100%); }
.fontcard--back {
  position: absolute; inset: 0; transform: rotate(-5deg) translate(-14px, 6px);
  background: #EFF2F4; border-color: transparent; box-shadow: none;
}
.fontcard--float { position: relative; background: #fff; border: 0; box-shadow: 0 10px 26px -8px rgba(0,0,0,0.14); animation: floatY 5.5s ease-in-out infinite; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* Assets card visual: tiles take turns "downloading" */
.fv-assets { padding: 8px 0 0; }
.assetgrid--loop .atile { --n: 6; }
.acopied {
  position: absolute; top: 6px; right: 6px;
  width: 24px; height: 24px; border-radius: 50%;
  background: #fff; color: var(--dark-2);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  opacity: 0; animation: tileTurn 9s infinite;
  animation-delay: calc(var(--i) * 1.5s);
}
@keyframes tileTurn {
  0%, 2% { opacity: 0; transform: scale(0.6); }
  5%, 14% { opacity: 1; transform: scale(1); }
  17%, 100% { opacity: 0; transform: scale(0.6); }
}

/* H2 static inspected word ("assets.") */
.h2-box {
  position: relative; display: inline-block;
  border: 2px dashed var(--ink); padding: 0 8px; line-height: 52px;
}
.h2-tag { top: auto; bottom: -8px; right: -12px; transform: translate(100%, 100%); }

/* ============================================================
   3 · INSPECTION — trio
   ============================================================ */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: left; }
.tcard { display: flex; flex-direction: column; gap: 12px; }
.tcard .h3 { margin-top: 20px; }
.tviz {
  position: relative; border-radius: 20px; overflow: hidden;
  aspect-ratio: 5 / 4; background: #F7F9FA;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.tcard:hover .tviz { transform: translateY(-3px); box-shadow: var(--card-shadow); }

/* --- CSS Inspect demo --- */
.tviz--inspect { padding: 24px; }
.mock-el { position: absolute; }
.mock-btn {
  top: 28px; left: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 20px; border-radius: var(--pill);
  background: var(--ink); color: #fff; font-weight: 500; font-size: 13px; letter-spacing: -0.26px;
}
.mock-card {
  top: 96px; left: 24px; width: 200px; height: 84px;
  background: #fff; border-radius: 12px; box-shadow: 0 4px 14px -4px rgba(0,0,0,0.08);
  display: flex; flex-direction: column; gap: 8px; justify-content: center; padding: 0 16px;
}
.mock-bar { height: 8px; border-radius: 4px; background: #E4E8EB; width: 80%; }
.mock-bar--short { width: 50%; }
.selbox {
  position: absolute; border: 2px dashed var(--blue); border-radius: 6px;
  pointer-events: none; animation: selJump 8s var(--ease) infinite;
}
@keyframes selJump {
  0%, 42%   { top: 22px; left: 18px; width: 136px; height: 52px; border-radius: 200px; }
  50%, 92%  { top: 90px; left: 18px; width: 212px; height: 96px; border-radius: 14px; }
  100%      { top: 22px; left: 18px; width: 136px; height: 52px; border-radius: 200px; }
}
.propcard {
  position: absolute; right: 16px; bottom: 16px; width: 218px;
  background: #fff; border-radius: 14px; padding: 12px 16px 8px;
  box-shadow: var(--card-shadow);
}
.propcard-h {
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 500; font-size: 14px; letter-spacing: -0.28px; color: var(--dark-2);
  padding-bottom: 6px; border-bottom: 1px solid var(--line-lighter);
}
.propsets { position: relative; }
.propset--a { animation: setA 8s infinite; }
.propset--b { position: absolute; inset: 0; opacity: 0; animation: setB 8s infinite; }
@keyframes setA { 0%, 44% { opacity: 1; } 50%, 94% { opacity: 0; } 100% { opacity: 1; } }
@keyframes setB { 0%, 44% { opacity: 0; } 50%, 94% { opacity: 1; } 100% { opacity: 0; } }

/* --- Color Picker demo --- */
.tviz--picker {
  background:
    radial-gradient(90% 110% at 18% 12%, #4F46E5 0%, transparent 55%),
    radial-gradient(80% 100% at 85% 80%, #FF5100 0%, transparent 60%),
    radial-gradient(70% 90% at 70% 20%, #0088FF 0%, transparent 55%),
    linear-gradient(140deg, #6D28D9, #BE185D);
}
.loupe {
  position: absolute; top: 26%; left: 50%; width: 96px; height: 96px; margin: -48px;
  animation: loupeMove 9s ease-in-out infinite;
}
.lens {
  position: absolute; inset: 0; border-radius: 50%;
  border: 5px solid #fff; box-shadow: 0 10px 24px rgba(0,0,0,0.3);
  animation: lensColor 9s ease-in-out infinite;
}
.reticle {
  position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; transform: translate(-50%, -50%);
  border: 2px solid #fff; border-radius: 4px; box-shadow: 0 0 0 1px rgba(0,0,0,0.25);
}
@keyframes loupeMove {
  0%, 26%   { top: 30%; left: 62%; }
  36%, 60%  { top: 62%; left: 34%; }
  70%, 94%  { top: 36%; left: 46%; }
  100%      { top: 30%; left: 62%; }
}
@keyframes lensColor {
  0%, 30%  { background: #FF6118; }
  38%, 64% { background: #7C3AED; }
  72%, 96% { background: #0088FF; }
  100%     { background: #FF6118; }
}
.pickread {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border-radius: var(--pill); padding: 8px 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.pickdot { width: 16px; height: 16px; border-radius: 4px; animation: lensColor 9s ease-in-out infinite; }
.pickhex { position: relative; display: inline-block; width: 84px; height: 20px; }
.pickhex b {
  position: absolute; inset: 0;
  font-family: var(--mono); font-weight: 700; font-size: 14px; line-height: 20px; color: var(--dark-2);
  opacity: 0;
}
.pickhex b:nth-child(1) { animation: hex1 9s infinite; }
.pickhex b:nth-child(2) { animation: hex2 9s infinite; }
.pickhex b:nth-child(3) { animation: hex3 9s infinite; }
@keyframes hex1 { 0%, 30% { opacity: 1; } 38%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes hex2 { 0%, 30% { opacity: 0; } 38%, 64% { opacity: 1; } 72%, 100% { opacity: 0; } }
@keyframes hex3 { 0%, 64% { opacity: 0; } 72%, 96% { opacity: 1; } 100% { opacity: 0; } }

/* --- Font Picker demo --- */
.tviz--font { padding: 28px 24px; }
.fox {
  font-weight: 500; font-size: 26px; line-height: 40px; letter-spacing: -1px; color: var(--ink);
  max-width: 260px;
}
.fox-w { position: relative; white-space: nowrap; }
.fox-w::before {
  content: ""; position: absolute; inset: -2px -6px;
  border: 2px dashed var(--ink); opacity: 0; pointer-events: none;
}
.fox-w--a { animation: foxA 8s infinite; }
.fox-w--b { animation: foxB 8s infinite; }
.fox-w--a::before { animation: foxA 8s infinite; }
.fox-w--b::before { animation: foxB 8s infinite; }
@keyframes foxA { 0%, 44% { opacity: 1; color: var(--blue); } 50%, 94% { opacity: 0.999; color: var(--ink); } 100% { opacity: 1; color: var(--blue); } }
@keyframes foxB { 0%, 44% { opacity: 0.999; color: var(--ink); } 50%, 94% { opacity: 1; color: var(--blue); } 100% { opacity: 0.999; color: var(--ink); } }
.fox-w--a::before { animation-name: foxABox; }
.fox-w--b::before { animation-name: foxBBox; }
@keyframes foxABox { 0%, 44% { opacity: 1; } 50%, 94% { opacity: 0; } 100% { opacity: 1; } }
@keyframes foxBBox { 0%, 44% { opacity: 0; } 50%, 94% { opacity: 1; } 100% { opacity: 0; } }
.fontcard--pin {
  position: absolute; right: 16px; bottom: 16px; width: 216px;
  background: #fff; border: 0; box-shadow: var(--card-shadow);
  padding: 12px 14px; gap: 8px;
}
.fontcard--pin .fontcard-preview { font-size: 20px; line-height: 26px; padding: 8px 10px; }

/* ============================================================
   4 · FORMATS
   ============================================================ */
#formats .sec-head { margin-bottom: 64px; }
.formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.fmtcard {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 20px 24px; min-height: 220px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.fmtcard:hover { transform: translateY(-3px); box-shadow: var(--card-shadow); }
.fmtcard-h {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-weight: 500; font-size: 16px; line-height: 24px; letter-spacing: -0.48px; color: var(--dark-2);
}
.fmt-actions { display: inline-flex; align-items: center; gap: 8px; }

/* ============================================================
   5 · HISTORY
   ============================================================ */
.history-grid { display: flex; align-items: center; gap: 64px; }
.history-visual { flex: 1; display: flex; justify-content: center; background: #F7F9FA; border-radius: 24px; padding: 48px 24px; }
.history-copy { flex: 1; display: flex; flex-direction: column; gap: 16px; }
.history-copy .cta-row { margin-top: 16px; }

.hgroup { font-weight: 500; font-size: 15px; line-height: 20px; letter-spacing: -0.3px; color: var(--dark-2); padding: 4px 0 12px; }
.hgroup--dim { color: var(--muted); border-top: 1px solid var(--line-lighter); padding-top: 14px; margin-top: 6px; }
.hlist { display: flex; flex-direction: column; }
.hrow {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line-lighter);
  opacity: 0; transform: translateY(8px);
  animation: histIn 0.5s var(--ease) forwards;
  animation-delay: calc(0.25s + var(--i) * 0.18s);
}
.rv.in .hrow { animation-play-state: running; }
@keyframes histIn { to { opacity: 1; transform: none; } }
.hsw { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06); }
.hsw--icon { background: #fff; border: 1.25px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--dark-2); }
.hmeta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.hsrc { font-size: 12.5px; line-height: 17px; letter-spacing: -0.075px; color: var(--muted); }
.hsrc i { font-style: normal; color: var(--line-swatch); }
.hval { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; line-height: 20px; letter-spacing: -0.24px; color: var(--dark-2); }
.hrow .cp { margin-top: 10px; }
.hrow:last-child { border-bottom: 0; }

/* ============================================================
   6 · PRICING  (literal to node 497:1263 — do not restyle)
   ============================================================ */
.sec--pricing { padding: 80px 0; background: var(--bg); }
.pricing-inner { display: flex; flex-direction: column; gap: 48px; }
.plans { display: flex; gap: 48px; align-items: flex-end; }
.plan { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.plan--pro { justify-content: center; }

.billing-row { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.toggle {
  width: 38px; height: 20px; padding: 2px; border-radius: var(--pill);
  background: var(--ink); display: inline-flex; align-items: center; justify-content: flex-end;
  transition: background 0.2s var(--ease);
}
.toggle[aria-checked="false"] { justify-content: flex-start; background: #B9BDBF; }
.toggle-dot { width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.billing-label { font-weight: 400; font-size: 16px; line-height: 24px; letter-spacing: -0.48px; color: var(--ink); }
.save-badge {
  display: inline-flex; align-items: center; height: 20px; padding: 0 6px;
  background: #333; border-radius: var(--pill);
  font-weight: 400; font-size: 12px; line-height: 16px; letter-spacing: -0.36px; color: #fff;
}

.plancard {
  position: relative; aspect-ratio: 400 / 240; border-radius: 24px; padding: 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden; box-shadow: var(--card-shadow);
}
.plancard--free { background: linear-gradient(180deg, #FFFFFF 0%, #F4F7FA 100%); border: 1px solid var(--line); }
.plancard--pro { background: #000; }

/* decorative ellipses (recreated from node assets in CSS) */
.ellipse { position: absolute; border-radius: 50%; pointer-events: none; }
.ellipse--tl { top: -120px; left: -60px; width: 300px; height: 300px; background: radial-gradient(closest-side, rgba(236,240,244,0.9), rgba(236,240,244,0)); }
.ellipse--br { bottom: -140px; right: -80px; width: 340px; height: 340px; border: 1px solid var(--line); }
.ellipse--pro-t { top: -160px; left: 40px; width: 360px; height: 360px; background: radial-gradient(closest-side, rgba(255,255,255,0.10), rgba(255,255,255,0)); }
.ellipse--pro-br { bottom: -150px; right: -90px; width: 340px; height: 340px; border: 1px solid rgba(255,255,255,0.12); }

.plancard-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
.planlogo {
  width: 32px; height: 32px; border-radius: 9px; background: var(--ink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.planlogo--gold { background: transparent; color: #E2BB7D; }
.planname { font-weight: 500; font-size: 24px; line-height: 28px; letter-spacing: -0.96px; color: var(--ink); }
.planname--gold {
  line-height: 32px;
  background: linear-gradient(90deg, #D6A65A 0%, #E2BB7D 50%, #F7F2E8 75%, #C1944C 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.plancard-bottom { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 2px; }
.price { font-weight: 400; font-size: 64px; line-height: 64px; letter-spacing: -3.2px; color: var(--ink); }
.price--pro { color: #fff; display: flex; align-items: baseline; gap: 8px; }
.price--pro em { font-style: normal; font-weight: 400; font-size: 14px; line-height: 20px; letter-spacing: -0.42px; color: var(--line); }
.price-note { font-weight: 400; font-size: 14px; line-height: 20px; letter-spacing: -0.42px; color: var(--muted); margin-top: 6px; }
.price-note--pro { color: var(--line); }

.plan-cta { display: flex; justify-content: center; }

.feats { display: flex; flex-direction: column; gap: 16px; }
.feat { display: flex; align-items: flex-start; gap: 12px; }
.feat-check { color: var(--ink); flex-shrink: 0; margin-top: 4px; }
.feat-txt { display: flex; flex-direction: column; gap: 8px; }
.feat-txt b { font-weight: 500; font-size: 20px; line-height: 28px; letter-spacing: -0.8px; color: var(--ink); }
.feat-txt p { font-weight: 400; font-size: 16px; line-height: 24px; letter-spacing: -0.48px; color: var(--body); }

/* ============================================================
   7 · FAQ
   ============================================================ */
.faq-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.faq-title { position: sticky; top: 120px; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { padding: 12px 0; }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: 100%; text-align: left;
  font-weight: 500; font-size: 20px; line-height: 28px; letter-spacing: -0.8px; color: var(--ink);
  padding: 8px 0;
}
.faq-btn { position: relative; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-swatch); background: transparent; transition: background 0.24s var(--ease), border-color 0.24s var(--ease), transform 0.3s var(--ease); }
.faq-btn::before, .faq-btn::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: var(--muted); border-radius: 1px;
  transition: background 0.24s var(--ease), transform 0.3s var(--ease);
}
.faq-btn::before { width: 14px; height: 1.6px; transform: translate(-50%, -50%); }
.faq-btn::after { width: 1.6px; height: 14px; transform: translate(-50%, -50%); }
.faq-item.is-open .faq-btn { background: var(--ink); border-color: var(--ink); transform: rotate(45deg); }
.faq-item.is-open .faq-btn::before, .faq-item.is-open .faq-btn::after { background: #fff; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.36s var(--ease); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a-in { overflow: hidden; }
.faq-a-in p { padding: 4px 56px 12px 0; font-size: 16px; line-height: 24px; letter-spacing: -0.48px; color: var(--body); }

/* ============================================================
   8 · FINAL CTA
   ============================================================ */
.sec--final { padding: 80px 0 96px; }
.final-card {
  position: relative; background: #000; border-radius: 32px;
  padding: clamp(64px, 8vw, 112px) 40px; text-align: center; overflow: hidden;
  background-image:
    radial-gradient(rgba(255,255,255,0.09) 1px, transparent 1.5px),
    radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1.5px);
  background-size: 22px 22px, 22px 22px;
  background-position: 0 0, 11px 11px;
}
.h2--final { color: #fff; }
.final-sub {
  margin: 20px auto 0; max-width: 460px;
  font-size: 16px; line-height: 24px; letter-spacing: -0.48px; color: rgba(255,255,255,0.7);
}
.final-card .cta-row { margin-top: 40px; }
.final-fine {
  margin-top: 24px;
  font-family: var(--mono); font-size: 11px; line-height: 16px; letter-spacing: -0.2px;
  color: rgba(255,255,255,0.45);
}
.float-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 6px;
  background: #171717; border: 1px solid #2A2A2A; border-radius: 4px; padding: 6px 8px;
  font-family: var(--mono); font-size: 11px; line-height: 14px; letter-spacing: -0.2px; color: rgba(255,255,255,0.75);
  animation: chipFloat 7s ease-in-out infinite;
}
.float-chip .sq { width: 12px; height: 12px; border-radius: 3px; }
.float-chip .dot { width: 4px; height: 4px; border-radius: 50%; background: #666; }
.fc1 { top: 22%; left: 9%; animation-delay: 0s; }
.fc2 { top: 62%; left: 15%; animation-delay: 1.4s; }
.fc3 { top: 30%; right: 12%; animation-delay: 2.8s; }
.fc4 { top: 66%; right: 8%; animation-delay: 0.9s; }
.fc5 { top: 12%; right: 34%; animation-delay: 2s; }
@keyframes chipFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ============================================================
   9 · FOOTER
   ============================================================ */
.footer { position: relative; border-top: 1px solid var(--line); padding-top: 64px; overflow: hidden; }
.footer-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding-bottom: 56px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; max-width: 300px; }
.brand--dark { color: var(--ink); }
.footer-tag { font-size: 14px; line-height: 22px; letter-spacing: -0.28px; color: var(--muted); }
.footer-cols { display: flex; gap: clamp(40px, 6vw, 96px); flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-h { font-weight: 500; font-size: 14px; letter-spacing: -0.28px; color: var(--ink); margin-bottom: 4px; }
.footer-col a { font-size: 14px; letter-spacing: -0.28px; color: var(--muted); transition: color 0.15s var(--ease); }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line-lighter); padding: 20px 0 28px;
  font-size: 13px; letter-spacing: -0.26px; color: var(--muted);
}
.footer-mono { font-family: var(--mono); font-size: 11px; letter-spacing: -0.2px; color: #C9CDCF; }
.footer-mark {
  font-weight: 500; font-size: clamp(120px, 22vw, 320px); line-height: 0.78;
  letter-spacing: -0.05em; text-align: center; color: #F3F5F6;
  user-select: none; pointer-events: none; margin-top: -10px;
}

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

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1280px) {
  .h1 { font-size: clamp(48px, 6.4vw, 80px); line-height: 1.14; letter-spacing: -0.05em; }
  .hw-box { line-height: 1.08; }
  .hero-grid { gap: 48px; }
}
@media (max-width: 1080px) {
  .hero-grid { flex-direction: column; align-items: flex-start; gap: 56px; }
  .hero-right { width: 100%; }
  .hw-chip--hex { right: 8px; top: auto; bottom: -10px; transform: translateY(100%); }
  .fcard--wide { flex-direction: column; align-items: stretch; gap: 32px; }
  .copycard { position: relative; top: auto; right: auto; transform: none; margin: -40px auto 0; }
  .trio { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .formats { grid-template-columns: 1fr; }
  .history-grid { flex-direction: column-reverse; align-items: stretch; }
  .plans { flex-direction: column; align-items: stretch; gap: 64px; }
  .plan--pro { order: -1; }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .faq-title { position: static; }
}
@media (max-width: 720px) {
  .sec { padding: 64px 0; }
  .h2 { font-size: clamp(32px, 8vw, 48px); line-height: 1.16; letter-spacing: -0.04em; }
  .h2-box { line-height: 1.1; }
  .nav-links { display: none; }
  .btn-signin { display: none; }
  .bento { grid-template-columns: 1fr; }
  .fcard { padding: 28px 24px; }
  .plancard { padding: 28px; aspect-ratio: auto; min-height: 220px; }
  .price { font-size: 52px; line-height: 52px; letter-spacing: -2.6px; }
  .hero { padding: 48px 0; }
  .hero .cta-row, .cta-row { flex-wrap: wrap; }
  .xpanel { width: 100%; }
  .faq-q { font-size: 18px; letter-spacing: -0.6px; }
  .faq-a-in p { padding-right: 0; }
  .float-chip { display: none; }
  .footer-top { flex-direction: column; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .rv { opacity: 1 !important; transform: none !important; }
  .xpane .swrow, .hrow { opacity: 1 !important; transform: none !important; }
}
