:root {
  color-scheme: light;
  --bg: #faf8f3;
  --surface: #ffffff;
  --surface-strong: #f0eee6;
  --ink: #171717;
  --muted: #686b70;
  --line: #ddd8ca;
  --accent: #116d6e;
  --accent-dark: #0b4748;
  --warm: #b8662d;
  --danger: #b42318;
  --shadow: 0 18px 45px rgba(24, 24, 24, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

.public-dark {
  --bg: #0f0e0c;
  --surface: #1a1714;
  --surface-strong: #141210;
  --ink: #f4efe6;
  --muted: #b7afa3;
  --line: #342d25;
  --accent: #b8662d;
  --accent-dark: #d18446;
  --warm: #d58a4a;
  --danger: #ffb4a8;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
  background:
    radial-gradient(circle at 50% 0%, rgba(184, 102, 45, 0.18), transparent 34rem),
    linear-gradient(180deg, #12100e 0%, #0f0e0c 48%, #090807 100%);
  color: var(--ink);
}

.public-dark::before {
  background-image:
    linear-gradient(rgba(244, 239, 230, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 239, 230, 0.02) 1px, transparent 1px);
  background-size: 26px 26px;
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.lp-page {
  min-height: 100vh;
}

.minimal-header {
  display: flex;
  justify-content: flex-end;
  padding: 22px clamp(18px, 5vw, 56px);
}

.public-dark .minimal-header {
  background: transparent;
}

.text-link {
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  padding: 0;
  text-decoration: none;
}

.disabled-link {
  cursor: default;
  opacity: 0.62;
}

.minimal-lp {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 184px);
  padding: 24px 20px 40px;
  text-align: center;
}

.lp-logo {
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 18px 60px rgba(17, 17, 17, 0.18);
  height: clamp(108px, 18vw, 172px);
  object-fit: cover;
  width: clamp(108px, 18vw, 172px);
}

.public-dark .lp-logo {
  border: 1px solid rgba(213, 138, 74, 0.38);
  filter: saturate(0.82) contrast(1.08) brightness(0.72);
}

.coming-soon {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 28px 0 12px;
}

.public-dark .coming-soon,
.public-dark .romaji {
  color: var(--warm);
}

.minimal-lp h1 {
  font-size: clamp(34px, 7vw, 68px);
  line-height: 1.12;
  margin: 0;
}

.romaji {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  margin: 8px 0 28px;
}

.minimal-lp h2 {
  font-size: clamp(32px, 7vw, 62px);
  line-height: 1;
  margin: 0 0 20px;
}

.lead {
  font-size: clamp(17px, 3vw, 24px);
  font-weight: 800;
  max-width: 760px;
  margin: 0 0 28px;
}

.perk-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0 0 30px;
}

.perk-list span {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  padding: 8px 14px;
}

.lp-action {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lp-action p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.demo-note {
  left: clamp(16px, 3vw, 28px);
  position: fixed;
  top: clamp(14px, 2vw, 22px);
  z-index: 20;
}

.demo-note,
.lp-action .demo-note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--warm);
  font-size: 13px;
  font-weight: 900;
  margin: 0;
  padding: 6px 12px;
}

.minimal-footer {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  font-size: 13px;
  gap: 8px;
  padding: 22px;
}

.public-dark .minimal-footer {
  border-top: 1px solid var(--line);
}

.minimal-footer nav {
  display: flex;
  gap: 6px;
}

.minimal-footer a {
  text-decoration: none;
}

.checkout-page:not(.public-dark) {
  background: #f6f7f9;
}

.checkout-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
  min-height: 100vh;
}

.checkout-summary,
.checkout-form-panel {
  padding: clamp(28px, 6vw, 72px);
}

.checkout-summary {
  background: #101418;
  color: #fff;
}

.public-dark .checkout-summary {
  background:
    radial-gradient(circle at 20% 0%, rgba(213, 138, 74, 0.16), transparent 22rem),
    #14110f;
  border-right: 1px solid var(--line);
  color: var(--ink);
}

