/* WELCOME-PAGE-1.0.0 — public welcome page, forgot-password page. No external fonts or images; light + dark; works without JavaScript. */
:root {
  --wp-bg: #ffffff; --wp-bg2: #f5f6fb; --wp-ink: #141a2e; --wp-ink2: #4a5272; --wp-line: #e3e6f0;
  --wp-brand: #4338ca; --wp-brand2: #6d5df5; --wp-brand-ink: #ffffff; --wp-soft: #eef0ff;
  --wp-ok: #0f7a4a; --wp-ok-bg: #e3f6ec; --wp-setup: #8a5a00; --wp-setup-bg: #fff3d6; --wp-plan: #4a5272; --wp-plan-bg: #eceef5;
  --wp-shadow: 0 1px 2px rgba(20, 26, 46, .06), 0 8px 24px rgba(20, 26, 46, .06); --wp-r: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --wp-bg: #0f1222; --wp-bg2: #151a2e; --wp-ink: #eef0fa; --wp-ink2: #a9b0cc; --wp-line: #262c46;
    --wp-brand: #8b85ff; --wp-brand2: #a58bff; --wp-brand-ink: #0f1222; --wp-soft: #1d2242;
    --wp-ok: #5fd39a; --wp-ok-bg: #12301f; --wp-setup: #f2c35b; --wp-setup-bg: #33280f; --wp-plan: #b5bbd6; --wp-plan-bg: #22273d;
    --wp-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* the hidden attribute wins over any display rule below (workflow panels, card details) */
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--wp-bg); color: var(--wp-ink); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif; overflow-x: hidden; }
a { color: var(--wp-brand); }
h1, h2, h3, h4, h5 { line-height: 1.25; margin: 0 0 .5em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.01em; }
p { margin: 0 0 .8em; }
:focus-visible { outline: 3px solid var(--wp-brand2); outline-offset: 2px; border-radius: 6px; }
.wp-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.wp-narrow { max-width: 820px; }
.wp-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wp-skip { position: absolute; left: -999px; top: 8px; background: var(--wp-brand); color: var(--wp-brand-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.wp-skip:focus { left: 8px; }
.wp-small { font-size: .9rem; color: var(--wp-ink2); }
.wp-preview-bar { background: #b45309; color: #fff; text-align: center; padding: 8px 16px; font-weight: 600; }
.wp-preview-bar a { color: #fff; }
.wp-ann { background: var(--wp-soft); border-bottom: 1px solid var(--wp-line); padding: 10px 0; font-weight: 500; }

/* buttons */
.wp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--wp-brand);
  background: var(--wp-brand); color: var(--wp-brand-ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.wp-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(67, 56, 202, .25); }
.wp-btn.ghost { background: transparent; color: var(--wp-brand); }
.wp-btn.lg { min-height: 50px; padding: 12px 24px; font-size: 1.05rem; }
.wp-btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* header */
.wp-top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--wp-bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--wp-line); }
.wp-top-in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.wp-brand { display: flex; align-items: center; gap: 10px; color: var(--wp-ink); text-decoration: none; font-weight: 700; margin-right: auto; min-width: 0; }
.wp-brand span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-brand img { border-radius: 8px; object-fit: contain; }
.wp-mono { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; background: linear-gradient(135deg, var(--wp-brand), var(--wp-brand2)); color: #fff; font-size: .9rem; letter-spacing: .02em; }
.wp-nav { display: flex; align-items: center; gap: 4px; }
.wp-nav > a { color: var(--wp-ink2); text-decoration: none; padding: 8px 10px; border-radius: 8px; font-weight: 500; font-size: .95rem; }
.wp-nav > a:hover, .wp-nav > a.on { color: var(--wp-ink); background: var(--wp-soft); }
.wp-nav-cta { display: flex; gap: 8px; margin-left: 8px; }
.wp-burger { display: none; width: 44px; height: 44px; border: 1px solid var(--wp-line); border-radius: 10px; background: transparent; cursor: pointer; padding: 11px 10px; flex-direction: column; justify-content: space-between; }
.wp-burger span { display: block; height: 2px; background: var(--wp-ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.wp-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.wp-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.wp-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
@media (max-width: 1020px) {
  .wp-burger { display: flex; }
  .wp-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 20px 20px; background: var(--wp-bg); border-bottom: 1px solid var(--wp-line); box-shadow: var(--wp-shadow); }
  .wp-nav.open { display: flex; }
  .wp-nav > a { padding: 12px; }
  .wp-nav-cta { margin: 8px 0 0; flex-direction: column; }
}

/* hero */
.wp-hero { padding: 72px 0 64px; background: radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--wp-brand2) 20%, transparent), transparent 70%), var(--wp-bg); }
.wp-hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.wp-eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--wp-brand); margin-bottom: 12px; }
.wp-hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); letter-spacing: -.02em; margin-bottom: 16px; }
.wp-lead { font-size: 1.15rem; color: var(--wp-ink2); max-width: 40em; }
.wp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 14px; }
.wp-shot { margin: 0; border: 1px solid var(--wp-line); border-radius: 16px; background: var(--wp-bg); box-shadow: var(--wp-shadow); overflow: hidden; }
.wp-shot-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--wp-line); background: var(--wp-bg2); font-size: .8rem; color: var(--wp-ink2); }
.wp-shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--wp-line); }
.wp-shot-bar span { margin-left: 8px; }
.wp-shot-body { display: grid; grid-template-columns: 110px 1fr; min-height: 280px; }
.wp-shot-side { display: flex; flex-direction: column; gap: 6px; padding: 14px 10px; border-right: 1px solid var(--wp-line); background: var(--wp-bg2); font-size: .75rem; color: var(--wp-ink2); }
.wp-shot-side span { padding: 5px 8px; border-radius: 6px; }
.wp-shot-side span:first-child { background: var(--wp-soft); color: var(--wp-brand); font-weight: 600; }
.wp-shot-main { padding: 14px; display: grid; gap: 12px; align-content: start; }
.wp-shot-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.wp-shot-tiles b { height: 46px; border-radius: 10px; background: linear-gradient(135deg, var(--wp-soft), var(--wp-bg2)); border: 1px solid var(--wp-line); }
.wp-shot-card { border: 1px solid var(--wp-line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 7px; }
.wp-shot-card em { font-style: normal; font-size: .78rem; font-weight: 600; color: var(--wp-ink2); }
.wp-shot-card span { height: 8px; border-radius: 4px; background: var(--wp-line); }
.wp-shot-card span.w60 { width: 60%; } .wp-shot-card span.w80 { width: 80%; }
.wp-shot figcaption { font-size: .75rem; color: var(--wp-ink2); padding: 8px 14px; border-top: 1px solid var(--wp-line); }
@media (max-width: 900px) { .wp-hero-in { grid-template-columns: 1fr; } .wp-hero { padding: 48px 0; } }

/* sections */
.wp-sec { padding: 72px 0; }
.wp-sec.alt { background: var(--wp-bg2); }
.wp-sub { color: var(--wp-ink2); max-width: 52em; margin-bottom: 24px; }
.wp-h3 { margin-top: 40px; font-size: 1.3rem; }
.wp-grid4, .wp-grid3, .wp-cards { display: grid; gap: 18px; }
.wp-grid4 { grid-template-columns: repeat(4, 1fr); }
.wp-grid3 { grid-template-columns: repeat(3, 1fr); }
.wp-cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-bottom: 12px; }
@media (max-width: 1020px) { .wp-grid4 { grid-template-columns: repeat(2, 1fr); } .wp-grid3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .wp-grid4, .wp-grid3 { grid-template-columns: 1fr; } .wp-sec { padding: 52px 0; } }
.wp-box, .wp-card { background: var(--wp-bg); border: 1px solid var(--wp-line); border-radius: var(--wp-r); padding: 20px; box-shadow: var(--wp-shadow); }
.wp-box h3 { font-size: 1.08rem; margin-top: 10px; }
.wp-box p, .wp-box li { color: var(--wp-ink2); font-size: .95rem; }
.wp-box ul { margin: 8px 0 0; padding-left: 18px; }
.wp-ico { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--wp-soft); stroke: var(--wp-brand); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wp-ico.sm { width: 22px; height: 22px; padding: 0; background: none; vertical-align: -5px; }

