/* Landing redesign — scoped under .wa-rd to avoid DaisyUI / legacy clashes */

body.wa-landing {
  background: #eceef7;
  scroll-padding-top: env(safe-area-inset-top, 0px);
}

html:has(body.wa-landing) {
  scroll-behavior: smooth;
}

body.wa-landing .wa-grid-bg {
  display: none;
}

body.wa-landing .wa-main.wa-landing-main {
  flex: none;
  display: block;
  min-height: 0;
  padding: 0;
}

.wa-rd {
  --bg: #eceef7;
  --surface: #fff;
  --ink: #12153a;
  --muted: #555b82;
  --line: #d6daee;
  --brand: #ff6b00;
  --brand-ink: #b04400;
  --pass: #0f8a4b;
  --warn: #a96400;
  --fail: #d12f45;
  --stage: #0b0e2e;
  --stage2: #151a4a;
  --stroke: #3a4190;
  --on: #eef0ff;
  --onm: #a9afdc;
  --seo: #6c8cff;
  --aeo: #b48cff;
  --geo: #2fd6bf;
  --font: "iranyekan", "iransans", Tahoma, sans-serif;
  color: var(--ink);
  font: 400 16px/1.9 var(--font);
  background: var(--bg);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wa-rd {
    --bg: #0f1235;
    --surface: #171b49;
    --ink: #eceefc;
    --muted: #a3a8cc;
    --line: #2c3070;
    --brand-ink: #ff9a4d;
    --pass: #4fd18b;
    --warn: #f0b64a;
    --fail: #ff7388;
  }
}

.wa-rd *,
.wa-rd *::before,
.wa-rd *::after {
  box-sizing: border-box;
}

.wa-rd a {
  color: inherit;
  text-decoration: none;
}

.wa-rd h1,
.wa-rd h2,
.wa-rd h3,
.wa-rd p {
  margin: 0;
}

.wa-rd :focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.wa-rd-wrap {
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
}

/* stage */
.wa-rd-stage {
  background: radial-gradient(900px 500px at 15% 0, #1d2470 0, transparent 70%), var(--stage);
  color: var(--on);
  padding-bottom: 64px;
}

.wa-rd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

.wa-rd-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 21px;
}

.wa-rd-logo i {
  width: 32px;
  height: 32px;
  border-radius: 9px 9px 9px 2px;
  background: var(--brand);
  display: grid;
  place-items: center;
  color: #1a0c00;
  font-style: normal;
  font-size: 16px;
}

.wa-rd-nav {
  display: flex;
  gap: 26px;
  color: var(--onm);
  font-weight: 500;
}

.wa-rd-nav a:hover,
.wa-rd-nav button:hover {
  color: #fff;
}

.wa-rd-nav button {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.wa-rd-tel {
  direction: ltr;
  font-weight: 700;
  border: 1.5px solid var(--stroke);
  border-radius: 99px;
  padding: 4px 16px;
}

@media (max-width: 760px) {
  .wa-rd-nav {
    display: none;
  }
}

.wa-rd-top {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: end;
  padding: 36px 0 34px;
}

.wa-rd-top h1 {
  font-size: clamp(34px, 5.6vw, 66px);
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: -0.015em;
}

.wa-rd-lead {
  color: var(--onm);
  font-size: 17px;
  margin-top: 14px;
  max-width: 50ch;
}

.wa-rd-cmd {
  display: grid;
  gap: 12px;
}

.wa-rd-suite {
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--onm);
  font-size: 14px;
  flex-wrap: wrap;
}

.wa-rd-suite label {
  cursor: pointer;
}

.wa-rd-suite input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wa-rd-suite span.wa-rd-chip {
  display: block;
  padding: 2px 16px;
  border-radius: 99px;
  border: 1.5px solid var(--stroke);
  font-weight: 700;
  transition: 0.2s;
}

.wa-rd-suite input:checked + span.wa-rd-chip {
  background: var(--on);
  color: var(--stage);
  border-color: var(--on);
}

.wa-rd-suite input:focus-visible + span.wa-rd-chip {
  outline: 3px solid var(--brand);
}