.checkout-back {
  color: rgba(255, 255, 255, 0.72);
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 58px;
  text-decoration: none;
}

.public-dark .checkout-back,
.public-dark .checkout-product p,
.public-dark .price-block span,
.public-dark .checkout-perks {
  color: var(--muted);
}

.checkout-product {
  align-items: center;
  display: flex;
  gap: 18px;
}

.checkout-product img {
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  width: 72px;
}

.checkout-product p {
  color: rgba(255, 255, 255, 0.64);
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 4px;
}

.checkout-product h1 {
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.15;
  margin: 0;
}

.price-block {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin: 34px 0;
  padding: 28px 0;
}

.price-block strong {
  display: block;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1;
}

.price-block span {
  color: rgba(255, 255, 255, 0.64);
}

.checkout-perks {
  color: rgba(255, 255, 255, 0.78);
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
}

.checkout-form-panel {
  align-self: center;
  justify-self: center;
  max-width: 520px;
  width: 100%;
}

.public-dark .checkout-form-panel {
  background: transparent;
}

.checkout-demo-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.checkout-form-panel h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  margin: 0 0 22px;
}

.checkout-form {
  display: grid;
  gap: 16px;
}

.google-button {
  background: #fff;
  border: 1px solid #d8dde6;
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  min-height: 46px;
}

.google-button:disabled {
  cursor: default;
  opacity: 0.48;
}

.public-dark .google-button,
.public-dark input,
.public-dark textarea {
  background: #100e0c;
  border-color: var(--line);
  color: var(--ink);
}

.divider {
  align-items: center;
  color: var(--muted);
  display: grid;
  font-size: 13px;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
}

.divider::before,
.divider::after {
  background: #d8dde6;
  content: "";
  height: 1px;
}

.public-dark .divider::before,
.public-dark .divider::after,
.public-dark .checkout-total {
  border-color: var(--line);
}

.checkout-total {
  align-items: center;
  border-top: 1px solid #d8dde6;
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 18px;
}

.checkout-total span {
  color: var(--muted);
  font-weight: 800;
}

.checkout-total strong {
  font-size: 24px;
}

.checkout-submit {
  width: 100%;
}

.checkout-note {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

.mock-note {
  color: var(--warm);
  font-weight: 900;
}

.login-shell {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: clamp(56px, 8vw, 92px) 20px;
}

.login-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  max-width: 520px;
  padding: clamp(24px, 5vw, 38px);
  width: 100%;
}

.login-panel .checkout-back {
  margin-bottom: 8px;
}

.login-panel h1 {
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.15;
  margin: 0;
}

.login-panel > p:not(.checkout-demo-label) {
  color: var(--muted);
  margin: 0;
}

