:root {
  --bg: #FFFFFF;
  --ink: #141414;
  --mute: #6E6A64;
  --soft: #9A958E;
  --card: #F2F1EF;
  --line: #E6E2DC;
  --acc: #FF6A1A;
  --radius: 22px;
  --gutter: clamp(16px, 5vw, 72px);
  --max: 1440px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* keep the footer at the bottom on short pages */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1; }
.nav, .footer, .site-footer { width: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }

/* ---------- Nav ---------- */
.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: inline-flex;
  align-items: center;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.logo-mark {
  width: 24px; height: 24px;
  margin-right: 9px;
  flex: none;
  background: url(/assets/brand/logo-mark.svg) center / contain no-repeat;
}
.logo-light { font-weight: 400; }
.logo-dot { color: var(--acc); }
.footer-copy a:hover { color: var(--ink); }
.nav-links { display: flex; gap: clamp(18px, 3vw, 34px); font-size: 15px; font-weight: 500; color: #555; }
.nav-links a { white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: clamp(48px, 9vw, 112px) var(--gutter) clamp(64px, 8vw, 104px);
}
.hero-title {
  /* 9.6vw keeps "Better [icon] Karaoke." (~8.25em, the longest line) on one line down to 640px */
  font-size: clamp(54px, 9.6vw, 148px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.2;
}
.swap {
  display: inline-block;
  height: 1.2em;
  overflow: hidden;
  vertical-align: bottom;
  text-align: left;
  color: var(--acc);
  /* width is set by JS so the whole line stays centred while words change */
  transition: width 0.7s cubic-bezier(0.65, 0, 0.25, 1);
  white-space: nowrap;
}
.swap-track {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* each word keeps its own width so JS can measure it */
  transition: transform 0.7s cubic-bezier(0.65, 0, 0.25, 1);
}
.swap-track.no-anim { transition: none; }
.swap-word { display: block; height: 1.2em; line-height: 1.2em; }

/* Product icon inside the headline: the slot opens (pushing the words apart), then the icon pops in.
   main.js opens it and swaps the icon with each word. Closed (no JS), it takes no space. */
.slot {
  --icon: 0.74em;
  --gap: 0.16em;
  position: relative;
  display: inline-block;
  width: 0;
  height: 1.2em;
  vertical-align: bottom;
  transition: width 0.62s cubic-bezier(0.65, 0, 0.25, 1);
}
.slot.is-open { width: calc(var(--icon) + var(--gap)); }
.hero-tail { white-space: nowrap; } /* the icon never wraps away from its word */
.slot-icon {
  position: absolute;
  left: 0;
  top: 0.24em;
  width: var(--icon);
  height: var(--icon);
  border-radius: 24%;
  box-shadow: 0 0.08em 0.2em -0.04em rgba(17, 17, 17, 0.28);
  opacity: 0;
}

/* Hero entrance: each part rises out of a blur, one after another */
@keyframes rise {
  from { opacity: 0; filter: blur(6px); transform: translateY(16px); }
}
.hero-title, .hero-lead, .hero .btn { animation: rise 1s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }
.hero-lead { animation-delay: 0.15s; }
.hero .btn { animation-delay: 0.25s; }

.hero-lead {
  max-width: 620px;
  margin: clamp(16px, 2vw, 24px) auto clamp(28px, 3vw, 40px);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--mute);
}
.hero-lead strong { color: var(--ink); font-weight: 600; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s, background 0.2s;
}
.btn:hover { background: #000; transform: translateY(-1px); }

/* ---------- Tools grid ---------- */
.tools {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(72px, 9vw, 128px);
  scroll-margin-top: 24px;
}
.tools-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 400px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--card);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s;
}
a.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -28px rgba(40, 30, 20, 0.35);
}
.card-name { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; padding-right: 64px; }
.card-desc { font-size: 17px; color: #7A766F; margin-top: 2px; line-height: 1.4; padding-right: 8px; }
.card-badge {
  position: absolute;
  top: 26px; right: 26px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--acc);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.card-icon {
  width: 128px; height: 128px;
  margin: auto;
  padding: 24px 0;
  box-sizing: content-box;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.12));
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
a.card:hover .card-icon { transform: scale(1.06) rotate(-2deg); }
.card-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.card-meta { font-size: 13px; color: var(--soft); text-align: right; }
.card-more {
  flex: none;
  font-size: 15px;
  font-weight: 600;
  color: #555;
  border-bottom: 1.5px solid #A8A39C;
  padding-bottom: 1px;
}
a.card:hover .card-more { color: var(--ink); border-color: var(--ink); }

