/* SmileX v2 preview. One idea: the real button and its two lights (red = mixed, green = ultrasonic) carry the identity. */
:root {
  --paper: #f6f8f7;
  --paper-2: #eaf0ee;
  --white: #ffffff;
  --ink: #1c3340;
  --ink-2: #44555d;
  --line: #d6e1df;
  --teal: #2c7f78;
  --teal-dark: #22665f;
  --mint: #e2f1ee;
  --sky: #e6f0f5;
  --red: #d2453a;
  --green: #2e9b62;
  --mode: var(--red);
  --round: "Chiron GoRound TC", "Noto Sans TC", sans-serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --gutter: 20px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.8 var(--sans); letter-spacing: .01em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: .2em; }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.35; font-weight: 700; }
h1 { font: 700 clamp(32px, 5.2vw, 54px)/1.22 var(--round); letter-spacing: .02em; }
h2 { font-size: clamp(24px, 2.6vw, 30px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.note { color: var(--ink-2); }
.lead { font-size: 19px; color: var(--ink-2); max-width: 32em; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 999px;
  background: var(--teal); color: var(--white); font-weight: 700; text-decoration: none; }
.btn:hover { background: var(--teal-dark); color: var(--white); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--mint); color: var(--ink); }
.link { font-weight: 500; }

/* header */
.site-head { background: var(--white); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.logo img { width: 112px; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { border-bottom-color: var(--teal); }

/* cover: Japanese-room mood image with the brand line */
.cover { position: relative; min-height: clamp(460px, 74vh, 720px); display: flex; align-items: center; overflow: hidden; background: var(--paper-2); }
.cover picture, .cover-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover-img { object-fit: cover; object-position: 78% 62%; }
.closing .cover-img { object-position: 70% 50%; }
.closing { min-height: clamp(380px, 56vh, 560px); }
.closing h2 { font: 700 clamp(28px, 3.6vw, 40px)/1.3 var(--round); }
.cover::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(246, 248, 247, .92) 0%, rgba(246, 248, 247, .72) 34%, rgba(246, 248, 247, 0) 62%); }
.cover-text { position: relative; z-index: 2; padding-top: 48px; padding-bottom: 48px; }
.cover h1 { white-space: nowrap; font-size: clamp(30px, 4.6vw, 58px); }
.cover p { font-size: 19px; max-width: 22em; color: var(--ink); }
.hero-title { font: 700 clamp(30px, 4.4vw, 46px)/1.25 var(--round); letter-spacing: .02em; }

/* hero: the button and its ring */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 96px); }
.hero[data-mode="ultrasonic"] { --mode: var(--green); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "head visual" "controls visual"; column-gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero-head { grid-area: head; align-self: end; }
.hero-controls { grid-area: controls; align-self: start; }
.hint { margin: 8px 0 0; font-weight: 500; }
.modes { display: flex; gap: 10px; margin: 12px 0 14px; flex-wrap: wrap; }
.mode-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px; border-radius: 999px;
  border: 2px solid var(--line); background: var(--white); color: var(--ink); font: 700 17px var(--sans); cursor: pointer; }
