/* Orb Labs AG — Renewal (Option B) */
:root {
  --r-bg: #000000;
  --r-bg-sunken: #06080B;
  --r-accent: #34D6E4;
  --r-accent-hover: #6FE6F0;
  --r-accent-text: #04121A;
  --r-text: #A7AFB8;
  --r-heading: #FFFFFF;
  --r-heading-soft: #F4F6F8;
  --r-muted: #6F7882;
  --r-label: #7E8893;
  --r-border: rgba(255, 255, 255, 0.09);
  --r-border-strong: rgba(255, 255, 255, 0.12);
  --r-accent-border: rgba(52, 214, 228, 0.4);
  --r-max: 1240px;
  --r-max-narrow: 1000px;
  --r-font: "Archivo", sans-serif;
  --r-mono: "IBM Plex Mono", monospace;
  --r-section-pad: 120px;
  --r-pill: 100px;
  --r-header-height: 80px;
  --r-hero-header-gap: 2cm;
  --r-trust-strip-min-height: 70px;
}

::selection {
  background: var(--r-accent);
  color: var(--r-accent-text);
}

body.renewal {
  background: var(--r-bg);
  color: var(--r-text);
  font-family: var(--r-font);
  font-size: 16px;
  line-height: 1.62;
}

body.renewal.lang-zh {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.renewal.lang-zh .r-hero__title {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

html:has(body.renewal) {
  scroll-behavior: smooth;
  scroll-padding-top: var(--r-header-height);
}

body.renewal #contact {
  scroll-margin-top: calc(var(--r-header-height) + 12px);
}

body.renewal a:not(.r-btn) {
  color: inherit;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

body.renewal .r-container {
  max-width: var(--r-max);
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

body.renewal .r-container--narrow {
  max-width: var(--r-max-narrow);
}

body.renewal .r-eyebrow {
  font-family: var(--r-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--r-accent);
}

body.renewal .r-h2 {
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 800;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--r-heading);
  line-height: 1.08;
}

body.renewal .r-h3 {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--r-heading-soft);
  line-height: 1.2;
}

body.renewal .r-h2--md {
  font-size: clamp(32px, 4vw, 46px);
  max-width: 20ch;
  margin: 22px 0 0;
}

body.renewal .r-h2--lg {
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1;
  margin: 22px 0 0;
}

body.renewal .r-h2--pricing {
  font-size: clamp(32px, 4vw, 48px);
  max-width: 22ch;
  margin: 22px 0 0;
}

body.renewal .r-h2--work,
body.renewal .r-h2--insights {
  font-size: clamp(28px, 3.5vw, 40px);
  margin: 22px 0 0;
}

body.renewal .r-h2--insights {
  max-width: 20ch;
}

body.renewal .r-h2--faq {
  font-size: clamp(28px, 3.5vw, 40px);
  margin: 0 0 40px;
}

body.renewal .r-h2--contact {
  font-size: clamp(40px, 6vw, 60px);
  line-height: 0.98;
  margin: 0;
}

body.renewal .r-h3--sentence {
  text-transform: none;
  line-height: 1.25;
  margin-bottom: 16px;
}

body.renewal .r-accent-text {
  color: var(--r-accent);
}

body.renewal .r-lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--r-text);
  max-width: 66ch;
  margin-top: 26px;
}

body.renewal .r-lead--insights {
  max-width: 70ch;
  margin-top: 24px;
  font-size: 17px;
  line-height: 1.62;
}

body.renewal .r-eyebrow--card {
  letter-spacing: 0.18em;
  margin-bottom: 18px;
}

body.renewal .r-eyebrow--muted {
  color: var(--r-muted);
  letter-spacing: 0.16em;
  font-size: 11px;
  margin-bottom: 16px;
}

/* Header — fixed: always visible (do not use jsHeaderFixed hide-on-scroll) */
.r-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 60;
  height: 80px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transform: none !important;
}

.r-header__inner {
  max-width: var(--r-max);
  margin: 0 auto;
  padding: 0 40px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.r-header__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--r-heading);
  flex-shrink: 0;
}

.r-header__orb {
  width: 42px;
  height: 42px;
  object-fit: contain;
  transform-origin: center center;
  will-change: transform;
}

