.opc-page {
  --opc-forest: #234638;
  --opc-dark: #19382e;
  --opc-line: #dce4d8;
  --opc-muted: #526258;
  --opc-site-nav-height: 67px;
  --opc-chapter-height: 47px;
}

.opc-page main [id] { scroll-margin-top: calc(var(--opc-site-nav-height) + var(--opc-chapter-height) + 13px); }
.opc-page a:focus-visible, .opc-page summary:focus-visible { outline: 2px solid #8c633b; outline-offset: 4px; }
.opc-page main > :is(header, section, nav) > .wrap { max-width: 1140px; }
.opc-hero {
  padding: clamp(105px, 11vw, 148px) 0 clamp(35px, 5.5vw, 70px);
  background: radial-gradient(ellipse at 92% 12%, #e3ece0, transparent 59%), #f7f3e9;
}
.opc-hero-layout, .opc-membership-layout, .opc-proof {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
  align-items: center;
  gap: clamp(24px, 5vw, 68px);
}
.opc-kicker { margin: 0 0 12px; color: var(--opc-forest); font-size: .87rem; font-weight: 700; letter-spacing: .06em; }
.opc-hero h1 { margin: 0; color: var(--ink); font-size: clamp(2rem, 4vw, 3.45rem); line-height: 1.22; text-wrap: balance; }
.opc-hero h1 span { display: block; color: var(--opc-forest); }
.opc-intro, .opc-lead { margin: 16px 0 0; max-width: 38em; color: var(--ink-soft); line-height: 1.8; }
.opc-intro { font-size: clamp(.97rem, 1.5vw, 1.15rem); }
.opc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 12px; margin-top: 22px; }
.opc-actions .btn, .opc-join { min-height: 46px; display: inline-flex; justify-content: center; align-items: center; padding: 9px 17px; }
.opc-primary { border-color: var(--opc-forest); background: var(--opc-forest); color: #fff; }
.opc-primary:hover { border-color: var(--opc-dark); background: var(--opc-dark); }
.opc-link { color: var(--opc-forest); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.opc-hero-note { margin: 14px 0 0; color: var(--opc-muted); font-size: .91rem; }
.opc-hero-note .opc-link { display: inline-flex; align-items: center; min-height: 40px; }

.opc-hero-board {
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid #bfcfba;
  border-radius: 20px;
  background: #fffff6;
  box-shadow: 0 15px 38px #263d2420;
}
.opc-board-tag { margin: 0 0 6px; color: var(--opc-muted); font-size: .85rem; font-weight: 700; }
.opc-hero-board h2 { margin: 0; color: var(--opc-dark); font-size: clamp(1.16rem, 2.15vw, 1.55rem); line-height: 1.35; }
.opc-hero-board blockquote { margin: 13px 0; padding: 10px 12px; border-inline-start: 3px solid #a8bba4; border-radius: 4px; background: #eef3e9; color: var(--opc-dark); }
.opc-board-steps { display: grid; margin: 0; padding: 0; list-style: none; }
.opc-board-steps li { border-bottom: 1px solid var(--opc-line); padding: 8px 0; font-size: .92rem; }
.opc-board-steps li:last-child { border: 0; padding-bottom: 0; }
.opc-board-steps span { color: var(--opc-forest); margin-inline-end: 6px; font-variant-numeric: tabular-nums; font-weight: 700; }

.opc-on-page {
  position: sticky;
  top: var(--opc-site-nav-height);
  z-index: 35;
  border-block: 1px solid var(--opc-line);
  background: var(--paper);
  box-shadow: 0 3px 12px #19382e10;
}
.opc-on-page .wrap { display: flex; gap: 0 19px; overflow-x: auto; scrollbar-width: thin; }
.opc-on-page a { display: inline-flex; flex: none; align-items: center; min-height: 45px; white-space: nowrap; color: var(--opc-forest); font-weight: 700; font-size: .92rem; }
.opc-page .opc-on-page a:focus-visible { outline-offset: -3px; }
.opc-on-page a:hover { text-decoration: underline; text-underline-offset: 3px; }
.opc-section { padding-block: clamp(34px, 5.5vw, 72px); background: var(--paper); }
.opc-warm { background: #f0f1e8; }
.opc-section h2 { margin: 0; font-size: clamp(1.55rem, 3.3vw, 2.5rem); line-height: 1.3; color: var(--ink); text-wrap: balance; }
.opc-section h3 { margin: 0 0 8px; font-size: clamp(1.04rem, 1.5vw, 1.27rem); line-height: 1.4; }
.opc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.opc-card { min-width: 0; padding: clamp(15px, 2.1vw, 23px); border: 1px solid var(--opc-line); border-radius: 13px; background: var(--paper); }
.opc-card small { display: inline-block; margin-bottom: 6px; color: var(--opc-forest); font-size: .82rem; font-weight: 700; }
.opc-card p, .opc-member-contents p, .opc-detail p { margin: 0; color: var(--ink-soft); line-height: 1.72; }
.opc-example .opc-card { background: #f8faf3; }
.opc-system-grid, .opc-customer-path ol { list-style: none; padding: 0; margin: 0; }
.opc-system-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-top: 20px; }
.opc-system-grid .opc-card { position: relative; display: flex; flex-direction: column; padding: 15px; }
.opc-system-grid .opc-card:target { border-color: #77917a; box-shadow: 0 0 0 2px #77917a44; }
.opc-system-grid li:not(:last-child)::before,
.opc-system-grid li:not(:last-child)::after {
  position: absolute;
  content: "";
}
.opc-system-grid li:not(:last-child)::before {
  top: 34px;
  right: -23px;
  width: 22px;
  height: 2px;
  background: #77907c;
}
.opc-system-grid li:not(:last-child)::after {
  top: 31px;
  right: -17px;
  width: 7px;
  height: 7px;
  border-block-start: 2px solid #607466;
  border-inline-end: 2px solid #607466;
  transform: rotate(45deg);
}
.opc-system-heading { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 13px; }
.opc-system-heading h3 { margin: 0 0 2px; color: var(--opc-dark); }
.opc-system-heading p { font-size: .83rem; line-height: 1.5; }
.opc-system-number { display: grid; place-items: center; min-width: 29px; min-height: 29px; border-radius: 8px; color: #fff; background: var(--opc-forest); font-size: .73rem; font-weight: 700; }
.opc-system-grid .opc-system-output { margin-top: auto; padding: 9px 10px; border-radius: 6px; background: #e8eee3; color: var(--opc-dark); font-size: .86rem; line-height: 1.58; }
.opc-system-output strong { display: block; margin-bottom: 2px; }
.opc-customer-path { margin-top: 13px; padding: 12px 15px; border: 1px solid var(--opc-line); border-radius: 9px; background: #f8faf3; }
.opc-customer-path h3 { margin: 0 0 6px; font-size: .96rem; color: var(--opc-dark); }
.opc-customer-path ol { display: flex; flex-wrap: wrap; gap: 4px 9px; font-size: .89rem; color: var(--opc-muted); }
.opc-customer-path li:not(:last-child)::after { margin-inline-start: 8px; content: "→"; content: "→" / ""; color: #607466; }
.opc-tool-list { margin: 0 0 12px; }
.opc-tool-list dd { margin: 0; }
.opc-tool-list > div { border-top: 1px solid var(--opc-line); padding: 8px 0; }
.opc-tool-list > div:last-child { padding-bottom: 0; }
.opc-tool-list dt { color: var(--opc-forest); font-size: .89rem; font-weight: 700; }
.opc-tool-list dd { color: var(--ink-soft); font-size: .91rem; line-height: 1.6; }
.opc-tool-list .opc-access-tag { margin: 0 0 0 .3em; padding: 1px 5px; border-radius: 4px; background: #e8eee3; font-size: .72rem; }
.opc-note { margin: 10px 0 0; color: var(--opc-muted); font-size: .89rem; line-height: 1.62; }
.opc-access { padding: 12px 16px; margin: 12px 0 0; border-inline-start: 3px solid #a8bba4; background: #fbfcf6; }
.opc-section-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 5px; }
.opc-detail { margin-top: 13px; padding-inline: 14px; border: 1px solid var(--opc-line); border-radius: 9px; background: #fbfcf6; }
.opc-detail summary { padding: 11px 0; min-height: 44px; color: var(--opc-forest); cursor: pointer; font-weight: 700; }
.opc-detail p { margin-bottom: 12px; }
.opc-detail .opc-note { font-size: .87rem; }

.opc-proof { grid-template-columns: minmax(0, 1fr) auto; }
.opc-proof figure { margin: 0; }
.opc-proof img { display: block; width: min(24vw, 206px); height: auto; border-radius: 12px; border: 1px solid var(--opc-line); }
.opc-case-results { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.opc-case-results div { display: flex; flex-direction: column-reverse; min-width: 145px; padding: 8px 12px; border-radius: 9px; background: #edf2e9; }
.opc-case-results dt { color: var(--opc-muted); font-size: .82rem; }
.opc-case-results dd { margin: 0; color: var(--opc-dark); font-size: 1.48rem; font-weight: 700; }

.opc-membership-layout { align-items: stretch; gap: 18px; margin-top: 22px; }
.opc-member-contents { display: grid; gap: 8px; }
.opc-member-contents article { padding: 14px 17px; border: 1px solid var(--opc-line); border-radius: 10px; background: var(--paper); }
.opc-offer { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(19px, 3.4vw, 33px); border-radius: 16px; background: var(--opc-dark); color: #fffdf2; }
.opc-offer h3 { color: inherit; }
.opc-offer-price { margin: 5px 0 0; }
.opc-offer-price strong { font-size: clamp(2.1rem, 4.7vw, 3.45rem); line-height: 1.1; color: #ffe9bd; }
.opc-offer .opc-note { color: #e1e7d9; }
.opc-offer .opc-link { display: inline-flex; align-items: center; min-height: 36px; color: #fff7db; font-size: .91rem; }
.opc-join { width: 100%; margin: 17px 0 5px; border-color: #f1d9a7; background: #f1d9a7; color: #253c2f; font-weight: 700; }
.opc-join:hover { background: #fff0ca; border-color: #fff0ca; }
.opc-offer-help { margin: 0; color: #e1e7d9; font-size: .91rem; }
.opc-join-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0 0; padding-inline-start: 1.4em; color: var(--opc-muted); font-size: .92rem; }
.opc-join-steps li { margin-inline-end: .7em; }
.opc-faqs { margin-top: 18px; }
.opc-end-actions { margin-top: 16px; }

.opc-space { background: linear-gradient(110deg, var(--paper), #edf2e9); }
.opc-space-layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(22px, 5vw, 68px);
}
.opc-space-label { margin: 0 0 9px; color: var(--opc-forest); font-weight: 700; font-size: .93rem; }
.opc-space-preview {
  display: block;
  min-width: 0;
  padding: 9px 9px 0;
  border: 1px solid var(--opc-line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 14px 32px #19382e15;
  color: var(--opc-muted);
  text-decoration: none;
}
.opc-space-preview:hover { border-color: var(--opc-forest); }
.opc-space-crop { aspect-ratio: 2.11; overflow: hidden; border-radius: 10px; background: #e2f3ed; }
.opc-space-crop img { display: block; width: 100%; height: auto; }
.opc-space-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  min-height: 46px;
  padding: 6px 8px;
  font-size: .9rem;
}
.opc-space-caption strong { color: var(--opc-forest); }

html.opc-space-open { overflow: hidden; }
.opc-space-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #e5eae2;
  color: var(--opc-dark);
}
.opc-space-dialog:not([open]) { display: none; }
.opc-space-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.opc-space-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2px 12px;
  padding: max(6px, env(safe-area-inset-top)) max(clamp(12px, 3vw, 36px), env(safe-area-inset-right)) 6px max(clamp(12px, 3vw, 36px), env(safe-area-inset-left));
  background: var(--paper);
  border-bottom: 1px solid var(--opc-line);
}
.opc-space-toolbar h2 { margin: 0; font-size: clamp(.94rem, 2.5vw, 1.22rem); }
.opc-space-controls { display: flex; align-items: center; gap: 8px; }
.opc-space-controls a, .opc-space-controls button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--opc-line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--opc-forest);
  font: inherit;
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.opc-space-controls button { cursor: pointer; }
.opc-space-controls button[type="submit"] { background: var(--opc-forest); border-color: var(--opc-forest); color: #fff; }
.opc-space-controls a:hover, .opc-space-controls button:hover { border-color: var(--opc-forest); }
.opc-space-controls .opc-space-zoom { display: none; }
.opc-space-controls .opc-space-zoom[aria-pressed="true"] { background: #e3ece0; border-color: var(--opc-forest); }
.opc-space-controls button:focus-visible, .opc-space-scroll:focus-visible { outline: 2px solid #8c633b; outline-offset: -3px; }
.opc-space-scroll {
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(6px, 1.5vw, 20px);
}
.opc-space-scroll img { flex: none; display: block; width: min(100%, 2171px); height: auto; margin-inline: auto; }

@media (max-width: 849px) {
  .opc-hero-layout, .opc-membership-layout, .opc-space-layout { grid-template-columns: minmax(0, 1fr); }
  .opc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .opc-space-controls .opc-space-zoom { display: inline-flex; }
  .opc-space-enlarged .opc-space-scroll img { width: max(100%, 1040px); max-width: none; }
}

@media (max-width: 900px) {
  .opc-system-grid { grid-template-columns: minmax(0, 1fr); }
  .opc-system-grid li:not(:last-child)::before { top: auto; right: auto; bottom: -23px; left: 29px; width: 2px; height: 22px; }
  .opc-system-grid li:not(:last-child)::after { top: auto; right: auto; bottom: -16px; left: 26px; transform: rotate(135deg); }
}

@media (max-width: 540px) {
  .opc-hero { padding: 92px 0 26px; }
  .opc-hero h1 { font-size: clamp(1.55rem, 7vw, 2.25rem); }
  .opc-intro { margin-top: 11px; }
  .opc-actions { gap: 8px; margin-top: 16px; }
  .opc-hero-board { box-shadow: 0 6px 20px #263d2415; }
  .opc-grid, .opc-join-steps, .opc-proof { grid-template-columns: minmax(0, 1fr); }
  .opc-proof img { width: min(48vw, 188px); }
  .opc-space-crop { aspect-ratio: 1.07; }
  .opc-space-crop img { width: 200%; max-width: none; }
  .opc-space-controls { width: 100%; }
  .opc-space-controls form { margin-left: auto; }
  .opc-on-page .wrap { gap: 0 13px; }
  .opc-page.opc-hero-in-view #wxgc-share-btn { visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.opc-page) { scroll-behavior: auto; }
}
