/* Alex Kap Guides — shared editorial/product design system */
:root {
  --guide-bg: #f3f6fa;
  --guide-paper: #ffffff;
  --guide-ink: #0a1729;
  --guide-muted: #5b6879;
  --guide-line: rgba(10, 23, 41, 0.11);
  --guide-blue: #2f78ff;
  --guide-cyan: #8ad8ff;
  --guide-mint: #bdf6dd;
  --guide-navy: #081a39;
  --guide-navy-2: #0d2a58;
  --guide-warm: #fff4d9;
  --guide-danger: #c14f4f;
  --guide-green: #137c58;
  --guide-max: 1180px;
  --guide-reading: 850px;
  --guide-radius: 28px;
  --guide-shadow: 0 22px 70px rgba(8, 26, 57, 0.11);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--guide-bg);
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(10, 23, 41, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 23, 41, 0.025) 1px, transparent 1px),
    var(--guide-bg);
  background-size: 48px 48px;
  color: var(--guide-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

[dir="rtl"] body {
  font-family: Arial, "Segoe UI", system-ui, sans-serif;
  line-height: 1.82;
}

::selection { background: var(--guide-cyan); color: var(--guide-navy); }

.container {
  width: min(calc(100% - 48px), var(--guide-max));
  margin-inline: auto;
}

a {
  color: var(--guide-blue);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 0.08em;
}

header {
  position: sticky;
  inset-block-start: 0;
  z-index: 50;
  border: 0;
  border-block-end: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 26, 57, 0.88);
  color: #fff;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.22em;
  color: #fff !important;
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: -0.035em;
  text-decoration: none;
  direction: ltr;
}

.logo::after {
  content: "AI FOR BUSINESS & LIFE";
  margin-inline-start: 12px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.logo span { color: var(--guide-cyan) !important; }

.navlinks,
.links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a:not(.logo),
.navlinks a,
.links a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 0.86rem;
  font-weight: 760;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.nav a:not(.logo):hover,
.navlinks a:hover,
.links a:hover,
.nav a:not(.logo):focus-visible,
.navlinks a:focus-visible,
.links a:focus-visible {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
  outline: none;
}

.reading-progress {
  position: absolute;
  inset-inline: 0;
  inset-block-end: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.reading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--guide-cyan), var(--guide-mint));
  transform: scaleX(0);
  transform-origin: left center;
}

[dir="rtl"] .reading-progress span { transform-origin: right center; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 650px;
  display: grid;
  align-items: center;
  padding: clamp(72px, 9vw, 126px) 0 clamp(80px, 10vw, 134px);
  background:
    radial-gradient(circle at 12% 18%, rgba(47, 120, 255, 0.32), transparent 27%),
    radial-gradient(circle at 88% 76%, rgba(138, 216, 255, 0.17), transparent 28%),
    linear-gradient(135deg, var(--guide-navy-2), var(--guide-navy) 56%, #06142d);
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-block-start: -360px;
  inset-inline-start: -270px;
  width: 720px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 82px rgba(255, 255, 255, 0.022),
    0 0 0 164px rgba(255, 255, 255, 0.018),
    0 0 0 246px rgba(255, 255, 255, 0.014);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.13;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.75) 0.7px, transparent 0.8px);
  background-size: 18px 18px;
  mask-image: linear-gradient(90deg, transparent, #000 68%, transparent);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, 0.75fr);
  align-items: center;
  gap: clamp(42px, 7vw, 92px);
}

.hero-copy { min-width: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-block-end: 22px;
  color: var(--guide-mint) !important;
  font-size: 0.76rem;
  font-weight: 880;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--guide-mint);
  box-shadow: 0 0 0 6px rgba(189, 246, 221, 0.12), 0 0 20px rgba(189, 246, 221, 0.6);
}

.hero h1,
h1 {
  max-width: 940px;
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 6.6vw, 6.15rem);
  font-weight: 880;
  letter-spacing: -0.065em;
  line-height: 0.94;
  text-wrap: balance;
}

[dir="rtl"] .hero h1,
[dir="rtl"] h1 {
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.lead {
  max-width: 790px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.74) !important;
  font-size: clamp(1.07rem, 1.65vw, 1.32rem);
  line-height: 1.68;
  text-wrap: pretty;
}