.mode-btn small { font-weight: 400; color: var(--ink-2); font-size: 15px; }
.mode-btn[aria-pressed="true"] { border-width: 3px; padding: 0 19px; }
.mode-btn[aria-pressed="true"]::after { content: ""; width: 7px; height: 13px; margin: -4px 0 0 2px; border: solid var(--ink); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.mode-btn[aria-pressed="true"][data-mode="mixed"] { border-color: var(--red); }
.mode-btn[aria-pressed="true"][data-mode="ultrasonic"] { border-color: var(--green); }
.mode-btn[aria-pressed="false"]:hover { border-color: var(--ink-2); }
.dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; flex: none; }
.dot-red { background: var(--red); box-shadow: 0 0 0 4px rgba(210, 69, 58, .18); }
.dot-green { background: var(--green); box-shadow: 0 0 0 4px rgba(46, 155, 98, .18); }
.dot-off { background: var(--white); border: 2px solid var(--ink-2); }
.mode-copy { min-height: 4.2em; max-width: 30em; }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 8px; }
.hero-visual { grid-area: visual; margin: 0; }
.shots { position: relative; aspect-ratio: 1; border-radius: 28px; overflow: hidden; background: #c3c8c9; }
.hero-visual figcaption { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-weight: 500; }
.cap-dot { background: var(--mode); transition: background-color .35s ease; }
.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; transition: opacity .35s ease; }
.shot-ultrasonic { opacity: 0; }
.hero[data-mode="ultrasonic"] .shot-ultrasonic { opacity: 1; }
/* ultrasonic */
.sonic-intro { max-width: 760px; }
.sonic-title { font: 700 clamp(30px, 4.4vw, 46px)/1.25 var(--round); }
.rates { display: grid; grid-template-columns: 1fr 1.6fr; gap: 20px; margin: 32px 0 44px; }
.rate { margin: 0; padding: 22px 26px; border-radius: 20px; background: var(--white); border: 1px solid var(--line); }
.rate dt { font-weight: 500; color: var(--ink-2); margin-bottom: 4px; }
.rate dd { margin: 0; font-size: 18px; }
.rate-num { font: 700 clamp(30px, 4vw, 44px)/1.2 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.rate-sonic { background: var(--ink); border-color: var(--ink); color: var(--white); }
.rate-sonic dt, .rate-sonic .rate-sub { color: #c9d6db; }
.rate-sub { font-size: 16px !important; margin-top: 4px !important; }
.sonic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.sonic-grid h3 { font-size: 22px; margin-top: 0; }
.sonic-grid h3 ~ h3 { margin-top: 32px; }
.src { font-size: 15px; }
.uses { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.uses li { padding-left: 16px; border-left: 3px solid var(--mint); color: var(--ink-2); line-height: 1.7; }
.uses strong { display: block; color: var(--ink); }
@media (max-width: 860px) { .rates, .sonic-grid { grid-template-columns: 1fr; } }

.japan-grid { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: clamp(28px, 6vw, 72px); align-items: center; }
.japan-stamp { width: 100%; }
.japan-title { font: 700 clamp(28px, 3.8vw, 42px)/1.3 var(--round); }
@media (max-width: 760px) { .japan-grid { grid-template-columns: 1fr; } .japan-stamp { width: 180px; } }

/* steps */
.band { background: var(--mint); padding: clamp(40px, 6vw, 64px) 0; }
.steps { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 22px 1fr; column-gap: 14px; align-items: baseline; }
.steps .dot { transform: translateY(2px); }
.steps strong { display: block; }

/* sections */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.items { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
.item { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); }
.item img { width: 150px; aspect-ratio: 16 / 10; object-fit: contain; background: var(--white); border-radius: 12px; }
.item h3 { margin: 0 0 4px; }
.item p { margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.7; }

.facts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.facts h2 { font: 700 24px/1.35 var(--round); }
.facts p { color: var(--ink-2); margin: 0; }

.spec-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.spec { width: 100%; border-collapse: collapse; font-size: 17px; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 14px 0; border-top: 1px solid var(--line); line-height: 1.7; }
.spec th { width: 7.5em; padding-right: 16px; font-weight: 500; color: var(--ink-2); }
.video { margin-top: 20px; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--ink); }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-play { position: relative; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: none; }
.video-play img { width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.video-play span { position: absolute; left: 16px; bottom: 16px; background: var(--white); color: var(--ink); font: 700 15px var(--sans);
  padding: 10px 16px 10px 40px; border-radius: 999px; }
.video-play span::before { content: ""; position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  border-left: 12px solid var(--teal); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }

.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.reads { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.read { display: block; color: var(--ink); text-decoration: none; }
.read img { border-radius: 16px; aspect-ratio: 16 / 9; object-fit: cover; }
.read-title { display: block; margin-top: 12px; font-weight: 700; line-height: 1.55; }
.read:hover .read-title { color: var(--teal); }

.buy { background: var(--ink); color: var(--white); padding: clamp(40px, 6vw, 64px) 0; }
.buy-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.buy h2 { margin: 0 0 4px; }
.buy p { margin: 0; color: #c9d6db; }

.plaque-title { font: 700 clamp(28px, 3.8vw, 42px)/1.3 var(--round); }
.bars { margin: 28px 0 16px; display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 6.5em 1fr 4em; align-items: center; gap: 14px; }
.bar-label { font-weight: 500; }
.bar-track { height: 28px; }
.bar { display: block; height: 100%; width: max(var(--v), 4px); background: var(--teal); border-radius: 0 4px 4px 0; }
.bar-val { font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums; }
.chart-src { font-size: 15px; }
.chart-src em { font-style: italic; }

.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 24px; }
.review { margin: 0; padding-top: 18px; border-top: 3px solid var(--teal); }
.review-src { font-weight: 700; margin: 0 0 10px; }
.review blockquote { margin: 0 0 12px; line-height: 1.85; }
.review figcaption { font-size: 16px; color: var(--ink-2); }
.review figcaption a { white-space: nowrap; }
.review-note { font-size: 15px; margin: 28px 0 0; }
@media (max-width: 860px) { .review-grid { grid-template-columns: 1fr; gap: 28px; } }

.heads-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.heads-visual { margin: 0; }
.heads-visual img { border-radius: 24px; }
.heads-title { font: 700 clamp(28px, 3.8vw, 42px)/1.3 var(--round); }
.heads-points { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 18px; }
.heads-points strong { display: table; margin-bottom: 6px; padding: 6px 18px; border-radius: 999px; background: var(--ink); color: var(--white); font-size: 18px; }
.heads-points li { color: var(--ink-2); }
.heads-src { font-size: 15px; margin-top: 16px; }
@media (max-width: 860px) { .heads-grid { grid-template-columns: 1fr; } }

/* lists */
.list-sec h1 { font-size: clamp(30px, 4vw, 42px); }
.rows { list-style: none; padding: 0; margin: 28px 0 0; }
.row { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.row img, .thumb-blank { width: 200px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: var(--mint); display: block; }
.row-title { display: block; font-weight: 700; font-size: 19px; line-height: 1.5; }
.row:hover .row-title { color: var(--teal); }
.row time { display: block; font-size: 16px; color: var(--ink-2); margin: 4px 0 6px; }
.row-excerpt { display: block; font-size: 17px; color: var(--ink-2); line-height: 1.7; }

/* post */
.post { padding: clamp(36px, 6vw, 72px) 0; }
.crumb { margin: 0 0 8px; font-weight: 500; }
.post h1 { font: 700 clamp(28px, 4vw, 40px)/1.35 var(--sans); }
.post-date { color: var(--ink-2); font-size: 16px; }
.post-wide { max-width: 760px; }
.post-img { border-radius: 16px; margin: 12px auto 36px; width: 100%; }
.prose { font-size: 18px; line-height: 1.95; }
.prose h3 { font-size: 22px; margin: 1.8em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin: .3em 0; }
.prose img { border-radius: 12px; margin: 1em 0; }
.prose h3:last-of-type { margin-top: 2.4em; padding-top: 1.2em; border-top: 1px solid var(--line); }
.prose ol:last-of-type { font-size: 16px; line-height: 1.75; color: var(--ink-2); }
.prose em { color: var(--ink-2); font-style: normal; font-size: 16px; }
.prose .btn { color: var(--white); text-decoration: none; }
.pn-row { display: grid; gap: 12px; margin-top: 48px; }
.pn { display: block; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); text-decoration: none; color: var(--ink); font-weight: 500; }
.pn small { display: block; color: var(--ink-2); font-weight: 400; font-size: 15px; }
.pn:hover { border-color: var(--teal); }

/* footer */
.site-foot { background: var(--paper-2); padding: 48px 0 24px; font-size: 17px; color: var(--ink-2); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr; gap: 32px; }
.foot-title { font-size: 16px; color: var(--ink); margin: 0 0 8px; }
.site-foot img { width: 96px; margin-bottom: 12px; }
.foot-copy { margin-top: 32px; font-size: 15px; }
.buybar { display: none; }

/* section backgrounds: neighbours never share a colour (white alternates with sky / mint) */
.sonic, .heads, .reads-sec { background: var(--sky); }
.japan, #specs { background: var(--mint); }
.plaque, #box, .facts, .reviews { background: var(--white); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "head" "visual" "controls"; row-gap: 20px; }
  .spec-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; width: 100%; }
  .items { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: 1fr; gap: 28px; }
  .reads { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 17px; padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .hero { padding-top: 28px; }
  .cover { display: block; min-height: 0; }
  .cover picture, .cover-img { position: static; height: auto; aspect-ratio: 4 / 3; object-position: 60% 50%; }
  .cover::before { display: none; }
  .cover-text { padding-top: 24px; padding-bottom: 8px; background: var(--paper); }
  .shots { aspect-ratio: 4 / 3; }
  .head-row { flex-wrap: wrap; gap: 0 16px; min-height: 0; padding-top: 12px; }
  .logo img { width: 92px; }
  .head-buy { display: none; }
  .nav { width: 100%; margin: 4px 0 0; gap: 20px; overflow-x: auto; }
  .nav a { white-space: nowrap; padding: 10px 0 12px; }
  .modes { flex-direction: column; }
  .mode-btn { width: 100%; }
  .item { grid-template-columns: 112px 1fr; gap: 16px; }
  .item img { width: 112px; }
  .row { grid-template-columns: 1fr; gap: 12px; }
  .row img, .thumb-blank { width: 100%; }
  .thumb-blank { display: none; }
  .buybar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; background: var(--white);
    border-top: 1px solid var(--line); padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); }
  .buybar .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shot, .cap-dot { transition: none; }
}