.wa-rd-bar {
  display: flex;
  gap: 8px;
  background: var(--stage2);
  border: 2px solid var(--stroke);
  border-radius: 18px;
  padding: 8px;
}

.wa-rd-bar:focus-within {
  border-color: var(--brand);
}

.wa-rd-bar input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  color: #fff;
  font: 500 16px var(--font);
  padding: 0 12px;
  direction: ltr;
  text-align: left;
}

.wa-rd-bar input::placeholder {
  color: var(--onm);
  direction: rtl;
}

.wa-rd-bar input:focus {
  outline: 0;
}

.wa-rd-btn {
  border: 0;
  cursor: pointer;
  font: 900 16px var(--font);
  background: var(--brand);
  color: #1a0c00;
  padding: 11px 24px;
  border-radius: 12px;
  transition: transform 0.15s, filter 0.15s;
  display: inline-block;
  text-align: center;
}

.wa-rd-btn:hover {
  filter: brightness(1.08);
}

.wa-rd-btn:active {
  transform: scale(0.97);
}

.wa-rd-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.wa-rd-meta {
  font-size: 14px;
  color: var(--onm);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.wa-rd-err {
  color: #ff8da0;
  font-weight: 700;
  min-height: 24px;
  font-size: 14px;
}

@media (max-width: 900px) {
  .wa-rd-top {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

/* lab */
.wa-rd-story {
  height: 440vh;
  position: relative;
}

.wa-rd-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
  padding: 12px 0;
}

.wa-rd-lab {
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.wa-rd-chap {
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.4;
  font-weight: 900;
  margin: 6px 0 8px;
  min-height: 2.8em;
}

.wa-rd-chapt {
  color: var(--onm);
  max-width: 44ch;
  min-height: 5.4em;
}

.wa-rd-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.wa-rd-tabs button {
  --c: var(--seo);
  flex: 1;
  cursor: pointer;
  font: 700 15px var(--font);
  color: var(--onm);
  background: none;
  border: 1.5px solid var(--stroke);
  border-radius: 14px;
  padding: 6px 10px;
  transition: 0.2s;
  text-align: start;
  position: relative;
  overflow: hidden;
}

.wa-rd-tabs button.wa-rd-tab-seo {
  --c: var(--seo);
}

.wa-rd-tabs button.wa-rd-tab-aeo {
  --c: var(--aeo);
}

.wa-rd-tabs button.wa-rd-tab-geo {
  --c: var(--geo);
}

.wa-rd-tabs button small {
  display: block;
  font-weight: 400;
  font-size: 12.5px;
  opacity: 0.85;
  line-height: 1.5;
}

.wa-rd-tabs button::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--c);
  transform-origin: right;
  transform: scaleX(var(--f, 0));
}

.wa-rd-tabs button[aria-selected="true"] {
  background: color-mix(in srgb, var(--c) 18%, transparent);
  border-color: var(--c);
  color: #fff;
}

.wa-rd-tabs button::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c);
  margin-inline-end: 8px;
}

.wa-rd-page {
  --lc: var(--seo);
  position: relative;
  direction: ltr;
  aspect-ratio: 4 / 4.4;
  height: min(calc(100svh - 170px), 640px);
  max-width: 100%;
  margin-inline: auto;
  background: var(--stage2);
  border: 1.5px solid var(--stroke);
  border-radius: 16px;
  overflow: hidden;
}

.wa-rd-page[data-layer="aeo"] {
  --lc: var(--aeo);
}

.wa-rd-page[data-layer="geo"] {
  --lc: var(--geo);
}

.wa-rd-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0 23px,
    rgba(120, 130, 230, 0.07) 23px 24px
  );
}

.wa-rd-chrome {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 7%;
  border-bottom: 1.5px solid var(--stroke);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 3%;
}

.wa-rd-chrome b {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--stroke);
}

.wa-rd-chrome em {
  margin-left: auto;
  width: 34%;
  height: 42%;
  border-radius: 99px;
  background: var(--stroke);
  opacity: 0.5;
}

.wa-rd-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 7%;
  border-top: 1.5px solid var(--stroke);
  background: rgba(58, 65, 144, 0.18);
}