.site-header {
  align-items: center;
  background: rgba(250, 248, 243, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
}

.public-dark .site-header {
  background: rgba(15, 14, 12, 0.9);
  border-bottom-color: var(--line);
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.public-dark .brand-mark {
  background: #f4efe6;
  color: #111;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.top-nav {
  display: flex;
  gap: 18px;
}

.top-nav a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.public-dark .top-nav a {
  color: var(--muted);
}

.top-nav a:hover {
  color: var(--ink);
}

.primary-button,
.secondary-button,
.ghost-button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  text-decoration: none;
}

.primary-button {
  background: var(--accent);
  color: #fff;
}

.public-dark .primary-button {
  color: #150f0a;
}

.primary-button:hover {
  background: var(--accent-dark);
}

.secondary-button,
.ghost-button {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.public-dark .secondary-button,
.public-dark .ghost-button {
  background: #17130f;
  border-color: var(--line);
  color: var(--ink);
}

.small {
  min-height: 38px;
  padding: 0 14px;
}

.first-section {
  min-height: calc(100vh - 72px);
}

.member-page .first-section {
  min-height: auto;
}

.member-page .section {
  padding-top: clamp(32px, 5vw, 56px);
}

.member-page .section-heading h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.member-welcome-heading {
  max-width: 980px;
}

.member-welcome-heading h1 {
  max-width: 860px;
}

.member-welcome-heading p:last-child {
  font-size: clamp(16px, 2vw, 20px);
  max-width: 780px;
}

.section {
  padding: clamp(46px, 7vw, 84px) clamp(18px, 5vw, 64px);
}

.band {
  background: var(--surface-strong);
}

.public-dark .band {
  background: transparent;
}

.section-heading {
  margin: 0 auto 28px;
  max-width: 1100px;
}

.section-heading h1 {
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.12;
  margin: 0 0 8px;
}

.section-heading p:last-child {
  color: var(--muted);
  margin: 0;
}

.admin-footer-link {
  padding: 0 clamp(18px, 5vw, 64px) clamp(46px, 7vw, 84px);
  text-align: center;
}

.admin-footer-link a {
  color: var(--accent);
  font-weight: 900;
  text-decoration: none;
}

.journey-nav {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 auto;
  max-width: 1100px;
}

.journey-nav a,
.journey-nav button {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-weight: 900;
  gap: 10px;
  min-height: 58px;
  padding: 12px;
  text-align: left;
  text-decoration: none;
}

.journey-nav a:hover,
.journey-nav button:hover,
.journey-nav button.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.journey-nav span {
  align-items: center;
  background: var(--accent);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.admin-tabs-shell {
  min-height: auto;
  padding-bottom: 14px;
}

.admin-tab-panel {
  padding-top: 14px;
}

.admin-tab-panel:not(.is-active) {
  display: none;
}

.eyebrow {
  color: var(--warm);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.access-panel,
.admin-layout,
.legal-grid,
.member-bonus-grid,
.video-grid {
  margin: 0 auto;
  max-width: 1100px;
}

.member-bonus-grid {
  margin-bottom: 18px;
}

.is-hidden {
  display: none !important;
}

.member-content {
  margin: 0 auto;
  max-width: 1100px;
}

.member-start {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  margin-bottom: 20px;
}

.featured-member-video,
.member-start-side {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.featured-member-video {
  align-items: end;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 260px;
  overflow: hidden;
  padding: clamp(22px, 4vw, 34px);
  position: relative;
}

.featured-member-video::before {
  background:
    linear-gradient(110deg, rgba(15, 14, 12, 0.92), rgba(15, 14, 12, 0.72)),
    var(--featured-thumb, linear-gradient(135deg, rgba(184, 102, 45, 0.35), transparent));
  background-position: center;
  background-size: cover;
  content: "";
  inset: 0;
  position: absolute;
}

.featured-member-video > * {
  position: relative;
  z-index: 1;
}

.featured-member-video h2 {
  color: #fff;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.16;
  margin: 0 0 12px;
  max-width: 720px;
}

.featured-member-video p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  margin: 0;
  max-width: 660px;
}

.featured-member-video .primary-button {
  background: #f4efe6;
  color: #15100d;
  min-width: 136px;
}

.member-start-side {
  display: grid;
}

.member-start-side div {
  padding: 20px;
}

.member-start-side div + div {
  border-top: 1px solid var(--line);
}

.member-start-side span {
  color: var(--warm);
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 10px;
}

.member-start-side strong {
  display: block;
  font-size: 19px;
  line-height: 1.28;
  margin-bottom: 8px;
}

.member-start-side p {
  color: var(--muted);
  margin: 0;
}

.member-portal {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 20px;
}

.member-portal a,
.resource-card,
.schedule-list article,
.guide-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.member-portal a {
  color: var(--ink);
  min-height: 126px;
  padding: 16px;
  text-decoration: none;
}

.member-portal span,
.resource-card span {
  color: var(--warm);
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 10px;
}

.member-portal strong {
  display: block;
  font-size: 18px;
  line-height: 1.25;
  margin-bottom: 8px;
}

.member-portal p {
  color: var(--muted);
  margin: 0;
}

.bonus-card {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 18px;
}

.bonus-card h2 {
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 6px;
}

.bonus-card p:not(.eyebrow) {
  color: var(--muted);
  margin: 0;
}

.member-block {
  margin-top: 34px;
}

.member-block-heading {
  margin-bottom: 16px;
}

.member-block-heading h2 {
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.2;
  margin: 0 0 6px;
}

.member-block-heading p:last-child {
  color: var(--muted);
  margin: 0;
}

.resource-grid,
.guide-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.resource-card,
.guide-grid article {
  padding: 18px;
}

.resource-card h3,
.guide-grid h3,
.schedule-list h3 {
  font-size: 18px;
  line-height: 1.3;
  margin: 0 0 8px;
}

.resource-card p,
.guide-grid p,
.schedule-list p {
  color: var(--muted);
  margin: 0 0 14px;
}

.guide-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.guide-links a {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 900;
  padding: 10px 14px;
  text-decoration: none;
}

.account-link-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  min-height: auto;
  padding: 14px;
  text-decoration: none;
}

.compact-guide-grid {
  grid-template-columns: repeat(3, 1fr);
}

.account-link-card h3 {
  margin-bottom: 0;
}

.billing-section {
  min-height: auto;
}

.billing-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  margin: 0 auto;
  max-width: 1100px;
}

.billing-card,
.billing-note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 4vw, 28px);
}