.r-header__wordmark {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.r-header__nav {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.r-header__nav a:not(.r-btn) {
  color: #C7CDD4;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
}

.r-header__nav a:not(.r-btn):hover {
  color: #fff;
}

.r-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.r-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-family: var(--r-font);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.r-btn--cta-dark,
body.renewal a.r-btn--cta-dark,
body.renewal a.r-btn--accent.r-btn--cta-dark,
body.renewal a.r-btn--white.r-btn--cta-dark {
  color: #04121A;
  font-weight: 700;
  min-height: calc(44px - 4mm);
  padding-block: calc(12px - 2mm);
}

.r-btn--cta-dark:hover,
body.renewal a.r-btn--cta-dark:hover,
body.renewal a.r-btn--accent.r-btn--cta-dark:hover,
body.renewal a.r-btn--white.r-btn--cta-dark:hover {
  color: #04121A;
}

.r-btn--white.r-btn--cta-dark {
  padding-block: calc(15px - 2mm);
}

.r-btn--accent {
  background: var(--r-accent);
  color: #04121A;
  font-weight: 700;
}

.r-btn--accent:hover {
  background: var(--r-accent-hover);
  color: #04121A;
}

.r-btn--white {
  background: #fff;
  color: #04121A;
  border: 1px solid #fff;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 700;
}

.r-btn--white:hover {
  background: #E6E9EC;
  border-color: #E6E9EC;
  color: #04121A;
}

.r-btn--dashboard {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: transparent;
  color: #fff;
  padding: 10px 18px;
}

.r-btn--dashboard:hover {
  background: rgba(255, 255, 255, 0.08);
}

.r-lang {
  position: relative;
}

.r-lang__trigger {
  background: transparent;
  border: none;
  color: #C7CDD4;
  font-family: var(--r-mono);
  font-size: 13px;
  cursor: pointer;
  min-height: 44px;
  padding: 0 8px;
}

.r-lang__menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 160px;
  background: #0E1116;
  border: 1px solid var(--r-border);
  border-radius: 8px;
  padding: 6px 0;
  z-index: 80;
}

.r-lang.is-open .r-lang__menu {
  display: block;
}

.r-lang__menu a {
  display: block;
  padding: 10px 16px;
  color: #C7CDD4;
  font-size: 14px;
  text-decoration: none;
}

.r-lang__menu a:hover {
  background: rgba(52, 214, 228, 0.14);
  color: #fff;
}

.r-hamburger {
  display: none;
  background: transparent;
  border: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.r-hamburger span {
  display: block;
  height: 2px;
  background: #fff;
  width: 22px;
  margin: 0 auto;
}

/* Hero — DC stacking (§5) */
.r-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: #000;
  text-align: center;
}

.r-hero__stage {
  position: relative;
  min-height: calc(100vh - var(--r-trust-strip-min-height));
  min-height: calc(100svh - var(--r-trust-strip-min-height));
}

.r-hero__video,
.r-hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}

.r-hero__fade-top,
.r-hero__fade-bottom {
  position: absolute;
  left: 0;
  width: 100%;
  z-index: 2;
  pointer-events: none;
}

.r-hero__fade-top {
  top: 0;
  height: 160px;
  background: linear-gradient(180deg, #000, transparent);
}

.r-hero__fade-bottom {
  bottom: 0;
  height: 230px;
  background: linear-gradient(0deg, #000 8%, transparent);
}

.r-hero__logo-wrap {
  position: relative;
  z-index: 3;
  padding: calc(var(--r-header-height) + var(--r-hero-header-gap)) 40px 0;
}

.r-hero__title-wrap {
  position: relative;
  z-index: 1;
  mix-blend-mode: difference;
  padding: 22px 40px 0;
}

.r-hero__bottom {
  position: relative;
  z-index: 3;
  padding: 0 40px 0.5cm;
}

.r-hero__logo {
  width: 88px;
  height: auto;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 3px 18px rgba(0, 0, 0, 0.7));
}

.r-hero__title {
  font-size: clamp(42px, 8vw, 90px);
  font-weight: 800;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: #fff;
  line-height: 0.98;
  max-width: 13ch;
  margin: 0 auto;
}

.r-hero__lead {
  max-width: 62ch;
  margin: 24px auto 0;
  font-size: clamp(16px, 2.2vw, 21px);
  line-height: 1.55;
  color: #D2D8DE;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.85);
}

.r-hero__cta {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  align-items: center;
  justify-content: center;
}

/* Trust strip — pinned to bottom of 1st view (hero + trust = 100svh) */
.r-trust {
  background: var(--r-bg-sunken);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  min-height: var(--r-trust-strip-min-height);
  display: flex;
  align-items: center;
}

.r-trust__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  justify-content: center;
  align-items: center;
  padding: 24px 40px;
  font-family: var(--r-mono);
  font-size: 12.5px;
  letter-spacing: 0.07em;
  color: #fff;
  text-transform: none;
}