.wa-rd-el {
  position: absolute;
  border: 1.5px dashed var(--stroke);
  border-radius: 7px;
  transition: opacity 0.35s, border-color 0.35s, background 0.35s;
  background-image: linear-gradient(var(--stroke), var(--stroke));
  background-repeat: no-repeat;
}

.wa-rd-el.ln {
  background-image:
    linear-gradient(var(--stroke), var(--stroke)),
    linear-gradient(var(--stroke), var(--stroke)),
    linear-gradient(var(--stroke), var(--stroke));
  background-size: 80% 14%, 60% 14%, 70% 14%;
  background-position: 8% 18%, 8% 50%, 8% 82%;
}

.wa-rd-el.im {
  background-image:
    linear-gradient(135deg, transparent 48%, var(--stroke) 49% 51%, transparent 52%),
    linear-gradient(45deg, transparent 48%, var(--stroke) 49% 51%, transparent 52%);
  background-size: 100% 100%;
}

.wa-rd-el.mp {
  background-image: radial-gradient(circle, var(--stroke) 3px, transparent 4px);
  background-size: 100% 100%;
  background-position: center;
}

.wa-rd-el.bg {
  display: grid;
  place-items: center;
  color: var(--stroke);
  font: 700 20px monospace;
  background: none;
}

.wa-rd-el.bg::before {
  content: "{ }";
}

.wa-rd-el.bt {
  border-radius: 99px;
}

.wa-rd-page[data-layer="seo"] .wa-rd-el:not([data-l="seo"]),
.wa-rd-page[data-layer="aeo"] .wa-rd-el:not([data-l="aeo"]),
.wa-rd-page[data-layer="geo"] .wa-rd-el:not([data-l="geo"]) {
  opacity: 0.28;
}

.wa-rd-el.live {
  border: 1.5px solid var(--lc);
  background-color: color-mix(in srgb, var(--lc) 10%, transparent);
}