.card-soon { background: transparent; border: 2px dashed #E2DED8; }
.card-soon .card-name { color: var(--soft); }
.card-soon .card-desc { color: #B3AEA6; }
.card-soon .card-more { color: #B3AEA6; border-color: transparent; }
.card-soon .card-icon { filter: none; }

/* ---------- Footer ---------- */
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px var(--gutter) 48px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-about { max-width: 520px; }
.footer-about p { margin-top: 14px; color: var(--mute); font-size: 15px; line-height: 1.6; }
.footer-copy { color: var(--soft); font-size: 14px; }

/* ---------- Placeholder pages (/explora, /karaoke, /emoji, 404) ---------- */
.holding {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(56px, 10vw, 120px) var(--gutter) clamp(80px, 10vw, 140px);
  text-align: center;
}
.holding-icon {
  width: 112px; height: 112px;
  margin: 0 auto 32px;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.12));
}
.holding-title {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.05;
}
.holding-desc { margin-top: 16px; font-size: clamp(17px, 1.6vw, 20px); color: var(--mute); line-height: 1.55; }
.holding-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #FFF1E6;
  color: #C4500F;
  font-size: 14px;
  font-weight: 600;
}
.holding-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); }
.holding-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: #fff; border-color: var(--ink); }

/* ---------- Card tags (Free, Open source, platform) ---------- */
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: #fff; color: var(--ink); }
.tag.free { background: #E8F6EC; color: #1D6B33; }
.tag.open { background: #EEF0FF; color: #3A45B5; }
.tag.beta { background: #FFF1E6; color: #C4500F; }

/* ---------- Home sections after the tools grid ---------- */
.sec { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(72px, 9vw, 120px); scroll-margin-top: 24px; }
.sec-title { font-size: 15px; font-weight: 600; color: var(--soft); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 20px; }

.maker { display: grid; grid-template-columns: 340px 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; background: var(--card); border-radius: 28px; padding: clamp(24px, 4vw, 48px); }
.maker-pic { display: block; min-width: 0; }
.maker-pic img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; }
.maker h2 { font-size: clamp(30px, 4vw, 52px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.08; }
.maker p { margin-top: 16px; font-size: 18px; line-height: 1.6; color: var(--mute); max-width: 620px; }
.maker-sign { margin-top: 22px; display: flex; align-items: center; gap: 12px; font-weight: 600; }
.maker-sign img { width: 36px; height: 36px; }
.maker-sign span { white-space: nowrap; }
.maker-sign a { margin-left: auto; font-size: 15px; border-bottom: 1.5px solid #A8A39C; }
.maker-sign a:hover { border-color: var(--ink); }

.promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.promise { border-top: 2px solid var(--ink); padding-top: 18px; }
.promise-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--card); display: grid; place-items: center; font-size: 20px; }
.promise h3 { margin-top: 14px; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.promise p { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--mute); }
.promise a { color: var(--ink); border-bottom: 1px solid var(--line); }

.support { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; border-radius: 28px; padding: clamp(28px, 4vw, 52px); background: var(--ink); color: #fff; }
.support h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }
.support p { margin-top: 12px; color: rgba(255,255,255,.7); font-size: 17px; line-height: 1.55; max-width: 560px; }
.support-ways { display: flex; gap: 16px; }
.way { background: #fff; color: var(--ink); border-radius: 18px; padding: 14px; width: 170px; text-align: center; transition: transform .2s; }
.way:hover { transform: translateY(-3px); }
.way img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; border-radius: 10px; display: block; }
.way b { display: block; margin-top: 10px; font-size: 15px; }
.way span { display: block; font-size: 12px; color: var(--soft); margin-top: 2px; }

/* ---------- Featured product ---------- */
.feature-sec { padding-bottom: clamp(56px, 7vw, 96px); }
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; border-radius: 28px; padding: clamp(28px, 4.5vw, 64px); background: linear-gradient(135deg, #FFF4EC 0%, #FDE3CC 100%); overflow: hidden; }
.feature-eyebrow { font-size: 14px; font-weight: 600; color: #C4500F; }
.feature-title { margin-top: 8px; font-size: clamp(36px, 5vw, 64px); font-weight: 800; letter-spacing: -0.05em; line-height: 1.02; }
.feature-desc { margin-top: 14px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: #5C564F; max-width: 540px; }
.feature-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.feature-meta { margin-top: 14px; font-size: 14px; color: #8C7B6B; }
.feature-art { position: relative; aspect-ratio: 1 / 0.82; display: grid; place-items: center; }
.feature-icon { width: 46%; max-width: 200px; height: auto; aspect-ratio: 1 / 1; filter: drop-shadow(0 24px 40px rgba(196, 80, 15, 0.3)); transition: transform .4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.feature:hover .feature-icon { transform: scale(1.04) rotate(-2deg); }
.chip { position: absolute; font-size: clamp(12px, 1.1vw, 14px); font-weight: 700; padding: 7px 13px; border-radius: 999px; background: #fff; box-shadow: 0 10px 24px -12px rgba(120, 60, 20, 0.35); white-space: nowrap; }
.chip.c1 { top: 8%; left: 10%; transform: rotate(-6deg); }
.chip.c2 { top: 4%; right: 16%; transform: rotate(5deg); }
.chip.c3 { top: 42%; left: 0; transform: rotate(4deg); }
.chip.c4 { top: 40%; right: 2%; transform: rotate(-5deg); }
.chip.c5 { bottom: 10%; left: 8%; transform: rotate(-3deg); }
.chip.c6 { bottom: 6%; right: 12%; transform: rotate(6deg); }
.feature-key { position: absolute; bottom: 30%; left: 50%; transform: translate(-50%, 50%); padding: 6px 26px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 4px 0 #000; }

/* Karaoke colours for the featured block (from the Better Karaoke icon) */
.feature-karaoke { background: linear-gradient(135deg, #FDEEE6 0%, #FFD3DA 100%); }
.feature-karaoke .feature-eyebrow { color: #CC1F3D; }
.feature-karaoke .feature-desc { color: #5E4A4C; }
.feature-karaoke .feature-meta { color: #9A6F74; }
.feature-karaoke .feature-icon { filter: drop-shadow(0 24px 40px rgba(245, 35, 63, 0.3)); border-radius: 22%; }
.feature-karaoke .chip { box-shadow: 0 10px 24px -12px rgba(150, 30, 50, 0.35); }
.feature-karaoke .feature-key { bottom: 9%; transform: translate(-50%, 0); } /* below the icon, clear of its mic */
.btn-k { background: linear-gradient(90deg, #FF4B6B, #E81F3C); }
.btn-k:hover { background: linear-gradient(90deg, #F23A5C, #D4182F); }

/* ---------- Updates strip + follow ---------- */
.updates { display: grid; grid-template-columns: 1fr 340px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.updates-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.updates-all { font-size: 15px; font-weight: 600; border-bottom: 1.5px solid #A8A39C; }
.updates-all:hover { border-color: var(--ink); }
.upd-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.upd { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.upd-icon { width: 44px; height: 44px; border-radius: 22%; }
.upd-meta { font-size: 13px; color: var(--soft); font-weight: 500; }
.upd-title { display: inline-block; margin-top: 3px; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.35; }
.upd-title:hover { color: var(--acc); }
.upd-text { margin-top: 6px; font-size: 16px; line-height: 1.6; color: var(--mute); }
.follow { background: var(--card); border-radius: 22px; padding: 24px; }
.follow h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.follow p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--mute); }
.follow p a { color: var(--ink); border-bottom: 1px solid #C9C4BD; }
.follow-links { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.follow-links a { display: inline-block; font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.follow-links a:hover { border-color: var(--ink); }
.page .upd-list { margin-top: 28px; }
.now-list { margin-top: 12px; }

/* ---------- Full site footer (home, about, privacy) ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer-cols { max-width: var(--max); margin: 0 auto; padding: 48px var(--gutter) 40px; display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.site-footer-cols p { margin-top: 14px; color: var(--mute); font-size: 15px; line-height: 1.6; max-width: 360px; }
.site-footer h4 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--soft); font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.site-footer ul a:hover { color: var(--acc); }
.site-footer-base { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 40px; display: flex; justify-content: space-between; gap: 16px; color: var(--soft); font-size: 14px; flex-wrap: wrap; }

/* ---------- Text pages (/about, /privacy) ---------- */
.page { max-width: 760px; margin: 0 auto; padding: clamp(40px, 7vw, 88px) var(--gutter) clamp(72px, 9vw, 120px); }
.page h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 800; letter-spacing: -0.05em; line-height: 1.05; }
.page .lead { margin-top: 18px; font-size: clamp(18px, 1.8vw, 21px); line-height: 1.6; color: var(--mute); }
.page h2 { margin-top: 48px; font-size: 26px; font-weight: 800; letter-spacing: -0.035em; }
.page h3 { margin-top: 28px; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.page p, .page li { font-size: 17px; line-height: 1.7; color: #3D3A36; }
.page p { margin-top: 12px; }
.page ul { margin: 12px 0 0; padding-left: 22px; }
.page li + li { margin-top: 6px; }
.page a:not(.btn) { color: var(--ink); border-bottom: 1px solid #C9C4BD; }
.page a:not(.btn):hover { border-color: var(--ink); }
.page .meta { margin-top: 14px; font-size: 14px; color: var(--soft); }
.page-photo { display: block; margin-top: 32px; border-radius: 24px; overflow: hidden; }
.page-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 25%; }
.page-box { margin-top: 20px; padding: 20px 22px; border-radius: 18px; background: var(--card); }
.page-box p:first-child { margin-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .card { min-height: 360px; }
}
@media (max-width: 1000px) {
  .promises { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; }
  .feature-art { max-width: 460px; width: 100%; margin: 0 auto; }
  .updates { grid-template-columns: 1fr; }
  .maker { grid-template-columns: 240px 1fr; }
  .support { grid-template-columns: 1fr; }
  .site-footer-cols { grid-template-columns: 1fr 1fr 1fr; }
  .site-footer-cols > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .nav-links a + a { display: none; } /* phones: keep only the first nav link */
  /* Long words would overflow next to "Better" on phones: put the word on its own line */
  .hero-title { line-height: 1.1; }
  .hero-better, .hero-tail { display: block; }
  .grid { grid-template-columns: 1fr; gap: 16px; }
  .card { min-height: 0; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name icon" "desc icon" "tags icon" "more icon"; column-gap: 16px; padding: 22px; align-items: start; }
  .card-tags { grid-area: tags; margin-top: 10px; }
  .feature-art .chip.c3, .feature-art .chip.c4, .feature-art .chip.c5, .feature-art .chip.c6 { display: none; } /* too crowded on phones */
  .feature-art { aspect-ratio: 1 / 0.9; }
  .feature-karaoke .feature-key { bottom: 2%; }
  .maker { grid-template-columns: 1fr; }
  .maker-pic img { aspect-ratio: 1 / 1; object-position: 50% 20%; }
  .promises { grid-template-columns: 1fr; }
  .way { width: auto; flex: 1; }
  .site-footer-cols { grid-template-columns: 1fr 1fr; }
  .card-name { grid-area: name; padding-right: 0; font-size: 19px; }
  .card-desc { grid-area: desc; font-size: 15px; }
  .card-foot { grid-area: more; justify-content: flex-start; margin-top: 14px; }
  .card-icon { grid-area: icon; width: 72px; height: 72px; padding: 0; margin: 0; align-self: center; }
  .card-badge { top: 12px; right: 12px; font-size: 12px; padding: 2px 10px; z-index: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   Explora look (21 Nov 2026). The hub follows the Better Explora website
   (better-finder/website/styles-b.css): system font, calmer 600–700 headings,
   12px buttons, a sticky frosted nav, soft panels, one 1160px column, and a
   dark mode picked in the footer. The logo keeps Be Vietnam Pro (brand, 15 Nov).
   A page can stay light with <html data-theme="light" data-theme-lock> (the brand kit does).
   Before this change: ../betterthings-drafts/backup-2026-11-21-truoc-explora-look/
   ========================================================================== */
:root {
  --ink: #111111;
  --mute: #6b6862;
  --soft: #8a8780;
  --card: #f4f3f0;
  --line: rgba(0, 0, 0, 0.09);
  --radius: 18px;
  --gutter: 16px;
  --max: 1192px;            /* 1160px of content, like Explora's .wrap */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --grad: linear-gradient(90deg, #ff9b1a, #ff5a1f);
  --text-2: #3d3a36;        /* long text on text pages */
}
html { scroll-padding-top: 72px; }
body { font: 17px/1.5 var(--font); }
.logo { font-family: 'Be Vietnam Pro', var(--font); font-size: 19px; }

/* Nav: sticky and frosted, links at 14px */
.nav { position: sticky; top: 0; z-index: 10; max-width: none; padding: 12px max(16px, calc((100vw - 1160px) / 2));
  background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); }
.nav-links { gap: 22px; font-size: 14px; font-weight: 400; color: var(--ink); }
.nav-links a { opacity: .8; }
.nav-links a:hover { opacity: 1; color: inherit; }

/* Buttons */
.btn { padding: 13px 22px; border-radius: 12px; background: #111; font: 600 15px var(--font); }
.btn-k { background: linear-gradient(90deg, #FF4B6B, #E81F3C); }
.btn-k:hover { background: linear-gradient(90deg, #F23A5C, #D4182F); }
.btn-ghost { background: #fff; color: var(--ink); border: 0; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 0 0 1px rgba(0, 0, 0, .07); }
.btn-ghost:hover { background: #fff; box-shadow: 0 0 0 1px var(--ink); }

/* Hero: one strong line on the page itself (Explora v0 dropped the grey plate) */
.hero { width: min(1160px, calc(100% - 32px)); margin: 16px auto 0; border-radius: 0; background: transparent;
  padding: clamp(56px, 8vw, 104px) clamp(16px, 4vw, 48px) clamp(48px, 6vw, 80px); }
.hero-title { font-size: clamp(46px, 8.2vw, 112px); font-weight: 700; letter-spacing: -0.04em; }
.swap-word { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .btn { padding: 14px 24px; font-size: 16px; border-radius: 14px; }
.feature-sec { padding-top: clamp(48px, 6vw, 80px); }

/* Headings: 600–700, tighter tracking only on the big ones */
.tools-title, .sec-title { font-size: clamp(26px, 3.4vw, 40px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.12;
  text-transform: none; color: var(--ink); margin-bottom: 28px; }
.updates-head .sec-title { margin-bottom: 20px; }
.feature-title { font-weight: 700; letter-spacing: -0.035em; }
.maker h2, .support h2 { font-weight: 700; letter-spacing: -0.03em; }
.card-name, .promise h3, .upd-title, .follow h3 { font-weight: 600; }
.page h1, .holding-title { font-weight: 700; letter-spacing: -0.035em; }
.page h2 { font-weight: 600; letter-spacing: -0.025em; }
.page h3 { font-weight: 600; }
.page p, .page li { color: var(--text-2); }

/* Panels and cards */
.card { border-radius: var(--radius); }
.maker, .feature, .support { border-radius: 24px; }
.follow, .page-box { border-radius: var(--radius); }
.card-desc { color: var(--mute); }
.card-more { color: var(--mute); border-bottom-color: var(--line); }
a.card:hover .card-more { color: var(--ink); border-color: var(--ink); }
.card-soon { border-color: var(--line); }
.card-soon .card-desc, .card-soon .card-more { color: var(--soft); }
.maker-sign a, .updates-all { border-bottom-color: var(--line); }
.follow p a, .page a:not(.btn) { border-bottom-color: var(--line); }

/* ---------- Dark mode: picked in the footer (Light by default, Dark, or Auto = the system), like Explora.
 The <head> script sets data-theme="dark" or "light" before the page draws; main.js keeps it. ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e0e10; --card: #19191c; --line: rgba(255, 255, 255, .10);
  --ink: #f2f1ee; --mute: #a8a59f; --soft: #85827c; --text-2: #d6d3cd;
}
:root[data-theme="dark"] .nav { background: rgba(14, 14, 16, .78); }
:root[data-theme="dark"] .logo-mark { background-image: url(/assets/brand/logo-mark-light.svg); }
:root[data-theme="dark"] .btn { background: #f2f1ee; color: #111; }
:root[data-theme="dark"] .btn:hover { background: #fff; }
:root[data-theme="dark"] .btn-ghost { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
:root[data-theme="dark"] .btn-ghost:hover { box-shadow: 0 0 0 1px var(--ink); }
:root[data-theme="dark"] .btn-k { background: linear-gradient(90deg, #FF4B6B, #E81F3C); color: #fff; }
:root[data-theme="dark"] .btn-k:hover { background: linear-gradient(90deg, #F23A5C, #D4182F); }
:root[data-theme="dark"] a.card:hover { box-shadow: 0 24px 48px -28px rgba(0, 0, 0, .8); }
:root[data-theme="dark"] .tag { background: rgba(255, 255, 255, .08); color: var(--ink); }
:root[data-theme="dark"] .tag.free { background: rgba(52, 168, 83, .16); color: #84d6a0; }
:root[data-theme="dark"] .tag.open { background: rgba(110, 120, 255, .18); color: #b3b9ff; }
:root[data-theme="dark"] .tag.beta,
:root[data-theme="dark"] .holding-status { background: rgba(255, 122, 26, .16); color: #ffab70; }
/* Featured product: a dark version of its own colours */
:root[data-theme="dark"] .feature { background: linear-gradient(135deg, #24180f 0%, #33200f 100%); }
:root[data-theme="dark"] .feature-eyebrow { color: #ffab70; }
:root[data-theme="dark"] .feature-desc { color: #d6cdc4; }
:root[data-theme="dark"] .feature-meta { color: #a8968a; }
:root[data-theme="dark"] .feature-karaoke { background: linear-gradient(135deg, #24141a 0%, #3a1520 100%); }
:root[data-theme="dark"] .feature-karaoke .feature-eyebrow { color: #ff8da0; }
:root[data-theme="dark"] .feature-karaoke .feature-desc { color: #dccbcd; }
:root[data-theme="dark"] .feature-karaoke .feature-meta { color: #a8888d; }
:root[data-theme="dark"] .chip { background: #1d1d21; color: var(--ink); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .8); }
:root[data-theme="dark"] .feature-key { background: #f2f1ee; color: #111; box-shadow: 0 4px 0 #8a8780; }
/* Support block: the ink panel becomes a raised dark panel */
:root[data-theme="dark"] .support { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
:root[data-theme="dark"] .way { color: #111; }
:root[data-theme="dark"] .follow-links a { background: var(--bg); }

/* ---------- Colour switch in the footer (same three buttons as Explora; one choice for the whole site, key bf.theme) ---------- */
.theme-pick { display: inline-flex; padding: 2px; border-radius: 9px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.theme-pick[hidden] { display: none; }
.theme-pick button { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 24px; padding: 0; border: 0; border-radius: 7px;
  background: none; color: var(--mute); cursor: pointer; }
.theme-pick button:hover { color: var(--ink); }
.theme-pick button[aria-pressed="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 0 0 1px var(--line); }
.theme-pick button:focus-visible { outline: 2px solid #0a84ff; outline-offset: 2px; }
.tp-ic { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.tp-ic--light { background: #ffb02e; box-shadow: 0 0 0 1.5px color-mix(in srgb, #ffb02e 30%, transparent); }
.tp-ic--dark { background: currentColor; -webkit-mask: radial-gradient(circle at 75% 30%, transparent 5px, #000 5.5px); mask: radial-gradient(circle at 75% 30%, transparent 5px, #000 5.5px); }
.tp-ic--auto { border: 1.5px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.site-footer-base { align-items: center; }

/* ==========================================================================
   Explora v0 layout (21 Nov 2026, second pass). The first pass above only took Explora's type, buttons
   and colours; this one takes how its page is built (better-finder/website/variants/v0):
   two-tone section titles ("Bold. Grey continuation."), a muted line under them, a pill above the hero
   title, cards with a dark picture on top, a two-column list block (like its Questions), plain
   ruled feature names, a warm closing panel, and a one-row footer.
   Before this pass: ../betterthings-drafts/backup-2026-11-21-truoc-explora-v0-layout/
   ========================================================================== */

/* Shared pieces */
.soft { color: var(--soft); }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-small { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.sec-h { font-size: clamp(26px, 3.4vw, 40px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.12; max-width: 30em;
  color: var(--ink); text-wrap: balance; }
.sec-sub { margin-top: 16px; max-width: 40em; color: var(--mute); font-size: 17px; line-height: 1.5; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.sec-head .cta-row { flex: none; }
.badge-soft { display: inline-block; margin-bottom: 14px; padding: 3px 10px; border-radius: 999px; background: var(--card); color: var(--mute);
  font-size: 13px; font-weight: 600; }
.fine { color: var(--mute); font-size: 14px; line-height: 1.55; }
.fine a { color: var(--ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
.fine a:hover { text-decoration-color: currentColor; }

/* Section rhythm: Explora's .block spacing */
.sec { padding: clamp(88px, 11vw, 150px) var(--gutter) 0; }
main > .sec:last-child { padding-bottom: clamp(48px, 6vw, 80px); }

/* Nav: links, then one small dark button, like Explora's Download */
.nav { justify-content: flex-start; gap: 22px; }
.nav .nav-links { margin-left: auto; }
.nav .btn-small { flex: none; }

/* Hero */
.hero { padding: clamp(40px, 6vw, 80px) clamp(16px, 4vw, 48px) 0; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 12px; border-radius: 999px; background: #151515; color: #fff;
  font-size: 13px; box-shadow: 0 6px 20px rgba(0, 0, 0, .15); transition: background .15s; }
.pill:hover { background: #000; }
.pill-new { color: rgba(255, 255, 255, .55); font-weight: 600; }
.hero-for { margin: 18px 0 14px; color: var(--mute); font-size: 15px; font-weight: 500; letter-spacing: .01em; text-wrap: balance; }
.hero-title { font-size: clamp(44px, 8vw, 92px); font-weight: 700; letter-spacing: -0.035em; }
.hero-lead { margin: 22px auto 0; max-width: 32em; color: var(--mute); text-wrap: balance; }
.hero .cta-row { justify-content: center; margin-top: 32px; }
.hero-trust { margin: 14px 0 0; color: var(--mute); font-size: 14px; }
.hero .btn { animation: none; }
.hero .pill, .hero-for, .hero .cta-row, .hero .hero-trust { animation: rise 1s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }
.hero-for { animation-delay: .05s; }
.hero .cta-row { animation-delay: .25s; }
.hero .hero-trust { animation-delay: .32s; }

/* Featured product: title row on the page, the picture in a soft panel below (like Explora's closing panel) */
.feature-sec { padding-top: clamp(72px, 9vw, 120px); padding-bottom: 0; }
.feature.feature-karaoke { display: block; margin-top: 40px; padding: clamp(24px, 4vw, 48px); border-radius: 28px;
  background: radial-gradient(120% 90% at 50% 100%, #fde1e6 0%, var(--card) 62%); }
.feature-art { width: 100%; max-width: 620px; margin: 0 auto; aspect-ratio: 1 / .66; }
.chip { box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 0 0 1px rgba(0, 0, 0, .05), 0 10px 24px -14px rgba(0, 0, 0, .3); }

/* Tools: cards like Explora's work cards, a dark picture on top and the words below */
.tools { padding-bottom: 0; scroll-margin-top: 64px; }
.tools .grid { margin-top: 44px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; min-height: 0; padding: 0; border: 0; border-radius: 16px; background: var(--card); overflow: hidden; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -28px rgba(0, 0, 0, .35); }
.card-thumb { position: relative; display: grid; place-items: center; height: 220px;
  background: radial-gradient(55% 65% at 50% 58%, color-mix(in srgb, var(--glow, #8a8780) 30%, transparent) 0%, transparent 72%), #17171d; }
.card-icon { width: 112px; height: 112px; margin: 0; padding: 0; box-sizing: border-box; filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .45)); }
a.card:hover .card-icon { transform: scale(1.05) rotate(-2deg); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 18px; }
.card-name { padding: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.card-desc { display: block; margin-top: 4px; padding: 0; font-size: 15px; line-height: 1.45; color: var(--mute); }
.card-tags { margin-top: 12px; }
.tag { background: var(--bg); }
.card-badge { top: 14px; right: 14px; padding: 2px 10px; font-size: 12px; }
.card-soon { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.card-soon .card-thumb { background: none; border-bottom: 1px dashed var(--line); }
.card-soon .card-icon { filter: none; opacity: .75; }

/* Two columns, like Explora's Questions block: title and a short note on the left, the list on the right */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; scroll-margin-top: 64px; }
.split-head { grid-column: 1 / span 4; position: sticky; top: 96px; padding-right: 24px; }
.split-head .fine { margin-top: 14px; max-width: 26em; }
.split-body { grid-column: 5 / -1; }
.upd { padding: 20px 0; }
.upd-title { font-size: clamp(16px, 1.4vw, 18px); font-weight: 500; letter-spacing: -0.01em; }
.upd-title:hover { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.updates-all { display: inline-block; margin-top: 20px; border: 0; font-size: 14px; font-weight: 500; color: var(--mute); }
.updates-all:hover { color: var(--ink); }

/* Maker: on the page itself, no panel */
.maker { background: none; padding: 0; border-radius: 0; scroll-margin-top: 64px; }
.maker-pic img { border-radius: 16px; }
.maker h2.sec-h { font-size: clamp(26px, 3.4vw, 40px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.12; }
.maker p { font-size: 17px; }
.maker-sign a { border-bottom: 0; font-weight: 500; color: var(--mute); }
.maker-sign a:hover { color: var(--ink); }

/* Promises: names on a thin rule, like Explora's feature list */
.promises { margin-top: 44px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 24px; }
.promise { border-top: 1px solid var(--line); padding-top: 14px; }
.promise h3 { margin-top: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.promise p { margin-top: 6px; }

/* Support: Explora's closing panel, centred, warm at the bottom */
.support { display: block; text-align: center; padding: clamp(56px, 7vw, 96px) 24px; border-radius: 28px; color: var(--ink);
  background: radial-gradient(120% 90% at 50% 100%, #f5e7db 0%, var(--card) 62%); }
.support h2.sec-h { margin: 0 auto; max-width: 22em; font-size: clamp(26px, 3.4vw, 40px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.12; }
.support > p { margin: 18px auto 0; max-width: 34em; color: var(--mute); font-size: 17px; }
.support .support-ways { justify-content: center; margin-top: 32px; }
.way { background: var(--bg); box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 0 0 1px var(--line); border-radius: 16px; }
.support .hero-trust { margin-top: 22px; }

/* Footer: one row like Explora's, then contact, copyright and the colour switch */
.site-footer { border-top: 1px solid var(--line); }
.site-footer-in { max-width: var(--max); margin: 0 auto; padding: 36px var(--gutter) 0; display: flex; align-items: center; gap: 14px 24px;
  flex-wrap: wrap; font-size: 14px; }
.foot-brand { display: flex; align-items: center; gap: 14px; margin-right: auto; color: var(--mute); }
.foot-brand .logo { font-size: 17px; }
.foot-brand .logo-mark { width: 20px; height: 20px; margin-right: 7px; }
.foot-nav, .foot-social { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot-nav a:hover, .foot-social a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.site-footer-in.site-footer-base { justify-content: flex-start; padding-top: 18px; padding-bottom: 70px; color: var(--soft); }
.foot-social { margin-right: auto; color: var(--mute); }

/* Dark */
:root[data-theme="dark"] .pill { background: #1d1d21; box-shadow: 0 0 0 1px var(--line); }
:root[data-theme="dark"] .pill:hover { background: #26262b; }
:root[data-theme="dark"] .feature.feature-karaoke { background: radial-gradient(120% 90% at 50% 100%, #3a1520 0%, var(--card) 62%); }
:root[data-theme="dark"] .chip { box-shadow: 0 0 0 1px var(--line), 0 10px 24px -12px rgba(0, 0, 0, .8); }
:root[data-theme="dark"] .card-thumb { background: radial-gradient(55% 65% at 50% 58%, color-mix(in srgb, var(--glow, #8a8780) 30%, transparent) 0%, transparent 72%), #0b0b0e; }
:root[data-theme="dark"] .card-soon .card-thumb { background: none; }
:root[data-theme="dark"] .support { background: radial-gradient(120% 90% at 50% 100%, #2e2116 0%, var(--card) 62%); box-shadow: none; }
:root[data-theme="dark"] .way { background: var(--bg); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }

/* Narrower screens */
@media (max-width: 1060px) { .tools .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .sec-head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .split { display: block; }
  .split-head { position: static; padding: 0; margin-bottom: 24px; }
  .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .nav:has(.btn-small) .nav-links { display: none; }  /* pages with a nav button keep just the button */
  .nav .btn-small { margin-left: auto; }
  .tools .grid { gap: 12px; }
  .card { display: flex; padding: 0; align-items: stretch; }
  .card-thumb { height: 150px; }
  .card-icon { width: 80px; height: 80px; }
  .card-body { padding: 12px 12px 14px; }
  .card-name { font-size: 16px; }
  .card-desc { font-size: 14px; }
  .card-badge { top: 10px; right: 10px; }
  .feature-art { aspect-ratio: 1 / .9; }
  .promises { grid-template-columns: 1fr; }
  .site-footer-in { padding-top: 28px; }
}

/* Text pages (about, privacy, now, changelog) in the same voice: two-tone title, muted lead,
   each part opened by a thin rule like Explora's lists */
.page { max-width: 820px; }
.page h1 { font-size: clamp(32px, 4.4vw, 54px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
.page .lead { margin-top: 20px; font-size: clamp(17px, 1.6vw, 20px); color: var(--mute); }
.page h2 { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); font-size: clamp(20px, 2vw, 24px); font-weight: 600; letter-spacing: -0.02em; }
.page h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.page p, .page li { color: var(--text-2); }
.page a:not(.btn) { border-bottom: 0; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
.page a:not(.btn):hover { text-decoration-color: currentColor; }
.page-photo { border-radius: 16px; }
.page-box { border-radius: 16px; padding: 20px 22px; }
.page .upd-list { margin-top: 32px; }
.holding-title { font-weight: 600; letter-spacing: -0.03em; }
/* A product held back from the live site (scripts/deploy.py HOLD_BACK): a quiet badge on its card */
.card-badge-soon { background: rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(6px); }
