/* Teyvorn User Guide — scoped styles; no framework overrides. */
.tug-page {
  --tug-ink: #12213c;
  --tug-muted: #64748b;
  --tug-line: #e2e8f0;
  --tug-soft: #f4f8ff;
  --tug-blue: #1769e8;
  --tug-blue-dark: #0e4fb8;
  --tug-cyan: #1ba6bb;
  --tug-shadow: 0 12px 34px rgba(18, 43, 83, .07);
  color: var(--tug-ink);
  background: #f7f9fc;
  padding: 28px clamp(14px, 3vw, 44px) 64px;
  min-height: 70vh;
  isolation: isolate;
}
.tug-page *, .tug-page *::before, .tug-page *::after { box-sizing: border-box; }
.tug-page a { text-decoration: none; }
.tug-hero {
  max-width: 1440px; margin: 0 auto 26px; min-height: 265px; overflow: hidden;
  position: relative; display: flex; align-items: center; justify-content: space-between;
  padding: clamp(28px, 5vw, 58px); border-radius: 24px;
  background: linear-gradient(112deg, #10203b 0%, #173a68 56%, #146f9a 100%);
  box-shadow: 0 18px 46px rgba(16, 40, 76, .15); color: #fff;
}
.tug-hero-copy { position: relative; z-index: 2; max-width: 690px; }
.tug-eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #b9e9f1; letter-spacing: .14em; font-size: .72rem; font-weight: 800; }
.tug-eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: #42d2c4; box-shadow: 0 0 0 5px rgba(66,210,196,.14); }
.tug-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 850; margin: 18px 0 12px; }
.tug-hero p { color: rgba(255,255,255,.8); font-size: clamp(.98rem, 1.3vw, 1.1rem); line-height: 1.75; max-width: 620px; margin: 0; }
.tug-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; margin-top: 25px; }
.tug-btn { display: inline-flex; align-items: center; justify-content: center; gap: 13px; min-height: 44px; border-radius: 11px; padding: 10px 17px; font-size: .9rem; font-weight: 750; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.tug-btn:hover { transform: translateY(-2px); }
.tug-btn-primary { color: #fff !important; background: linear-gradient(135deg, #237af4, #1260d4); box-shadow: 0 8px 18px rgba(12,93,210,.23); }
.tug-btn-primary:hover { color: #fff !important; box-shadow: 0 11px 22px rgba(12,93,210,.3); }
.tug-btn-light { color: #17345b !important; background: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.tug-hero-art { position: absolute; width: 390px; height: 280px; right: 5%; top: 50%; transform: translateY(-50%); opacity: .98; }
.tug-art-orbit { position: absolute; border: 1px solid rgba(190,235,255,.22); border-radius: 50%; transform: rotate(-24deg); }
.tug-art-orbit-one { width: 300px; height: 170px; top: 54px; left: 42px; }
.tug-art-orbit-two { width: 350px; height: 220px; top: 30px; left: 16px; transform: rotate(18deg); }
.tug-art-card { position: absolute; background: rgba(255,255,255,.96); border: 1px solid rgba(255,255,255,.65); box-shadow: 0 18px 42px rgba(4,16,39,.22); border-radius: 15px; padding: 18px; color: #17345b; }
.tug-art-card-main { width: 205px; height: 145px; top: 58px; left: 74px; transform: rotate(-7deg); }
.tug-art-card-small { width: 140px; height: 102px; top: 142px; left: 216px; transform: rotate(8deg); }
.tug-art-icon { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 9px; color: var(--tug-blue); background: #eaf2ff; font-size: 1.35rem; font-weight: 800; }
.tug-art-line { display: block; height: 7px; width: 68%; margin-top: 12px; border-radius: 9px; background: #dce5f2; }
.tug-art-line.long { width: 92%; margin-top: 15px; background: #bfd5f6; }
.tug-art-line.short { width: 44%; }
.tug-art-chip { display: inline-block; margin-top: 12px; color: #087e70; border-radius: 20px; background: #dff7f0; padding: 4px 9px; font-size: .6rem; font-weight: 800; }
.tug-art-pin { position: absolute; right: 25px; top: 42px; width: 38px; height: 38px; border-radius: 50% 50% 50% 8px; transform: rotate(-45deg); display: grid; place-items: center; color: #fff; background: #f5b83e; box-shadow: 0 8px 20px rgba(245,184,62,.35); font-size: 1.3rem; }
.tug-art-pin::first-letter { transform: rotate(45deg); }
.tug-art-spark { position: absolute; color: #9ce4ec; font-size: 1.7rem; }
.tug-art-spark-a { left: 26px; top: 37px; }.tug-art-spark-b { right: 59px; bottom: 27px; }

.tug-layout { max-width: 1440px; margin: auto; display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 24px; align-items: start; }
.tug-sidebar { position: sticky; top: 96px; }
.tug-sidebar-inner { background: #fff; border: 1px solid var(--tug-line); border-radius: 17px; padding: 18px 14px; box-shadow: var(--tug-shadow); }
.tug-sidebar-title { color: #8190a7; font-size: .68rem; font-weight: 850; letter-spacing: .12em; padding: 4px 10px 13px; }
.tug-toc { display: grid; gap: 4px; }
.tug-toc-link { display: grid; grid-template-columns: 29px minmax(0,1fr); gap: 9px; align-items: center; padding: 10px 9px; border-radius: 10px; color: #485a73; font-size: .82rem; line-height: 1.38; font-weight: 650; transition: background .15s, color .15s; }
.tug-toc-link:hover { color: var(--tug-blue); background: #f3f7ff; }
.tug-toc-link.is-active { color: #145ed0; background: #edf4ff; }
.tug-toc-number { color: #8494ac; font-size: .68rem; font-weight: 850; }
.tug-toc-link.is-active .tug-toc-number { color: var(--tug-blue); }
.tug-sidebar-help { border-radius: 13px; margin: 18px 2px 2px; padding: 15px; background: linear-gradient(145deg, #f0f6ff, #effafa); border: 1px solid #e1ebf8; }
.tug-help-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: #fff; background: var(--tug-blue); font-weight: 800; margin-bottom: 9px; }
.tug-sidebar-help strong { display: block; font-size: .88rem; }
.tug-sidebar-help p { color: #687b94; font-size: .75rem; line-height: 1.55; margin: 6px 0 10px; }
.tug-sidebar-help a { color: var(--tug-blue); font-size: .76rem; font-weight: 800; }

.tug-main { min-width: 0; display: grid; gap: 19px; }
.tug-section { scroll-margin-top: 105px; background: #fff; border: 1px solid var(--tug-line); border-radius: 18px; padding: clamp(20px, 3vw, 31px); box-shadow: var(--tug-shadow); }
.tug-section-head { display: grid; grid-template-columns: 47px minmax(0,1fr); gap: 14px; align-items: start; padding-bottom: 20px; border-bottom: 1px solid #edf1f6; }
.tug-section-number { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 13px; color: #1766dd; background: linear-gradient(145deg, #eaf2ff, #e8f8fa); font-size: .85rem; font-weight: 900; }
.tug-section-head h2 { margin: 0 0 6px; color: var(--tug-ink); font-size: clamp(1.25rem, 2.1vw, 1.55rem); letter-spacing: -.025em; font-weight: 850; line-height: 1.25; }
.tug-section-head p { margin: 0; color: var(--tug-muted); font-size: .91rem; line-height: 1.65; max-width: 850px; }
.tug-steps { display: grid; gap: 0; padding-top: 10px; }
.tug-step { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 13px; padding: 15px 2px; }
.tug-step + .tug-step { border-top: 1px dashed #e9eef5; }
.tug-step-marker { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: #eff5ff; color: var(--tug-blue); font-size: .73rem; font-weight: 900; margin-top: 1px; }
.tug-step h3 { margin: 0 0 5px; font-size: .98rem; font-weight: 800; color: #1d3557; }
.tug-step p { margin: 0; color: #596b83; line-height: 1.72; font-size: .87rem; }
.tug-callout { display: grid; grid-template-columns: 29px minmax(0,1fr); gap: 11px; margin-top: 14px; padding: 14px 16px; border-radius: 12px; border: 1px solid #d9eafa; background: #f3f8ff; }
.tug-callout-icon { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 9px; background: #e2efff; color: #1766dd; font-weight: 900; }
.tug-callout strong { display: block; color: #244a79; font-size: .82rem; margin: 2px 0 4px; }
.tug-callout p { color: #596f8d; font-size: .82rem; line-height: 1.65; margin: 0; }
.tug-callout-warning { background: #fff9eb; border-color: #f4e1b8; }
.tug-callout-warning .tug-callout-icon { background: #ffefc8; color: #a36500; }
.tug-callout-warning strong { color: #865300; }
.tug-callout-warning p { color: #755d36; }
.tug-screens-block { margin-top: 23px; }
.tug-screens-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; color: #7c8ca2; font-size: .68rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.tug-screens-heading i { height: 1px; flex: 1; background: #e9eef5; }
.tug-screenshot-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.tug-screenshot { min-width: 0; margin: 0; border: 1px solid #e4eaf2; border-radius: 12px; overflow: hidden; background: #fbfcfe; }
.tug-screenshot a { display: block; position: relative; background: #f1f4f8; overflow: hidden; }
.tug-screenshot img { display: block; width: 100%; max-height: 400px; object-fit: contain; transition: transform .25s ease; }
.tug-screenshot a:hover img { transform: scale(1.015); }
.tug-zoom-mark { position: absolute; inset-inline-end: 10px; top: 10px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: rgba(17,35,63,.78); color: #fff; font-size: .9rem; opacity: 0; transition: opacity .2s; }
.tug-screenshot a:hover .tug-zoom-mark { opacity: 1; }
.tug-screenshot figcaption { padding: 9px 11px; color: #6b7d94; font-size: .72rem; line-height: 1.45; }
.tug-screenshot-grid.single-shot { grid-template-columns: minmax(0,1fr); }
.tug-screenshot-grid.single-shot .tug-screenshot { max-width: 780px; }
.tug-screenshot-grid.single-shot img { max-height: 490px; }

.tug-plan-intro { margin-top: 24px; }
.tug-plan-intro h3 { margin: 0 0 5px; font-size: 1.05rem; font-weight: 850; }
.tug-plan-intro p { margin: 0; color: var(--tug-muted); font-size: .83rem; line-height: 1.6; }
.tug-plan-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 14px; }
.tug-plan-card { min-width: 0; border: 1px solid #dfe7f1; border-radius: 14px; padding: 15px; background: #fff; }
.tug-plan-card.plan-silver { border-color: #b9d8fc; background: linear-gradient(180deg,#f6faff,#fff 38%); }
.tug-plan-card.plan-business { border-color: #f0d18b; background: linear-gradient(180deg,#fffaf0,#fff 38%); }
.tug-plan-top { display: flex; justify-content: space-between; gap: 8px; align-items: start; min-height: 84px; }
.tug-plan-top h4 { margin: 0 0 5px; font-size: 1.12rem; font-weight: 900; }
.tug-plan-top p { margin: 0; color: #718198; font-size: .72rem; line-height: 1.45; }
.tug-plan-price { text-align: end; flex: 0 0 auto; }
.tug-plan-price strong { display: block; color: #164d9e; font-size: 1.04rem; white-space: nowrap; }
.plan-business .tug-plan-price strong { color: #986000; }
.tug-plan-price small { display: block; color: #8895a7; font-size: .62rem; }
.tug-plan-status { display: flex; align-items: center; gap: 7px; padding: 8px 0; border-top: 1px solid #edf1f5; border-bottom: 1px solid #edf1f5; font-size: .68rem; font-weight: 800; color: #53657d; }
.tug-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #16a36a; }
.plan-silver .tug-status-dot,.plan-business .tug-status-dot { background: #d69a28; }
.tug-plan-facts { margin: 9px 0; }
.tug-plan-facts div { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid #f0f3f7; font-size: .7rem; }
.tug-plan-facts dt { color: #6a7a90; }
.tug-plan-facts dd { margin: 0; color: #1b3558; font-weight: 850; text-align: end; }
.tug-plan-features { margin: 10px 0 0; padding-inline-start: 17px; color: #64748b; font-size: .69rem; line-height: 1.55; }
.tug-plan-features li { margin: 5px 0; }
.tug-bottom-cta { display: flex; align-items: center; gap: 15px; padding: 22px; border-radius: 17px; color: #fff; background: linear-gradient(110deg,#11223f,#1d5688); box-shadow: var(--tug-shadow); }
.tug-bottom-mark { display: grid; place-items: center; width: 43px; height: 43px; flex: 0 0 43px; border-radius: 13px; color: #fff; background: rgba(255,255,255,.15); font-size: 1.5rem; font-weight: 900; }
.tug-bottom-cta div { flex: 1; min-width: 0; }
.tug-bottom-cta h2 { margin: 0 0 4px; color: #fff; font-size: 1rem; }
.tug-bottom-cta p { margin: 0; color: rgba(255,255,255,.72); font-size: .78rem; line-height: 1.5; }
.tug-bottom-cta .tug-btn { flex: 0 0 auto; }
.tug-back-top { display: flex; justify-content: flex-end; }
.tug-back-top a { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; background: #fff; border: 1px solid var(--tug-line); color: var(--tug-blue); font-size: 1.2rem; }

[dir="rtl"] .tug-page { text-align: right; }
[dir="rtl"] .tug-hero-art { right: auto; left: 5%; }
[dir="rtl"] .tug-eyebrow { letter-spacing: 0; }
[dir="rtl"] .tug-plan-price { text-align: start; }
[dir="rtl"] .tug-plan-facts dd { text-align: start; }
[dir="rtl"] .tug-art-card-main { transform: rotate(7deg); }
[dir="rtl"] .tug-art-card-small { transform: rotate(-8deg); }

@media (max-width: 1080px) {
  .tug-layout { grid-template-columns: 225px minmax(0,1fr); gap: 16px; }
  .tug-plan-grid { grid-template-columns: 1fr; }
  .tug-plan-top { min-height: auto; }
  .tug-hero-art { right: -4%; opacity: .62; }
}
@media (max-width: 760px) {
  .tug-page { padding: 14px 11px 38px; }
  .tug-hero { min-height: auto; padding: 27px 22px; border-radius: 17px; margin-bottom: 13px; }
  .tug-hero-art { display: none; }
  .tug-hero h1 { font-size: 1.9rem; max-width: 95%; }
  .tug-hero p { font-size: .88rem; }
  .tug-hero-actions { gap: 8px; }
  .tug-btn { min-height: 41px; padding: 9px 12px; font-size: .78rem; }
  .tug-layout { display: flex; flex-direction: column; gap: 13px; }
  .tug-sidebar { position: static; width: 100%; }
  .tug-sidebar-inner { padding: 12px; border-radius: 13px; }
  .tug-sidebar-title { padding: 2px 5px 9px; }
  .tug-toc { display: flex; overflow-x: auto; gap: 7px; padding-bottom: 3px; scrollbar-width: thin; }
  .tug-toc-link { display: flex; flex: 0 0 auto; max-width: 220px; padding: 8px 10px; border: 1px solid #eaf0f7; background: #fbfcfe; font-size: .72rem; }
  .tug-toc-number { flex: 0 0 auto; }
  .tug-sidebar-help { display: none; }
  .tug-main { width: 100%; gap: 13px; }
  .tug-section { padding: 17px 14px; border-radius: 14px; scroll-margin-top: 15px; }
  .tug-section-head { grid-template-columns: 36px minmax(0,1fr); gap: 10px; padding-bottom: 14px; }
  .tug-section-number { width: 34px; height: 34px; border-radius: 10px; font-size: .73rem; }
  .tug-section-head h2 { font-size: 1.12rem; }
  .tug-section-head p { font-size: .8rem; }
  .tug-step { grid-template-columns: 25px minmax(0,1fr); gap: 9px; padding: 12px 0; }
  .tug-step-marker { width: 24px; height: 24px; font-size: .68rem; }
  .tug-step h3 { font-size: .88rem; }
  .tug-step p { font-size: .79rem; line-height: 1.65; }
  .tug-callout { padding: 11px; }
  .tug-callout p { font-size: .76rem; }
  .tug-screenshot-grid { grid-template-columns: minmax(0,1fr); }
  .tug-screenshot img { max-height: 380px; }
  .tug-bottom-cta { align-items: flex-start; flex-wrap: wrap; padding: 17px; }
  .tug-bottom-cta div { flex-basis: calc(100% - 60px); }
  .tug-bottom-cta .tug-btn { margin-inline-start: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  .tug-page *, .tug-page *::before, .tug-page *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