.r-trust__inner > span:not(.r-trust__dot) {
  color: #fff;
  font-weight: 500;
}

.r-trust__dot {
  color: #333A42;
}

/* Per-section ambient gray video (Who it's for → Contact) */
.r-section--ambient {
  position: relative;
  overflow: hidden;
}

.r-section--ambient .r-section__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.r-section--ambient .r-section__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(1.18) contrast(1.05);
  opacity: 0.16;
}

.r-section--ambient > .r-container {
  position: relative;
  z-index: 1;
}

.r-section--contact > .r-contact-glow {
  position: absolute;
  z-index: 1;
}

/* Sections */
.r-section {
  padding: var(--r-section-pad) 0;
}

.r-section--band {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.r-section--work {
  padding-bottom: var(--r-section-pad);
}

.r-section--faq {
  padding-top: 0;
  padding-bottom: 48px;
}

.r-section--contact {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 56px;
  padding-bottom: var(--r-section-pad);
}

.r-grid-2--wide {
  margin-top: 56px;
  gap: 24px;
}

.r-card--lg {
  padding: 40px 38px;
}

.r-card--lg p,
.r-card--step p,
.r-card__desc {
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--r-text);
}

.r-card--step {
  padding: 34px 32px;
}

.r-step-num {
  font-family: var(--r-mono);
  font-size: 34px;
  font-weight: 500;
  color: var(--r-accent);
  line-height: 1;
}

.r-card--step .r-eyebrow--card {
  margin: 18px 0 12px;
}

.r-card--step p {
  font-size: 16px;
  line-height: 1.6;
}

.r-spec-value {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--r-heading-soft);
}

.r-dont {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.r-dont__intro p:last-child {
  margin-top: 24px;
  font-size: 16.5px;
  line-height: 1.62;
}

.r-dont__item {
  display: flex;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.r-dont__dash {
  font-family: var(--r-mono);
  color: var(--r-accent);
  font-size: 20px;
  flex-shrink: 0;
}

.r-dont__item p {
  font-size: 17.5px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--r-heading-soft);
}

.r-dont__closing {
  font-size: 17px;
  line-height: 1.55;
  color: #C7CDD4;
  margin-top: 26px;
}

.r-pricing-grid {
  margin-top: 60px;
  gap: 20px;
  align-items: stretch;
}

.r-pricing-grid > .r-card--pricing {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.r-pricing-grid .r-card__desc {
  flex: 1 1 auto;
  margin-bottom: 0;
}

.r-pricing-grid .r-price-rows,
.r-pricing-grid .r-price-block {
  margin-top: auto;
  flex-shrink: 0;
  width: 100%;
}

.r-card--stack {
  display: flex;
  flex-direction: column;
  padding: 36px 32px;
}

.r-card__desc {
  font-size: 15px;
  margin-bottom: 26px;
}

.r-price-rows {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.r-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 13px;
  font-size: 14.5px;
  color: var(--r-text);
}

.r-price-row strong {
  font-size: 25px;
  font-weight: 700;
  color: var(--r-heading);
}

.r-price-row--accent span {
  color: var(--r-accent);
}

.r-price-row--accent strong {
  color: var(--r-accent);
}

.r-price-block {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
}

.r-price-block__main {
  font-size: 38px;
  font-weight: 700;
  color: var(--r-heading);
}

.r-price-block__unit {
  font-size: 16px;
  color: var(--r-text);
  font-weight: 400;
}

.r-price-block__sub {
  font-size: 13.5px;
  color: var(--r-muted);
  margin-top: 6px;
}

.r-pricing-note {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--r-muted);
  margin-top: 28px;
  max-width: 92ch;
}

.r-work {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 64px 60px;
  border-radius: 20px;
  border: 1px solid rgba(52, 214, 228, 0.22);
  background: linear-gradient(135deg, #0E1620, #0A0C10);
  overflow: hidden;
}

.r-work__glow {
  position: absolute;
  top: -160px;
  right: -120px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 214, 228, 0.18), rgba(52, 214, 228, 0) 65%);
  pointer-events: none;
}