.wa-rd-el.hl {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

.wa-rd-pin {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 900 13px var(--font);
  color: #fff;
  transform: scale(0);
  transition: transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.wa-rd-el.on .wa-rd-pin {
  transform: scale(1);
}

.wa-rd-pin.pass {
  background: var(--pass);
}

.wa-rd-pin.warn {
  background: #c98100;
}

.wa-rd-pin.fail {
  background: var(--fail);
}

.wa-rd-beam {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--brand);
  box-shadow: 0 0 22px 6px rgba(255, 107, 0, 0.55);
  opacity: 0;
  z-index: 3;
}

/* ledger */
.wa-rd-ledger {
  background: var(--stage2);
  border: 1.5px solid var(--stroke);
  border-radius: 16px;
  padding: 22px;
}

.wa-rd-score {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.wa-rd-score strong {
  font-size: 68px;
  line-height: 1.1;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--lc, var(--seo));
}

.wa-rd-score span {
  color: var(--onm);
}

.wa-rd-state {
  color: var(--onm);
  font-size: 14px;
  margin-bottom: 6px;
  min-height: 26px;
}

.wa-rd-rows {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.wa-rd-rows li {
  padding: 12px 0;
  border-top: 1.5px solid var(--stroke);
  cursor: default;
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
}

.wa-rd-rows li:hover {
  background: rgba(255, 255, 255, 0.03);
}

.wa-rd-tag {
  align-self: start;
  text-align: center;
  font-weight: 700;
  font-size: 12.5px;
  border-radius: 7px;
  padding: 0 4px;
  margin-top: 3px;
}

.wa-rd-tag.pass {
  background: #12352f;
  color: #4fd18b;
}

.wa-rd-tag.warn {
  background: #3a2f1c;
  color: #f0b64a;
}

.wa-rd-tag.fail {
  background: #3e1c33;
  color: #ff7388;
}

.wa-rd-rows b {
  display: block;
  line-height: 1.6;
}

.wa-rd-rows small {
  color: var(--onm);
  font-size: 13.5px;
  line-height: 1.7;
  display: block;
}

@media (max-width: 900px) {
  .wa-rd-lab {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .wa-rd-page {
    height: 40svh;
  }

  .wa-rd-chap {
    font-size: 21px;
    min-height: 0;
    margin: 2px 0;
  }

  .wa-rd-chapt {
    min-height: 0;
    font-size: 14px;
    line-height: 1.7;
  }

  .wa-rd-rows li:not(:nth-last-child(-n + 2)) {
    display: none;
  }

  .wa-rd-ledger {
    padding: 14px;
  }

  .wa-rd-score strong {
    font-size: 40px;
  }

  .wa-rd-tabs button small {
    display: none;
  }

  .wa-rd-rows {
    margin-top: 6px;
  }
}

/* sections */
.wa-rd-section {
  padding: 80px 0;
}

.wa-rd h2 {
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.4;
  font-weight: 900;
  margin-bottom: 12px;
  color: var(--ink);
}

.wa-rd-sub {
  color: var(--muted);
  max-width: 58ch;
}

.wa-rd-ent-cta {
  margin-top: 20px;
}

.wa-rd-section--consult {
  padding-top: 0;
}

.wa-rd-ent {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 860px) {
  .wa-rd-ent {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.wa-rd-tbl-wrap {
  overflow-x: auto;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.wa-rd-tbl-wrap table {
  border-collapse: collapse;
  width: 100%;
  min-width: 480px;
}

.wa-rd-tbl-wrap th,
.wa-rd-tbl-wrap td {
  padding: 12px 18px;
  text-align: start;
  border-bottom: 1.5px solid var(--line);
}

.wa-rd-tbl-wrap tr:last-child td {
  border: 0;
}

.wa-rd-tbl-wrap th {
  font-weight: 700;
  color: var(--muted);
  font-size: 14px;
}

.wa-rd-tbl-wrap th:last-child,
.wa-rd-tbl-wrap td:last-child {
  background: color-mix(in srgb, var(--brand) 9%, transparent);
  font-weight: 700;
}

.wa-rd-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  padding: 0 0 80px;
}

@media (max-width: 860px) {
  .wa-rd-two {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.wa-rd details {
  border-bottom: 1.5px solid var(--line);
  padding: 16px 0;
}

.wa-rd summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
}

.wa-rd summary::-webkit-details-marker {
  display: none;
}

.wa-rd summary::after {
  content: "+";
  font-size: 22px;
  line-height: 1;
  color: var(--brand);
  transition: transform 0.2s;
}

.wa-rd details[open] summary::after {
  transform: rotate(45deg);
}

.wa-rd details p {
  color: var(--muted);
  margin-top: 8px;
}

.wa-rd-arts a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1.5px solid var(--line);
  font-weight: 500;
  color: var(--ink);
}

.wa-rd-arts a:hover {
  color: var(--brand-ink);
}

.wa-rd-arts a::after {
  content: "←";
  color: var(--brand);
  font-weight: 900;
}

.wa-rd-consult {
  background: var(--stage);
  color: var(--on);
  border-radius: 28px;
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.wa-rd-consult h2 {
  color: #fff;
}

.wa-rd-consult p {
  color: var(--onm);
}

.wa-rd-consult form {
  display: grid;
  gap: 12px;
}

.wa-rd-consult input {
  width: 100%;
  border: 1.5px solid var(--stroke);
  background: var(--stage2);
  color: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  font: 500 15px var(--font);
}

.wa-rd-consult input[type="tel"] {
  direction: ltr;
  text-align: left;
}

.wa-rd-consult input::placeholder {
  color: var(--onm);
}

.wa-rd-ok {
  color: #7fe3ae;
  font-weight: 700;
  min-height: 24px;
}

.wa-rd-ok.is-error {
  color: #ff8da0;
}

.wa-rd-hp {
  position: absolute;
  left: -9999px;
}

@media (max-width: 860px) {
  .wa-rd-consult {
    grid-template-columns: 1fr;
    padding: 30px 22px;
  }
}

.wa-rd-site-footer {
  padding: 20px 0 56px;
  color: var(--muted);
  font-size: 15px;
  background: var(--bg);
}

.wa-rd-fw {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.wa-rd-fw div {
  display: grid;
}

.wa-rd-fw b {
  color: var(--ink);
}

.wa-rd-fw a:hover {
  color: var(--brand-ink);
}

@media (prefers-reduced-motion: reduce) {
  .wa-rd *,
  .wa-rd *::before,
  .wa-rd *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
