/* 配合帳 Haigocho landing page. Direction 02, colour swatch chart (docs/decisions/0004).
   Tokens mirror lp/haigocho/brand-kit/tokens.css. Fonts are self-hosted subsets (scripts/subset-fonts.py). */

@font-face { font-family: "Haigocho JA"; src: url("/fonts/zen-kaku-gothic-new-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Haigocho JA"; src: url("/fonts/zen-kaku-gothic-new-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Haigocho JA"; src: url("/fonts/zen-kaku-gothic-new-black.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Haigocho TC"; src: url("/fonts/noto-sans-tc-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Haigocho TC"; src: url("/fonts/noto-sans-tc-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Haigocho TC"; src: url("/fonts/noto-sans-tc-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Haigocho Numerals"; src: url("/fonts/barlow-condensed-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Haigocho Numerals"; src: url("/fonts/barlow-condensed-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --chalk: #F7F4EF;
  --ink: #151413;
  --muted: #5A554F;
  --white: #FFFFFF;
  --ash: #7D8A92;
  --ash-deep: #4F5D66;
  --pink-beige: #D8A596;
  --copper: #C35A2B;
  --copper-deep: #A9471C;
  --violet-ash: #6F5E7B;
  --honey: #D9A55B;

  --rule: 3px;
  --rule-thin: 1.5px;
  --tab: 52px;
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 56px);

  --font: "Haigocho JA", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --num: "Haigocho Numerals", "Arial Narrow", sans-serif;

  font-family: var(--font);
  color: var(--ink);
  background: var(--chalk);
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}
:root:lang(zh-TW) {
  --font: "Haigocho TC", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 900; line-height: 1.2; word-break: auto-phrase; text-wrap: balance; }
p, li, summary { word-break: auto-phrase; text-wrap: pretty; }
a { color: inherit; }
.num { font-family: var(--num); font-weight: 700; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--chalk); }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--chalk); padding: 8px 14px; z-index: 10; }
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header { border-bottom: var(--rule) solid var(--ink); background: var(--chalk); }
.site-header .bar {
  display: flex; align-items: center; gap: 20px; padding: 14px var(--gutter) 14px calc(var(--tab) + var(--gutter));
}
.wordmark { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.wordmark b { font-weight: 900; font-size: 1.75rem; letter-spacing: 0.02em; line-height: 1; }
.wordmark span { font-family: var(--num); font-weight: 700; font-size: 1.25rem; line-height: 1; }
.tagline { padding-left: 20px; border-left: var(--rule) solid var(--ink); font-size: 0.85rem; font-weight: 700; line-height: 1.45; }
.lang-menu { margin-left: auto; position: relative; }
.lang-menu summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 0.95rem; padding: 8px 12px; min-height: 44px;
  border: var(--rule-thin) solid var(--ink); border-radius: 6px; background: var(--white);
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary svg { width: 14px; height: 14px; transition: transform 180ms ease; }
.lang-menu[open] summary svg { transform: rotate(180deg); }
.lang-menu ul {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; min-width: 160px;
  list-style: none; margin: 0; padding: 6px; background: var(--white);
  border: var(--rule) solid var(--ink); border-radius: 8px;
}
.lang-option { display: flex; justify-content: space-between; gap: 16px; padding: 10px 12px; border-radius: 4px; text-decoration: none; font-weight: 700; }
.lang-option:hover { background: var(--chalk); }
.lang-option[aria-current="page"]::after { content: ""; width: 12px; height: 7px; margin-top: 6px; border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(-45deg); }

/* ---------- Section frame: an index tab on the left, like a swatch book ---------- */
.band { border-bottom: var(--rule) solid var(--ink); }
.band-inner {
  display: grid; grid-template-columns: var(--tab) minmax(0, 1fr);
}
.tab {
  background: var(--ink); color: var(--chalk);
  display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 0;
}
.tab .num { font-size: 1.5rem; line-height: 1; }
.tab .tab-label { writing-mode: vertical-rl; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.12em; }
.band-body { min-width: 0; width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); padding: clamp(40px, 6vw, 80px) var(--gutter); }
.features .band-body { max-width: none; }

/* ---------- Hero ---------- */
.hero .band-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: end; padding-bottom: clamp(32px, 4vw, 48px); }
.dev-label {
  display: inline-block; border: var(--rule) solid var(--ink); padding: 2px 12px;
  font-weight: 900; font-size: 1rem; letter-spacing: 0.08em; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.5rem, 6.2vw, 5.6rem); line-height: 1.08; letter-spacing: -0.02em; }
.hero h1 .l { display: block; white-space: nowrap; }
.hero h1 .num { font-size: 1.12em; letter-spacing: -0.01em; }
.hero .lead { margin-top: 26px; font-size: clamp(1.05rem, 1.8vw, 1.25rem); font-weight: 700; max-width: 30em; line-height: 1.75; }
.hero .dev-note { margin-top: 10px; font-size: 0.95rem; color: var(--muted); }
.cta {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 30px;
  background: var(--ink); color: var(--chalk); text-decoration: none; font-weight: 900;
  padding: 16px 30px; border-radius: 999px; font-size: 1.05rem;
  transition: background-color 180ms ease;
}
.cta svg { width: 14px; height: 14px; transition: transform 180ms ease; }
.cta:hover { background: var(--copper-deep); }
.cta:hover svg { transform: translateY(2px); }

.swatch-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 16px); align-items: end; }
.swatch { margin: 0; }
.swatch img { width: 100%; height: clamp(220px, 34vw, 430px); object-fit: fill; }
.swatch figcaption {
  margin-top: 12px; border-top: var(--rule) solid var(--ink); padding-top: 6px; text-align: center;
  font-family: var(--num); font-weight: 700; line-height: 1.05; font-size: clamp(0.8rem, 1.2vw, 1rem);
}
.swatch figcaption b { display: block; font-size: 1.9em; font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
  .swatch { animation: hang 700ms cubic-bezier(.2, .9, .3, 1.15) both; }
  .swatch:nth-child(2) { animation-delay: 70ms; }
  .swatch:nth-child(3) { animation-delay: 140ms; }
  .swatch:nth-child(4) { animation-delay: 210ms; }
  .swatch:nth-child(5) { animation-delay: 280ms; }
  @keyframes hang { from { opacity: 0; transform: translateY(-28px); } to { opacity: 1; transform: none; } }
}