.billing-card h2 {
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.18;
  margin: 0 0 16px;
}

.billing-card p,
.billing-note p {
  color: var(--muted);
  margin: 0 0 14px;
}

.billing-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.billing-list div {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 150px 1fr;
  padding: 14px 0;
}

.billing-list dt,
.billing-list dd {
  margin: 0;
}

.billing-list dt {
  color: var(--muted);
  font-weight: 900;
}

.billing-list dd {
  font-weight: 900;
}

.billing-note {
  margin: 18px auto 0;
  max-width: 1100px;
}

.billing-note strong {
  display: block;
  margin-bottom: 8px;
}

.schedule-list {
  display: grid;
  gap: 12px;
}

.schedule-list article {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: 120px 1fr;
  padding: 18px;
}

.schedule-list time {
  color: var(--warm);
  font-weight: 900;
}

.access-panel {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 16px;
}

.public-dark .access-panel,
.public-dark .featured-member-video,
.public-dark .member-start-side,
.public-dark .member-portal a,
.public-dark .resource-card,
.public-dark .schedule-list article,
.public-dark .guide-grid article,
.public-dark .video-card,
.public-dark .legal-table,
.public-dark .terms-body {
  background: rgba(26, 23, 20, 0.92);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.public-dark .member-portal a:hover,
.public-dark .resource-card:hover {
  border-color: rgba(213, 138, 74, 0.58);
}

.access-panel span {
  color: var(--muted);
  display: block;
  font-size: 14px;
}

.access-panel .status-label {
  color: var(--warm);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 2px;
}

.access-panel button:disabled {
  cursor: default;
  opacity: 0.86;
}

.video-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.video-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.thumb-wrap {
  aspect-ratio: 16 / 9;
  background: #222;
}

.public-dark .thumb-wrap {
  background: #050505;
}

.thumb-wrap img,
.thumb-wrap iframe {
  border: 0;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.kaidan-preview {
  align-items: flex-start;
  background:
    linear-gradient(145deg, rgba(5, 5, 5, 0.2), rgba(5, 5, 5, 0.86)),
    radial-gradient(circle at 78% 18%, rgba(213, 138, 74, 0.32), transparent 7rem),
    linear-gradient(135deg, #211913 0%, #0c0b0a 62%, #050505 100%);
  color: #f4efe6;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  padding: 16px;
  position: relative;
}

.kaidan-preview::after {
  align-items: center;
  background: rgba(244, 239, 230, 0.92);
  border-radius: 50%;
  color: #111;
  content: "▶";
  display: flex;
  font-size: 18px;
  height: 46px;
  justify-content: center;
  left: 50%;
  padding-left: 3px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
}

.kaidan-preview span {
  color: #e0a36b;
  font-size: 12px;
  font-weight: 900;
}

.kaidan-preview strong {
  font-size: 18px;
  line-height: 1.25;
  max-width: 12rem;
}

.video-body {
  padding: 16px;
}

.video-body h2 {
  font-size: 18px;
  line-height: 1.3;
  margin: 6px 0 8px;
}

.content-kicker {
  color: var(--warm);
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin: 0 0 6px;
}

.video-body p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 12px;
}

.video-body a {
  color: var(--accent);
  font-weight: 900;
  text-decoration: none;
}

.meta-line {
  color: var(--warm);
  font-size: 12px;
  font-weight: 900;
}

.admin-layout {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(280px, 420px) 1fr;
}

.editor,
.admin-list,
.legal-editor,
.legal-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.editor,
.legal-editor {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.legal-editor {
  margin: 0 auto;
  max-width: 880px;
}

.form-hint {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  margin: -4px 0 2px;
  padding: 12px;
}

.operation-links {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 auto 24px;
  max-width: 1100px;
}

.operation-links a {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  padding: 16px;
  text-decoration: none;
}

.operation-links span {
  color: var(--warm);
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 10px;
}

.operation-links strong {
  display: block;
  font-size: 18px;
  line-height: 1.25;
  margin-bottom: 6px;
}

.operation-links p {
  color: var(--muted);
  margin: 0;
}

.settings-details {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.settings-details summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  list-style-position: inside;
}

.settings-details-body {
  display: grid;
  gap: 16px;
  padding-top: 16px;
}

.stripe-note-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #334155;
  padding: 14px;
}

.stripe-note-box strong {
  display: block;
  margin-bottom: 4px;
}

.stripe-note-box p {
  margin: 0;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  font-weight: 900;
  gap: 6px;
}

input,
textarea {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  padding: 11px 12px;
  width: 100%;
}

textarea {
  resize: vertical;
}

.form-row {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.form-section-title {
  border-top: 1px solid var(--line);
  font-size: 18px;
  line-height: 1.3;
  margin: 10px 0 0;
  padding-top: 18px;
}

.check-row {
  align-items: center;
  display: flex;
  gap: 10px;
}

.check-row input {
  width: auto;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-list {
  min-height: 360px;
  overflow: hidden;
}

.list-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 16px 18px;
}

.list-header span {
  color: var(--muted);
  font-size: 13px;
}

.admin-item {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: 96px 1fr auto;
  padding: 14px 18px;
}

.admin-item:last-child {
  border-bottom: 0;
}

.admin-item img {
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  object-fit: cover;
  width: 96px;
}

.file-badge {
  align-items: center;
  aspect-ratio: 16 / 9;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--warm);
  display: flex;
  font-size: 13px;
  font-weight: 900;
  justify-content: center;
  width: 96px;
}

.admin-item h2 {
  font-size: 16px;
  line-height: 1.3;
  margin: 0 0 4px;
}

.admin-item p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.item-actions {
  display: flex;
  gap: 8px;
}

.icon-button {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
  min-height: 36px;
  padding: 0 10px;
}

.danger {
  color: var(--danger);
}

.legal-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.legal-grid article {
  box-shadow: none;
  padding: 20px;
}

.legal-grid h2 {
  font-size: 20px;
  margin: 0 0 8px;
}

.legal-grid p {
  color: var(--muted);
  margin: 0;
}

.legal-hero,
.legal-doc {
  margin: 0 auto;
  max-width: 980px;
  padding: clamp(42px, 7vw, 76px) clamp(18px, 5vw, 40px);
}

.sample-notice {
  background: #fff7ed;
  border-bottom: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 14px;
  font-weight: 900;
  padding: 12px clamp(18px, 5vw, 56px);
  text-align: center;
}

.admin-notice {
  background: #ecfeff;
  border-bottom-color: #a5f3fc;
  color: #155e75;
}

.legal-hero {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: auto;
  padding-bottom: clamp(28px, 5vw, 48px);
  padding-top: clamp(28px, 4vw, 44px);
}

.legal-hero h1 {
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.12;
  margin: 0 0 14px;
}

.legal-hero > p {
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 22px;
  max-width: 760px;
}

.legal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.legal-tabs a {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 900;
  padding: 8px 14px;
  text-decoration: none;
}

.legal-doc {
  border-top: 1px solid var(--line);
}

.legal-doc h2 {
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.2;
  margin: 0 0 22px;
}

.legal-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  overflow: hidden;
}

.legal-table div {
  display: grid;
  grid-template-columns: 220px 1fr;
}

.legal-table div + div {
  border-top: 1px solid var(--line);
}

.legal-table dt,
.legal-table dd {
  margin: 0;
  padding: 16px;
}

.legal-table dt {
  background: var(--surface-strong);
  color: var(--ink);
  font-weight: 900;
}

.public-dark .legal-table dt {
  background: #211c17;
}

.public-dark .sample-notice {
  background: #21180f;
  border-bottom-color: #4b3420;
  color: #e9b27a;
}

.legal-table dd {
  color: var(--muted);
}

.terms-body {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 4vw, 34px);
}

