:root {
  --ce-accent: #4c4cf1;
  --ce-accent-dark: #2929a8;
  --ce-accent-ink: #20205f;
  --ce-text: #242729;
  --ce-muted: #65727e;
  --ce-soft: #f6f7fb;
  --ce-surface: #ffffff;
  --ce-border: #e6edf0;
  --ce-yellow: #ffbd3e;
  --ce-green: #10b981;
  --ce-radius: 14px;
  --ce-shadow: 0 20px 55px rgba(30, 38, 70, 0.12);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ce-text);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ce-surface); line-height: 1.65; }
body, input, button { font: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ce-text); line-height: 1.18; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.35rem, 6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.55rem); }
h3 { font-size: 1.15rem; }
.container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(860px, calc(100% - 40px)); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.muted { color: var(--ce-muted); }

.site-header { position: absolute; z-index: 10; top: 0; width: 100%; color: white; }
.inner-page .site-header { position: relative; color: var(--ce-text); border-bottom: 1px solid var(--ce-border); background: white; }
.header-inner { display: flex; min-height: 78px; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; font-weight: 760; font-size: 1.15rem; letter-spacing: -0.03em; }
.brand > span > span { color: #b9b9ff; }
.inner-page .brand > span > span, .brand-footer > span > span { color: var(--ce-accent); }
.brand small { font-size: 0.62em; font-weight: 650; opacity: 0.72; }
.brand-mark { display: grid; width: 32px; height: 32px; place-items: center; transform: rotate(-5deg); border: 2px solid currentColor; border-radius: 7px; }
.brand-mark span { transform: rotate(5deg); line-height: 1; }
.primary-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; font-size: 0.91rem; font-weight: 600; }
.primary-nav a { position: relative; opacity: 0.86; }
.primary-nav a:hover, .primary-nav a:focus-visible, .primary-nav [aria-current="page"] { opacity: 1; }
.primary-nav [aria-current="page"]::after { position: absolute; right: 0; bottom: -8px; left: 0; height: 2px; border-radius: 2px; background: currentColor; content: ""; }
.header-action, .button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 0 20px; border-radius: 999px; background: white; color: var(--ce-accent-dark); font-size: 0.86rem; font-weight: 750; box-shadow: 0 8px 22px rgba(19, 18, 100, 0.14); }
.inner-page .header-action, .button { background: var(--ce-accent); color: white; }