/* feature catalog */
.wp-chip { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.wp-chip.ok { color: var(--wp-ok); background: var(--wp-ok-bg); }
.wp-chip.setup { color: var(--wp-setup); background: var(--wp-setup-bg); }
.wp-chip.plan { color: var(--wp-plan); background: var(--wp-plan-bg); }
.wp-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 14px; }
.wp-tools p { margin: 0; }
.wp-search { flex: 1 1 320px; max-width: 520px; }
.wp-search input { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--wp-line); background: var(--wp-bg); color: var(--wp-ink); font: inherit; }
.wp-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin-bottom: 8px; scrollbar-width: thin; }
.wp-tabs button { flex: none; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--wp-line); background: var(--wp-bg); color: var(--wp-ink2); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.wp-tabs button.on { background: var(--wp-brand); border-color: var(--wp-brand); color: var(--wp-brand-ink); }
.wp-cat-h { font-size: 1.1rem; margin: 26px 0 12px; color: var(--wp-ink2); }
.wp-card { display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.wp-card:hover { transform: translateY(-2px); }
.wp-card-h { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.wp-card h4 { font-size: 1.02rem; margin: 0 0 4px; }
.wp-card > p { color: var(--wp-ink2); font-size: .93rem; }
.wp-roles-line { font-size: .82rem !important; }
.wp-more { align-self: flex-start; margin-top: auto; min-height: 40px; padding: 6px 0; border: 0; background: none; color: var(--wp-brand); font: inherit; font-weight: 600; cursor: pointer; }
.wp-more::after { content: " ▾"; }
.wp-more[aria-expanded="true"]::after { content: " ▴"; }
.wp-detail { border-top: 1px solid var(--wp-line); margin-top: 8px; padding-top: 10px; font-size: .9rem; color: var(--wp-ink2); }
.wp-detail h5 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--wp-ink); margin: 10px 0 4px; }
.wp-detail ul { margin: 0; padding-left: 18px; }
.wp-hide { display: none !important; }
.wp-none { padding: 20px; text-align: center; color: var(--wp-ink2); }