/* ---------- Features: three shade columns ---------- */
.features .band-body { padding: 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature { padding: clamp(32px, 4vw, 52px) clamp(20px, 2.6vw, 36px); display: grid; grid-template-rows: auto auto 1fr; gap: 16px; min-width: 0; }
.feature + .feature { border-left: var(--rule) solid var(--ink); }
.feature.ash { background: var(--ash); }
.feature.pink { background: var(--pink-beige); }
.feature.honey { background: var(--honey); }
.feature h3 { font-size: clamp(1.5rem, 2.5vw, 2.1rem); }
.feature p { font-size: 0.98rem; max-width: 24em; }
.feature .phone { align-self: end; margin-top: 12px; }
.features-note { border-top: var(--rule) solid var(--ink); padding: 14px var(--gutter); font-size: 0.88rem; }

/* Flat phone illustrations */
.phone {
  width: 100%; max-width: 270px; margin-inline: auto;
  border: var(--rule) solid var(--ink); border-radius: 34px; background: var(--ink); padding: 9px;
}
.screen { background: var(--white); border-radius: 25px; padding: 30px 14px 16px; position: relative; min-height: 400px; font-size: 0.8rem; line-height: 1.5; }
.screen::before { content: ""; position: absolute; top: 9px; left: 50%; width: 64px; height: 14px; margin-left: -32px; border-radius: 999px; background: var(--ink); }
.screen-title { font-weight: 900; font-size: 1.05rem; }
.screen-sub { color: var(--muted); font-size: 0.72rem; margin-bottom: 12px; }
.screen-sub .num { font-size: 0.95rem; font-weight: 600; }
.block { border: var(--rule-thin) solid var(--ink); border-radius: 8px; padding: 9px 10px; margin-bottom: 9px; }
.block-label { font-weight: 900; font-size: 0.72rem; margin-bottom: 2px; }
.line { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.line .num { font-size: 1.02rem; }
.dot { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border: 1px solid var(--ink); }
.total {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  background: var(--ink); color: var(--white); border-radius: 8px; padding: 6px 6px 6px 10px; margin-bottom: 9px;
}
.total-label { font-weight: 700; font-size: 0.75rem; }
.total output { font-family: var(--num); font-weight: 700; font-size: 1.45rem; line-height: 1; min-width: 3.4ch; text-align: center; }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button {
  width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--chalk); color: var(--ink);
  font: 900 1.1rem/1 var(--font); cursor: pointer; display: grid; place-items: center;
}
.stepper button:hover { background: var(--honey); }
.stepper button:disabled { opacity: 0.35; cursor: default; }
.screen-btn { text-align: center; border: var(--rule-thin) solid var(--ink); border-radius: 999px; padding: 6px; font-weight: 900; font-size: 0.76rem; }
.screen-btn.solid { background: var(--ink); color: var(--white); }
.try-hint { margin-top: 8px; font-size: 0.72rem; color: var(--muted); text-align: center; }
.timer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 8px; }
.timer .who-part { font-size: 0.74rem; font-weight: 700; grid-column: 1 / -1; }
.timer .num { font-size: 1.45rem; line-height: 1; }
.timer.soon .num { color: var(--copper-deep); }
.timer .bar { grid-column: 1 / -1; height: 6px; border: 1px solid var(--ink); border-radius: 999px; overflow: hidden; }
.timer .bar i { display: block; height: 100%; background: var(--ink); }
.timer .pause { width: 22px; height: 22px; border: var(--rule-thin) solid var(--ink); border-radius: 50%; position: relative; }
.timer .pause::before, .timer .pause::after { content: ""; position: absolute; top: 6px; width: 2px; height: 7px; background: var(--ink); }
.timer .pause::before { left: 6px; }
.timer .pause::after { right: 6px; }
.row-item { display: flex; align-items: center; gap: 8px; padding: 7px 0; }
.row-item + .row-item { border-top: 1px solid var(--ink); }
.row-item svg { width: 18px; height: 18px; flex: none; }
.toggle { margin-left: auto; width: 34px; height: 20px; border-radius: 999px; background: var(--ink); position: relative; flex: none; }
.toggle::after { content: ""; position: absolute; right: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--honey); }

