/* HCB Signature Studio - staff page. No inline styles (strict CSP). */
:root {
  --ink: #0d2429; --mute: #5f777c; --line: #dfe8e8; --bg: #f1f5f5; --card: #fff;
  --teal: #1f6f7e; --teal-d: #134b56; --deep: #062027; --mint: #35b294; --orange: #f47b20; --bad: #d92d20;
  --display: 'Baloo 2', 'Nunito', system-ui, sans-serif; --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2,.8,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-weight: 600; font-size: 1rem; line-height: 1.5; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.1; }
p { margin: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid #ffb23e; outline-offset: 2px; border-radius: .5rem; }

/* ------------------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; color: #eafaf6; background: radial-gradient(120% 120% at 15% 0%, #0d3a44, var(--deep) 62%); padding: 1.4rem 1rem 7.5rem; }
.hero-art i { position: absolute; border-radius: 50%; filter: blur(80px); }
.hero-art i:nth-child(1) { width: 34rem; height: 34rem; left: -10rem; top: -16rem; background: var(--teal); opacity: .55; animation: drift 16s ease-in-out infinite alternate; }
.hero-art i:nth-child(2) { width: 26rem; height: 26rem; right: -6rem; top: 4rem; background: var(--mint); opacity: .28; animation: drift 20s ease-in-out infinite alternate-reverse; }
.hero-art i:nth-child(3) { width: 20rem; height: 20rem; left: 45%; bottom: -13rem; background: var(--orange); opacity: .3; animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(3rem, 2rem) scale(1.1); } }
.hero-in { position: relative; width: min(100%, 76rem); margin: 0 auto; animation: up .7s var(--ease) both; }
@keyframes up { from { opacity: 0; transform: translateY(1.2rem); } }
.brand { display: flex; align-items: center; gap: .8rem; margin-bottom: 2.6rem; }
.brand-logo { display: grid; place-items: center; background: #fff; border-radius: .9rem; padding: .35rem .6rem; box-shadow: 0 .4rem 1.2rem rgba(0,0,0,.3); }
.brand-logo img { display: block; height: 2.5rem; width: auto; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: .01em; padding-top: .15em; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); font-weight: 800; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; background: linear-gradient(95deg, #7fe3c7, #ffb23e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { max-width: 40rem; margin-top: .9rem; font-size: clamp(1rem, 1.5vw, 1.2rem); color: #bfdcd8; }
.steps { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.6rem 0 0; padding: 0; }
.steps li { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: .92rem; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14); border-radius: 99px; padding: .4rem .95rem .4rem .4rem; backdrop-filter: blur(6px); }
.steps b { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: linear-gradient(135deg, var(--mint), #7fe3c7); color: #05262b; font-size: .85rem; }

/* ------------------------------------------------------------ layout */
.wrap { position: relative; width: min(100% - 2rem, 76rem); margin: -5.2rem auto 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
.grid { display: grid; gap: 1.2rem; grid-template-columns: minmax(0, 25rem) minmax(0, 1fr); align-items: start; }
@media (max-width: 1000px) { .grid { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 1.5rem; padding: clamp(1.1rem, 2.2vw, 1.8rem); box-shadow: 0 1.2rem 3rem rgba(6,32,39,.1); animation: up .7s var(--ease) both; }
.card.preview { animation-delay: .08s; }
.card.howto { animation-delay: .16s; transition: box-shadow .5s, border-color .5s; }
.card.howto.glow { border-color: var(--mint); box-shadow: 0 0 0 4px rgba(53,178,148,.25), 0 1.2rem 3rem rgba(6,32,39,.1); }
.card h2 { display: flex; align-items: center; gap: .7rem; font-size: 1.55rem; font-weight: 800; margin-bottom: 1.2rem; }
.num { display: grid; place-items: center; flex: none; width: 2.1rem; height: 2.1rem; border-radius: .75rem; background: linear-gradient(135deg, var(--teal), #2b8d90); color: #fff; font-size: 1.1rem; padding-top: .1em; }

/* ------------------------------------------------------------ form */
.two { display: grid; gap: 0 .8rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 420px) { .two { grid-template-columns: 1fr; } }
.f { display: block; margin-bottom: .95rem; }
.f > span { display: block; font-weight: 800; font-size: .88rem; margin-bottom: .3rem; }
.f > span i { font-style: normal; font-weight: 700; color: var(--mute); font-size: .78rem; margin-left: .3rem; }
.f input, .f select { width: 100%; min-height: 2.9rem; padding: .65rem .85rem; border: 1.5px solid var(--line); border-radius: .85rem; background: #fbfdfd; font: inherit; font-weight: 700; color: inherit; transition: border-color .2s, box-shadow .2s, background .2s; }
.f select { appearance: none; -webkit-appearance: none; padding-right: 2.4rem; cursor: pointer; text-overflow: ellipsis;
  background: #fbfdfd url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f6f7e' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right .8rem center / 1.05rem; }
.f select:invalid, .f select.empty { color: #a9bcbf; font-weight: 600; }
.f select option { color: #0d2429; font-weight: 600; }
.f input::placeholder { color: #a9bcbf; font-weight: 600; }
.f input:hover, .f select:hover { border-color: #c5d6d6; }
.f input:focus, .f select:focus { outline: none; background-color: #fff; border-color: var(--mint); box-shadow: 0 0 0 4px rgba(53,178,148,.18); }
.f .err { display: block; color: var(--bad); font-weight: 800; font-size: .8rem; margin-top: .25rem; }
.f .err:empty { display: none; }
.f.bad input, .f.bad select { border-color: var(--bad); background-color: #fff8f7; }
.groups-row { display: grid; gap: 0 .8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.group-note { margin: -.4rem 0 .95rem; font-size: .8rem; font-weight: 700; color: var(--mute); }
.signoff { border: 0; margin: .3rem 0 0; padding: 0; min-width: 0; }
.signoff legend { font-weight: 800; font-size: .88rem; padding: 0; margin-bottom: .45rem; }
.tick { display: flex; align-items: center; gap: .6rem; margin-bottom: .7rem; cursor: pointer; font-weight: 700; font-size: .9rem; color: #36535a; }
.tick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tick i { flex: none; display: grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: .4rem; border: 1.5px solid #b9cccc; background: #fff; transition: all .2s var(--ease); }
.tick i::after { content: ""; width: .7rem; height: .38rem; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .2s var(--ease); }
.tick input:checked + i { background: var(--teal); border-color: var(--teal); }
.tick input:checked + i::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.tick input:focus-visible + i { outline: 3px solid #ffb23e; outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .9rem; }
.chip { font-weight: 800; font-size: .86rem; padding: .45rem .85rem; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; color: #36535a; transition: all .2s var(--ease); }
.chip:hover { border-color: var(--mint); transform: translateY(-1px); }
.chip.on { background: linear-gradient(100deg, var(--teal), #2b8d90); border-color: transparent; color: #fff; box-shadow: 0 .3rem .8rem rgba(31,111,126,.3); }
.chip.own { border-style: dashed; }
.chip.own.on { border-style: solid; }
.privacy { display: flex; gap: .55rem; align-items: flex-start; margin-top: .4rem; padding: .7rem .85rem; border-radius: .9rem; background: #eef7f5; color: #2c5a57; font-size: .84rem; font-weight: 700; }
.privacy svg { flex: none; width: 1.15rem; height: 1.15rem; margin-top: .1rem; color: var(--mint); }

/* ------------------------------------------------------------ preview */
.mail { border: 1px solid var(--line); border-radius: 1.1rem; overflow: hidden; background: #fff; box-shadow: 0 .6rem 1.6rem rgba(6,32,39,.08); }
.mail-bar { display: flex; align-items: center; gap: .4rem; padding: .65rem .9rem; background: linear-gradient(180deg, #f6f9f9, #edf2f2); border-bottom: 1px solid var(--line); }
.mail-bar i { width: .7rem; height: .7rem; border-radius: 50%; background: #d5dfdf; }
.mail-bar i:nth-child(1) { background: #f47b6b; } .mail-bar i:nth-child(2) { background: #f6c251; } .mail-bar i:nth-child(3) { background: #5ec98f; }
.mail-bar b { margin-left: .6rem; font-size: .85rem; color: var(--mute); }
.mail-line { display: flex; align-items: center; gap: .8rem; padding: .55rem 1rem; border-bottom: 1px solid #eef3f3; font-size: .82rem; color: var(--mute); font-weight: 700; }
.mail-line span { width: 3.4rem; }
.mail-line u, .ghost u { display: block; height: .6rem; border-radius: 9px; background: #e9efef; text-decoration: none; }
.mail-line u { width: 38%; } .mail-line u.short { width: 24%; }
.mail-body { padding: 1.2rem 1.2rem 1.4rem; overflow-x: auto; }
.ghost { display: grid; gap: .55rem; margin-bottom: 1.4rem; }
.ghost u { width: 82%; } .ghost u:nth-child(2) { width: 68%; } .ghost u.short { width: 36%; }
.sig { width: max-content; min-width: 100%; font-weight: 400; line-height: normal; color: #000; }
.sig img { max-width: none; }
.banner-note { margin-top: .8rem; font-size: .86rem; color: var(--mute); font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.1rem; }
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; font-weight: 800; padding: .85rem 1.3rem; border-radius: 1rem; transition: background .2s, transform .2s var(--ease), box-shadow .2s; }
.btn svg { width: 1.2rem; height: 1.2rem; flex: none; }
.btn.primary { flex: 1 1 15rem; font-size: 1.05rem; color: #fff; background: linear-gradient(100deg, var(--teal), #2b8d90); box-shadow: 0 .5rem 1.3rem rgba(31,111,126,.35); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 .8rem 1.6rem rgba(31,111,126,.4); }
.btn.primary.done { background: linear-gradient(100deg, #1e9c78, var(--mint)); }
.btn.shine::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent); animation: sweep 3.4s ease-in-out infinite; }
@keyframes sweep { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.btn.ghost { flex: 1 1 15rem; border: 1.5px solid var(--line); background: #fff; color: var(--teal-d); }
.btn.ghost:hover { background: #f3f8f8; border-color: #c5d6d6; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.msg { margin-top: .8rem; color: var(--bad); font-weight: 800; font-size: .9rem; }
.msg:empty { display: none; }

/* ------------------------------------------------------------ how to */
.tabs { display: flex; flex-wrap: wrap; gap: .4rem; padding: .35rem; background: #eef3f3; border-radius: 1rem; width: max-content; max-width: 100%; margin-bottom: 1.1rem; }
.tabs button { font-weight: 800; font-size: .9rem; padding: .55rem 1rem; border-radius: .75rem; color: #46656b; transition: all .2s; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { background: #fff; color: var(--teal-d); box-shadow: 0 .2rem .6rem rgba(6,32,39,.12); }
.how { margin: 0; padding: 0; list-style: none; counter-reset: how; display: grid; gap: .6rem; }
.how li { counter-increment: how; position: relative; padding: .7rem .9rem .7rem 3.1rem; background: #f7fafa; border: 1px solid #e8efef; border-radius: .9rem; }
.how li::before { content: counter(how); position: absolute; left: .8rem; top: .62rem; display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: #fff; border: 1.5px solid var(--mint); color: var(--teal-d); font-weight: 900; font-size: .85rem; }
kbd, code { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: .85em; font-weight: 700; background: #fff; border: 1px solid #cfdcdc; border-bottom-width: 2px; border-radius: .4rem; padding: .08rem .4rem; white-space: nowrap; }
code { border-bottom-width: 1px; user-select: all; }
.tip { margin-bottom: .8rem; padding: .75rem .95rem; border-radius: .9rem; background: #fff5ea; border: 1px solid #ffdcb8; color: #6b3a08; font-size: .92rem; }
.after { margin-top: 1rem; font-size: .9rem; color: var(--mute); }

/* ------------------------------------------------------------ footer */
.foot { display: grid; place-items: center; padding: 2.4rem 1rem 2.6rem; }
.martech { display: flex; align-items: center; justify-content: center; gap: .75rem; width: max-content; max-width: 100%; background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: 99px; padding: .5rem 1.25rem .5rem 1.2rem; box-shadow: 0 .4rem 1.2rem rgba(6,32,39,.1); }
.martech span:first-child { font-weight: 900; font-size: .64rem; letter-spacing: .16em; color: #869396; text-transform: uppercase; white-space: nowrap; }
.martech .mt-logo { position: relative; display: block; line-height: 0; }
.martech img { display: block; height: 2.1rem; width: auto; max-width: none; aspect-ratio: 1898 / 460; }
.martech .mt-logo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.95) 50%, transparent 62%) no-repeat; background-size: 260% 100%; background-position: 160% 0; -webkit-mask: url(../img/hcb-martech.webp) center / contain no-repeat; mask: url(../img/hcb-martech.webp) center / contain no-repeat; animation: mt-shine 3.4s ease-in-out infinite; }
@keyframes mt-shine { 0% { background-position: 160% 0; } 45%, 100% { background-position: -60% 0; } }

.toast { position: fixed; left: 50%; bottom: 1.4rem; z-index: 20; transform: translate(-50%, 1.5rem); width: max-content; max-width: calc(100% - 2rem); background: var(--deep); color: #eafaf6; font-weight: 800; padding: .8rem 1.2rem; border-radius: 1rem; box-shadow: 0 1rem 2.4rem rgba(0,0,0,.35); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