.terms-body h3 {
  font-size: 18px;
  margin: 28px 0 8px;
}

.terms-body h3:first-child {
  margin-top: 0;
}

.terms-body p,
.terms-body li {
  color: var(--muted);
}

.terms-body p {
  margin: 0;
}

.terms-body ul {
  margin: 0;
  padding-left: 22px;
}

.legal-editable-body {
  color: var(--muted);
  white-space: pre-line;
}

.empty-state {
  color: var(--muted);
  padding: 22px;
}

.owner-page {
  background: #f7f8f4;
}

.owner-hero,
.owner-section {
  margin: 0 auto;
  max-width: 1160px;
  padding: clamp(48px, 7vw, 92px) clamp(18px, 5vw, 56px);
}

.owner-hero {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: auto;
  padding-top: clamp(22px, 3vw, 36px);
}

.owner-hero h1 {
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.08;
  margin: 0 0 18px;
  max-width: 980px;
}

.owner-hero p {
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  max-width: 820px;
}

.owner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.owner-hero-image {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: block;
  margin: 0 auto;
  max-width: 100%;
  width: 95%;
}

.owner-metrics {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  padding-top: 0;
}

.owner-metrics div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.owner-metrics span {
  color: var(--warm);
  display: block;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 12px;
}

.owner-metrics strong {
  display: block;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.1;
  margin-bottom: 10px;
}