/* ---------- Who it's for ---------- */
.who { background: var(--violet-ash); color: var(--chalk); }
.who .band-body { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.who h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.who-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.who-list li { padding: 4px 18px 8px; font-weight: 700; font-size: 1rem; min-width: 0; }
.who-list li + li { border-left: var(--rule-thin) solid var(--chalk); }
.who-list img { width: 22px; height: 64px; object-fit: fill; margin-bottom: 14px; }
.not-list { grid-column: 2; margin-top: 8px; padding-top: 18px; border-top: var(--rule-thin) solid var(--chalk); font-size: 0.95rem; }

/* ---------- Planned price ---------- */
.price .band-body { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.price h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.price-item { padding: 0 22px; min-width: 0; }
.price-item:first-child { padding-left: 0; }
.price-item + .price-item { border-left: var(--rule) solid var(--ink); }
.planned { display: inline-block; border: 2px solid var(--ink); font-weight: 900; font-size: 0.78rem; padding: 0 8px; margin-bottom: 10px; }
.price-item .small { font-weight: 900; font-size: 1.15rem; line-height: 1.3; }
.price-item .big { white-space: nowrap; font-weight: 900; font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.05; letter-spacing: -0.01em; }
.price-item .big .num { font-size: 1.15em; }
.price-item .desc { margin-top: 12px; font-size: 0.92rem; }
.price-note { grid-column: 2; font-size: 0.9rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { background: var(--copper); }
.faq .band-body { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.faq h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); color: var(--chalk); }
.faq .fan { width: min(100%, 280px); margin-top: 28px; }
.faq-list { display: grid; gap: 10px; }
.faq details { background: var(--white); border: var(--rule) solid var(--ink); border-radius: 10px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 14px 18px; font-weight: 900; font-size: 1.02rem;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q { font-family: var(--num); font-weight: 700; font-size: 1.25rem; line-height: 1; }
.faq summary svg { width: 16px; height: 16px; transition: transform 200ms ease; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { padding: 0 18px 16px 44px; }

/* ---------- Waiting list ---------- */
.waitlist { background: var(--ash-deep); color: var(--chalk); }
.waitlist .band-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.waitlist h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.waitlist .intro p { margin-top: 18px; font-size: 1.02rem; max-width: 26em; }
.field { display: block; margin-bottom: 18px; }
.field-label { display: block; font-weight: 700; margin-bottom: 6px; }
.field-label small { font-weight: 400; font-size: 0.9em; }
.field input, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background-color: var(--white);
  border: var(--rule) solid var(--ink); border-radius: 6px; padding: 12px 14px; min-height: 52px;
}
.field select {
  appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%23151413' stroke-width='2.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.submit {
  width: 100%; min-height: 56px; border: var(--rule) solid var(--ink); border-radius: 999px; cursor: pointer;
  background: var(--honey); color: var(--ink); font: 900 1.1rem/1 var(--font);
  transition: background-color 180ms ease;
}
.submit:hover { background: var(--chalk); }
.submit:disabled { opacity: 0.6; cursor: progress; }
.form-status:empty { display: none; }
.form-status { margin-top: 14px; background: var(--chalk); color: var(--ink); border-left: 8px solid var(--ash); padding: 12px 14px; font-weight: 700; }
.form-status.is-error { border-left-color: var(--copper-deep); }
form.is-done .field, form.is-done .submit { display: none; }
.privacy-line { margin-top: 14px; font-size: 0.9rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--chalk); }
.site-footer .bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
  padding: 28px var(--gutter) 36px calc(var(--tab) + var(--gutter));
  font-size: 0.9rem;
}
.site-footer .wordmark b { font-size: 1.4rem; }
.site-footer .wordmark span { font-size: 1.05rem; }
.site-footer .note { padding-left: 24px; border-left: var(--rule-thin) solid var(--chalk); }
.lang-footer { margin-left: auto; }
.lang-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; }
.lang-link { font-weight: 700; text-underline-offset: 4px; }
.lang-link[aria-current="page"] { text-decoration: none; border-bottom: 2px solid var(--honey); }

/* ---------- 404 ---------- */
.notfound { max-width: 720px; margin: 0 auto; padding: 96px var(--gutter); }
.notfound h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
.notfound p { margin-top: 20px; font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero .band-body, .who .band-body, .price .band-body, .faq .band-body, .waitlist .band-body { grid-template-columns: minmax(0, 1fr); }
  .not-list, .price-note { grid-column: 1; }
  .features-grid { grid-template-columns: minmax(0, 1fr); }
  .feature + .feature { border-left: 0; border-top: var(--rule) solid var(--ink); }
  .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 250px); grid-template-rows: auto 1fr; column-gap: 28px; }
  .feature h3, .feature p { grid-column: 1; }
  .feature .phone { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
  .who-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .who-list li:nth-child(3) { border-left: 0; }
  .faq .fan { display: none; }
}
@media (max-width: 680px) {
  :root { --tab: 0px; }
  .band-inner { grid-template-columns: minmax(0, 1fr); }
  .tab { flex-direction: row; justify-content: flex-start; padding: 8px var(--gutter); gap: 12px; }
  .tab .num { font-size: 1.15rem; }
  .tab .tab-label { writing-mode: horizontal-tb; letter-spacing: 0.06em; }
  .site-header .bar { padding: 12px var(--gutter); gap: 14px; }
  .tagline { display: none; }
  .wordmark b { font-size: 1.5rem; }
  .hero .band-body { padding-top: 32px; }
  .cta { white-space: nowrap; font-size: 0.95rem; padding: 14px 22px; gap: 10px; }
  .swatch img { height: 190px; }
  .swatch figcaption { font-size: 0.66rem; }
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature .phone { grid-column: 1; grid-row: auto; margin-top: 8px; }
  .who-list { grid-template-columns: minmax(0, 1fr); row-gap: 18px; }
  .who-list li, .who-list li + li { border-left: 0; padding: 0; display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 14px; align-items: start; }
  .who-list img { width: 16px; height: 46px; margin: 0; }
  .price-grid { grid-template-columns: minmax(0, 1fr); }
  .price-item, .price-item:first-child { padding: 18px 0; }
  .price-item + .price-item { border-left: 0; border-top: var(--rule) solid var(--ink); }
  .faq details p { padding-left: 18px; }
  .site-footer .bar { padding: 24px var(--gutter) 32px; }
  .site-footer .note { padding-left: 0; border-left: 0; flex-basis: 100%; order: 3; }
}
.dot.ash { background: var(--ash); }
.dot.honey { background: var(--honey); }
.timer .bar .w90 { width: 90%; }
.timer .bar .w40 { width: 40%; }
.timer .bar .w18 { width: 18%; }