/* how it works */
.wp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .wp-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .wp-steps { grid-template-columns: 1fr; } }
.wp-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--wp-line); border-radius: var(--wp-r); background: var(--wp-bg); }
.wp-steps p { margin: 0; color: var(--wp-ink2); }
.wp-num { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--wp-brand); color: var(--wp-brand-ink); font-weight: 700; font-size: .9rem; }
.wp-wf { border: 1px solid var(--wp-line); border-radius: var(--wp-r); background: var(--wp-bg2); padding: 20px; }
.wp-flow { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.wp-flow li { flex: 1 1 180px; display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--wp-bg); border: 1px solid var(--wp-line); font-size: .93rem; }

/* previews */
.wp-mini { margin: 0; border: 1px solid var(--wp-line); border-radius: var(--wp-r); background: var(--wp-bg); overflow: hidden; box-shadow: var(--wp-shadow); }
.wp-mini-scr { display: grid; gap: 8px; padding: 16px; min-height: 160px; background: var(--wp-bg2); align-content: start; }
.wp-mini-scr span { display: block; border-radius: 8px; background: var(--wp-bg); border: 1px solid var(--wp-line); }
.wp-mini-scr .m-tiles { height: 40px; background: linear-gradient(90deg, var(--wp-soft) 0 23%, transparent 23% 25.6%, var(--wp-soft) 25.6% 48.6%, transparent 48.6% 51.3%, var(--wp-soft) 51.3% 74.3%, transparent 74.3% 77%, var(--wp-soft) 77%); border: 0; }
.wp-mini-scr .m-card { height: 44px; }
.wp-mini-scr .m-row { height: 22px; }
.wp-mini-scr .m-chart { height: 70px; background: linear-gradient(to top, var(--wp-soft) 0 40%, transparent 40%) 8% 100% / 10% 100% no-repeat, linear-gradient(to top, var(--wp-soft) 0 70%, transparent 70%) 30% 100% / 10% 100% no-repeat,
  linear-gradient(to top, var(--wp-soft) 0 55%, transparent 55%) 52% 100% / 10% 100% no-repeat, linear-gradient(to top, var(--wp-soft) 0 85%, transparent 85%) 74% 100% / 10% 100% no-repeat, var(--wp-bg); }
