/* The piece pages (§piecepage, 2026-10-27; scripts/build-pieces.mjs). The site's look (white, #111) with the pricing
   page's two accents: orange (#E65100) for the key words and the button, mustard (#F5C518) for the lead badge. */
:root {
  --bg: #FFFFFF; --surface-alt: #F6F5F3; --text: #111111; --text-2: #555555; --text-3: #6E6E6E;
  --line: #E4E4E4; --line-strong: #CFCFCF; --ink: #111111; --on-ink: #FFFFFF;
  --hot: #E65100; --hot-soft: #FFF1E6; --on-hot: #FFFFFF; --gold: #F5C518; --on-gold: #111111;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Hiragino Sans", "Microsoft JhengHei", Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; }
em.k { font-style: normal; color: var(--hot); }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
header { border-bottom: 1px solid var(--line); }
/* §piecehdr (user 2026-10-27): the top bar as the site's other pages have it (web/_shared/site.css .site-header) */
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand img { display: block; height: 30px; width: auto; }
header nav { display: flex; gap: 4px; }
header nav a, header nav .here { padding: 7px 14px; border-radius: 999px; font-size: 13px; line-height: 1.5; color: #5F5F5F; text-decoration: none; white-space: nowrap; }
header nav a:hover, header nav .here:hover { background: rgba(0,0,0,0.05); color: var(--text); }   /* the page you are on too, as the site's links */
header nav .here { color: var(--text); font-weight: 600; }   /* §piecehere: the page you are on */
footer nav { display: flex; gap: 20px; color: var(--text-2); flex-wrap: wrap; }
footer nav a { text-decoration: none; }
footer nav a:hover { color: var(--text); }
@media (max-width: 760px) {   /* two rows, as the site: the logo, then the links in a row of their own */
  header .wrap { flex-wrap: wrap; align-content: center; gap: 4px 12px; min-height: 92px; padding-block: 6px; }
  header nav { flex: 0 0 calc(100% + 20px); justify-content: flex-start; overflow-x: auto; margin: 0 -10px; }
}
main .wrap { padding-block: 24px 64px; display: flex; flex-direction: column; gap: 56px; }
.crumbs { font-size: 13px; color: var(--text-3); display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: -32px; }
.crumbs a { text-decoration: none; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 48px; align-items: center; }
.pitch { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.eyebrow { font-size: 14px; color: var(--text-2); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.eyebrow b { color: var(--hot); }
.eyebrow .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-3); }
h1 { font-size: 44px; line-height: 1.15; margin: 0; letter-spacing: -0.035em; text-wrap: balance; }
.sub { font-size: 18px; margin: 0; color: var(--text-2); max-width: 32em; }
.sub b { color: var(--text); }
.badges { display: flex; gap: 8px; flex-wrap: wrap; padding: 0; margin: 0; list-style: none; }
.badges li { font-size: 13.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--surface-alt); }
.badges li.gold { background: var(--gold); color: var(--on-gold); }
.facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; }
.facts div { display: flex; gap: 6px; align-items: baseline; }
.facts dt { font-size: 13px; color: var(--text-3); }
.facts dd { margin: 0; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pick { display: flex; flex-direction: column; gap: 10px; }
.pick-label { font-size: 13px; font-weight: 600; color: var(--text-2); letter-spacing: 0.02em; }
.seg { display: inline-grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line-strong); border-radius: 12px; padding: 4px; gap: 4px; max-width: 420px; }
.seg button { border: 0; background: transparent; font: inherit; color: var(--text-2); font-size: 15px; font-weight: 600; padding: 10px 8px; border-radius: 9px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 28px; border-radius: 12px; font-size: 17px; font-weight: 700; text-decoration: none; background: var(--hot); color: var(--on-hot); max-width: 420px; text-align: center; }
.cta:hover { filter: brightness(1.05); }
.seg button:focus-visible, .cta:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--line-strong); outline-offset: 2px; }
.free { font-size: 14px; color: var(--text-2); margin: 0; }
.free b { color: var(--hot); }
.score { margin: 0; position: relative; min-width: 0; }
.score img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; background: #FFFFFF; display: block; box-shadow: 0 12px 32px rgba(17,17,17,0.10); }
.score figcaption { position: absolute; top: 14px; left: -12px; background: var(--hot); color: var(--on-hot); font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 8px; }

/* sections */
.sec { display: flex; flex-direction: column; gap: 18px; }
.sec-h { font-size: 28px; line-height: 1.25; margin: 0; letter-spacing: -0.025em; text-wrap: balance; }
.sec-lead { font-size: 16px; color: var(--text-2); margin: 0; max-width: 64ch; }
.sec-lead.big { font-size: 19px; color: var(--text); line-height: 1.55; max-width: 44em; }
.chat { display: flex; flex-direction: column; gap: 10px; background: var(--surface-alt); border-radius: 16px; padding: 20px; max-width: 640px; }
.bubble { max-width: 85%; padding: 10px 14px; font-size: 15px; overflow-wrap: anywhere; }
.bubble.me { align-self: flex-end; background: var(--ink); color: var(--on-ink); border-radius: 16px 16px 4px 16px; }
.bubble.ai { align-self: flex-start; background: var(--bg); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; }
.bubble.ai b { color: var(--hot); }
.parts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.part { border-top: 3px solid var(--ink); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.part b { font-size: 16px; }
.part span { font-size: 14.5px; color: var(--text-2); }
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 15.5px; }
.faq p { margin: 8px 0 0; color: var(--text-2); max-width: 70ch; }
.more { display: flex; gap: 10px; flex-wrap: wrap; }
.more a { border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 14px; text-decoration: none; font-size: 14px; }
.more a:hover { border-color: var(--hot); color: var(--hot); }
.end { background: var(--ink); color: var(--on-ink); border-radius: 18px; padding: 28px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.end p { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.015em; max-width: 30em; }

/* the list of pieces */
.intro-h { display: flex; flex-direction: column; gap: 10px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; min-width: 0; }
.card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border: 1px solid var(--line); border-radius: 10px; background: #FFFFFF; }
.card b { font-size: 15px; line-height: 1.35; }
.card span { font-size: 12.5px; color: var(--text-3); line-height: 1.4; }
.card:hover b { color: var(--hot); }

footer { border-top: 1px solid var(--line); color: var(--text-3); font-size: 12.5px; }
footer .wrap { padding-block: 20px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
footer nav { font-size: 12.5px; gap: 14px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .score { max-width: 340px; margin-left: 12px; }
  .parts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  h1 { font-size: 32px; }
  .sec-h { font-size: 24px; }
  .sub { font-size: 16.5px; }
  .seg, .cta { max-width: none; width: 100%; }
  .bubble { max-width: 100%; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (prefers-reduced-motion: no-preference) { .cta { transition: filter 0.15s; } }
footer .langs { padding-block: 0 20px; display: flex; justify-content: flex-start; gap: 6px 16px; flex-wrap: wrap; font-size: 12.5px; }
footer .langs a { text-decoration: none; }
footer .langs b { color: var(--text); font-weight: 600; }
