/* ============================================================
   JukiTech — shared stylesheet (used by index.html + service pages)
   ============================================================ */
:root {
  /* Figma palette: Shell / Stone / Sky / Honeydew / Viridian */
  --shell:      #F7F5F1;
  --stone:      #E0DCD1;
  --sky:        #D5E3E8;
  --honeydew:   #E4E3BC;
  --viridian:   #344945;

  --ink:        #344945;   /* Viridian — text, headings, dark sections, buttons */
  --ink-2:      #283835;   /* darker Viridian — gradient end */
  --persimmon:  #344945;   /* accent → Viridian (button/emphasis on light) */
  --persimmon-d:#283835;   /* accent hover / eyebrow */
  --persimmon-soft:#E4E3BC;/* Honeydew — soft fills & on-dark highlights */
  --jade:       #3F7468;   /* muted teal-green — checks, focus, success */
  --cool:       #D5E3E8;   /* Sky — cool accent (pulse dot) */
  --paper:      #F7F5F1;   /* Shell — page background */
  --white:      #FFFFFF;
  --muted:      #5F6B66;   /* muted green-grey — secondary text */
  --line:       #E0DCD1;   /* Stone — borders */
  --shadow:     0 14px 40px -18px rgba(40,56,53,.30);

  /* "weird" web fonts kept first, with robust system fallbacks after */
  --font-zh: "Noto Sans TC", "PingFang TC", system-ui, "Microsoft JhengHei", "Heiti TC", sans-serif;
  /* Base text: Latin glyphs render in Bellefair, Chinese falls through to Noto Sans TC */
  --font-base: "Bellefair", var(--font-zh);
  --font-display: "Bellefair", Georgia, "Times New Roman", var(--font-zh), serif;
  --maxw: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  letter-spacing: .01em;
  /* Bellefair only ships weight 400 — don't let the browser fake bold/italic */
  font-synthesis: none;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,248,243,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; letter-spacing: -.02em; display: flex; align-items: center; gap: 9px; }
.brand .mark { display: block; }
.brand .mark rect { fill: var(--ink); }
.brand .mark .spark { fill: #B9B650; }
footer .brand .mark rect { fill: var(--shell); }
footer .brand .mark .spark { fill: var(--honeydew); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a.navlink { font-size: .96rem; font-weight: 300; color: var(--muted); transition: color .18s; }
.nav-links a.navlink:hover { color: var(--ink); }

/* simple hover/focus dropdown for 服務 */
.has-menu { position: relative; }
.has-menu > .navlink { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  padding: 8px; min-width: 240px; opacity: 0; visibility: hidden; transition: .18s;
}
.has-menu:hover .menu, .has-menu:focus-within .menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.menu a { display: block; padding: 11px 14px; border-radius: 10px; font-size: .95rem; font-weight: 400; color: var(--ink); }
.menu a small { display: block; color: var(--muted); font-weight: 400; font-size: .82rem; margin-top: 2px; }
.menu a:hover { background: var(--paper); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-base); font-weight: 700; font-size: 1rem;
  padding: 13px 24px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .15s, box-shadow .2s, background .2s, color .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--persimmon); color: #fff; box-shadow: 0 10px 24px -10px rgba(239,95,60,.6); }
.btn-primary:hover { background: var(--persimmon-d); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, .chip:focus-visible, summary:focus-visible {
  outline: 3px solid var(--jade); outline-offset: 2px;
}

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(239,95,60,.22), transparent 60%),
    radial-gradient(700px 500px at 0% 110%, rgba(27,156,138,.18), transparent 55%),
    linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff;
}
.hero .wrap { padding-top: 92px; padding-bottom: 100px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .86rem; font-weight: 400; letter-spacing: .04em;
  color: #cdd5e6; border: 1px solid rgba(255,255,255,.18);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 26px;
}
.eyebrow .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 0 0 rgba(27,156,138,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(27,156,138,.55)} 70%{box-shadow:0 0 0 9px rgba(27,156,138,0)} 100%{box-shadow:0 0 0 0 rgba(27,156,138,0)} }