.hero { position: relative; min-height: 590px; overflow: hidden; padding: 162px 0 172px; background: linear-gradient(135deg, #6030dc 0%, #3838d2 55%, #3030c6 100%); color: white; text-align: center; }
.hero::before { position: absolute; inset: 0; background: url("/assets/docy/banner-bg.png") center bottom / cover no-repeat; content: ""; opacity: 0.92; }
.hero::after { position: absolute; right: -80px; bottom: -100px; width: 400px; height: 220px; border-radius: 50% 0 0; background: var(--ce-yellow); content: ""; transform: rotate(-8deg); }
.hero-content { position: relative; z-index: 2; }
.eyebrow { margin-bottom: 14px; color: rgba(255, 255, 255, 0.74); font-size: 0.77rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.eyebrow-dark { color: var(--ce-accent); }
.hero h1, .page-hero h1 { margin-bottom: 18px; color: white; }
.hero-copy { max-width: 690px; margin: 0 auto 32px; color: rgba(255, 255, 255, 0.82); font-size: 1.08rem; }
.search { display: flex; align-items: center; }
.search-hero { position: relative; width: min(760px, 100%); margin-inline: auto; padding: 7px; border-radius: 14px; background: white; box-shadow: 0 18px 42px rgba(18, 16, 95, 0.25); }
.search-icon { width: 20px; height: 20px; flex: 0 0 auto; margin-left: 16px; border: 2px solid #9aa4b2; border-radius: 50%; }
.search-icon::after { display: block; width: 7px; height: 2px; margin: 14px 0 0 13px; transform: rotate(45deg); border-radius: 2px; background: #9aa4b2; content: ""; }
.search input { min-width: 0; flex: 1; padding: 15px 18px; border: 0; outline: 0; color: var(--ce-text); background: transparent; }
.search input::placeholder { color: #8994a1; }
.search button { min-width: 118px; align-self: stretch; padding: 0 25px; border: 0; border-radius: 10px; background: var(--ce-accent-dark); color: white; cursor: pointer; font-weight: 750; }
.search button:hover, .search button:focus-visible { background: #1d1d81; }
.suggestions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; color: rgba(255, 255, 255, 0.75); font-size: 0.79rem; }
.suggestions span { padding: 4px 0; font-weight: 750; }
.suggestions a { padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.11); color: white; }
.suggestions a:hover, .suggestions a:focus-visible { background: rgba(255, 255, 255, 0.22); }

.discovery { position: relative; z-index: 3; margin-top: -92px; }
.discovery-card { overflow: hidden; border: 1px solid rgba(230, 237, 240, 0.8); border-radius: 12px; background: white; box-shadow: var(--ce-shadow); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 28px 32px 24px; border-bottom: 1px solid var(--ce-border); }
.section-heading .eyebrow { margin-bottom: 6px; }
.section-heading h2 { margin-bottom: 0; font-size: 1.55rem; }
.text-link { color: var(--ce-accent); font-size: 0.9rem; font-weight: 700; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.category { display: flex; min-height: 148px; align-items: center; gap: 17px; padding: 28px 26px; border-right: 1px solid var(--ce-border); transition: background 160ms ease, transform 160ms ease; }
.category:last-child { border-right: 0; }
.category:hover, .category:focus-visible { position: relative; z-index: 1; background: #fbfbff; transform: translateY(-2px); }
.category-icon { display: grid; width: 50px; height: 50px; flex: 0 0 auto; place-items: center; border: 1px solid currentColor; border-radius: 13px; font-size: 0.75rem; font-weight: 850; }
.icon-appliance { color: #9b51e0; background: #f9efff; }
.icon-device { color: #ee9b23; background: #fff8e7; }
.icon-digital { color: #19a987; background: #ebfff9; }
.category strong, .category small { display: block; }
.category strong { margin-bottom: 6px; font-size: 0.98rem; }
.category small { color: var(--ce-muted); font-size: 0.77rem; line-height: 1.5; }

.method { display: grid; grid-template-columns: 0.82fr 1.6fr; gap: 76px; padding: 118px 0 110px; }
.method-intro h2 { margin-bottom: 20px; }
.method-intro > p:last-child { color: var(--ce-muted); }
.method-grid { display: grid; gap: 16px; }
.method-card { position: relative; padding: 24px 26px 20px 76px; border: 1px solid var(--ce-border); border-radius: var(--ce-radius); background: white; }
.method-card h3 { margin-bottom: 7px; }
.method-card p { margin-bottom: 0; color: var(--ce-muted); font-size: 0.91rem; }
.method-number { position: absolute; top: 24px; left: 24px; color: var(--ce-accent); font-weight: 850; }
.launch-note { border-block: 1px solid #d9e8e4; background: #effbf7; }
.launch-inner { display: flex; align-items: center; justify-content: center; gap: 13px; min-height: 88px; }
.launch-inner p { margin: 0; color: #34584e; font-size: 0.9rem; }
.status-dot { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: var(--ce-green); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.12); }

.page-hero { padding: 74px 0 82px; background: linear-gradient(135deg, #5932d8, #3535ca); color: white; text-align: center; }
.page-hero h1 { margin-bottom: 0; font-size: clamp(2.3rem, 5vw, 3.4rem); }
.page-hero-search .search { margin-top: 28px; }
.compact-titlebar { padding-block: 62px; }
.error-titlebar { text-align: left; }
.error-titlebar .hero-copy { max-width: 720px; margin: 0; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; color: rgba(255, 255, 255, 0.68); font-size: 0.78rem; }
.breadcrumbs a:hover { color: white; }
.content-section { min-height: 380px; padding-block: 64px 90px; }
.empty-state { padding: 54px 30px; border: 1px solid var(--ce-border); border-radius: var(--ce-radius); background: var(--ce-soft); text-align: center; }
.empty-state > span:first-child { display: grid; width: 54px; height: 54px; place-items: center; margin: 0 auto 18px; border-radius: 16px; background: #e8e8ff; color: var(--ce-accent); font-size: 1.55rem; font-weight: 800; }
.empty-state h2 { margin-bottom: 9px; font-size: 1.45rem; }
.empty-state p { max-width: 590px; margin: 0 auto; color: var(--ce-muted); }
.empty-state p + p { margin-top: 12px; }
.results-heading { margin-bottom: 20px; color: var(--ce-muted); }
.result-list { display: grid; gap: 14px; }
.card { border: 1px solid var(--ce-border); border-radius: var(--ce-radius); background: white; }
.result-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 26px; }
.result-card h2 { margin-bottom: 7px; font-size: 1.35rem; }
.result-card h2 a:hover { color: var(--ce-accent); }
.result-card p { margin-bottom: 0; color: var(--ce-muted); }
.result-kind { color: var(--ce-accent) !important; font-size: 0.73rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.result-arrow { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--ce-soft); color: var(--ce-accent); font-size: 1.25rem; }

.article-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 54px; align-items: start; padding-block: 70px 110px; }
.summary-card { position: sticky; top: 24px; overflow: hidden; border: 1px solid var(--ce-border); border-radius: var(--ce-radius); }
.facts { margin: 0; }
.facts div { padding: 16px 18px; border-bottom: 1px solid var(--ce-border); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--ce-muted); font-size: 0.73rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.facts dd { margin: 3px 0 0; font-weight: 700; }
.knowledge-article section + section { margin-top: 48px; }
.knowledge-article h2 { padding-bottom: 13px; border-bottom: 1px solid var(--ce-border); font-size: 1.65rem; }
.cause-list { padding-left: 20px; }
.cause-list li { margin-block: 9px; }
.step-list { padding: 0; list-style: none; counter-reset: steps; }
.step-list li { display: grid; grid-template-columns: 38px 1fr; gap: 15px; align-items: start; margin-bottom: 18px; counter-increment: steps; }
.step-list li::before { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; background: #eeeefe; color: var(--ce-accent); content: counter(steps); font-weight: 800; }
.step-list span { padding-top: 5px; }

.not-found { min-height: 640px; padding-block: 120px; text-align: center; }
.not-found h1 { max-width: 660px; margin: 0 auto 16px; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.not-found > p:not(.error-number):not(.eyebrow) { margin-bottom: 28px; color: var(--ce-muted); }
.error-number { margin-bottom: -34px; color: #eeeefe; font-size: clamp(8rem, 24vw, 15rem); font-weight: 900; line-height: 0.9; letter-spacing: -0.08em; }
.button { min-height: 48px; padding-inline: 26px; }

.site-footer { padding: 56px 0; border-top: 1px solid var(--ce-border); background: #fafbfc; }
.footer-inner { display: flex; justify-content: space-between; gap: 50px; }
.brand-footer { margin-bottom: 13px; color: var(--ce-text); }
.footer-inner p { max-width: 470px; margin: 0; color: var(--ce-muted); font-size: 0.86rem; }
.footer-note { display: flex; max-width: 330px; flex-direction: column; gap: 4px; font-size: 0.82rem; text-align: right; }
.footer-note span { color: var(--ce-muted); }

@media (max-width: 800px) {
  .primary-nav { display: none; }
  .header-action { margin-left: auto; }
  .hero { min-height: 560px; padding-top: 145px; }
  .category-grid { grid-template-columns: 1fr; }
  .category { min-height: 118px; border-right: 0; border-bottom: 1px solid var(--ce-border); }
  .category:last-child { border-bottom: 0; }
  .method { grid-template-columns: 1fr; gap: 35px; padding-block: 90px; }
  .article-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
}

@media (max-width: 560px) {
  .container, .narrow { width: min(100% - 28px, 1120px); }
  .header-inner { min-height: 70px; }
  .brand { font-size: 1rem; }
  .brand-mark { width: 29px; height: 29px; }
  .header-action { display: none; }
  .hero { min-height: 535px; padding: 125px 0 135px; }
  .hero-copy { font-size: 0.97rem; }
  .search-hero { padding: 5px; }
  .search-icon { display: none; }
  .search input { padding-inline: 13px; }
  .search button { min-width: 86px; padding-inline: 15px; }
  .discovery { margin-top: -62px; }
  .section-heading { align-items: flex-start; flex-direction: column; padding: 23px 20px; }
  .category { padding-inline: 20px; }
  .method { padding-block: 75px; }
  .method-card { padding: 68px 22px 22px; }
  .method-number { left: 22px; }
  .launch-inner { align-items: flex-start; padding-block: 20px; }
  .status-dot { margin-top: 8px; }
  .page-hero { padding-block: 60px 66px; }
  .footer-inner { flex-direction: column; }
  .footer-note { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
