/* Haneen Template Standard: accessible, RTL-ready page-specific frontend experiences. */
:root {
  --hn-accent: #6551cf;
  --hn-ink: #18213f;
  --hn-muted: #687389;
  --hn-bg: #f6f7fc;
  --hn-line: #e5e8f2;
  --hn-paper: #fff;
  --hn-soft: #f0edff;
  --hn-radius: 22px;
}
.hn-main {
  box-sizing: border-box;
  width: min(1200px, calc(100% - 42px));
  margin: 32px auto 88px;
  color: var(--hn-ink);
  font-family: inherit;
  line-height: 1.65;
}
.hn-main *,
.hn-main *::before,
.hn-main *::after {
  box-sizing: border-box;
}
.hn-main a {
  text-decoration: none;
}
.hn-main button,
.hn-main input,
.hn-main select,
.hn-main textarea {
  font: inherit;
}
.hn-main h1,
.hn-main h2,
.hn-main h3 {
  margin: 0;
  letter-spacing: -0.035em;
  line-height: 1.19;
  font-weight: 780;
}
.hn-main h1 {
  font-size: clamp(2.3rem, 4.8vw, 4.6rem);
  max-width: 18ch;
}
.hn-main h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.25rem);
}
.hn-main h3 {
  font-size: 1.11rem;
}
.hn-main p {
  margin: 0.8rem 0 1.4rem;
  color: var(--hn-muted);
}
.hn-eyebrow,
.hn-mini {
  display: block;
  color: var(--hn-accent);
  font-size: 0.69rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.hn-heading {
  padding: 42px 0 34px;
  max-width: 850px;
}
.hn-heading p {
  font-size: 1.05rem;
  max-width: 66ch;
}
.hn-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  padding: 50px 55px;
  min-height: 430px;
  position: relative;
  overflow: hidden;
  border: 1px solid #e9e7fb;
  border-radius: 30px;
  background: linear-gradient(122deg, #fff, #f6f5ff 55%, #edf4ff);
  box-shadow: 0 24px 70px #25335e12;
}
.hn-hero::before {
  content: "";
  position: absolute;
  inset: auto -100px -200px auto;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: radial-gradient(circle, #7860f228, transparent 70%);
  pointer-events: none;
}
.hn-hero-copy {
  position: relative;
  z-index: 2;
}
.hn-hero p {
  font-size: 1.1rem;
  max-width: 52ch;
}
.hn-hero-1 {
  background: linear-gradient(135deg, #fbf6fa, #fff 48%, #fce8ee);
}
.hn-hero-2 {
  background: linear-gradient(135deg, #eef9fb, #fff 55%, #e9f4fc);
}
.hn-hero-3 {
  background: linear-gradient(120deg, #fbf6ed, #fff 50%, #eff4ff);
}
.hn-hero-1 .hn-visual {
  order: -1;
}
.hn-hero-2 {
  grid-template-columns: 1fr 1fr;
}
.hn-hero-3 .hn-hero-copy {
  max-width: 690px;
}
.hn-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 26px 0;
}
.hn-btn {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 21px;
  font-weight: 750;
  font-size: 0.93rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.17s,
    background 0.17s,
    box-shadow 0.17s;
  text-align: center;
}
.hn-btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}
.hn-primary {
  background: var(--hn-accent);
  color: #fff !important;
  box-shadow: 0 8px 20px #4532ba22;
}
.hn-primary:hover {
  filter: brightness(0.94);
}
.hn-outline {
  background: var(--hn-paper);
  color: var(--hn-ink) !important;
  border-color: var(--hn-line);
}
.hn-sm {
  font-size: 0.78rem;
  padding: 8px 11px;
  border-radius: 8px;
}
.hn-inline-link {
  color: var(--hn-accent);
  text-decoration: underline !important;
}
.hn-trust {
  color: var(--hn-muted);
  font-size: 0.79rem;
  margin-top: 13px;
}
.hn-visual {
  min-width: 0;
}
.hn-illustration {
  width: 100%;
  height: 310px;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background:
    radial-gradient(circle at 52% 44%, #ffffffba 0%, transparent 45%),
    linear-gradient(135deg, var(--hn-accent), #b1a7ee);
  box-shadow:
    inset 0 0 80px #ffffff24,
    0 22px 40px #2a235c19;
}
.hn-illustration::before,
.hn-illustration::after {
  content: "";
  position: absolute;
  inset: 12% 11%;
  border-radius: 50%;
  border: 1px solid #ffffff88;
  transform: rotate(-18deg);
}
.hn-illustration::after {
  inset: 18% 17%;
  transform: rotate(38deg);
}
.hn-illustration-orbit {
  font-size: 8rem;
  filter: drop-shadow(4px 22px 18px #27194b50);
  z-index: 2;
  line-height: 1;
}
.hn-visual-tag,
.hn-visual-mini {
  position: absolute;
  background: #ffffffeb;
  border: 1px solid #fffffffa;
  z-index: 3;
  border-radius: 12px;
  box-shadow: 0 12px 25px #121c4019;
  padding: 8px 15px;
  color: #1b2543;
  font-size: 0.75rem;
  font-weight: 750;
}
.hn-visual-tag {
  top: 18px;
  right: 18px;
}
.hn-visual-mini {
  bottom: 24px;
  left: 18px;
}
.hn-section {
  margin: 70px 0 0;
}
.hn-section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 25px;
}
.hn-section-header h2 {
  max-width: 28ch;
}
.hn-grid {
  display: grid;
  gap: 18px;
}
.hn-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hn-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.hn-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.hn-card,
.hn-white-panel,
.hn-plan {
  background: var(--hn-paper);
  border: 1px solid var(--hn-line);
  border-radius: 19px;
  padding: 25px;
  box-shadow: 0 8px 28px #181e4010;
}
.hn-card {
  min-height: 156px;
}
.hn-card h3 {
  overflow-wrap: anywhere;
}
.hn-card p {
  font-size: 0.9rem;
  margin: 0.7rem 0 0;
}
.hn-card .hn-mini {
  margin-bottom: 12px;
}
.hn-white-panel > * + * {
  margin-top: 24px;
}
.hn-product {
  border: 1px solid var(--hn-line);
  background: var(--hn-paper);
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 7px 20px #121c3a0d;
}
.hn-product-art {
  height: 185px;
  display: grid;
  place-items: center;
  font-size: 5rem;
  background: linear-gradient(120deg, #e9e6fc, #eff6fe);
}
.hn-product-art span {
  filter: drop-shadow(2px 12px 12px #34405e30);
}
.hn-color-1 {
  background: linear-gradient(120deg, #eaf4ef, #e2f0ec);
}
.hn-color-2 {
  background: linear-gradient(120deg, #e4ecfb, #d3e4f8);
}
.hn-color-3 {
  background: linear-gradient(120deg, #fff1e6, #ffe8d4);
}
.hn-color-4 {
  background: linear-gradient(120deg, #feeaf0, #f9e4f8);
}
.hn-color-5 {
  background: linear-gradient(120deg, #e7efee, #f4f0e6);
}
.hn-product-body {
  padding: 18px;
}
.hn-product-body h3 {
  font-size: 1rem;
}
.hn-product-body p {
  font-size: 0.82rem;
  margin: 0.45rem 0 1rem;
}
.hn-price {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
}
.hn-price strong,
.hn-bigprice {
  font-size: 1.2rem;
  font-weight: 800;
}
.hn-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 15px 0 24px;
}
.hn-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--hn-line);
  background: var(--hn-paper);
  border-radius: 12px;
  padding: 9px 14px;
  min-width: min(320px, 100%);
}
.hn-search input {
  border: 0;
  background: none;
  outline: 0;
  min-width: 0;
  width: 100%;
}
.hn-filter-select {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--hn-muted);
}
.hn-filter-select select {
  border: 1px solid var(--hn-line);
  border-radius: 10px;
  background: var(--hn-paper);
  color: var(--hn-ink);
  padding: 9px 15px;
}
.hn-chipset {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0;
}
.hn-chip,
.hn-pill {
  display: inline-block;
  background: var(--hn-soft);
  color: var(--hn-accent);
  border-radius: 100px;
  padding: 8px 15px;
  font-size: 0.78rem;
  font-weight: 720;
}
.hn-note {
  border: 1px solid #d8dbf8;
  background: var(--hn-soft);
  color: #50439c;
  border-radius: 14px;
  padding: 15px 20px;
  margin: 18px 0;
  font-size: 0.9rem;
}
.hn-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.hn-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 750;
  color: var(--hn-ink);
}
.hn-form-grid input,
.hn-form-grid textarea {
  width: 100%;
  border: 1px solid var(--hn-line);
  border-radius: 11px;
  padding: 12px 14px;
  background: var(--hn-paper);
  color: var(--hn-ink);
}
.hn-form-grid label:has(textarea) {
  grid-column: 1/-1;
}
.hn-form-hint {
  font-size: 0.77rem;
  margin: 0 !important;
}
.hn-table-shell {
  border: 1px solid var(--hn-line);
  border-radius: 16px;
  background: var(--hn-paper);
  margin: 18px 0;
  overflow: hidden;
}
.hn-table-shell .hn-toolbar {
  margin: 0;
  padding: 12px 17px;
  border-bottom: 1px solid var(--hn-line);
}
.hn-table-scroll {
  overflow-x: auto;
}
.hn-data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: start;
  font-size: 0.88rem;
}
.hn-data-table th {
  text-align: start;
  background: var(--hn-bg);
  color: var(--hn-muted);
  font-weight: 750;
  white-space: nowrap;
}
.hn-data-table td,
.hn-data-table th {
  padding: 13px 16px;
  border-bottom: 1px solid var(--hn-line);
}
.hn-data-table tr:last-child td {
  border-bottom: 0;
}
.hn-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.hn-detail-art {
  min-height: 410px;
  border-radius: 25px;
  background:
    radial-gradient(circle at 65% 25%, #fff 0, transparent 50%),
    linear-gradient(135deg, #dcd8fc, #aebeea);
  font-size: 7rem;
  display: grid;
  place-items: center;
  position: relative;
}
.hn-device-card {
  position: absolute;
  bottom: 22px;
  right: 24px;
  font-size: 0.7rem;
  color: #35315d;
  background: #fff;
  padding: 10px 14px;
  border-radius: 10px;
}
.hn-detail-content {
  background: var(--hn-paper);
  border: 1px solid var(--hn-line);
  border-radius: 22px;
  padding: 34px;
}
.hn-bigprice {
  margin: 12px 0 20px;
}
.hn-bigprice del {
  color: var(--hn-muted);
  font-size: 0.86rem;
  margin-inline-start: 10px;
}
.hn-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}
.hn-choice {
  display: flex;
  gap: 6px;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--hn-line);
  border-radius: 14px;
  cursor: pointer;
}
.hn-choice input {
  width: 20px;
  height: 20px;
  accent-color: var(--hn-accent);
}
.hn-choice small {
  color: var(--hn-muted);
}
.hn-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.hn-steps span {
  background: var(--hn-soft);
  border: 1px solid #dedbf5;
  border-radius: 50px;
  padding: 10px 18px;
  color: var(--hn-ink);
  font-weight: 650;
  font-size: 0.82rem;
}
.hn-faq {
  display: grid;
  gap: 12px;
}
.hn-faq details {
  border: 1px solid var(--hn-line);
  padding: 20px;
  border-radius: 12px;
}
.hn-faq summary {
  cursor: pointer;
  font-weight: 750;
}
.hn-faq p {
  margin: 12px 0 0;
}
.hn-empty-state {
  text-align: center;
  padding: 45px 15px;
  max-width: 560px;
  margin: auto;
}
.hn-empty-icon {
  font-size: 4rem;
  margin: 8px 0;
}
.hn-visual-card,
.hn-chat-preview,
.hn-security-preview,
.hn-code-window,
.hn-phone-stage,
.hn-builder {
  background: #fff;
  color: #243051;
  border-radius: 19px;
  padding: 24px;
  box-shadow: 0 24px 50px #26215b19;
  border: 1px solid #ebeaf4;
}
.hn-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.hn-kpis div {
  border: 1px solid #eff0f7;
  border-radius: 12px;
  padding: 12px;
  min-width: 0;
}
.hn-kpis small,
.hn-kpis span {
  display: block;
  color: #8791a4;
  font-size: 0.73rem;
}
.hn-kpis strong {
  display: block;
  color: #1b2342;
  font-size: 1.4rem;
  line-height: 1.6;
}
.hn-bars {
  height: 110px;
  display: flex;
  align-items: end;
  gap: 8px;
  background: linear-gradient(to top, #faf9ff, #fff);
  padding: 8px 0;
}
.hn-bars i {
  flex: 1;
  min-width: 5px;
  display: block;
  background: linear-gradient(0deg, #7c65e3, #a5caf7);
  border-radius: 7px 7px 2px 2px;
}
.hn-chat-preview p {
  background: #f1efff;
  padding: 14px;
  border-radius: 13px;
  margin: 12px 0;
}
.hn-chat-preview blockquote {
  background: #ecf8f5;
  color: #286b61;
  padding: 14px;
  border-radius: 13px;
  border: 0;
  margin: 0 0 12px;
}
.hn-chat-input {
  border: 1px solid #dce2ef;
  padding: 12px;
  border-radius: 10px;
  color: #919ab1;
}
.hn-chat-head {
  font-weight: 800;
  color: #483a91;
}
.hn-kanban {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin: 18px 0;
}
.hn-kanban > div,
.hn-kanban > section {
  border-radius: 15px;
  border: 1px solid var(--hn-line);
  background: var(--hn-paper);
  padding: 17px;
  min-width: 0;
}
.hn-kanban strong,
.hn-kanban h3 {
  display: block;
  margin-bottom: 15px;
  font-size: 0.97rem;
}
.hn-kanban span,
.hn-task {
  display: block;
  margin: 9px 0;
  padding: 12px;
  border: 1px solid var(--hn-line);
  background: var(--hn-bg);
  border-radius: 10px;
  font-size: 0.83rem;
}
.hn-code-window {
  background: #172442;
  color: #d4e6ff;
  font: 14px/1.7 monospace;
  direction: ltr;
  text-align: left;
}
.hn-code-window pre {
  background: none !important;
  color: inherit !important;
  padding: 0;
  margin: 18px 0 0;
  white-space: pre-wrap;
  overflow: auto;
}
.hn-code-window > div {
  color: #83e5f3;
  border-bottom: 1px solid #344c68;
  padding-bottom: 12px;
}
.hn-phone-stage {
  display: flex;
  justify-content: center;
  background: linear-gradient(135deg, #f0edff, #e8f8ff);
}
.hn-phone {
  width: 175px;
  height: 280px;
  border: 7px solid #1c2646;
  border-radius: 27px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 15px;
  text-align: center;
  color: #1d2850;
}
.hn-phone span {
  color: #7d8bac;
}
.hn-phone-graph {
  font-size: 4rem;
  color: #6d59d6;
}
.hn-phone p {
  font-size: 0.75rem;
}
.hn-floating-tag {
  align-self: center;
  margin-inline-start: 15px;
  font-size: 0.7rem;
  font-weight: 700;
}
.hn-builder-row {
  display: flex;
  gap: 8px;
}
.hn-builder-row span,
.hn-builder-stack span {
  background: #f2f0ff;
  padding: 12px;
  border-radius: 9px;
  margin: 7px 0;
  display: block;
}
.hn-builder-row span {
  flex: 1;
  text-align: center;
}
.hn-builder-stack {
  border: 1px dashed #aea6e9;
  padding: 10px;
  border-radius: 10px;
  margin-top: 10px;
}
.hn-security-preview .hn-chipset {
  margin-bottom: 0;
}
.hn-progress {
  margin: 22px 0;
  max-width: 600px;
}
.hn-progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}
.hn-progress-track {
  height: 10px;
  border-radius: 99px;
  overflow: hidden;
  background: #eae7fa;
}
.hn-progress-track i {
  display: block;
  height: 100%;
  background: #735bd4;
  border-radius: 99px;
}
.hn-plan ul {
  list-style: none;
  padding: 0;
  margin: 17px 0 25px;
}
.hn-plan li {
  padding: 7px 0;
  border-bottom: 1px solid var(--hn-line);
}
.hn-plan-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin: 15px 0;
}
.hn-plan-price strong {
  font-size: 2.75rem;
}
.hn-calculator {
  border: 1px solid var(--hn-line);
  padding: 25px;
  border-radius: 17px;
  background: var(--hn-paper);
  display: grid;
  gap: 23px;
}
.hn-calculator label {
  display: grid;
  gap: 12px;
}
.hn-calculator input[type="range"] {
  width: 100%;
  accent-color: var(--hn-accent);
}
.hn-calculator-result {
  background: var(--hn-soft);
  padding: 26px;
  border-radius: 15px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.hn-calculator-result strong {
  font-size: 2.8rem;
}
.hn-article {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}
.hn-article h2,
.hn-article h3 {
  margin: 20px 0;
}
.hn-app-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.hn-dashboard-nav {
  border: 1px solid var(--hn-line);
  padding: 15px;
  border-radius: 18px;
  background: var(--hn-paper);
  display: grid;
  gap: 3px;
  position: sticky;
  top: 15px;
  max-height: 90vh;
  overflow-y: auto;
}
.hn-dashboard-nav strong {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  margin: 5px 6px 13px;
  color: var(--hn-accent);
}
.hn-dashboard-nav a {
  font-size: 0.77rem;
  padding: 8px 9px;
  border-radius: 9px;
  color: var(--hn-muted);
}
.hn-dashboard-nav a.active,
.hn-dashboard-nav a:hover {
  color: var(--hn-accent);
  background: var(--hn-soft);
  font-weight: 700;
}
.hn-app-body {
  min-width: 0;
}
.hn-app-body .hn-heading {
  padding-top: 0;
}
.hn-app-body .hn-heading h1 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}
.hn-phone-stage {
  min-height: 320px;
}
.hn-cart-preview {
  min-height: 110px;
}
.hn-thumbs {
  display: flex;
  gap: 10px;
}
.hn-thumbs button {
  padding: 15px;
  border: 1px solid var(--hn-line);
  border-radius: 12px;
}
.hn-auth .hn-white-panel {
  max-width: 680px;
  margin: auto;
}
.hn-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  max-width: min(440px, 90vw);
  z-index: 9999;
  background: #252858;
  color: #fff;
  border-radius: 12px;
  padding: 15px 22px;
  box-shadow: 0 15px 45px #12152f38;
  font:
    600 14px system-ui,
    sans-serif;
}
.hn-note,
.hn-main p,
.hn-main h1,
.hn-main h2,
.hn-main h3 {
  overflow-wrap: break-word;
}
html[dir="rtl"] .hn-code-window {
  direction: ltr;
}
html[dir="rtl"] .hn-device-card {
  right: auto;
  left: 24px;
}
html[dir="rtl"] .hn-visual-tag {
  right: auto;
  left: 18px;
}
html[dir="rtl"] .hn-visual-mini {
  left: auto;
  right: 18px;
}
html[dir="rtl"] .hn-toast {
  left: auto;
  right: 24px;
}
html[dir="rtl"] .hn-main .hn-data-table {
  text-align: right;
}
html[dir="rtl"] .hn-main .hn-data-table th {
  text-align: right;
}
html[dir="rtl"] .hn-hero-1 .hn-visual {
  order: -1;
}
html[data-theme="dark"] .hn-main,
body.dark .hn-main,
body[data-bs-theme="dark"] .hn-main {
  --hn-ink: #f2f5ff;
  --hn-muted: #b2b9ce;
  --hn-bg: #171c30;
  --hn-line: #343b55;
  --hn-paper: #222940;
  --hn-soft: #332d5a;
}
html[data-theme="dark"] .hn-hero,
body.dark .hn-hero {
  background: linear-gradient(130deg, #24294a, #181f3e 62%, #272250);
  border-color: #343c5d;
}
html[data-theme="dark"] .hn-note {
  color: #e1d8ff;
  border-color: #5c527c;
}
html[data-theme="dark"] .hn-product-art {
  color: #222;
}
html[data-theme="dark"] .hn-heading p {
  color: #b2b9ce;
}
html[data-theme="dark"] .hn-btn.hn-outline {
  color: #f2f5ff !important;
}
.hn-main :focus-visible {
  outline: 3px solid #16a2ae;
  outline-offset: 3px;
}
.hn-main [hidden] {
  display: none !important;
}
@media (max-width: 1050px) {
  .hn-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hn-app-layout {
    grid-template-columns: 1fr;
  }
  .hn-dashboard-nav {
    position: relative;
    display: flex;
    overflow: auto;
    max-height: none;
    white-space: nowrap;
    align-items: center;
  }
  .hn-dashboard-nav a {
    flex-shrink: 0;
  }
}
@media (max-width: 760px) {
  .hn-main {
    width: calc(100% - 26px);
    margin: 16px auto 60px;
  }
  .hn-hero {
    grid-template-columns: 1fr;
    padding: 29px 23px;
    min-height: auto;
  }
  .hn-hero-1 .hn-visual {
    order: initial;
  }
  .hn-hero h1 {
    font-size: clamp(2rem, 8vw, 3.4rem);
  }
  .hn-illustration {
    height: 230px;
  }
  .hn-grid-2,
  .hn-grid-3,
  .hn-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hn-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hn-detail {
    grid-template-columns: 1fr;
  }
  .hn-detail-art {
    min-height: 250px;
  }
  .hn-choice-grid {
    grid-template-columns: 1fr;
  }
  .hn-kanban {
    grid-template-columns: 1fr;
  }
  .hn-form-grid {
    grid-template-columns: 1fr;
  }
  .hn-form-grid label:has(textarea) {
    grid-column: auto;
  }
  .hn-section {
    margin-top: 44px;
  }
  .hn-section-header {
    margin-bottom: 15px;
  }
}
@media (max-width: 480px) {
  .hn-grid-2,
  .hn-grid-3,
  .hn-grid-4 {
    grid-template-columns: 1fr;
  }
  .hn-product-art {
    height: 180px;
  }
  .hn-card {
    min-height: unset;
  }
  .hn-kpis {
    grid-template-columns: 1fr;
  }
  .hn-price {
    align-items: center;
  }
  .hn-actions .hn-btn {
    flex: 1;
  }
  .hn-calculator-result {
    flex-wrap: wrap;
  }
  .hn-visual-card {
    padding: 16px;
  }
  .hn-main h1 {
    font-size: 2rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hn-main * {
    transition: none !important;
    animation: none !important;
  }
}

/* Release refinements: shared tokens, accessible states and adaptive navigation. */
:root {
  --hn-accent: #6044bb;
  --hn-muted: #5d687d;
}
html[data-theme="dark"] {
  --hn-accent: #c3b4ff;
  --hn-ink: #f2f5ff;
  --hn-muted: #c0c9dc;
  --hn-bg: #171c30;
  --hn-line: #45516e;
  --hn-paper: #222940;
  --hn-soft: #34305a;
}
html[data-theme="dark"] .hn-main {
  /* Keep per-page light palettes from reducing dark-mode contrast. */
  --hn-accent: #c3b4ff !important;
  --hn-muted: #c0c9dc;
}
html[data-theme="dark"] .hn-hero {
  background: linear-gradient(130deg, #242e4f, #18213c 62%, #302753);
  border-color: var(--hn-line);
}
html[data-theme="dark"] .hn-primary {
  background: #c3b4ff;
  color: #201738 !important;
}
html[data-theme="dark"] .hn-visual-card,
html[data-theme="dark"] .hn-chat-preview,
html[data-theme="dark"] .hn-security-preview,
html[data-theme="dark"] .hn-builder {
  background: var(--hn-paper);
  color: var(--hn-ink);
  border-color: var(--hn-line);
}
html[data-theme="dark"] .hn-kpis div {
  border-color: var(--hn-line);
}
html[data-theme="dark"] .hn-kpis strong {
  color: var(--hn-ink);
}
html[data-theme="dark"] .hn-kpis small,
html[data-theme="dark"] .hn-kpis span {
  color: var(--hn-muted);
}
html[data-theme="dark"] .hn-bars {
  background: linear-gradient(to top, #242b46, #222940);
}
html[data-theme="dark"] .hn-note {
  color: #e1d8ff;
  border-color: var(--hn-line);
}
html[data-theme="dark"] .hn-chat-preview p,
html[data-theme="dark"] .hn-builder-row span,
html[data-theme="dark"] .hn-builder-stack span {
  background: var(--hn-soft);
  color: var(--hn-ink);
}
html[data-theme="dark"] .hn-chat-head {
  color: var(--hn-accent);
}
html[data-theme="dark"] .hn-phone-stage {
  background: #232c45;
}
html[data-theme="dark"] .hn-phone p {
  color: #4e5d7b;
}
html[data-theme="dark"] .header .brand,
html[data-theme="dark"] .header .header-actions,
html[data-theme="dark"] .header .header-actions button {
  color: #f2f5ff;
}
html[data-theme="dark"] .navlinks .active,
html[data-theme="dark"] .navpromo {
  color: #c3b4ff;
}
html[data-theme="dark"] .header .searchbox input {
  color: #f2f5ff;
}
html[data-theme="dark"] .header .searchbox input::placeholder {
  color: #b9c3d9;
  opacity: 1;
}
.hn-search input {
  color: var(--hn-ink);
}
.hn-search input::placeholder {
  color: var(--hn-muted);
  opacity: 1;
}
.hn-note {
  color: #4c3c86;
}
.hn-art-image {
  display: block;
  width: min(72%, 200px);
  height: 155px;
  object-fit: contain;
  filter: drop-shadow(0 15px 13px #17234526);
}
.hn-illustration-orbit .hn-art-image {
  width: 230px;
  height: 200px;
}
.hn-detail-art > .hn-art-image {
  width: min(75%, 280px);
  height: 260px;
  transition: transform 0.25s;
}
.hn-thumbs .hn-art-image {
  width: 48px;
  height: 48px;
}
.hn-thumbs [aria-pressed="true"] {
  outline: 3px solid var(--hn-accent);
  outline-offset: 2px;
}
.hn-cart-items {
  list-style: none;
  padding: 0;
  margin: 0;
}
.hn-cart-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 18px 0;
  border-bottom: 1px solid var(--hn-line);
}
.hn-cart-row strong {
  flex: 1;
  min-width: 140px;
}
.hn-cart-price {
  white-space: nowrap;
}
.hn-cart-total {
  font-size: 1.15rem;
  font-weight: 750;
}
.hn-table-status {
  padding: 16px;
}
.hn-results-status {
  padding: 12px 0;
}
.hn-browse-link {
  color: inherit;
  font-weight: 700;
  white-space: nowrap;
}
.navline .hn-browse-link {
  padding: 8px 12px;
  border: 1px solid currentColor;
  border-radius: 9px;
}
.navline .navpromo {
  display: none;
}
.desktop-nav {
  gap: 20px;
}
.nav-dropdown:hover:not(.open) .mega-menu:not(.show) {
  display: none;
}
.nav-dropdown.open .mega-menu,
.nav-dropdown .mega-menu.show {
  display: block;
}
.nav-dropdown .mega-menu {
  z-index: 1050;
  margin: 0;
}
.mega-menu a {
  text-align: start;
}
.mobile-nav.collapse:not(.show) {
  display: none;
}
.mobile-nav.collapse {
  padding: 0;
}
.mobile-nav-links {
  display: grid;
  gap: 14px;
  padding: 20px 5%;
}
.header .container {
  min-width: 0;
}
.header .searchbox {
  min-width: 0;
  flex: 1;
}
.header .header-actions {
  flex-shrink: 0;
}
.header .brand {
  flex-shrink: 0;
}
.header-actions .cart-count {
  min-width: 18px;
}
.hn-main [hidden],
[hidden].hn-toast {
  display: none !important;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #128f96;
  outline-offset: 3px;
}
.hn-skip-link {
  position: fixed;
  inset-block-start: -100px;
  inset-inline-start: 16px;
  z-index: 10000;
  background: #fff;
  color: #17233e;
  padding: 12px 20px;
  border-radius: 8px;
}
.hn-skip-link:focus {
  inset-block-start: 12px;
}
@media (max-width: 1050px) {
  .site-header {
    height: auto;
    min-height: 69px;
  }
  .site-header .header-inner {
    min-height: 69px;
  }
  .site-header .desktop-nav,
  .site-header .hide-mobile {
    display: none;
  }
  .site-header .mobile-only {
    display: grid;
  }
  .header > .container {
    display: grid !important;
    grid-template-columns: 1fr auto;
    gap: 16px !important;
  }
  .header .searchbox {
    grid-row: 2;
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
  }
  .header .header-actions {
    grid-row: 1;
    grid-column: 2;
    gap: 12px;
  }
  .header .brand {
    grid-row: 1;
    grid-column: 1;
  }
}
@media (max-width: 600px) {
  .header .header-actions .word {
    display: none;
  }
  .header .header-actions {
    gap: 9px;
  }
  .hn-cart-row {
    gap: 12px;
  }
  .hn-browse-link {
    font-size: 0.86rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hn-detail-art > .hn-art-image {
    transition: none;
  }
}

/* Keep the commerce wordmark readable above its legacy brand rule. */
html[data-theme="dark"] .header .brand { color: #f2f5ff !important; }