.meta {
  display: inline-flex;
  align-items: center;
  margin: 27px 0 0;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.58) !important;
  font-size: 0.79rem;
  line-height: 1.4;
}

.hero-visual {
  position: relative;
  min-height: 410px;
  display: grid;
  align-items: center;
  justify-items: center;
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  width: 78%;
  height: 84%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.045);
  transform: rotate(-8deg) translate(-18px, 12px);
}

.hero-visual::after {
  transform: rotate(7deg) translate(20px, 4px);
  background: rgba(138, 216, 255, 0.06);
}

.artifact-card {
  position: relative;
  z-index: 2;
  width: min(100%, 390px);
  min-height: 350px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 27px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 36px 90px rgba(0, 6, 24, 0.34);
  color: var(--guide-ink);
  transform: rotate(-2deg);
}

.artifact-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block-end: 18px;
  border-block-end: 1px dashed rgba(10, 23, 41, 0.19);
  color: #667386;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.artifact-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #e7f3ff;
  color: var(--guide-blue);
  font-size: 1.35rem;
  font-weight: 900;
}

.artifact-title {
  margin: 34px 0 auto;
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
  font-weight: 860;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

[dir="rtl"] .artifact-title { letter-spacing: -0.025em; }

.artifact-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-block-start: 30px;
}

.artifact-stat {
  min-height: 82px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 13px;
  border-radius: 14px;
  background: #eff6ff;
}

