/* 信鍀資訊 Sinder — site styles */
:root {
  --ink: #15171d;
  --ink-2: #2a2e38;
  --paper: #faf7f2;
  --card: #ffffff;
  --line: #ebe5dc;
  --muted: #6b6f7a;
  --accent: #0d9488;
  --accent-ink: #0b7a70;
  --accent-soft: #ccf1ea;
  --warm: #e9a97f;
  --warm-soft: #fbe9dc;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(21, 23, 29, .04), 0 12px 32px -12px rgba(21, 23, 29, .14);
  --shadow-lg: 0 30px 60px -20px rgba(21, 23, 29, .28);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --max: 1200px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Noto Sans TC", system-ui, -apple-system, "PingFang TC", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  letter-spacing: .02em;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; letter-spacing: .04em; }
p { margin: 0 0 1em; }
.serif { font-family: "Noto Serif TC", serif; }
.num { font-family: "Outfit", "Noto Sans TC", sans-serif; }
.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: -.125em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- progress bar ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 100; background: linear-gradient(90deg, var(--accent), var(--warm)); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), color .4s;
  color: #fff;
}
.site-header.solid, body.light-top .site-header {
  background: rgba(250, 247, 242, .82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 1px 0 var(--line);
  color: var(--ink);
}
.site-header .container { display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.brand-mark { height: 46px; width: auto; flex: none; filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff) drop-shadow(0 3px 8px rgba(0,0,0,.3)); transition: transform .6s var(--ease); }
.brand:hover .brand-mark { transform: scale(1.08) rotate(-4deg); }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 18px; letter-spacing: .12em; }
.brand-text small { font-family: "Outfit", sans-serif; font-size: 11px; letter-spacing: .32em; opacity: .7; font-weight: 500; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav > a, .nav-drop > button {
  font: inherit; color: inherit; background: none; border: 0; cursor: pointer;
  padding: 8px 14px; border-radius: 999px; font-size: 15px; position: relative;
  display: inline-flex; align-items: center; gap: 4px;
  transition: background .25s;
}
.nav > a:hover, .nav-drop > button:hover { background: rgba(127, 127, 127, .14); }
.nav > a.active::after, .nav-drop.active > button::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); transform: translateX(-50%);
}
.nav .cta { background: var(--accent); color: #fff; margin-left: 8px; padding-inline: 18px; }
.nav .cta:hover { background: var(--accent-ink); }
.nav-drop { position: relative; }
.nav-drop .chev { transition: transform .3s var(--ease); }
.nav-drop:hover .chev, .nav-drop.open .chev { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; width: 560px;
  transform: translate(-50%, 8px); opacity: 0; visibility: hidden;
  background: var(--card); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  transition: opacity .25s, transform .35s var(--ease), visibility .25s;
}
.mega::before { content: ""; position: absolute; inset: -14px 0 auto 0; height: 14px; }
.nav-drop:hover .mega, .nav-drop.open .mega, .nav-drop:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega a { display: flex; gap: 12px; padding: 12px; border-radius: 14px; transition: background .2s; }
.mega a:hover { background: var(--paper); }
.mega a .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-size: 20px; flex: none; transition: transform .4s var(--ease); }
.mega a:hover .ico { transform: scale(1.1) rotate(-6deg); }
.mega a b { display: block; font-size: 15px; }
.mega a small { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.mega .wide { grid-column: 1 / -1; background: var(--warm-soft); }
.mega .wide .ico { background: #fff; color: #b8693a; }

.menu-btn { display: none; margin-left: auto; background: none; border: 0; color: inherit; font-size: 26px; padding: 8px; cursor: pointer; }
.menu-btn .i-close, body.nav-open .menu-btn .i-open { display: none; }
body.nav-open .menu-btn .i-close { display: inline-block; }

@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; flex-direction: column; align-items: stretch;
    background: var(--paper); color: var(--ink); padding: 16px 20px 40px; overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .35s var(--ease); gap: 2px;
  }
  body.nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  body.nav-open .site-header { background: var(--paper); color: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; } /* backdrop-filter would trap the fixed .nav inside the header */
  body.nav-open .fab { display: none; }
  .nav > a, .nav-drop > button { font-size: 18px; padding: 14px 8px; border-radius: 12px; justify-content: space-between; width: 100%; }
  .nav > a.active::after, .nav-drop.active > button::after { display: none; }
  .nav .cta { margin: 16px 0 0; justify-content: center; }
  .mega { position: static; width: auto; transform: none; box-shadow: none; display: none; opacity: 1; visibility: visible; grid-template-columns: 1fr; padding: 0 0 8px; background: transparent; }
  .nav-drop.open .mega { display: grid; transform: none; }
  .nav-drop:hover .mega { transform: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px;
  font-weight: 500; font-size: 16px; border: 0; cursor: pointer; position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s, background .3s;
}
.btn::after { /* shine sweep */
  content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }
.btn .icon { transition: transform .3s var(--ease); }
.btn:hover .icon.go { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -10px rgba(13, 148, 136, .7); }
.btn-primary:hover { background: var(--accent-ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-line { background: #06c755; color: #fff; }

/* ---------- home hero slider ---------- */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; color: #fff; background: #111; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.slide.on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }
.slide.on img { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.15) translate(1%, 1%); } to { transform: scale(1.02) translate(0, 0); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10, 12, 16, .82) 0%, rgba(10, 12, 16, .45) 55%, rgba(10, 12, 16, .15) 100%); pointer-events: none; }
.hero-copy { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; }
.hero-copy .container { max-width: var(--max); }
.slide-text { position: absolute; max-width: 640px; opacity: 0; visibility: hidden; }
.slide-text.on { position: relative; opacity: 1; visibility: visible; }
.slide-text .eyebrow { color: #9ff0e2; }
.slide-text h1 { font-family: "Noto Serif TC", serif; font-size: clamp(34px, 5.6vw, 64px); font-weight: 600; margin-bottom: 20px; }
.slide-text p { font-size: clamp(16px, 1.6vw, 19px); opacity: .88; max-width: 520px; margin-bottom: 32px; }
.slide-text.on .rise { animation: rise 1s var(--ease) both; }
.slide-text.on .rise:nth-child(2) { animation-delay: .12s; }
.slide-text.on .rise:nth-child(3) { animation-delay: .24s; }
.slide-text.on .rise:nth-child(4) { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 40px; }
.hero-dots .container { display: flex; gap: 10px; align-items: center; }
.hero-dots button { width: 44px; height: 4px; border: 0; padding: 0; border-radius: 4px; background: rgba(255,255,255,.3); cursor: pointer; overflow: hidden; position: relative; }
.hero-dots button span { position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: 0 50%; }
.hero-dots button.on span { animation: fill var(--slide-ms, 6000ms) linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }
.scroll-hint { position: absolute; z-index: 3; right: 40px; bottom: 32px; font-size: 12px; letter-spacing: .3em; writing-mode: vertical-rl; opacity: .7; display: flex; align-items: center; gap: 12px; }
.scroll-hint::after { content: ""; width: 1px; height: 56px; background: linear-gradient(#fff, transparent); animation: drip 2s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 640px) { .scroll-hint { display: none; } }

/* ---------- page hero (inner pages) ---------- */
.page-hero { position: relative; min-height: 64svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; padding: calc(var(--header-h) + 60px) 0 72px; background: #111; }
.page-hero .bg { position: absolute; top: -10%; left: 0; width: 100%; height: 120%; max-width: none; object-fit: cover; will-change: transform; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,12,16,.35), rgba(10,12,16,.78)); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-family: "Noto Serif TC", serif; font-weight: 600; font-size: clamp(34px, 5vw, 58px); margin-bottom: 16px; }
.page-hero p { max-width: 620px; font-size: 18px; opacity: .9; }
.page-hero .rise { animation: rise 1s var(--ease) both; }
.page-hero .rise:nth-child(2) { animation-delay: .1s; }
.page-hero .rise:nth-child(3) { animation-delay: .2s; }
.page-hero .rise:nth-child(4) { animation-delay: .3s; }
.crumbs { font-size: 13px; opacity: .75; display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- sections ---------- */
section { padding: clamp(72px, 10vw, 120px) 0; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: "Outfit", sans-serif; font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: var(--accent-ink); font-weight: 600; margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.section-title { font-family: "Noto Serif TC", serif; font-size: clamp(28px, 3.6vw, 42px); font-weight: 600; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.lead { font-size: 18px; color: var(--muted); }
.bg-white { background: #fff; }
.bg-ink { background: var(--ink); color: #fff; }
.bg-ink .lead { color: rgba(255,255,255,.7); }
.bg-ink .eyebrow { color: #7ee3d3; }

/* ---------- stats ---------- */
.stats { margin-top: -70px; position: relative; z-index: 5; padding: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.stats-grid.solo { grid-template-columns: auto 1fr; align-items: center; }
.stat { padding: 32px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.solo .stat { padding: 32px 48px; }
.stat-note { padding: 28px 48px; display: flex; align-items: center; gap: 32px; }
.stat-note p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.8; flex: 1; }
.stat-note a { flex: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--accent-ink); }
.stat .v { font-family: "Outfit", sans-serif; font-size: clamp(32px, 4vw, 46px); font-weight: 600; color: var(--ink); line-height: 1.1; }
.stat .v sup { font-size: .5em; color: var(--accent); margin-left: 2px; }
.stat .k { color: var(--muted); font-size: 14px; margin-top: 6px; }
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .stats-grid.solo { grid-template-columns: 1fr; } .solo .stat { border-right: 0; padding: 28px; } .stat-note { padding: 24px 28px; flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ---------- product cards ---------- */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product {
  position: relative; border-radius: var(--radius); overflow: hidden; background: #000; color: #fff; min-height: 380px;
  display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s;
}
.product img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease), opacity .5s; opacity: .9; }
.product::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.82)); transition: background .5s; }
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product:hover img { transform: scale(1.08); opacity: .75; }
.product .body { padding: 28px; }
.product .ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; background: rgba(255,255,255,.16); backdrop-filter: blur(10px); margin-bottom: 16px; transition: background .4s, transform .5s var(--ease); }
.product:hover .ico { background: var(--accent); transform: rotate(-8deg); }
.product h3 { font-size: 22px; margin-bottom: 6px; }
.product p { opacity: .82; font-size: 15px; margin: 0; max-height: 0; overflow: hidden; transition: max-height .6s var(--ease), margin .6s; }
.product:hover p, .product:focus-visible p { max-height: 120px; margin-top: 8px; }
.product .more { display: inline-flex; gap: 6px; align-items: center; margin-top: 14px; font-size: 14px; color: #9ff0e2; }
@media (hover: none) { .product p { max-height: none; margin-top: 8px; } }
@media (max-width: 960px) { .products { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .products { grid-template-columns: 1fr; } .product { min-height: 300px; } }

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split > *, .contact-grid > * { min-width: 0; }
html, body { overflow-x: clip; } /* reveal-left/right start off-screen; never let them widen the page */
.split.flip > :first-child { order: 2; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); width: 100%; height: auto; aspect-ratio: 4 / 3.4; object-fit: cover; box-shadow: var(--shadow-lg); }
.split-media .float {
  position: absolute; right: -18px; bottom: -24px; background: #fff; border-radius: 18px; padding: 16px 20px; box-shadow: var(--shadow-lg);
  display: flex; gap: 14px; align-items: center; animation: bob 5s ease-in-out infinite;
}
.split-media .float .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-size: 22px; }
.split-media .float b { display: block; font-family: "Outfit", sans-serif; font-size: 22px; line-height: 1.1; }
.split-media .float small { color: var(--muted); font-size: 13px; }
.split-media .float.top { right: auto; left: -18px; bottom: auto; top: 28px; animation-delay: -2.5s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } .split-media .float { right: 12px; } .split-media .float.top { left: 12px; } }
.checks { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li .icon { color: var(--accent); font-size: 20px; margin-top: 4px; }

/* ---------- feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; position: relative; overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s, border-color .45s;
}
.feature::before { /* cursor spotlight */
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s; pointer-events: none;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(13, 148, 136, .12), transparent 60%);
}
.feature:hover::before { opacity: 1; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.feature .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 20px; transition: transform .5s var(--ease); }
.feature:nth-child(3n+2) .ico { background: var(--warm-soft); color: #b8693a; }
.feature:nth-child(3n+3) .ico { background: #e6e7f5; color: #4b4fa6; }
.feature:hover .ico { transform: scale(1.08) rotate(-6deg); }
.feature h3 { font-size: 19px; }
.feature p { color: var(--muted); margin: 0; font-size: 15px; }
.feature .idx { position: absolute; right: 22px; top: 18px; font-family: "Outfit", sans-serif; font-size: 13px; color: #c9c2b6; letter-spacing: .1em; }
@media (max-width: 960px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* highlight trio (hair page) */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: trio; }
.trio .item { padding: 36px 30px; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); transition: background .4s, transform .5s var(--ease); }
.trio .item:hover { background: rgba(255,255,255,.1); transform: translateY(-6px); }
.trio .item .ico { font-size: 34px; color: #7ee3d3; margin-bottom: 20px; }
.trio .item h3 { font-size: 22px; }
.trio .item p { color: rgba(255,255,255,.72); margin: 0; }
@media (max-width: 760px) { .trio { grid-template-columns: 1fr; } }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee + .marquee { margin-top: 14px; }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: scroll-x 60s linear infinite; }
.marquee.rev .marquee-track { animation-direction: reverse; animation-duration: 70s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll-x { to { transform: translateX(-50%); } }
.chip { padding: 12px 22px; border-radius: 999px; background: #fff; border: 1px solid var(--line); white-space: nowrap; font-weight: 500; font-size: 15px; transition: background .3s, color .3s, border-color .3s; }
a.chip:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- news ---------- */
.news-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.news-list { display: grid; gap: 16px; }
.news {
  background: var(--card); border-radius: var(--radius); padding: 26px 28px; border: 1px solid var(--line);
  display: grid; grid-template-columns: auto 1fr; gap: 20px; transition: transform .4s var(--ease), box-shadow .4s;
}
.news:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.news .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-size: 22px; }
.news.hot .ico { background: #ffe3d6; color: #d0582a; }
.news h3 { font-size: 18px; margin-bottom: 8px; }
.news p { margin: 0; color: var(--muted); font-size: 15px; }
.news .tag { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 999px; background: var(--paper); color: var(--muted); margin-bottom: 8px; letter-spacing: .1em; }
.news.hot .tag { background: #ffe3d6; color: #b4461d; }
.price { display: grid; gap: 8px; margin-top: 12px; }
.price div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; border-radius: 12px; background: var(--paper); font-size: 15px; }
.price b { font-family: "Outfit", sans-serif; color: var(--ink); white-space: nowrap; }
.promo {
  border-radius: var(--radius); padding: 32px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0d9488, #115e59);
}
.promo + .promo { background: linear-gradient(135deg, #d9895c, #a45a33); }
.promo::after { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: -80px; border-radius: 50%; background: rgba(255,255,255,.1); animation: pulse 6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.15); } }
.promo .ico { font-size: 30px; margin-bottom: 14px; }
.promo h3 { font-size: 22px; }
.promo p { opacity: .9; margin-bottom: 0; position: relative; z-index: 1; }
.promo strong { color: #fff2c9; }
.promos { display: flex; flex-direction: column; gap: 24px; }
.promo:only-child { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.promo .qr { position: relative; z-index: 1; align-self: flex-start; margin-top: 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.promo .qr img { width: 160px; height: 160px; background: #fff; padding: 10px; border-radius: 16px; box-shadow: 0 16px 32px -12px rgba(0,0,0,.35); transition: transform .5s var(--ease); }
.promo .qr:hover img { transform: scale(1.05) rotate(-2deg); }
@media (max-width: 860px) { .news-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(40px, 6vw, 72px); background: var(--ink); color: #fff; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.cta-band::before, .cta-band::after { content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: drift 14s ease-in-out infinite alternate; }
.cta-band::before { width: 380px; height: 380px; background: #0d9488; left: -120px; bottom: -160px; }
.cta-band::after { width: 320px; height: 320px; background: #d9895c; right: -80px; top: -140px; animation-delay: -7s; }
@keyframes drift { to { transform: translate(60px, -40px) scale(1.1); } }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-family: "Noto Serif TC", serif; font-size: clamp(26px, 3.4vw, 38px); font-weight: 600; }
.cta-band p { opacity: .78; margin: 0; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.cta-band .tel { font-family: "Outfit", sans-serif; font-size: clamp(28px, 3.6vw, 40px); font-weight: 600; letter-spacing: .04em; display: block; margin-bottom: 14px; text-align: right; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } .cta-band .actions { justify-content: flex-start; } .cta-band .tel { text-align: left; } }

/* ---------- tablet page ---------- */
.pain { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pain .item { background: #fff; border-radius: var(--radius); padding: 32px 28px; border: 1px solid var(--line); position: relative; transition: transform .4s var(--ease), box-shadow .4s; }
.pain .item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pain .n { font-family: "Outfit", sans-serif; font-size: 56px; font-weight: 600; line-height: 1; color: var(--warm); opacity: .5; margin-bottom: 18px; }
.pain h3 { font-size: 19px; margin: 0; }
@media (max-width: 760px) { .pain { grid-template-columns: 1fr; } }
.solve { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
@media (max-width: 860px) { .solve { grid-template-columns: 1fr; } }

/* ---------- customers ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filters button { font: inherit; font-size: 15px; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: .3s; }
.filters button:hover { border-color: var(--ink); }
.filters button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters button .count { font-family: "Outfit", sans-serif; font-size: 12px; opacity: .6; margin-left: 6px; }
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.client {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; font-weight: 500;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s, opacity .3s;
}
.client .icon { color: #b9b2a6; font-size: 14px; transition: color .3s, transform .3s var(--ease); }
a.client:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
a.client:hover .icon { color: var(--accent); transform: translate(2px, -2px); }
.client.hide { display: none; }
.client .rg { font-size: 11px; color: var(--muted); font-weight: 400; display: block; letter-spacing: .1em; }

/* ---------- resources ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; position: sticky; top: calc(var(--header-h) + 12px); z-index: 10; background: rgba(250,247,242,.9); backdrop-filter: blur(10px); padding: 8px; border-radius: 999px; border: 1px solid var(--line); width: fit-content; margin: 0 auto 48px; }
.tabs a { padding: 8px 18px; border-radius: 999px; font-size: 15px; transition: .3s; display: inline-flex; gap: 8px; align-items: center; }
.tabs a:hover, .tabs a.on { background: var(--ink); color: #fff; }
.res-block { scroll-margin-top: calc(var(--header-h) + 90px); margin-bottom: 72px; }
.res-block h2 { display: flex; align-items: center; gap: 14px; font-size: 26px; margin-bottom: 24px; }
.res-block h2 .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-size: 22px; }
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dl { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 12px; transition: transform .4s var(--ease), box-shadow .4s; }
.dl:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.dl .logo { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #fff; font-size: 26px; }
.dl h3 { font-size: 20px; margin: 4px 0 0; }
.dl p { color: var(--muted); font-size: 14.5px; margin: 0; flex: 1; }
.dl .btn { align-self: flex-start; padding: 10px 20px; font-size: 15px; }
.dl:only-child { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; column-gap: 24px; row-gap: 4px; align-items: center; }
.dl:only-child .logo { grid-row: span 2; }
.dl:only-child .btn { grid-row: 1 / 3; grid-column: 3; }
@media (max-width: 860px) { .dl-grid { grid-template-columns: 1fr; } .dl:only-child { grid-template-columns: auto 1fr; } .dl:only-child .btn { grid-row: auto; grid-column: 1 / -1; margin-top: 16px; } }
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.link-grid a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-radius: 14px; background: #fff; border: 1px solid var(--line); transition: .3s var(--ease); }
.link-grid a .icon { color: #b9b2a6; transition: .3s var(--ease); }
.link-grid a:hover { border-color: var(--accent); color: var(--accent-ink); }
.link-grid a:hover .icon { color: var(--accent); transform: translate(2px, -2px); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.contact-card { background: #fff; border-radius: 28px; padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); }
.contact-row { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px dashed var(--line); }
.contact-row:last-child { border-bottom: 0; }
.contact-row .ico { width: 52px; height: 52px; border-radius: 16px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-size: 24px; flex: none; }
.contact-row small { color: var(--muted); display: block; font-size: 14px; }
.contact-row .big { font-family: "Outfit", sans-serif; font-size: clamp(26px, 3.4vw, 36px); font-weight: 600; letter-spacing: .03em; }
.contact-row .big:hover { color: var(--accent); }
.line-card { background: linear-gradient(160deg, #06c755, #04a046); color: #fff; border-radius: 28px; padding: clamp(28px, 4vw, 48px); text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.line-card img { width: 200px; border-radius: 18px; background: #fff; padding: 12px; margin: 20px 0; box-shadow: 0 20px 40px -16px rgba(0,0,0,.35); transition: transform .5s var(--ease); }
.line-card img:hover { transform: scale(1.05) rotate(-2deg); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- handbook flipbook ---------- */
.book-section { padding-top: clamp(48px, 7vw, 88px); }
.book-section:fullscreen { background: var(--ink); display: flex; align-items: center; overflow-y: auto; padding: 24px 0; }
.book-section:fullscreen .container { width: min(1400px, 100% - 32px); }
.book-section:fullscreen .book-bar { color: #fff; }
.book-stage { max-width: 1100px; margin: 0 auto; filter: drop-shadow(0 30px 40px rgba(21, 23, 29, .22)); }
.book .page { background: #fff; overflow: hidden; }
.book .page img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.book-bar { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 28px; }
.book-bar button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); display: grid; place-items: center; font-size: 22px; cursor: pointer; transition: background .3s, color .3s, transform .3s var(--ease); }
.book-bar button:hover { background: var(--ink); color: #fff; transform: scale(1.06); }
.book-bar .bb-full { margin-left: 12px; font-size: 18px; }
.bb-count { min-width: 92px; text-align: center; font-weight: 500; font-size: 16px; letter-spacing: .06em; }
.book-thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 24px 4px 8px; margin-top: 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.book-thumbs button { flex: none; width: 72px; border: 0; padding: 0; background: none; cursor: pointer; scroll-snap-align: center; border-radius: 6px; overflow: hidden; position: relative; opacity: .55; outline-offset: 2px; box-shadow: 0 0 0 2px transparent; transition: opacity .3s, transform .3s var(--ease), box-shadow .3s; }
.book-thumbs button:hover { opacity: .9; transform: translateY(-3px); }
.book-thumbs button.on { opacity: 1; box-shadow: 0 0 0 2px var(--accent); }
.book-thumbs img { width: 100%; height: auto; aspect-ratio: 160 / 226; object-fit: cover; }
.book-thumbs span { position: absolute; left: 4px; bottom: 4px; background: rgba(21,23,29,.75); color: #fff; font-family: "Outfit", sans-serif; font-size: 10px; padding: 0 6px; border-radius: 999px; }
.book-section:fullscreen .book-thumbs { display: none; }
@media (max-width: 600px) { .book-thumbs button { width: 56px; } }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 80px 0 32px; margin-top: 0; }
.site-footer .grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 15px; letter-spacing: .14em; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.site-footer a:hover { color: #7ee3d3; }
.site-footer .brand { color: #fff; margin-bottom: 18px; }
.site-footer .tel { font-family: "Outfit", sans-serif; font-size: 24px; color: #fff; font-weight: 600; }
.site-footer .bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; opacity: .7; }
@media (max-width: 860px) { .site-footer .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .grid { grid-template-columns: 1fr; } }

/* ---------- floating actions ---------- */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; gap: 10px; }
.fab a, .fab button { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; color: #fff; border: 0; cursor: pointer; box-shadow: 0 12px 28px -10px rgba(0,0,0,.45); transition: transform .35s var(--ease), opacity .35s; }
.fab a:hover, .fab button:hover { transform: scale(1.08); }
@keyframes ring { to { box-shadow: 0 0 0 18px rgba(13,148,136,0); } }
.fab .top { background: var(--ink); opacity: 0; pointer-events: none; transform: translateY(10px); }
.fab .top.show { opacity: 1; pointer-events: auto; transform: none; }

/* ---------- reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal="zoom"] { transform: scale(.94); }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
}

/* ---------- small-screen tweaks ---------- */
@media (max-width: 760px) {
  .hero-dots { bottom: 96px; }
  .price div { flex-direction: column; gap: 2px; }
  .client-grid { grid-template-columns: 1fr 1fr; }
  .news { grid-template-columns: 1fr; gap: 12px; padding: 22px; }
}

.features.one-col { grid-template-columns: 1fr; margin-top: 28px; }
.btn-sm { margin-top: 14px; padding: 10px 20px; font-size: 15px; }
.product picture, .slide picture, .split-media picture { display: contents; }

/* ---------- tablet (iPad) ---------- */
@media (min-width: 761px) and (max-width: 1100px) {
  .container { width: min(var(--max), 100% - 56px); }
  .features { grid-template-columns: 1fr 1fr; }
  .stat { padding: 24px 20px; }
  .split-media .float { right: 12px; }
  .split-media .float.top { left: 12px; }
}
@media (max-width: 380px) {
  .client-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { padding: 12px 20px; font-size: 15px; }
}

/* ---------- app screenshots in a browser frame ---------- */
.browser { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); border: 1px solid rgba(21,23,29,.08); }
.browser .bar { height: 28px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #eef0f3; border-bottom: 1px solid #e1e4e8; }
.browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.browser .bar i:nth-child(2) { background: #febc2e; }
.browser .bar i:nth-child(3) { background: #28c840; }
.split-media .browser img, .browser img { width: 100%; height: auto; aspect-ratio: auto; border-radius: 0; box-shadow: none; object-fit: contain; }
.split-media .browser { transition: transform .8s var(--ease); }
.split-media:hover .browser { transform: translateY(-6px); }