.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.7rem);
  line-height: 1.28; font-weight: 400; letter-spacing: -.01em;
  margin: 0 0 22px; max-width: 24ch;
}
.hero h1 .mark { position: relative; color: #fff; white-space: nowrap; }
.hero h1 .mark::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: 6px; height: .42em;
  background: var(--persimmon); opacity: .9; z-index: -1; border-radius: 3px;
  transform: skewX(-4deg);
}
.hero p.lede { font-size: clamp(1.05rem, 2.2vw, 1.28rem); color: #d7dded; max-width: 46ch; margin: 0 0 38px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; }
.hero-chips .pill {
  font-family: var(--font-display); font-weight: 400; font-size: .92rem;
  color: #e7ecf7; background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14); padding: 8px 16px; border-radius: 10px;
}
.hero-chips .pill b { color: var(--persimmon); font-weight: 700; }

/* breadcrumb (service pages) */
.crumbs { font-size: .85rem; color: #aab4cb; margin-bottom: 22px; }
.crumbs a:hover { color: #fff; }
.crumbs span { color: #e7ecf7; }

/* ---------- Section scaffolding ---------- */
.block { padding-block: 92px; }
.block .wrap > .head { max-width: 60ch; margin-bottom: 52px; }
.label-eyebrow {
  font-family: var(--font-display); font-weight: 700; font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--persimmon-d);
  display: block; margin-bottom: 14px;
}
.block h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.35; font-weight: 400; margin: 0 0 16px; letter-spacing: -.01em; }
.block .sub { color: var(--muted); font-size: 1.08rem; margin: 0; }
.block.alt { background: #fff; border-block: 1px solid var(--line); }

/* ---------- Services (cards) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 34px 30px; transition: transform .2s, box-shadow .25s, border-color .2s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card .ico { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 20px; background: var(--persimmon-soft); }
.card .ico svg { width: 24px; height: 24px; stroke: var(--persimmon-d); }
.card h3 { font-size: 1.28rem; font-weight: 400; margin: 0 0 10px; }
.card p { color: var(--muted); margin: 0; font-size: 1rem; }
.card .more { margin-top: 18px; font-weight: 700; color: var(--persimmon-d); font-size: .98rem; display: inline-flex; align-items: center; gap: 6px; }
.card .more::after { content: "→"; transition: transform .18s; }
.card:hover .more::after { transform: translateX(4px); }
.card ul.card-list { margin: 14px 0 0; padding-left: 1.1em; color: var(--muted); font-size: .96rem; }
.card ul.card-list li { margin-bottom: 6px; }
.card .spacer { flex: 1; }

/* Secondary (value-add) services — lighter, more compact than core cards */
.cards.secondary .card { padding: 28px 26px; }
.cards.secondary .ico { width: 42px; height: 42px; border-radius: 11px; margin-bottom: 16px; }
.cards.secondary .ico svg { width: 21px; height: 21px; }
.cards.secondary h3 { font-size: 1.14rem; }

/* ---------- Pain points ---------- */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pain { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px; }
.pain .x { width: 36px; height: 36px; border-radius: 10px; background: var(--persimmon-soft); color: var(--persimmon-d); display: grid; place-items: center; font-weight: 700; margin-bottom: 14px; }
.pain .x svg { width: 19px; height: 19px; stroke: var(--persimmon-d); }
.pain h3 { font-size: 1.08rem; margin: 0 0 8px; font-weight: 700; }
.pain p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- Deliverables (checklist) ---------- */
.deliver { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 32px; }
.deliver li { list-style: none; display: flex; gap: 12px; align-items: flex-start; }
.deliver { padding: 0; margin: 0; }
.deliver .tick { flex: none; width: 26px; height: 26px; border-radius: 50%; background: rgba(27,156,138,.12); color: var(--jade); display: grid; place-items: center; margin-top: 2px; }
.deliver .tick svg { width: 15px; height: 15px; stroke: var(--jade); }
.deliver b { display: block; font-weight: 700; }
.deliver span.d { color: var(--muted); font-size: .96rem; }

/* ---------- Process ---------- */
.process { background: var(--ink); color: #fff; }
.process .label-eyebrow { color: var(--persimmon); }
.process .sub { color: #c4ccdd; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 16px; counter-reset: step; }
.steps.three { grid-template-columns: repeat(3, 1fr); }
.step { position: relative; padding-top: 26px; border-top: 2px solid rgba(255,255,255,.16); }
.step .num { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--persimmon); letter-spacing: .05em; }
.step h3 { font-size: 1.2rem; margin: 10px 0 8px; font-weight: 700; }
.step p { color: #b9c2d4; font-size: .98rem; margin: 0; }

/* ---------- Pricing tiers ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.tier {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px 28px;
  display: flex; flex-direction: column; position: relative;
}
.tier.featured { border-color: var(--persimmon); box-shadow: var(--shadow); }
.tier .tag { position: absolute; top: -13px; left: 28px; background: var(--persimmon); color: #fff; font-size: .76rem; font-weight: 700; letter-spacing: .04em; padding: 5px 12px; border-radius: 999px; }
.tier h3 { font-size: 1.25rem; margin: 0 0 6px; font-weight: 700; }
.tier .who { color: var(--muted); font-size: .94rem; margin: 0 0 18px; min-height: 2.6em; }
.tier .price { font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--ink); line-height: 1.1; }
.tier .price small { display: block; font-family: var(--font-base); font-weight: 400; font-size: .85rem; color: var(--muted); margin-top: 6px; }
/* Two-row fee block: same slots on every tier so prices compare at a glance */
.fees { margin: 2px 0 6px; }
.fee { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; }
.fee + .fee { border-top: 1px dashed var(--line); }
.fee-k { font-size: .86rem; color: var(--muted); font-weight: 500; white-space: nowrap; }
.fee-v { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); line-height: 1.15; text-align: right; }
.fee-v em { font-style: normal; font-family: var(--font-zh); font-size: .82rem; color: var(--muted); margin-left: 4px; }
.fee-v.free { font-family: var(--font-zh); font-size: .95rem; font-weight: 700; color: var(--jade); }

.tier ul { list-style: none; margin: 22px 0 26px; padding: 0; }
.tier ul li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: .96rem; color: var(--ink); border-top: 1px solid var(--line); }
.tier ul li:first-child { border-top: 0; }
.tier ul li svg { flex: none; width: 17px; height: 17px; stroke: var(--jade); margin-top: 4px; }
.tier .btn { margin-top: auto; width: 100%; }
.price-note { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 28px; }

/* ---------- FAQ (native details) ---------- */
.faq { max-width: 760px; margin-inline: auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 700; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.5rem; color: var(--persimmon-d); transition: transform .2s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 24px 22px; color: var(--muted); }
.faq .ans p { margin: 0; }

/* ---------- CTA band ---------- */
/* CTA band: white section holding a dark rounded panel — keeps the dramatic
   look without stacking two dark sections or sitting dark-on-dark by the footer */
.cta-band { background: #fff; border-block: 1px solid var(--line); color: var(--ink); }
.cta-band .panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(560px 420px at 88% -10%, rgba(228,227,188,.10), transparent 60%),
    radial-gradient(480px 420px at 0% 112%, rgba(213,227,232,.10), transparent 58%),
    linear-gradient(150deg, var(--ink), var(--ink-2));
  border-radius: clamp(18px, 3vw, 30px);
  padding: clamp(30px, 4.5vw, 56px);
}
.cta-band h2 { color: #fff; }
.cta-band .sub { color: #c4ccdd; }

/* ---------- Forms ---------- */
label.lbl { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 8px; }
input[type=text], input[type=email], input[type=tel], textarea {
  width: 100%; font-family: var(--font-base); font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 13px 15px; transition: border-color .18s, box-shadow .18s;
}
input:focus, textarea:focus { outline: none; border-color: var(--persimmon); box-shadow: 0 0 0 3px rgba(239,95,60,.14); }
textarea { resize: vertical; min-height: 120px; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input { flex: 1 1 220px; }
.field-note { font-size: .85rem; color: var(--muted); margin: 12px 0 0; }

/* form card (on dark CTA band) */
.form-card { background: #fff; border-radius: 20px; padding: 32px clamp(24px,4vw,36px); box-shadow: var(--shadow); color: var(--ink); }
.form-card .field { margin-bottom: 18px; }

/* ---------- Contact ---------- */
.contact .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.field { margin-bottom: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-size: .95rem; font-weight: 400; padding: 9px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
  transition: .15s; user-select: none;
}
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.form-status { font-size: .98rem; font-weight: 400; margin-top: 14px; min-height: 1.2em; }
.form-status.ok { color: var(--jade); }
.form-status.err { color: var(--persimmon-d); }

.contact-aside { background:#fff; border:1px solid var(--line); border-radius:18px; padding:32px; }
.contact-aside h3 { margin:0 0 6px; font-size:1.2rem; }
.contact-aside p { color: var(--muted); margin: 0 0 22px; }
.contact-row { display:flex; align-items:center; gap:14px; padding:14px 0; border-top:1px solid var(--line); }
.contact-row:first-of-type { border-top:0; }
.contact-row .k { font-weight:700; min-width: 72px; }
.contact-row .v { color: var(--muted); }
.line-btn { display:inline-flex; align-items:center; gap:8px; background:#06C755; color:#fff; font-weight:700; padding:11px 18px; border-radius:12px; margin-top:6px; transition:transform .15s; }
.line-btn:hover { transform: translateY(-2px); }

/* ---------- Footer ---------- */
footer { background: var(--ink-2); color: #aeb7c9; padding-block: 48px; }
footer .row { display:flex; flex-wrap:wrap; justify-content:space-between; gap:20px; align-items:center; }
footer .brand { color:#fff; }
footer a:hover { color:#fff; }
.legal { font-size:.86rem; margin-top: 26px; color:#7b8499; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity:1; transform:none; transition:none; } }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px 24px 22px;
    transform: translateY(-130%); transition: transform .25s; }
  .nav-links.open { transform: none; }
  .nav-links a.navlink { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { width: 100%; margin-top: 12px; }
  .nav-toggle { display: block; }
  .has-menu .menu { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; padding: 0 0 6px; min-width: 0; }
  .has-menu .menu a { padding: 10px 0; }
  .cards, .cards.two { grid-template-columns: 1fr; }
  .pains { grid-template-columns: 1fr; }
  .deliver { grid-template-columns: 1fr; }
  .steps, .steps.three { grid-template-columns: 1fr 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .cta-band .panel { grid-template-columns: 1fr; gap: 32px; }
  .contact .grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 480px) {
  .steps, .steps.three { grid-template-columns: 1fr; }
  .block { padding-block: 68px; }
}

/* ============================================================
   Palette theming (Figma: Shell/Stone/Sky/Honeydew/Viridian)
   Overrides hardcoded accent colours and fixes contrast on the
   dark (deep-green) sections. Keep below base rules.
   ============================================================ */

/* Dark hero/feature backgrounds → deep Viridian with pale tints */
.hero {
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(228,227,188,.16), transparent 60%),
    radial-gradient(700px 500px at 0% 110%, rgba(213,227,232,.16), transparent 55%),
    linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%);
}

/* Buttons: soft glow in the new green */
.btn-primary { box-shadow: 0 10px 24px -12px rgba(52,73,69,.5); }
input:focus, textarea:focus { box-shadow: 0 0 0 3px rgba(52,73,69,.14); }

/* Pale accents that sit on the dark hero/bands */
.eyebrow .pulse { background: var(--cool); box-shadow: 0 0 0 0 rgba(213,227,232,.6); }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(213,227,232,.55); }
  70%  { box-shadow: 0 0 0 9px rgba(213,227,232,0); }
  100% { box-shadow: 0 0 0 0 rgba(213,227,232,0); }
}
.hero h1 .mark::after { background: var(--persimmon-soft); opacity: 1; }
.hero-chips .pill b { color: var(--persimmon-soft); }
.process .label-eyebrow { color: var(--persimmon-soft); }
.deliver .tick { background: rgba(63,116,104,.16); }

/* Primary CTA on dark sections → warm Honeydew pop with dark text */
.hero .btn-primary,
#ai-highlight .btn-primary {
  background: var(--persimmon-soft);
  color: var(--ink);
  box-shadow: 0 12px 26px -14px rgba(0,0,0,.5);
}
.hero .btn-primary:hover,
#ai-highlight .btn-primary:hover { background: #ECEABF; }

/* Eyebrow labels + brand dot carried by inline styles on dark bands */
.cta-band .label-eyebrow { color: var(--persimmon-soft) !important; }

/* ============================================================
   Refinements — thinner highlight, stronger CTA hierarchy,
   footer LINE button
   ============================================================ */

/* 1 ・ H1 highlight: a slim underline instead of a heavy block */
.hero h1 .mark::after {
  height: .16em;
  bottom: .1em;
  left: 0; right: 0;
  border-radius: 999px;
  opacity: .95;
  transform: none;
}

/* 2 ・ CTA hierarchy: primary dominates, secondary supports */
.hero-cta { gap: 12px; align-items: center; }
.hero .btn-primary,
#ai-highlight .btn-primary,
.cta-band .btn-primary {
  font-size: 1.06rem;
  padding: 17px 36px;
  box-shadow: 0 14px 34px -12px rgba(228,227,188,.45);
}
.hero .btn-primary:hover,
#ai-highlight .btn-primary:hover,
.cta-band .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px -14px rgba(228,227,188,.6);
}
/* Secondary steps back so it doesn't compete on dark sections */
.hero .btn-light,
#ai-highlight .btn-light,
.cta-band .btn-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.32);
}
.hero .btn-light:hover,
#ai-highlight .btn-light:hover,
.cta-band .btn-light:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.6);
  box-shadow: none;
}
/* Primary CTA on light sections gets the same presence */
.block:not(.process):not(.cta-band) .btn-primary { padding: 16px 34px; }

/* 3 ・ Footer LINE button */
.foot-social { display: flex; align-items: center; gap: 12px; }
.foot-line {
  display: inline-flex; align-items: center; gap: 8px;
  background: #06C755; color: #fff !important; font-weight: 700; font-size: .92rem;
  padding: 9px 16px; border-radius: 999px; transition: transform .15s, filter .2s;
}
.foot-line:hover { transform: translateY(-2px); filter: brightness(1.08); }
.foot-line svg { width: 17px; height: 17px; flex: none; }
@media (max-width: 620px) { .foot-social { width: 100%; } }

/* ============================================================
   Showcase / 作品集 — browser-framed preview of the concept demo
   ============================================================ */
.showcase .sc-grid {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.sc-copy h2 { margin-bottom: 14px; }
.sc-copy .sub { margin-bottom: 22px; }
.sc-list { list-style: none; margin: 0 0 30px; padding: 0; }
.sc-list li { display: flex; align-items: flex-start; gap: 11px; padding: 7px 0; font-size: 1rem; }
.sc-tick { flex: none; width: 22px; height: 22px; border-radius: 50%; background: rgba(63,116,104,.14); display: grid; place-items: center; margin-top: 3px; }
.sc-tick svg { width: 13px; height: 13px; stroke: var(--jade); }
.sc-note { font-size: .82rem; color: var(--muted); margin: 16px 0 0; }

/* frame */
.sc-frame { display: block; position: relative; transition: transform .3s ease; }
.sc-frame:hover { transform: translateY(-6px); }
.browser {
  border-radius: 14px; overflow: hidden; background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 34px 70px -30px rgba(40,56,53,.45);
}
.browser-bar {
  display: flex; align-items: center; gap: 6px;
  background: #EFEBE4; border-bottom: 1px solid var(--line); padding: 9px 13px;
}
.bdot { width: 9px; height: 9px; border-radius: 50%; background: #CFC8BC; }
.burl {
  margin-left: 10px; flex: 1; background: #fff; border-radius: 999px;
  font-size: .68rem; color: #8C8378; padding: 4px 12px;
  font-family: var(--font-zh); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* miniature of the clinic page (its own warm palette, on purpose) */
.shot { background: #FAF6F1; padding: 0 0 16px; position: relative; }
.shot-nav { display: flex; justify-content: space-between; align-items: center; padding: 11px 16px; border-bottom: 1px solid #EADFD5; }
.shot-logo { font-family: var(--font-display); font-size: .84rem; color: #3B3230; letter-spacing: .04em; }
.shot-logo i { font-style: normal; color: #B76E5D; }
.shot-cta { background: #B76E5D; color: #fff; font-size: .6rem; padding: 4px 11px; border-radius: 999px; }
.shot-hero { text-align: center; padding: 26px 16px 20px; display: flex; flex-direction: column; align-items: center; gap: 9px;
  background: radial-gradient(220px 120px at 50% -10%, #F3E2DB, transparent 70%); }
.shot-eyebrow { font-size: .52rem; letter-spacing: .34em; color: #B76E5D; }
.shot-h1 { font-family: var(--font-display); font-size: 1.28rem; line-height: 1.3; color: #3B3230; letter-spacing: .05em; }
.shot-btn { background: #B76E5D; color: #fff; font-size: .62rem; padding: 6px 16px; border-radius: 999px; margin-top: 3px; }
.shot-cards { display: flex; gap: 8px; padding: 4px 16px 0; }
.shot-cards i { flex: 1; height: 40px; border-radius: 8px; background: #fff; border: 1px solid #EADFD5; }
.shot-chat { position: absolute; right: 12px; bottom: 10px; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.sc-bubble { font-size: .58rem; padding: 5px 9px; border-radius: 9px; max-width: 130px; }
.sc-bubble.bot { background: #fff; border: 1px solid #EADFD5; color: #7A6E68; border-bottom-left-radius: 2px; }
.sc-bubble.user { background: #B76E5D; color: #fff; border-bottom-right-radius: 2px; }
/* floating badge */
.sc-badge {
  position: absolute; left: -14px; bottom: 22px;
  background: var(--ink); color: var(--honeydew);
  font-size: .82rem; font-weight: 700; padding: 9px 18px; border-radius: 999px;
  box-shadow: 0 16px 34px -14px rgba(40,56,53,.6);
}

@media (max-width: 880px) {
  .showcase .sc-grid { grid-template-columns: 1fr; }
  .sc-badge { left: auto; right: 14px; bottom: -12px; }
}

/* ============================================================
   Design pass v2 — premium studio polish
   Layered glows, floating dark slabs, refined surfaces & motion.
   Additive only: keeps all copy and fonts untouched.
   ============================================================ */

/* Anchor jumps shouldn't hide section tops under the sticky header */
[id] { scroll-margin-top: 88px; }

/* ---------- Hero: layered composition instead of a flat void ---------- */
.hero { border-radius: 0 0 clamp(18px, 3vw, 32px) clamp(18px, 3vw, 32px); }
.hero .wrap { position: relative; z-index: 2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(640px 640px at 86% 18%, rgba(228,227,188,.14), transparent 62%),
    radial-gradient(520px 520px at 70% 90%, rgba(213,227,232,.12), transparent 60%),
    radial-gradient(1200px 300px at 50% 102%, rgba(0,0,0,.25), transparent 70%);
}
/* Spark-grid motif (large-scale echo of the logo mark) */
.hero::after {
  content: ""; position: absolute; z-index: 1; pointer-events: none;
  width: 460px; height: 460px; right: 5%; top: 50%;
  transform: translateY(-50%) rotate(-6deg);
  background:
    radial-gradient(220px 220px at 74% 74%, rgba(228,227,188,.16), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'%3E%3Crect x='2' y='2' width='13' height='13' rx='3.5' fill='none' stroke='%23E4E3BC' stroke-opacity='.34' stroke-width='.3'/%3E%3Crect x='19' y='2' width='13' height='13' rx='3.5' fill='none' stroke='%23D5E3E8' stroke-opacity='.28' stroke-width='.3'/%3E%3Crect x='2' y='19' width='13' height='13' rx='3.5' fill='none' stroke='%23D5E3E8' stroke-opacity='.28' stroke-width='.3'/%3E%3Crect x='20.5' y='20.5' width='10' height='10' rx='2.5' fill='%23E4E3BC' fill-opacity='.42' transform='rotate(45 25.5 25.5)'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (max-width: 1100px) { .hero::after { display: none; } }
.hero .eyebrow { backdrop-filter: blur(6px); background: rgba(255,255,255,.05); }
.hero-chips .pill { transition: transform .18s, border-color .18s, background .18s; }
.hero-chips .pill:hover { transform: translateY(-2px); border-color: rgba(228,227,188,.45); background: rgba(255,255,255,.11); }

/* ---------- Dark process section floats as a rounded slab ---------- */
.process {
  position: relative; overflow: hidden;
  margin-inline: clamp(10px, 1.6vw, 22px);
  border-radius: clamp(18px, 3vw, 32px);
}
.process::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(560px 420px at 88% -10%, rgba(228,227,188,.10), transparent 60%),
    radial-gradient(480px 420px at 0% 112%, rgba(213,227,232,.10), transparent 58%);
}
.process > .wrap { position: relative; }

/* ---------- Buttons: dimensional, calm ---------- */
.btn { padding: 14px 28px; letter-spacing: .02em; }
.btn-primary { background: linear-gradient(180deg, #3D5450, var(--ink) 78%); }
.btn-primary:hover { background: linear-gradient(180deg, #354945, var(--ink-2) 82%); }
.hero .btn-primary, #ai-highlight .btn-primary, .cta-band .btn-primary {
  background: linear-gradient(180deg, #EFEECB, var(--persimmon-soft) 80%);
  border-color: rgba(52,73,69,.14);
}
.hero .btn-primary:hover, #ai-highlight .btn-primary:hover, .cta-band .btn-primary:hover {
  background: linear-gradient(180deg, #F3F2D4, #ECEABF 80%);
}
.btn-light { border-color: rgba(52,73,69,.08); }

/* ---------- Cards: soft gradient surface, brand-motif details ---------- */
.card {
  border-radius: 20px;
  background: linear-gradient(180deg, #FFFFFF, #FBFAF5);
  border-color: rgba(224,220,209,.85);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px -26px rgba(40,56,53,.35);
  border-color: rgba(52,73,69,.16);
}
.card .ico {
  background: linear-gradient(135deg, #EFEEC9, #DCE7E4);
  transform: rotate(-4deg);
  transition: transform .25s;
}
.card:hover .ico { transform: rotate(0deg) scale(1.06); }
.card ul.card-list { padding-left: 2px; }
.card ul.card-list li { list-style: none; position: relative; padding-left: 18px; }
.card ul.card-list li::before {
  content: ""; position: absolute; left: 2px; top: .62em;
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--jade); opacity: .55; transform: rotate(45deg);
}

/* Pain cards echo the same language */
.pain { border-radius: 18px; background: linear-gradient(180deg, #FFFFFF, #FBFAF5); }
.pain .x { transform: rotate(-4deg); border-radius: 10px; }

/* ---------- Process steps: accent tick + hairline ---------- */
.step { border-top: 1px solid rgba(255,255,255,.13); position: relative; }
.step::before {
  content: ""; position: absolute; top: -1px; left: 0;
  width: 34px; height: 3px; border-radius: 2px;
  background: var(--persimmon-soft);
}

/* ---------- Pricing tiers ---------- */
.tier { border-radius: 22px; background: linear-gradient(180deg, #FFFFFF, #FBFAF5); }
.tier.featured {
  border-color: rgba(52,73,69,.35);
  box-shadow: 0 30px 70px -30px rgba(40,56,53,.4);
}
.tier .tag { background: var(--ink); }

/* ---------- FAQ ---------- */
.faq details { border-radius: 16px; transition: border-color .2s, box-shadow .2s; }
.faq details:hover { border-color: rgba(52,73,69,.2); }
.faq details[open] { border-color: rgba(52,73,69,.24); box-shadow: 0 16px 40px -24px rgba(40,56,53,.25); }
.faq summary:hover { background: rgba(247,245,241,.7); }

/* ---------- Forms & aside ---------- */
.form-card { border-radius: 22px; box-shadow: 0 30px 70px -30px rgba(12,20,18,.5); }
.contact-aside { border-radius: 20px; background: linear-gradient(180deg, #FFFFFF, #FBFAF5); }
input[type=text], input[type=email], input[type=tel], textarea { border-radius: 14px; background: #FDFCFA; }

/* ---------- Footer hairline ---------- */
footer { border-top: 1px solid rgba(228,227,188,.14); }

/* ---------- Staggered reveals (siblings cascade gently) ---------- */
.cards .card.reveal:nth-child(2) { transition-delay: .08s; }
.cards .card.reveal:nth-child(3) { transition-delay: .16s; }
.pains .pain.reveal:nth-child(2) { transition-delay: .08s; }
.pains .pain.reveal:nth-child(3) { transition-delay: .16s; }
.steps .step.reveal:nth-child(2) { transition-delay: .08s; }
.steps .step.reveal:nth-child(3) { transition-delay: .16s; }
.steps .step.reveal:nth-child(4) { transition-delay: .24s; }
.pricing .tier.reveal:nth-child(2) { transition-delay: .08s; }
.pricing .tier.reveal:nth-child(3) { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { transition-delay: 0s !important; }
}

h1, h2, h3, h4, .block h2, .card h3, .step h3 {
  font-weight: 400 !important;
}