.owner-metrics p {
  color: var(--muted);
  margin: 0;
}

.dashboard-hero {
  min-height: auto;
  padding-bottom: clamp(12px, 2vw, 20px);
  padding-top: clamp(24px, 3vw, 36px);
}

.dashboard-hero h1 {
  font-size: clamp(42px, 5vw, 68px);
}

.dashboard-section {
  padding-top: clamp(8px, 1.5vw, 16px);
}

.dashboard-stats {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 auto 28px;
  max-width: 1100px;
}

.dashboard-stats div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 96px;
  padding: 16px 20px;
}

.dashboard-stats span {
  color: var(--warm);
  display: block;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 8px;
}

.dashboard-stats strong {
  display: block;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.dashboard-group {
  margin: 0 auto 34px;
  max-width: 1100px;
}

.dashboard-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.dashboard-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 168px;
  padding: 18px;
  text-decoration: none;
}

.dashboard-card span {
  color: var(--warm);
  display: block;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 16px;
}

.dashboard-card h2 {
  font-size: 20px;
  line-height: 1.2;
  margin: 0 0 8px;
}

.dashboard-card p {
  color: var(--muted);
  margin: 0;
}

.subscriber-stats,
.subscriber-list-card {
  margin-left: auto;
  margin-right: auto;
  max-width: 1100px;
}

.subscriber-item {
  grid-template-columns: minmax(0, 1fr) auto;
}

.subscriber-status {
  border-radius: 999px;
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  margin-right: 8px;
  padding: 3px 9px;
}

.subscriber-status.is-active {
  background: rgba(17, 109, 110, 0.12);
  color: var(--accent);
}

.subscriber-status.is-paused {
  background: rgba(180, 35, 24, 0.1);
  color: var(--danger);
}

.owner-band {
  background: var(--surface-strong);
  max-width: none;
}

.owner-band > * {
  margin-left: auto;
  margin-right: auto;
  max-width: 1048px;
}