.r-work__copy {
  position: relative;
}

.r-work__copy p {
  font-size: 17px;
  line-height: 1.6;
  max-width: 52ch;
  margin-top: 22px;
}

.r-work__copy .r-btn {
  margin-top: 30px;
}

.r-work__mock {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #070A0E;
  border-radius: 14px;
  aspect-ratio: 1.45 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 13px;
  padding: 30px 34px;
}

.r-work__mock-label {
  position: absolute;
  top: 14px;
  left: 18px;
  font-family: var(--r-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: #5A636D;
}

.r-work__mock-bar {
  height: 9px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
}

.r-work__mock-bar--accent {
  background: var(--r-accent);
  opacity: 0.55;
}

.r-work__mock-foot {
  margin-top: 8px;
  font-family: var(--r-mono);
  font-size: 11px;
  color: #5A636D;
}

.r-about {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
}

.r-about__body p {
  font-size: 17.5px;
  line-height: 1.62;
  color: var(--r-text);
  margin-top: 20px;
}

.r-about__lead {
  color: #C7CDD4 !important;
  margin-top: 0 !important;
}

.r-about__lead strong {
  color: #fff;
  font-weight: 700;
}

.r-about__linkedin {
  color: var(--r-accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(52, 214, 228, 0.45);
  text-underline-offset: 3px;
}

.r-about__linkedin:hover {
  color: var(--r-accent-hover);
}

.r-about__accent {
  color: var(--r-accent) !important;
  font-size: 17px !important;
  line-height: 1.55 !important;
  margin-top: 24px !important;
}

.r-insights__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
}

.r-link-arrow {
  font-size: 15px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(52, 214, 228, 0.6);
  padding-bottom: 3px;
}

.r-link-arrow:hover {
  color: var(--r-accent);
}

.r-contact {
  position: relative;
}

.r-contact-glow {
  position: absolute;
  bottom: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1000px, 100vw);
  height: 480px;
  background: radial-gradient(ellipse at center, rgba(52, 214, 228, 0.16), rgba(52, 214, 228, 0) 62%);
  pointer-events: none;
}

.r-contact__head {
  text-align: center;
  margin-bottom: 52px;
}

.r-contact__head p {
  font-size: 19px;
  line-height: 1.55;
  color: var(--r-text);
  max-width: 54ch;
  margin: 22px auto 0;
}

.r-section--tight {
  padding: 80px 0;
}

.r-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

.r-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.r-section--band .r-grid-4 {
  margin-top: 60px;
}

.r-section .r-grid-3 {
  margin-top: 56px;
}

.r-card {
  background: linear-gradient(180deg, #101319, #0B0D11);
  border: 1px solid var(--r-border);
  border-radius: 16px;
  padding: 28px;
}

.r-card--spec {
  background: #0E1116;
  border-radius: 14px;
  padding: 30px 26px;
}

.r-card--pricing {
  background: linear-gradient(180deg, #11161D, #0B0D11);
  border-radius: 16px;
  padding: 36px 32px;
}

.r-card--featured {
  border-color: var(--r-accent-border);
  box-shadow: 0 0 0 1px rgba(52, 214, 228, 0.12);
}

.r-card__price {
  font-family: var(--r-mono);
  font-size: 34px;
  font-weight: 500;
  color: var(--r-heading);
  margin: 16px 0;
}

.r-list-check {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.r-list-check li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  color: var(--r-text);
}

.r-list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 2px;
  background: var(--r-accent);
}

/* FAQ */
.r-faq details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0;
}

.r-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--r-heading-soft);
  font-weight: 600;
  font-size: 20px;
  padding: 26px 0;
}

.r-faq summary::-webkit-details-marker {
  display: none;
}

.r-faq .faqp {
  font-family: var(--r-mono);
  color: var(--r-accent);
  font-size: 24px;
  transition: transform 0.25s;
}

