/* Word Counter — site styles (light theme). */
:root {
  --wc-blue: #2563eb; --wc-blue-dark: #1d4ed8; --wc-violet: #7c3aed;
  --wc-text: #1e293b; --wc-head: #0f172a; --wc-muted: #64748b;
  --wc-line: #e6eaf2; --wc-soft: #f8fafc; --wc-soft-blue: #eef4ff;
}
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.wc-wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.wc-main, .wc-page { margin: 0 !important; }
.wc-page > * { margin-block-start: 0 !important; margin-block-end: 0; }
:focus-visible { outline: 3px solid #a5c0fb; outline-offset: 2px; }

/* Header */
.wc-header { position: relative; z-index: 30; background: rgba(255,255,255,.88); -webkit-backdrop-filter: saturate(1.6) blur(12px); backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--wc-line); }
.wc-header-row { display: flex; align-items: center; gap: 22px; height: 66px; position: relative; }
.wc-logo { white-space: nowrap; flex: none; display: inline-flex; align-items: center; gap: 10px; color: var(--wc-head) !important; text-decoration: none !important; font-weight: 800; font-size: 1.18rem; letter-spacing: -.02em; }
.wc-logo-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, #3b82f6 0%, #6366f1 55%, #8b5cf6 100%); box-shadow: 0 6px 16px -6px rgba(79,70,229,.55); }
.wc-nav { display: flex; gap: 2px; margin-left: 10px; }
.wc-nav a { white-space: nowrap; color: #475569; text-decoration: none; font-weight: 600; font-size: .93rem; padding: 8px 12px; border-radius: 9px; transition: background .15s, color .15s; }
.wc-nav a:hover, .wc-nav a[aria-current] { color: var(--wc-head); background: #f1f5f9; }
.wc-header-cta { margin-left: auto; }
.wc-btn { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; line-height: 1; border-radius: 11px; padding: 12px 18px; text-decoration: none !important; transition: background .15s, box-shadow .15s, transform .15s; }
.wc-btn-primary { color: #fff !important; background: linear-gradient(135deg, #2563eb, #4f46e5); box-shadow: 0 8px 20px -10px rgba(37,99,235,.7); }
.wc-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -12px rgba(37,99,235,.8); }
.wc-menu-btn { display: none; margin-left: auto; background: #fff; border: 1px solid var(--wc-line); border-radius: 10px; padding: 8px 9px; color: var(--wc-text); cursor: pointer; }

/* Hero */
.wc-hero { position: relative; padding: 46px 0 34px; background:
  radial-gradient(900px 380px at 12% -10%, #dfeaff 0%, rgba(223,234,255,0) 70%),
  radial-gradient(800px 360px at 92% -5%, #efe6ff 0%, rgba(239,230,255,0) 70%),
  linear-gradient(180deg, #f7faff 0%, #ffffff 520px); overflow: hidden; }
.wc-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(37,99,235,.13) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 380px); mask-image: linear-gradient(180deg, #000 0%, transparent 380px); }
.wc-hero > .wc-wrap { position: relative; }
.wc-hero h1 { text-align: center; margin: 0 0 12px; font-size: clamp(2rem, 4.2vw, 3rem); letter-spacing: -.03em; line-height: 1.12; }
.wc-grad { background: linear-gradient(110deg, #2563eb 10%, #6d28d9 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wc-lead { text-align: center; color: #475569; font-size: 1.1rem; max-width: 640px; margin: 0 auto 16px; }
.wc-trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; padding: 0; margin: 0 auto 28px; }
.wc-trust li { display: inline-flex; align-items: center; gap: 7px; font-size: .9rem; font-weight: 600; color: #334155; margin: 0; }
.wc-trust svg { color: #16a34a; flex: none; }

/* Sections */
.wc-section { padding: 72px 0; }
.wc-section--soft { background: var(--wc-soft); border-top: 1px solid var(--wc-line); border-bottom: 1px solid var(--wc-line); }
.wc-section--tint { background: linear-gradient(180deg, #f5f8ff 0%, #faf7ff 100%); border-top: 1px solid #e8edf8; border-bottom: 1px solid #e8edf8; }
.wc-sec-head { text-align: center; max-width: 680px; margin: 0 auto 38px; }
.wc-sec-head h2 { margin: 0 0 8px; }
.wc-sec-head p { margin: 0; color: var(--wc-muted); font-size: 1.04rem; }
.wc-kicker { display: inline-block; font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--wc-blue); background: #e8f0ff; border-radius: 999px; padding: 5px 11px; margin-bottom: 12px; }

.wc-feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.wc-feat { background: #fff; border: 1px solid var(--wc-line); border-radius: 16px; padding: 22px; }
.wc-feat h3 { font-size: 1.05rem; margin: 14px 0 6px; }
.wc-feat p { margin: 0; color: var(--wc-muted); font-size: .95rem; line-height: 1.6; }
.wc-feat-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }
.wc-c-blue { background: #e8f0ff; color: #2563eb; } .wc-c-violet { background: #f1ebff; color: #7c3aed; }
.wc-c-teal { background: #e3f7f4; color: #0f8f7e; } .wc-c-amber { background: #fff4e0; color: #c26a05; }
.wc-c-rose { background: #ffecf0; color: #db2763; } .wc-c-green { background: #e8f8ec; color: #16a34a; }

.wc-aud { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 980px; margin: 0 auto; }
.wc-aud div { background: #fff; border: 1px solid var(--wc-line); border-radius: 14px; padding: 16px 18px; }
.wc-aud strong { display: block; color: var(--wc-head); font-size: .98rem; }
.wc-aud span { color: var(--wc-muted); font-size: .88rem; line-height: 1.5; display: block; margin-top: 2px; }

/* Long-form content */
.wc-prose { padding: 72px 22px; }
.wc-prose > * { max-width: 760px; margin-left: auto !important; margin-right: auto !important; }
.wc-prose h2 { margin-top: 2.4rem !important; margin-bottom: .6rem !important; }
.wc-prose h2:first-child { margin-top: 0 !important; }
.wc-prose h3 { margin-top: 1.6rem !important; margin-bottom: .4rem !important; }
.wc-prose p, .wc-prose li { color: #334155; }
.wc-prose ul, .wc-prose ol { padding-left: 1.3rem; }
.wc-prose li { margin: .3rem 0; }
.wc-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1rem auto !important; font-size: .95rem; border: 1px solid var(--wc-line); border-radius: 12px; overflow: hidden; }
.wc-table th, .wc-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--wc-line); }
.wc-table tr:last-child td { border-bottom: 0; }
.wc-table th { background: var(--wc-soft); font-weight: 700; color: var(--wc-head); }
.wc-note { background: #f5f8ff; border: 1px solid #dfe8fb; border-radius: 12px; padding: 14px 16px; }

/* FAQ (core Details blocks) */
.wc-faq { padding: 72px 22px; }
.wc-faq > * { max-width: 780px; margin-left: auto !important; margin-right: auto !important; }
.wc-faq > h2 { text-align: center; margin-bottom: 28px !important; }
.wc-faq .wp-block-details { background: #fff; border: 1px solid var(--wc-line); border-radius: 14px; padding: 0; margin-top: 10px !important; transition: border-color .15s, box-shadow .15s; }
.wc-faq .wp-block-details[open] { border-color: #cddcfb; box-shadow: 0 10px 26px -18px rgba(37,99,235,.35); }
.wc-faq .wp-block-details summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 700; color: var(--wc-head); display: flex; justify-content: space-between; gap: 14px; }
.wc-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.wc-faq .wp-block-details summary::after { content: "+"; color: var(--wc-blue); font-size: 1.35rem; line-height: 1; font-weight: 500; }
.wc-faq .wp-block-details[open] summary::after { content: "–"; }
.wc-faq .wp-block-details > *:not(summary) { margin: 0 !important; padding: 0 20px 16px; color: #334155; }

/* Article pages */
.wc-article { padding: 56px 22px 72px; }

/* Footer */
.wc-footer { background: var(--wc-soft); border-top: 1px solid var(--wc-line); padding: 54px 0 26px; font-size: .93rem; }
.wc-foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.wc-foot-title { font-size: .76rem !important; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--wc-muted) !important; margin: 4px 0 12px !important; }
.wc-footer ul { list-style: none; margin: 0; padding: 0; }
.wc-footer li { margin: 0 0 9px; }
.wc-footer a:not(.wc-logo) { color: #334155; text-decoration: none; }
.wc-footer a:not(.wc-logo):hover { color: var(--wc-blue); }
.wc-foot-desc { color: var(--wc-muted); max-width: 290px; margin: 14px 0 0; line-height: 1.6; }
.wc-foot-bottom { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--wc-line); color: var(--wc-muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .88rem; }

/* Responsive */
@media (max-width: 1000px) {
  .wc-aud { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1060px) {
  .wc-nav { display: none; }
  .wc-header-cta { display: none; }
  .wc-menu-btn { display: block; }
  .wc-nav.is-open { display: flex; flex-direction: column; position: absolute; top: 66px; left: 0; right: 0; margin: 0; padding: 8px 14px 14px; background: #fff; border-bottom: 1px solid var(--wc-line); box-shadow: 0 16px 30px -20px rgba(15,23,42,.3); }
  .wc-nav.is-open a { padding: 12px; }
}
@media (max-width: 760px) {
  .wc-hero { padding: 30px 0 24px; }
  .wc-lead { font-size: 1rem; }
  .wc-trust { gap: 6px 14px; margin-bottom: 20px; }
  .wc-trust li { font-size: .84rem; }
  .wc-section, .wc-prose, .wc-faq { padding-top: 52px; padding-bottom: 52px; }
  .wc-feat-grid { grid-template-columns: 1fr; }
  .wc-foot-grid { grid-template-columns: 1fr 1fr; }
  .wc-foot-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 440px) { .wc-aud { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .wc-btn, .wc-nav a { transition: none; } }

/* Tool page hero */
.wc-hero--tool { padding: 38px 0 30px; }
.wc-hero--tool h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.wc-hero--tool .wc-lead { margin-bottom: 26px; }
.wc-prose code { background: #eef2f8; border-radius: 6px; padding: 1px 6px; font-size: .92em; }

.wc-btn-link { background: none; border: 0; padding: 0; font: inherit; color: var(--wc-blue); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.wc-foot-bottom a { color: var(--wc-muted) !important; }
.wc-contact-card { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--wc-line); border-radius: 16px; padding: 20px 22px; box-shadow: 0 14px 30px -22px rgba(37,99,235,.45); }
.wc-contact-card .wc-feat-ico { flex: none; }
.wc-contact-card a { font-size: 1.15rem; font-weight: 700; text-decoration: none; }
.wc-contact-card span { display: block; color: var(--wc-muted); font-size: .9rem; }
.wc-updated { color: var(--wc-muted); font-size: .92rem; }

/* Sticky header: the template-part wrapper is the sticky element */
.wc-header-wrap { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 40; }
@media (max-width: 600px) { .admin-bar .wc-header-wrap { top: 0; } }
.wc-legal > h1 { margin-bottom: .3rem !important; }
.wc-prose > *, .wc-faq > * { box-sizing: border-box; }
