:root {
  --ip-bg: #f7f3ed;
  --ip-surface: #ffffff;
  --ip-ink: #211711;
  --ip-ink-soft: #4b3a2e;
  --ip-muted: #75675b;
  --ip-orange: #ff7300;
  --ip-orange-2: #ff9500;
  --ip-gold: #ffb347;
  --ip-brown: #2a1508;
  --ip-line: rgba(44, 26, 12, 0.11);
  --ip-line-strong: rgba(44, 26, 12, 0.18);
  --ip-radius: 22px;
  --ip-shadow: 0 24px 70px rgba(74, 38, 10, 0.12);
  --ip-font: "Manrope", "Segoe UI", sans-serif;
  --ip-display: "Sora", "Manrope", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(900px 520px at 8% -8%, rgba(255, 149, 0, 0.15), transparent 62%),
    radial-gradient(800px 500px at 100% 0%, rgba(255, 115, 0, 0.10), transparent 58%),
    var(--ip-bg);
  color: var(--ip-ink);
  font-family: var(--ip-font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(255, 149, 0, 0.28);
}

a {
  color: var(--ip-orange);
}

img {
  max-width: 100%;
}

.ip-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  width: 100%;
  height: 3px;
  background: transparent;
  pointer-events: none;
}

.ip-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--ip-orange), var(--ip-gold));
  box-shadow: 0 0 18px rgba(255, 149, 0, 0.5);
}

.ip-header {
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid transparent;
  background: rgba(247, 243, 237, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ip-header.is-scrolled {
  border-bottom-color: var(--ip-line);
  box-shadow: 0 10px 30px rgba(61, 32, 10, 0.06);
}

.ip-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
}

.ip-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ip-ink);
  font-family: var(--ip-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
}

.ip-brand em {
  color: var(--ip-orange);
  font-style: normal;
}

.ip-brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(90, 40, 4, 0.16);
  overflow: hidden;
}

.ip-brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ip-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.ip-nav a {
  position: relative;
  color: var(--ip-muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ip-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  border-radius: 2px;
  background: var(--ip-orange);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.ip-nav a:hover,
.ip-nav a.is-active {
  color: var(--ip-ink);
}

.ip-nav a:hover::after,
.ip-nav a.is-active::after {
  transform: scaleX(1);
}

.ip-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: var(--ip-font);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.ip-btn:hover {
  transform: translateY(-1px);
}

.ip-btn-primary {
  background: linear-gradient(135deg, var(--ip-orange), var(--ip-orange-2));
  color: #fff;
  box-shadow: 0 12px 26px rgba(255, 115, 0, 0.26);
}

.ip-btn-primary:hover {
  color: #fff;
  box-shadow: 0 16px 34px rgba(255, 115, 0, 0.32);
}

.ip-btn-ghost {
  border-color: var(--ip-line-strong);
  background: rgba(255, 255, 255, 0.6);
  color: var(--ip-ink);
}

.ip-btn-ghost:hover {
  background: #fff;
}

.ip-hero {
  position: relative;
  overflow: hidden;
  padding: 66px 0 74px;
  color: #fff;
  background:
    linear-gradient(112deg, rgba(61, 22, 0, 0.38) 0%, rgba(61, 22, 0, 0.10) 58%, rgba(61, 22, 0, 0) 100%),
    linear-gradient(128deg, #ff6b00 0%, #ff8a00 48%, #ffad2f 100%);
  isolation: isolate;
}

.ip-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../img/banners/circle.png") center / cover no-repeat;
  opacity: 0.16;
  mix-blend-mode: screen;
}

.ip-hero::after {
  content: "";
  position: absolute;
  right: -180px;
  bottom: -260px;
  z-index: -1;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.20), transparent 66%);
}

.ip-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: 46px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.ip-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ip-hero h1 {
  max-width: 720px;
  margin: 20px 0 14px;
  font-family: var(--ip-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.ip-hero h1 span {
  color: #fff3d6;
}

.ip-hero-copy > p {
  max-width: 660px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16.5px;
  line-height: 1.65;
}

.ip-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 700;
}

.ip-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.ip-hero-panel {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  background: rgba(72, 27, 2, 0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 26px 60px rgba(84, 32, 0, 0.22);
}

.ip-hero-panel-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 13px;
  background: #fff;
  color: var(--ip-orange);
  font-size: 19px;
}

.ip-hero-panel h2 {
  margin: 0 0 5px;
  font-family: var(--ip-display);
  font-size: 16px;
  font-weight: 700;
}

.ip-hero-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.55;
}