.owner-section-heading {
  margin-bottom: 24px;
}

.owner-section-heading h2 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.18;
  margin: 0;
}

.flow-grid,
.scope-table,
.notice-grid {
  display: grid;
  gap: 16px;
}

.flow-grid {
  grid-template-columns: repeat(3, 1fr);
}

.flow-grid article,
.notice-grid article,
.scope-table div,
.operator-layout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.flow-grid article,
.notice-grid article {
  padding: 20px;
}

.flow-grid span {
  align-items: center;
  background: var(--ink);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.flow-grid h3,
.notice-grid h3,
.operator-layout h3 {
  font-size: 20px;
  line-height: 1.3;
  margin: 18px 0 8px;
}

.flow-grid p,
.notice-grid p,
.operator-layout p,
.scope-table p,
.check-list {
  color: var(--muted);
}

.flow-grid p,
.notice-grid p,
.operator-layout p,
.scope-table p {
  margin: 0 0 14px;
}

.flow-grid a {
  color: var(--accent);
  font-weight: 900;
  text-decoration: none;
}

.operator-layout {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  padding: clamp(20px, 4vw, 34px);
}

.operator-layout h3 {
  margin-top: 0;
}

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

.scope-table {
  grid-template-columns: repeat(2, 1fr);
}

.scope-table div {
  padding: 18px;
}

.scope-table strong {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
}

.scope-table p {
  margin-bottom: 0;
}

.scope-table a {
  color: var(--accent);
  display: inline-block;
  font-weight: 900;
  margin-top: 12px;
  text-decoration: none;
}

.notice-grid {
  grid-template-columns: repeat(3, 1fr);
}

.sales-page {
  background: #f7f8f4;
}

.sales-header {
  align-items: center;
  background: rgba(247, 248, 244, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
}

.sales-hero {
  align-items: flex-end;
  background:
    linear-gradient(90deg, rgba(10, 13, 13, 0.84), rgba(10, 13, 13, 0.45)),
    url("./material/owner.png");
  background-position: center;
  background-size: cover;
  color: #fff;
  display: flex;
  min-height: min(760px, calc(100vh - 72px));
  padding: clamp(42px, 7vw, 88px) clamp(18px, 6vw, 76px);
}

.sales-hero-content {
  max-width: 860px;
}

.sales-hero h1 {
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.08;
  margin: 0 0 18px;
}

.sales-hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 800;
  margin: 0;
  max-width: 760px;
}

.sales-hero .secondary-button {
  background: rgba(255, 255, 255, 0.92);
}

.sales-section {
  margin: 0 auto;
  max-width: 1120px;
  padding: clamp(42px, 6vw, 76px) clamp(18px, 5vw, 42px);
}

.sales-alert {
  color: var(--muted);
  font-weight: 800;
  padding-bottom: clamp(26px, 4vw, 42px);
}

.sales-alert p {
  border-left: 4px solid var(--warm);
  margin: 0;
  padding-left: 18px;
}

.sales-heading {
  margin-bottom: 22px;
}

.sales-heading h2,
.sales-final h2 {
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.12;
  margin: 0;
}

.sales-grid,
.notes-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
}

.sales-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.sales-grid article,
.notes-grid article,
.price-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.sales-grid h3,
.notes-grid h3 {
  font-size: 20px;
  line-height: 1.3;
  margin: 0 0 8px;
}

.sales-grid p,
.notes-grid p,
.price-panel p,
.sales-final p:not(.eyebrow) {
  color: var(--muted);
  margin: 0;
}

.sales-band {
  background: var(--surface-strong);
  max-width: none;
}

.sales-band > * {
  margin-left: auto;
  margin-right: auto;
  max-width: 1120px;
}

.sales-split,
.fit-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  margin: 0 auto;
  max-width: 1120px;
}