.r-faq details[open] .faqp {
  transform: rotate(45deg);
}

.r-faq__body {
  padding: 0 0 26px;
  color: var(--r-text);
  font-size: 16.5px;
  line-height: 1.6;
}

/* Contact form */
.r-cf7-wrap .wpcf7 form,
.r-form {
  background: linear-gradient(180deg, #101319, #0B0D11);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 44px;
}

.r-cf7-wrap .wpcf7 form .r-form__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.r-cf7-wrap .wpcf7 form .r-form__fields p:nth-child(5),
.r-cf7-wrap .wpcf7 form .r-form__fields p:nth-child(6),
.r-cf7-wrap .wpcf7 form .r-form__footer {
  grid-column: 1 / -1;
}

.r-cf7-wrap .wpcf7 form .r-form__footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 26px;
}

.r-form label {
  display: block;
  font-family: var(--r-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--r-label);
  margin-bottom: 8px;
}

.r-form input,
.r-form select,
.r-form textarea {
  width: 100%;
  background: #06080B;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: #fff;
  padding: 14px 16px;
  font-family: var(--r-font);
  font-size: 16px;
  margin-bottom: 20px;
}

.r-form input:focus,
.r-form select:focus,
.r-form textarea:focus {
  outline: 2px solid var(--r-accent);
  outline-offset: 0;
}

.r-form textarea {
  min-height: 140px;
  resize: vertical;
}

.r-form__note {
  font-size: 14px;
  color: var(--r-muted);
  margin-top: 16px;
}

.r-form__success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.r-form__success.is-visible {
  display: block;
}

/* Contact Form 7 — renewal skin */
.r-cf7-wrap .wpcf7 {
  margin: 0;
}

.r-cf7-wrap .wpcf7 form .r-form__fields p {
  margin: 0 0 4px;
}

.r-cf7-wrap .wpcf7 label {
  display: block;
  margin-bottom: 0;
}

.r-cf7-wrap .wpcf7 label span {
  display: block;
  font-family: var(--r-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8A929B;
  margin-bottom: 8px;
}

.r-cf7-wrap .wpcf7 input.r-input,
.r-cf7-wrap .wpcf7 select.r-input,
.r-cf7-wrap .wpcf7 textarea.r-input,
.r-cf7-wrap .wpcf7 input[type="text"],
.r-cf7-wrap .wpcf7 input[type="email"],
.r-cf7-wrap .wpcf7 select,
.r-cf7-wrap .wpcf7 textarea {
  width: 100%;
  background: #06080B;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: #fff;
  padding: 14px 16px;
  font-family: var(--r-font);
  font-size: 15px;
  margin-bottom: 0;
  box-sizing: border-box;
}

.r-cf7-wrap .wpcf7 select.r-input,
.r-cf7-wrap .wpcf7 select {
  min-height: 48px;
  line-height: 1.4;
  padding: 12px 40px 12px 16px;
  font-size: 16px;
  letter-spacing: normal;
  text-transform: none;
  -webkit-appearance: menulist;
  appearance: auto;
  cursor: pointer;
}

.r-cf7-wrap .wpcf7 input:focus,
.r-cf7-wrap .wpcf7 select:focus,
.r-cf7-wrap .wpcf7 textarea:focus {
  outline: 2px solid var(--r-accent);
  outline-offset: 0;
}

.r-cf7-wrap .wpcf7 input[type="submit"],
.r-cf7-wrap .wpcf7 .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 16px 38px;
  border-radius: var(--r-pill);
  font-family: var(--r-font);
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  background: var(--r-accent);
  color: var(--r-accent-text);
  width: auto;
  margin-bottom: 0;
}

.r-cf7-wrap .wpcf7 input[type="submit"]:hover {
  background: var(--r-accent-hover);
}

.r-cf7-wrap .wpcf7-not-valid-tip {
  color: #ff8a8a;
  font-size: 13px;
  margin-top: -12px;
  margin-bottom: 12px;
}

.r-cf7-wrap .wpcf7-response-output {
  display: none !important;
}