.wp-mini figcaption { padding: 14px 16px; display: grid; gap: 4px; }
.wp-mini figcaption span { color: var(--wp-ink2); font-size: .92rem; }

/* FAQ */
.wp-faq { border: 1px solid var(--wp-line); border-radius: 12px; background: var(--wp-bg); margin-bottom: 10px; }
.wp-faq summary { cursor: pointer; padding: 16px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.wp-faq summary::-webkit-details-marker { display: none; }
.wp-faq summary::after { content: "+"; color: var(--wp-brand); font-size: 1.3rem; line-height: 1; }
.wp-faq[open] summary::after { content: "–"; }
.wp-faq p { padding: 0 18px 16px; margin: 0; color: var(--wp-ink2); }

/* contact */
.wp-contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; }
@media (max-width: 900px) { .wp-contact { grid-template-columns: 1fr; } }
.wp-links { padding-left: 18px; color: var(--wp-ink2); }
.wp-form { background: var(--wp-bg); border: 1px solid var(--wp-line); border-radius: var(--wp-r); padding: 22px; box-shadow: var(--wp-shadow); display: grid; gap: 12px; }
.wp-form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.wp-form small { font-weight: 400; color: var(--wp-ink2); }
.wp-form input, .wp-form select, .wp-form textarea { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--wp-line); background: var(--wp-bg); color: var(--wp-ink); font: inherit; font-weight: 400; }
.wp-form textarea { resize: vertical; }
.wp-form [aria-invalid="true"] { border-color: #c2410c; }
.wp-form .wp-err { color: #c2410c; font-weight: 500; font-size: .85rem; }
.wp-f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .wp-f2 { grid-template-columns: 1fr; } }
.wp-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
#wpcMsg.ok { color: var(--wp-ok); font-weight: 600; }
#wpcMsg.bad { color: #c2410c; font-weight: 600; }

/* footer */
.wp-foot { border-top: 1px solid var(--wp-line); padding: 24px 0; font-size: .9rem; color: var(--wp-ink2); }
.wp-foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* reveal on scroll — only when the script runs and motion is welcome; without JS everything is visible */
.wp-js .wp-reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.wp-js .wp-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wp-js .wp-reveal { opacity: 1; transform: none; transition: none; }
  .wp-btn, .wp-card, .wp-burger span { transition: none; }
}

/* forgot-password page */
.wp-plain { background: var(--wp-bg2); }
.wp-card-page { max-width: 640px; margin: 64px auto; padding: 32px; background: var(--wp-bg); border: 1px solid var(--wp-line); border-radius: 18px; box-shadow: var(--wp-shadow); }
.wp-plain-steps { color: var(--wp-ink2); padding-left: 20px; }
.wp-plain-steps li { margin-bottom: 8px; }
@media (max-width: 680px) { .wp-card-page { margin: 16px; padding: 22px; } }
@media print { .wp-top, .wp-form, .wp-burger, .wp-tabs, .wp-tools { display: none !important; } .wp-detail[hidden] { display: block !important; } }