.sales-split > div,
.fit-grid article,
.sales-proof {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.sales-split p,
.fit-grid li {
  color: var(--muted);
  font-weight: 800;
}

.sales-proof span {
  color: var(--warm);
  display: block;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 12px;
}

.sales-proof strong {
  display: block;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.18;
  margin-bottom: 12px;
}

.sales-list,
.sales-steps {
  display: grid;
  gap: 12px;
  margin: 0 auto;
  max-width: 960px;
  padding-left: 24px;
}

.sales-list li,
.sales-steps li {
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 800;
}

.sales-list.compact {
  margin-top: 18px;
}

.sales-list.two-column {
  grid-template-columns: repeat(2, 1fr);
  max-width: 980px;
}

.price-panel {
  align-items: center;
  display: flex;
  gap: 22px;
  justify-content: space-between;
  max-width: 920px;
}

.strong-offer {
  max-width: 1040px;
}

.offer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 220px;
}

.price-panel span {
  color: var(--warm);
  display: block;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 8px;
}

.price-panel strong {
  display: block;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  margin-bottom: 12px;
}

.sales-final {
  text-align: center;
  margin-top: clamp(30px, 5vw, 52px);
}

.sales-final .owner-actions {
  justify-content: center;
}

.sales-doc-hero,
.sales-doc-section {
  margin: 0 auto;
  max-width: 1040px;
  padding: clamp(34px, 5vw, 66px) clamp(18px, 5vw, 42px);
}

.sales-doc-hero {
  padding-top: clamp(48px, 7vw, 92px);
}

.sales-doc-hero h1 {
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.08;
  margin: 0 0 18px;
}

.sales-doc-hero p:not(.eyebrow),
.sales-doc-section > p {
  color: var(--muted);
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 18px;
}

.sales-doc-section {
  border-top: 1px solid var(--line);
}

.sales-doc-section h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
  margin: 0 0 18px;
}

.detail-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
  margin: 18px 0;
}

.detail-list span {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
  padding: 12px 14px;
}

.inline-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink) !important;
  font-weight: 900 !important;
  line-height: 2;
  padding: 18px;
}

.clean-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 24px;
}

.clean-list li {
  color: var(--muted);
  font-weight: 800;
}

.clean-list.compact {
  grid-template-columns: repeat(2, 1fr);
}

.build-list {
  gap: 16px 56px;
  margin-bottom: 18px;
}

.build-list li {
  line-height: 1.45;
}

.support-extra {
  max-width: 760px;
  padding-left: 24px;
}

.clean-list.ordered {
  counter-reset: item;
}

.final-check {
  padding-bottom: clamp(56px, 8vw, 96px);
}

.faq-list {
  display: grid;
  gap: 10px;
  margin: 0 auto;
  max-width: 980px;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 900;
}

.faq-list p {
  color: var(--muted);
  margin: 10px 0 0;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .sales-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    flex-wrap: wrap;
  }

  .access-panel,
  .bonus-card,
  .admin-layout,
  .admin-item {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .access-panel {
    flex-direction: column;
  }

  .video-grid,
  .legal-grid,
  .dashboard-stats,
  .dashboard-grid,
  .operation-links,
  .member-start,
  .member-portal,
  .resource-grid,
  .guide-grid,
  .journey-nav,
  .flow-grid,
  .scope-table,
  .notice-grid,
  .owner-metrics,
  .sales-grid,
  .sales-grid.three,
  .notes-grid,
  .price-panel,
  .sales-split,
  .fit-grid,
  .sales-list.two-column,
  .detail-list,
  .clean-list.compact,
  .operator-layout {
    grid-template-columns: 1fr;
  }

  .price-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .schedule-list article {
    grid-template-columns: 1fr;
  }

  .billing-layout,
  .billing-list div {
    grid-template-columns: 1fr;
  }

  .featured-member-video {
    align-items: start;
    grid-template-columns: 1fr;
    min-height: 300px;
  }

  .featured-member-video .primary-button {
    width: 100%;
  }

  .item-actions {
    flex-wrap: wrap;
  }

  .legal-table div {
    grid-template-columns: 1fr;
  }

  .legal-table dd {
    padding-top: 10px;
  }

  .checkout-shell {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    padding-bottom: 34px;
  }

  .checkout-back {
    margin-bottom: 32px;
  }
}