.ip-reader {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.ip-reader-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ip-reader-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  font-family: var(--ip-font);
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.ip-reader-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.ip-reader-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.ip-reader-btn.is-primary {
  border-color: #fff;
  background: #fff;
  color: #8a3300;
}

.ip-reader-status {
  min-height: 16px;
  margin: 9px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  font-weight: 600;
}

.ip-layout {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  align-items: start;
  gap: 32px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 80px;
}

.ip-toc {
  position: sticky;
  top: 100px;
  padding: 20px;
  border: 1px solid var(--ip-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 40px rgba(74, 38, 10, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ip-toc-title {
  margin: 0 0 12px;
  color: var(--ip-ink);
  font-family: var(--ip-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ip-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ip-toc li + li {
  margin-top: 2px;
}

.ip-toc a {
  display: block;
  padding: 7px 9px;
  border-left: 2px solid transparent;
  border-radius: 0 8px 8px 0;
  color: var(--ip-muted);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.ip-toc a:hover {
  color: var(--ip-ink);
  background: rgba(255, 149, 0, 0.07);
}

.ip-toc a.is-active {
  border-left-color: var(--ip-orange);
  color: var(--ip-ink);
  background: rgba(255, 149, 0, 0.10);
  font-weight: 800;
}

.ip-toc-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--ip-orange);
  font-size: 11.5px;
  font-weight: 800;
  text-decoration: none;
}

.ip-content {
  min-width: 0;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid var(--ip-line);
  border-radius: var(--ip-radius);
  background: var(--ip-surface);
  box-shadow: var(--ip-shadow);
}

.ip-content > .ip-lead {
  margin: 0 0 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ip-line);
  color: var(--ip-ink-soft);
  font-size: 16.5px;
  line-height: 1.75;
}

.ip-section {
  scroll-margin-top: 100px;
}

.ip-section + .ip-section {
  margin-top: 38px;
  padding-top: 34px;
  border-top: 1px solid var(--ip-line);
}

.ip-section-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.ip-section-num {
  flex: 0 0 auto;
  color: var(--ip-orange);
  font-family: var(--ip-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.ip-section h2 {
  margin: 0;
  color: var(--ip-ink);
  font-family: var(--ip-display);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.ip-section h3 {
  margin: 22px 0 8px;
  color: var(--ip-ink);
  font-family: var(--ip-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

.ip-section p {
  margin: 0 0 14px;
  color: var(--ip-ink-soft);
}

.ip-section p:last-child {
  margin-bottom: 0;
}

.ip-section ul,
.ip-section ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--ip-ink-soft);
}

.ip-section li {
  margin: 0 0 9px;
  padding-left: 4px;
}

.ip-section li::marker {
  color: var(--ip-orange);
  font-weight: 800;
}

.ip-section strong {
  color: var(--ip-ink);
  font-weight: 800;
}

.ip-section a {
  font-weight: 700;
  text-underline-offset: 2px;
}

.ip-callout {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin: 20px 0;
  padding: 16px 18px;
  border: 1px solid rgba(255, 149, 0, 0.24);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.09), rgba(255, 179, 71, 0.05));
  color: var(--ip-ink-soft);
}

.ip-callout > i {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--ip-orange);
  font-size: 18px;
}

.ip-callout p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.ip-callout--warn {
  border-color: rgba(188, 78, 0, 0.22);
  background: rgba(255, 115, 0, 0.08);
}

.ip-callout--neutral {
  border-color: var(--ip-line);
  background: #faf8f5;
}

.ip-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.ip-feature {
  padding: 16px;
  border: 1px solid var(--ip-line);
  border-radius: 15px;
  background: #fdfbf8;
}

.ip-feature i {
  display: block;
  margin-bottom: 8px;
  color: var(--ip-orange);
  font-size: 19px;
}

.ip-feature strong {
  display: block;
  margin-bottom: 3px;
  font-family: var(--ip-display);
  font-size: 13.5px;
  line-height: 1.35;
}

.ip-feature span {
  display: block;
  color: var(--ip-muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.ip-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.ip-step {
  padding: 18px;
  border: 1px solid var(--ip-line);
  border-radius: 16px;
  background: #fdfbf8;
}

.ip-step span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border-radius: 9px;
  background: #fff;
  color: var(--ip-orange);
  font-family: var(--ip-display);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(90, 40, 4, 0.10);
}

.ip-step h3 {
  margin: 0 0 5px;
  font-size: 14px;
}

.ip-step p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
}

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

.ip-stat {
  padding: 16px;
  border: 1px solid var(--ip-line);
  border-radius: 15px;
  background: linear-gradient(135deg, #fff, #fdf7ef);
}

.ip-stat strong {
  display: block;
  color: var(--ip-orange);
  font-family: var(--ip-display);
  font-size: 1.6rem;
  line-height: 1;
}

.ip-stat span {
  display: block;
  margin-top: 5px;
  color: var(--ip-muted);
  font-size: 11.5px;
  font-weight: 700;
}

.ip-cta {
  position: relative;
  overflow: hidden;
  margin-top: 34px;
  padding: 26px;
  border-radius: 18px;
  background: linear-gradient(128deg, #3a1c08, #5a2a0b);
  color: #fff;
}

.ip-cta::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 149, 0, 0.30), transparent 68%);
}

.ip-cta h2 {
  position: relative;
  margin: 0 0 7px;
  color: #fff;
  font-family: var(--ip-display);
  font-size: 1.3rem;
  font-weight: 700;
}

.ip-cta p {
  position: relative;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13.5px;
}

.ip-cta-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.ip-cta .ip-btn-primary {
  box-shadow: none;
}

.ip-cta .ip-btn-ghost {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.ip-footer {
  padding: 34px 0 26px;
  border-top: 1px solid var(--ip-line);
  background: rgba(255, 255, 255, 0.45);
}

.ip-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.ip-footer p {
  margin: 0;
  color: var(--ip-muted);
  font-size: 11.5px;
}

.ip-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.ip-footer-links a {
  color: var(--ip-muted);
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
}

.ip-footer-links a:hover {
  color: var(--ip-orange);
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .ip-hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .ip-hero-panel {
    max-width: 560px;
  }

  .ip-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 34px;
  }

  .ip-toc {
    position: static;
  }

  .ip-toc ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 10px;
  }

  .ip-toc li + li {
    margin-top: 0;
  }
}

@media (max-width: 760px) {
  .ip-header-inner {
    width: min(100% - 28px, 1180px);
    min-height: 68px;
  }

  .ip-nav {
    display: none;
  }

  .ip-hero {
    padding: 46px 0 52px;
  }

  .ip-hero-inner,
  .ip-layout,
  .ip-footer-inner {
    width: min(100% - 28px, 1180px);
  }

  .ip-hero h1 {
    font-size: clamp(2.05rem, 8vw, 3rem);
  }

  .ip-content {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .ip-feature-grid,
  .ip-steps,
  .ip-stats {
    grid-template-columns: 1fr;
  }

  .ip-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .ip-brand span:last-child {
    display: none;
  }

  .ip-hero-panel {
    padding: 18px;
  }

  .ip-hero-copy > p {
    font-size: 15px;
  }

  .ip-toc ol {
    grid-template-columns: 1fr;
  }

  .ip-reader-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .ip-reader-btn.is-primary {
    grid-column: 1 / -1;
  }

  .ip-section-head {
    gap: 9px;
  }
}

@media print {
  .ip-header,
  .ip-hero-panel,
  .ip-toc,
  .ip-footer,
  .ip-progress,
  .ip-cta {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .ip-hero {
    padding: 0 0 20px;
    color: #000;
    background: none;
  }

  .ip-hero h1,
  .ip-hero h1 span,
  .ip-hero-copy > p,
  .ip-meta {
    color: #000;
  }

  .ip-layout {
    display: block;
    width: 100%;
    padding: 0;
  }

  .ip-content {
    padding: 0;
    border: 0;
    box-shadow: none;
  }
}