.r-contact-success {
  display: none;
  text-align: center;
  padding: 44px 20px;
  background: linear-gradient(180deg, #101319, #0B0D11);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

.r-contact-success__title {
  margin: 12px 0;
  text-transform: uppercase;
}

.r-cf7-wrap.is-sent > .wpcf7 {
  display: none;
}

.r-cf7-wrap.is-sent .r-contact-success {
  display: block;
}

.r-cf7-wrap .wpcf7-renewal-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.r-cf7-wrap.is-sent .r-form__fields {
  display: none;
}

.r-cf7-wrap.is-sent .wpcf7-renewal-success {
  display: block;
}

.r-cf7-wrap .wpcf7-spinner {
  margin-left: 12px;
}

.r-form.is-sent .r-form__fields {
  display: none;
}

/* Footer */
.r-footer {
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 72px 0 56px;
}

.r-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.r-footer__mark {
  width: 46px;
  height: auto;
  opacity: 0.85;
}

.r-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  justify-content: center;
  font-size: 14.5px;
}

.r-footer__nav a {
  color: var(--r-text);
  text-decoration: none;
}

.r-footer__nav a:hover {
  color: #fff;
}

.r-footer__legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  font-size: 13px;
  margin-top: 4px;
}

.r-footer__legal-nav a {
  color: var(--r-muted);
  text-decoration: none;
}

.r-footer__legal-nav a:hover {
  color: var(--r-text);
}

.r-footer__legal {
  font-size: 12.5px;
  line-height: 1.65;
  color: #5A636D;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: 48px;
  padding-top: 28px;
  max-width: 90ch;
}

/* Member chrome — keep report layout, renewal header/footer only */
body.renewal-member.mypage {
  background: #FBFCFC;
  color: #333;
  margin-left: 0;
}

body.renewal-member.mypage .r-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 600;
}

body.renewal-member.mypage .local-nav,
body.mypage .local-nav {
  display: none !important;
}

body.renewal-member.mypage .main-content {
  padding-top: 80px;
  min-height: 100vh;
}

@media screen and (max-width: 1052px) {
  body.renewal-member.mypage .main-content {
    padding-top: 80px;
  }
}

/* Legal pages */
.r-section--legal {
  padding-top: 80px;
  padding-bottom: var(--r-section-pad);
}

.r-legal-page {
  padding-top: 24px;
  padding-bottom: 40px;
}

.r-legal h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--r-heading);
  line-height: 1.15;
  margin: 0 0 28px;
}

.r-legal h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--r-heading-soft);
  line-height: 1.2;
  margin: 40px 0 16px;
}

.r-legal h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--r-heading-soft);
  line-height: 1.3;
  margin: 28px 0 12px;
  text-transform: none;
}

.r-legal h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--r-heading-soft);
  margin: 20px 0 10px;
}

.r-legal p,
.r-legal li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--r-text);
}

.r-legal p {
  margin: 0 0 16px;
}

.r-legal p strong,
.r-legal li strong {
  color: #C7CDD4;
}

.r-legal ul,
.r-legal ol {
  margin: 0 0 20px;
  padding-left: 1.4em;
}

.r-legal li {
  margin-bottom: 10px;
}

.r-legal a {
  color: var(--r-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.r-legal a:hover {
  color: var(--r-accent-hover);
}

.r-legal__hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 32px 0;
}

.r-legal__table-wrap {
  overflow-x: auto;
  margin: 20px 0 28px;
}

.r-legal__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.r-legal__table th,
.r-legal__table td {
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  color: var(--r-text);
}

.r-legal__table th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--r-heading-soft);
  font-weight: 600;
}

@media (max-width: 960px) {
  .r-header__nav {
    display: none;
  }

  .r-header__nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.96);
    padding: 20px 40px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .r-hamburger {
    display: flex;
  }

  .r-grid-2,
  .r-grid-3,
  .r-grid-4,
  .r-dont,
  .r-about,
  .r-work {
    grid-template-columns: 1fr;
  }

  .r-work {
    padding: 40px 28px;
  }

  .r-cf7-wrap .wpcf7 form .r-form__fields {
    grid-template-columns: 1fr;
  }

  .r-hero__logo-wrap,
  .r-hero__title-wrap,
  .r-hero__bottom {
    padding-left: 20px;
    padding-right: 20px;
  }

  body.renewal .r-container,
  .r-header__inner,
  .r-trust__inner {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .r-header__orb {
    transform: none !important;
  }

  .r-hero__video,
  .r-section__video {
    display: none;
  }
}