.artifact-stat:last-child { background: #e8fbf3; }
.artifact-stat b { font-size: 1.32rem; line-height: 1; }
.artifact-stat span { color: #687687; font-size: 0.68rem; font-weight: 770; text-transform: uppercase; }

.article {
  width: min(calc(100% - 48px), var(--guide-reading));
  padding: clamp(62px, 8vw, 110px) 0 110px;
  font-size: 1.075rem;
  line-height: 1.82;
}

.article > *:first-child { margin-block-start: 0; }

.article p { margin: 1.05em 0; text-wrap: pretty; }

.article h2 {
  margin: 0;
  color: var(--guide-ink);
  font-size: clamp(2rem, 4.5vw, 3.35rem);
  font-weight: 860;
  letter-spacing: -0.052em;
  line-height: 1.05;
  text-wrap: balance;
}

[dir="rtl"] .article h2 { letter-spacing: -0.025em; line-height: 1.16; }

.article h3 {
  margin: 42px 0 14px;
  color: var(--guide-ink);
  font-size: clamp(1.22rem, 2vw, 1.5rem);
  font-weight: 820;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.section-kicker {
  display: block;
  margin-block-end: 16px;
  color: var(--guide-blue);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.guide-intro,
.guide-section {
  position: relative;
  margin-block-end: 26px;
}

.guide-section {
  padding: clamp(34px, 5vw, 55px);
  border: 1px solid var(--guide-line);
  border-radius: var(--guide-radius);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 38px rgba(8, 26, 57, 0.045);
}

.guide-section:nth-of-type(even) {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(238, 246, 255, 0.92));
}

.guide-section:has(.prompt) {
  width: min(100vw - 48px, 990px);
  margin-inline: calc((min(100vw - 48px, 990px) - 100%) / -2);
}

.box,
.quick > div,
.method > div,
.example,
.warning,
.toc {
  position: relative;
  overflow: hidden;
  padding: 24px 26px;
  border: 1px solid var(--guide-line);
  border-radius: 20px;
  background: var(--guide-paper);
  box-shadow: 0 12px 38px rgba(8, 26, 57, 0.055);
}

.box { margin: 24px 0; border-inline-start: 4px solid var(--guide-blue); }
.box::after {
  content: "";
  position: absolute;
  inset-block-start: -35px;
  inset-inline-end: -35px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(47, 120, 255, 0.075);
}
.box strong { display: block; margin-block-end: 8px; font-size: 1.05rem; }

.quick,
.method {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.method { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quick b,
.method b { display: block; margin-block-end: 7px; color: var(--guide-ink); }
.quick span,
.method span { color: var(--guide-muted); font-size: 0.94rem; line-height: 1.55; }
.quick > div:nth-child(2n),
.method > div:nth-child(2n) { background: #eef6ff; }
.quick > div:nth-child(3n) { background: #eafbf4; }

.steps {
  list-style: none;
  padding: 0;
  counter-reset: premium-steps;
}

.steps li {
  position: relative;
  min-height: 68px;
  margin: 14px 0;
  padding: 19px 20px 19px 76px;
  border: 1px solid var(--guide-line);
  border-radius: 18px;
  background: #fff;
  counter-increment: premium-steps;
}

[dir="rtl"] .steps li { padding: 19px 76px 19px 20px; }

.steps li::before {
  content: counter(premium-steps, decimal-leading-zero);
  position: absolute;
  inset-block-start: 15px;
  inset-inline-start: 16px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--guide-navy);
  color: var(--guide-cyan);
  font-size: 0.76rem;
  font-weight: 900;
}

.step {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  margin-inline-end: 11px;
  border-radius: 13px;
  background: var(--guide-blue);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 900;
  vertical-align: 0.18em;
  box-shadow: 0 10px 24px rgba(47, 120, 255, 0.24);
}

.prompt {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 25px 0;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(138, 216, 255, 0.2);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0, rgba(47, 120, 255, 0.22), transparent 34%),
    #07172f;
  box-shadow: 0 24px 60px rgba(8, 26, 57, 0.19);
  color: #eef7ff;
  direction: inherit;
}

.prompt::before {
  content: attr(data-label);
  order: -3;
  margin-block-end: 16px;
  color: var(--guide-cyan);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.prompt::after {
  content: "";
  position: absolute;
  inset-block-start: 28px;
  inset-inline-end: 27px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--guide-mint);
  box-shadow: 0 0 0 6px rgba(189, 246, 221, 0.1), 0 0 18px rgba(189, 246, 221, 0.5);
}

.prompt pre {
  order: 2;
  max-height: 570px;
  margin: 2px 0 0;
  padding: 22px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  color: #edf6ff;
  font: 500 0.91rem/1.72 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-word;
  direction: inherit;
  text-align: start;
  scrollbar-color: rgba(138, 216, 255, 0.5) transparent;
}

[dir="rtl"] .prompt pre {
  font-family: Arial, "Segoe UI", sans-serif;
  font-size: 0.98rem;
}

.copy {
  order: -2;
  align-self: flex-start;
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: #fff;
  color: var(--guide-navy);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 860;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.copy::before { content: "▣"; color: var(--guide-blue); font-size: 0.9rem; }
.copy:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18); }
.copy:focus-visible { outline: 3px solid var(--guide-cyan); outline-offset: 3px; }
.copy.is-copied { background: var(--guide-mint); }
.copy.is-copied::before { content: "✓"; color: var(--guide-green); }

.check {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.check li {
  position: relative;
  min-height: 50px;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 13px 16px 13px 54px;
  border: 1px solid var(--guide-line);
  border-radius: 14px;
  background: #fff;
}

[dir="rtl"] .check li { padding: 13px 54px 13px 16px; }

.check li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 15px;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #e3f8ef;
  color: var(--guide-green);
  font-size: 0.82rem;
  font-weight: 900;
}

.warning {
  border-color: #efd490;
  border-inline-start: 4px solid #e7a520;
  background: var(--guide-warm);
}

.example { border-inline-start: 4px solid var(--guide-mint); }
.toc { background: #eef6ff; }
.toc a { font-weight: 750; }

.tablewrap {
  margin: 24px 0;
  overflow: auto;
  border: 1px solid var(--guide-line);
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 14px 44px rgba(8, 26, 57, 0.065);
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.91rem;
  line-height: 1.55;
}

th,
td {
  padding: 16px 18px;
  border-block-end: 1px solid var(--guide-line);
  text-align: start;
  vertical-align: top;
}

th {
  background: var(--guide-navy);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

tbody tr:nth-child(even) { background: #f5f8fc; }
tbody tr:last-child td { border-block-end: 0; }
.good { color: var(--guide-green); font-weight: 850; }
.bad { color: var(--guide-danger); font-weight: 850; }

.source {
  margin-block: 24px !important;
  padding: 17px 19px;
  border-radius: 15px;
  background: rgba(47, 120, 255, 0.07);
  color: var(--guide-muted) !important;
  font-size: 0.87rem !important;
  line-height: 1.62;
}

.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-block-start: 52px;
  padding: clamp(30px, 5vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--guide-radius);
  background:
    radial-gradient(circle at 100% 0, rgba(138, 216, 255, 0.22), transparent 35%),
    var(--guide-navy);
  box-shadow: var(--guide-shadow);
  color: #fff;
}

.cta::before {
  content: attr(data-label);
  display: block;
  margin-block-end: 12px;
  color: var(--guide-mint);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cta::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset-inline-end: -75px;
  inset-block-end: -115px;
  width: 270px;
  height: 270px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 45px rgba(255, 255, 255, 0.028), 0 0 0 90px rgba(255, 255, 255, 0.018);
}

.cta strong { display: block; max-width: 620px; font-size: clamp(1.45rem, 3vw, 2.15rem); line-height: 1.15; }
.cta p { max-width: 590px; color: rgba(255, 255, 255, 0.7); }
.cta a {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  margin: 7px 6px 0 0;
  padding: 0 16px;
  border-radius: 12px;
  background: #fff;
  color: var(--guide-navy);
  font-size: 0.84rem;
  font-weight: 860;
  text-decoration: none;
}
[dir="rtl"] .cta a { margin: 7px 0 0 6px; }
.cta a:hover { background: var(--guide-mint); }

footer {
  padding: 42px 0;
  border: 0;
  background: #06142d;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.86rem;
}

footer a { color: rgba(255, 255, 255, 0.8); }

/* Guide library / hub */
.guide-hub .hero { min-height: 610px; }
.guide-hub .hero h1 {
  max-width: 820px;
  font-size: clamp(3rem, 5.4vw, 5.25rem);
}
.guide-hub main > section:not(.hero) { padding: clamp(60px, 8vw, 96px) 0; }
.guide-hub main > section.soft { background: #e8eef7; }

.guide-hub h2 {
  margin: 0 0 32px;
  color: var(--guide-ink);
  font-size: clamp(2rem, 4.7vw, 3.65rem);
  font-weight: 860;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

[dir="rtl"] .guide-hub h2 { letter-spacing: -0.025em; line-height: 1.13; }

.guide-hub .grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.guide-hub .card {
  position: relative;
  min-height: 285px;
  display: flex;
  flex-direction: column;
  grid-column: span 2;
  padding: 27px;
  overflow: hidden;
  border: 1px solid var(--guide-line);
  border-radius: 23px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 44px rgba(8, 26, 57, 0.065);
  color: var(--guide-ink);
  text-decoration: none;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.guide-hub .card:nth-child(1),
.guide-hub .card:nth-child(2) { grid-column: span 3; min-height: 330px; }

.guide-hub .card::before {
  content: attr(data-number);
  position: absolute;
  inset-block-start: 20px;
  inset-inline-end: 22px;
  color: rgba(47, 120, 255, 0.17);
  font-size: 2.5rem;
  font-weight: 920;
  letter-spacing: -0.08em;
  line-height: 1;
}

.guide-hub .card::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--guide-blue), var(--guide-cyan), var(--guide-mint));
  transform: scaleX(0.24);
  transform-origin: left;
  transition: transform 220ms ease;
}

[dir="rtl"] .guide-hub .card::after { transform-origin: right; }
.guide-hub .card:hover { transform: translateY(-5px); border-color: rgba(47, 120, 255, 0.35); box-shadow: var(--guide-shadow); }
.guide-hub .card:hover::after { transform: scaleX(1); }
.guide-hub .card:focus-visible { outline: 3px solid var(--guide-blue); outline-offset: 3px; }
.guide-hub .tag { display: block; margin-block-end: 26px; color: var(--guide-blue); font-size: 0.7rem; font-weight: 900; letter-spacing: 0.1em; }
.guide-hub .card b { display: block; max-width: 92%; font-size: clamp(1.23rem, 2vw, 1.6rem); line-height: 1.18; letter-spacing: -0.025em; }
.guide-hub .card span:not(.tag) { display: block; margin-block-start: 12px; color: var(--guide-muted); font-size: 0.93rem; line-height: 1.57; }
.guide-hub .card em { display: block; margin-block-start: auto; padding-block-start: 24px; color: var(--guide-blue); font-size: 0.84rem; font-style: normal; font-weight: 850; }
.guide-hub .note { max-width: 840px; color: var(--guide-muted); font-size: 1.12rem; line-height: 1.75; }

.guide-hub .artifact-card { transform: rotate(2deg); }
.guide-hub .artifact-title { font-size: 2.25rem; }
.hub-bars { display: grid; gap: 9px; margin-block-start: 28px; }
.hub-bars span { height: 10px; border-radius: 999px; background: #e9eff7; }
.hub-bars span:nth-child(1) { width: 92%; background: #dcebff; }
.hub-bars span:nth-child(2) { width: 70%; }
.hub-bars span:nth-child(3) { width: 82%; background: #e2f8ef; }

.is-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.is-reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero { min-height: auto; }
  .hero-layout { grid-template-columns: 1fr; }
  .hero-copy { max-width: 830px; }
  .hero-visual { min-height: 330px; }
  .artifact-card { min-height: 300px; }
  .guide-hub .card,
  .guide-hub .card:nth-child(1),
  .guide-hub .card:nth-child(2) { grid-column: span 3; }
}

@media (max-width: 720px) {
  .container,
  .article { width: min(calc(100% - 28px), var(--guide-max)); }
  .nav { min-height: 66px; }
  .logo::after { display: none; }
  .nav a:not(.logo),
  .navlinks a,
  .links a { min-height: 38px; padding-inline: 10px; font-size: 0.78rem; }
  .navlinks a:first-child,
  .links > a:not(.contact):first-child { display: none; }
  .hero { padding: 58px 0 70px; }
  .hero-layout { gap: 38px; }
  .hero h1,
  h1 { font-size: clamp(2.65rem, 14vw, 4.45rem); line-height: 0.97; }
  [dir="rtl"] .hero h1,
  [dir="rtl"] h1 { line-height: 1.05; }
  .lead { margin-block-start: 22px; font-size: 1.03rem; line-height: 1.6; }
  .meta { align-items: flex-start; border-radius: 14px; }
  .hero-visual { min-height: 300px; }
  .artifact-card { width: min(90%, 360px); min-height: 278px; padding: 22px; }
  .artifact-title { margin-block-start: 24px; }
  .article { padding: 54px 0 78px; font-size: 1rem; }
  .guide-section { padding: 28px 21px; border-radius: 22px; }
  .guide-section:has(.prompt) { width: 100%; margin-inline: 0; }
  .article h2 { font-size: clamp(1.78rem, 9vw, 2.45rem); }
  .quick,
  .method { grid-template-columns: 1fr; }
  .prompt { margin-inline: -7px; padding: 17px; border-radius: 18px; }
  .prompt pre { max-height: 520px; padding: 17px; font-size: 0.81rem; }
  [dir="rtl"] .prompt pre { font-size: 0.92rem; }
  .copy { width: calc(100% - 28px); justify-content: center; }
  .prompt::after { inset-block-start: 26px; inset-inline-end: 22px; }
  .tablewrap { margin-inline: -7px; }
  .cta { padding: 29px 23px; }
  .guide-hub .grid { grid-template-columns: 1fr; }
  .guide-hub .card,
  .guide-hub .card:nth-child(1),
  .guide-hub .card:nth-child(2) { min-height: 250px; grid-column: auto; }
  .guide-hub main > section:not(.hero) { padding: 56px 0; }
}

@media (max-width: 460px) {
  .navlinks a:not(:last-child),
  .links a:not(.contact),
  .nav > a:not(.logo):not(:last-child) { display: none; }
  .hero-visual::before,
  .hero-visual::after { width: 72%; height: 75%; }
  .artifact-top { font-size: 0.61rem; }
  .artifact-mark { width: 38px; height: 38px; }
  .artifact-stats { grid-template-columns: 1fr 1fr; }
  .artifact-stat { min-height: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .is-reveal { opacity: 1; transform: none; }
}

@media print {
  header, .reading-progress, .hero-visual, .copy { display: none !important; }
  body { background: #fff; color: #000; }
  .hero { min-height: auto; padding: 36px 0; background: #fff; color: #000; }
  .hero h1, .lead, .meta { color: #000 !important; }
  .guide-section, .prompt, .cta { break-inside: avoid; box-shadow: none; }
  .prompt { background: #f3f3f3; color: #000; }
  .prompt pre { max-height: none; background: #fff; color: #000; }
}
