/*
 * VN Palette 2026 redesign
 * Brand direction: warm editorial layout with navy, teal and coral accents.
 */

:root {
  --ink: #18324a;
  --ink-deep: #10283d;
  --ink-soft: #536979;
  --paper: #f4f7f5;
  --paper-warm: #fbfaf6;
  --surface: #ffffff;
  --teal: #168c88;
  --teal-dark: #0d726f;
  --teal-soft: #dff2ee;
  --coral: #ed755d;
  --coral-dark: #d95f49;
  --coral-soft: #fbe7e1;
  --sun: #f1c96a;
  --line: rgba(24, 50, 74, 0.12);
  --line-strong: rgba(24, 50, 74, 0.2);
  --shadow-sm: 0 12px 32px rgba(22, 54, 71, 0.08);
  --shadow-md: 0 24px 64px rgba(22, 54, 71, 0.12);
  --shadow-lg: 0 34px 90px rgba(17, 45, 62, 0.16);
  --radius-xl: 38px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --accent: var(--teal);
  --accent-strong: var(--teal-dark);
  --accent-soft: rgba(22, 140, 136, 0.1);
  --primary: var(--coral);
  --bg-dark: var(--ink-deep);
  --bg-light: var(--paper);
  --text-main: var(--ink);
  --text-muted: var(--ink-soft);
  --gradient-1: linear-gradient(135deg, var(--teal), #3db5a6);
  --gradient-2: linear-gradient(135deg, var(--coral), #f19471);
  color-scheme: light;
  background: var(--paper);
  color: var(--ink);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 8%, rgba(22, 140, 136, 0.08), transparent 24rem),
    radial-gradient(circle at 96% 26%, rgba(237, 117, 93, 0.07), transparent 26rem),
    var(--paper);
  color: var(--ink);
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.015em;
}

::selection {
  background: rgba(22, 140, 136, 0.22);
  color: var(--ink-deep);
}

a,
button,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(22, 140, 136, 0.35);
  outline-offset: 3px;
}

.page-shell,
.blog-shell {
  width: min(100%, 1400px);
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(18px, 3vw, 42px);
}

main {
  min-width: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 14px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  margin: 14px 0 28px;
  padding: 12px 16px 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 36px rgba(24, 50, 74, 0.09);
  backdrop-filter: blur(22px) saturate(140%);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.logo-image {
  width: 48px;
  height: 48px;
  padding: 3px;
  border: 1px solid rgba(24, 50, 74, 0.1);
  border-radius: 15px;
  background: var(--ink-deep);
  box-shadow: 0 8px 20px rgba(24, 50, 74, 0.14);
  object-fit: cover;
}

.logo-text {
  display: grid;
  gap: 2px;
}

.logo-text strong {
  color: var(--ink-deep);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.logo-text small,
.member-header .logo-text small {
  color: #718391;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 21px);
}

.site-nav a,
.site-nav .nav-signout {
  padding: 9px 2px;
  border: 0;
  background: transparent;
  color: #465e70;
  font-family: inherit;
  font-size: clamp(0.76rem, 1vw, 0.9rem);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: color 180ms ease, transform 180ms ease, background 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav .nav-signout:hover,
.site-nav .nav-signout:focus-visible,
.site-nav a.current {
  color: var(--teal-dark);
  transform: translateY(-1px);
}

.site-nav .nav-auth,
.site-nav .cta-nav,
.site-nav .nav-signout {
  padding: 12px 17px;
  border-radius: 999px;
}

.site-nav .nav-auth,
.site-nav .cta-nav {
  background: var(--ink-deep);
  color: #fff;
  box-shadow: 0 8px 20px rgba(16, 40, 61, 0.18);
}

.site-nav .nav-auth:hover,
.site-nav .cta-nav:hover {
  background: var(--teal-dark);
  color: #fff;
}

.site-nav .nav-signout {
  border: 1px solid rgba(24, 50, 74, 0.15);
  color: var(--ink);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: var(--ink);
}

/* Buttons */
.btn {
  min-height: 50px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(24, 50, 74, 0.14);
}

.primary-btn {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 10px 24px rgba(217, 95, 73, 0.22);
}

.primary-btn:hover,
.primary-btn:focus-visible {
  background: var(--coral-dark);
}

.secondary-btn {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
}

.secondary-btn:hover,
.secondary-btn:focus-visible {
  background: #fff;
  color: var(--teal-dark);
}

.ghost-btn {
  border: 1px solid rgba(22, 140, 136, 0.3);
  background: transparent;
  color: var(--teal-dark);
}

/* Homepage hero */
.home-page .hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
  min-height: 640px;
  margin-bottom: 28px;
  padding: clamp(54px, 6vw, 82px) clamp(28px, 6vw, 84px);
  overflow: hidden;
  border: 1px solid rgba(24, 50, 74, 0.08);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.96) 5%, rgba(251, 250, 246, 0.92) 56%, rgba(223, 242, 238, 0.9) 100%);
  color: var(--ink);
  box-shadow: var(--shadow-md);
}

.home-page .hero::before {
  content: "";
  position: absolute;
  top: -86px;
  right: 28%;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(22, 140, 136, 0.18);
  border-radius: 50%;
}

.home-page .hero::after {
  content: "";
  position: absolute;
  right: -58px;
  bottom: -74px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(241, 201, 106, 0.18);
}

.home-page .hero-orbs {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}

.home-page .hero-orb {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: normal;
}

.home-page .hero-orb.orb-lg {
  top: -110px;
  right: -80px;
  width: 330px;
  height: 330px;
  background: rgba(22, 140, 136, 0.08);
}

.home-page .hero-orb.orb-md {
  bottom: -140px;
  left: 25%;
  width: 280px;
  height: 280px;
  background: rgba(237, 117, 93, 0.08);
}

.home-page .hero-orb.orb-sm {
  top: 48px;
  left: 48%;
  width: 72px;
  height: 72px;
  border: 18px solid rgba(241, 201, 106, 0.24);
  background: transparent;
}

.home-page .hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 21px;
  max-width: 720px;
  justify-items: start;
  animation: vn-rise 600ms ease-out both;
}

.home-page .hero-topline {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid rgba(22, 140, 136, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  line-height: 1.3;
  white-space: nowrap;
}

.home-page .hero-topline::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 5px rgba(237, 117, 93, 0.12);
}

.home-page .hero-topline::after {
  display: none;
}

.home-page .hero h1 {
  margin: 0;
  color: var(--ink-deep);
  font-size: clamp(2.75rem, 4.6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.17;
  letter-spacing: -0.055em;
}

.home-page .hero h1 strong {
  display: inline;
  background: linear-gradient(100deg, var(--teal-dark), #36a69c 58%, var(--coral) 115%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 900;
}

.home-page .hero h1 .hero-line {
  display: block;
}

.home-page .hero h1 .hero-line-one {
  white-space: nowrap;
}

.home-page .hero-copy {
  max-width: 640px;
  margin: 0;
  color: #4b6272;
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.9;
}

.home-page .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 2px 0 0;
}

.home-page .hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 2px;
  color: #667b89;
  font-size: 0.79rem;
}

.home-page .hero-highlights span {
  position: relative;
  padding: 0 0 0 18px;
  border-radius: 0;
  background: transparent;
}

.home-page .hero-highlights span::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 900;
}

.home-page .hero-highlights strong {
  color: var(--ink);
}

.home-page .hero .video-card {
  position: relative;
  z-index: 2;
  width: min(100%, 320px);
  margin: 0;
  padding: 14px;
  justify-self: end;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background: var(--ink-deep);
  box-shadow: var(--shadow-lg);
  color: #fff;
  animation: vn-rise 700ms 80ms ease-out both;
}

.video-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 5px 5px 14px;
}

.video-card-heading > div {
  display: grid;
  gap: 1px;
}

.video-card-heading span {
  color: #83cfc5;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.video-card-heading strong {
  font-size: 0.82rem;
}

.video-card-heading .video-duration {
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.06em;
}

.home-page .video-still {
  aspect-ratio: 9 / 14;
  border-radius: 18px;
  background: #091b2b;
  box-shadow: none;
}

.home-page .video-still::before {
  display: none;
}

.video-caption {
  margin: 0;
  padding: 12px 5px 3px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.72rem;
  line-height: 1.65;
}

@keyframes vn-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Shared sections */
.section {
  margin-bottom: 28px;
  padding: clamp(58px, 7vw, 96px);
  border: 1px solid rgba(24, 50, 74, 0.07);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.93);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.section.soft {
  border-color: rgba(22, 140, 136, 0.12);
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 255, 255, 0.62), transparent 22rem),
    var(--teal-soft);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.section.highlight {
  border-color: rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 92% 5%, rgba(22, 140, 136, 0.26), transparent 26rem),
    radial-gradient(circle at 4% 90%, rgba(237, 117, 93, 0.18), transparent 24rem),
    var(--ink-deep);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.section-header {
  max-width: 720px;
  margin: 0 0 clamp(32px, 4vw, 54px);
}

.section-header .eyebrow,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  line-height: 1.3;
  text-transform: uppercase;
}

.section-header .eyebrow::before,
.support-contact > .eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--coral);
}

.section-header h2 {
  margin: 0 0 16px;
  color: var(--ink-deep);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.04em;
}

.section-header p,
.section.soft .section-header p,
.section.soft .form-note,
.section.soft label,
.section.soft select,
.section.soft input,
.section.soft textarea {
  margin: 0;
  color: var(--ink-soft);
}

.section.highlight .section-header h2,
.section.highlight .section-header p,
.section.highlight .section-header .eyebrow {
  color: #fff;
}

.section.highlight .section-header p {
  color: rgba(255, 255, 255, 0.72);
}

.section.highlight .section-header .eyebrow::before {
  background: var(--sun);
}

.home-page #about {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.35fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: start;
}

.home-page #about .section-header {
  position: sticky;
  top: 126px;
  margin: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.feature-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(170px, 0.62fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-warm);
  box-shadow: none;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(22, 140, 136, 0.28);
  box-shadow: var(--shadow-sm);
}

.feature-number {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 17px;
  background: var(--ink-deep);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.feature-card:nth-child(2) .feature-number {
  background: var(--teal);
}

.feature-card:nth-child(3) .feature-number {
  background: var(--coral);
}

.feature-card h3 {
  margin: 10px 0 0;
  color: var(--ink-deep);
  font-size: 1.12rem;
  line-height: 1.55;
}

.feature-card p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.85;
}

/* Joining flow */
.home-page #join .section-header {
  max-width: 800px;
}

.section.soft .join-title,
#member-auth .section-header h2 {
  color: var(--ink-deep);
}

.join-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(22px, 4vw, 40px);
}

.section.soft .join-form,
.join-form,
.contact-form {
  padding: clamp(25px, 4vw, 38px);
  border: 1px solid rgba(24, 50, 74, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.join-form h3,
.info-card h3 {
  color: var(--ink-deep);
}

.join-guide .form-note,
.join-hint,
.section.soft .join-guide .form-note {
  color: var(--ink-soft);
}

.join-steps {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: join-step;
  display: grid;
  gap: 8px;
  color: var(--ink);
}

.join-steps li {
  position: relative;
  min-height: 58px;
  padding: 15px 14px 15px 58px;
  border-radius: 15px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.7;
  counter-increment: join-step;
}

.join-steps li::before {
  content: counter(join-step);
  position: absolute;
  top: 13px;
  left: 13px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
}

.join-cta {
  align-self: flex-start;
  margin-top: 12px;
}

.join-info {
  display: grid;
  gap: 16px;
}

.info-card {
  padding: 28px;
  border: 1px solid rgba(24, 50, 74, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
}

.info-card ul {
  padding: 0;
  list-style: none;
}

.info-card li {
  position: relative;
  padding-left: 24px;
}

.info-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 900;
}

/* Representative */
.team-section {
  border-color: rgba(24, 50, 74, 0.07);
  background: #fff;
}

.team-card,
.team-card.compact {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 5vw, 60px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.team-profile {
  gap: 22px;
}

.team-photo {
  aspect-ratio: 1 / 1.08;
  border: 0;
  border-radius: 32px 32px 110px 32px;
  background:
    radial-gradient(circle at 75% 20%, rgba(241, 201, 106, 0.62), transparent 24%),
    linear-gradient(145deg, var(--teal-soft), #d8ebe8);
  box-shadow: none;
}

.team-photo img {
  object-fit: contain;
  object-position: center bottom;
  transform: scale(0.94);
  transform-origin: center bottom;
}

.team-role {
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.team-name {
  color: var(--ink-deep);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
}

.team-title,
.team-lede {
  color: var(--ink-soft);
}

.team-badges li {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.team-info {
  gap: 12px;
}

.team-meta {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper-warm);
}

.team-meta h3 {
  color: var(--ink-deep);
}

.team-tags span {
  border-color: rgba(22, 140, 136, 0.18);
  color: var(--ink);
}

.team-history-list li::before {
  background: var(--coral);
}

/* Plans */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 920px;
}

.pricing-title {
  white-space: normal;
}

.plan-card,
.plan-card.featured {
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
  color: var(--ink);
}

.plan-card.featured {
  border: 2px solid var(--coral);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
}

.plan-card h3,
.plan-card.featured h3 {
  color: var(--ink-deep);
  font-size: 1.35rem;
}

.plan-badge {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.plan-badge.popular {
  background: var(--coral-soft);
  color: var(--coral-dark);
}

.plan-price {
  color: var(--ink-deep);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.plan-card li {
  color: var(--ink-soft);
}

.plan-card li::before {
  color: var(--teal);
}

/* Authentication */
#member-auth {
  background:
    radial-gradient(circle at 100% 0, rgba(237, 117, 93, 0.12), transparent 26rem),
    #f7f3eb;
}

#member-auth .join-copy span,
#member-auth .section-header p {
  color: var(--ink-soft);
}

.auth-wrapper {
  max-width: 850px;
  padding: 12px;
  border: 1px solid rgba(24, 50, 74, 0.08);
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.auth-panel {
  padding: clamp(26px, 5vw, 48px);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0, rgba(22, 140, 136, 0.26), transparent 22rem),
    var(--ink-deep);
  color: #fff;
}

.auth-google-btn {
  background: #fff;
  color: var(--ink-deep);
}

.auth-form input,
.profile-form input,
.profile-form textarea {
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.auth-heading span,
.auth-divider span {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
}

/* Partner and contact */
.partner-section .section-header,
.partner-section .section-header h2 {
  color: var(--ink);
}

.partner-section .section-header p {
  color: var(--ink-soft);
}

.partner-card {
  display: block;
  max-width: 380px;
  padding: 18px;
  background: #fff;
}

.partner-image {
  width: min(100%, 290px);
  border-radius: 12px;
  box-shadow: none;
}

#contact {
  padding-top: clamp(52px, 7vw, 84px);
  padding-bottom: clamp(52px, 7vw, 84px);
}

.contact-wrapper {
  display: block;
  max-width: 880px;
  margin: 0 auto;
}

.contact-form.contact-centered {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
}

.contact-centered h2 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.35;
}

.contact-centered p,
.contact-form .contact-note {
  color: rgba(255, 255, 255, 0.7);
}

.contact-form .btn.contact-submit-btn,
.contact-form .btn.contact-submit-btn:visited {
  border: 0;
  background: var(--coral);
  color: #fff !important;
}

/* Footer */
.site-footer {
  padding: 48px 24px 64px;
  color: #627684;
  text-align: center;
  font-size: 0.78rem;
}

.footer-brand strong {
  color: var(--ink-deep);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
}

.footer-links a {
  color: var(--teal-dark);
  font-weight: 700;
}

/* Member dashboard and seminar pages */
.member-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
  margin-bottom: 28px;
  padding: clamp(52px, 8vw, 88px) clamp(28px, 6vw, 76px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 92% 0, rgba(22, 140, 136, 0.34), transparent 28rem),
    radial-gradient(circle at 0 100%, rgba(237, 117, 93, 0.16), transparent 24rem),
    var(--ink-deep);
  box-shadow: var(--shadow-md);
}

.member-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.member-hero-content {
  position: relative;
  z-index: 1;
}

.member-hero-content h1 {
  margin: 6px 0 18px;
  color: #fff;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 1.25;
  letter-spacing: -0.045em;
}

.member-hero-eyebrow {
  color: #83cfc5;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.member-hero-copy {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.95;
}

.member-summary {
  position: relative;
  z-index: 1;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.member-summary h2 {
  color: #fff;
}

.member-summary li {
  border-color: rgba(255, 255, 255, 0.12);
}

.member-summary strong {
  color: #fff;
}

.profile-card,
.profile-form,
.video-card,
.resource-card {
  border-radius: var(--radius-lg);
  box-shadow: none;
}

.profile-card,
.video-card,
.resource-card {
  border: 1px solid var(--line);
  background: var(--paper-warm);
}

.profile-form {
  border: 0;
  background: var(--ink-deep);
}

.video-gallery {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}

.video-card {
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.video-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.video-thumb {
  background: var(--ink-deep);
}

.support-grid {
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--ink-deep);
}

.support-contact {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

.danger-zone {
  border-radius: var(--radius-lg);
}

.modal {
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Seminar reports */
.seminar-page .member-hero {
  grid-template-columns: minmax(0, 1fr);
}

.seminar-page .past-seminars .section-header {
  max-width: 760px;
}

.past-seminar-cards {
  gap: 24px;
}

.past-seminar-card {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--paper-warm);
  box-shadow: none;
}

.past-seminar-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.past-seminar-image {
  background: var(--teal-soft);
}

.past-seminar-badge {
  background: var(--coral);
}

.past-seminar-badge.badge-online {
  background: var(--teal);
}

.past-seminar-content {
  padding: clamp(24px, 4vw, 40px);
}

.past-seminar-card h3 {
  color: var(--ink-deep);
}

.past-seminar-meta .date-highlight {
  color: var(--teal-dark);
}

.past-seminar-meta {
  border-color: rgba(22, 140, 136, 0.14);
  background: var(--teal-soft);
  color: var(--ink);
}

.community-cta {
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 100% 0, rgba(22, 140, 136, 0.3), transparent 22rem),
    var(--ink-deep);
}

.community-cta h2 strong {
  color: #83cfc5;
}

/* Blog */
.blog-main {
  gap: 28px;
  padding-top: 0;
}

.blog-hero-simple {
  padding: clamp(44px, 7vw, 82px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 92% 8%, rgba(22, 140, 136, 0.34), transparent 24rem),
    var(--ink-deep);
  box-shadow: var(--shadow-md);
}

.hero-text h1 {
  margin: 10px 0 18px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.25;
  letter-spacing: -0.045em;
}

.hero-text .eyebrow {
  color: #83cfc5;
}

.hero-stat {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.blog-layout-simple {
  grid-template-columns: minmax(0, 2.15fr) minmax(270px, 0.85fr);
  gap: 22px;
}

.blog-feed-panel,
.blog-feed-entry {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.blog-feed-entry {
  background: var(--paper-warm);
  box-shadow: none;
}

.blog-feed-tags span {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.blog-sidebar-simple {
  top: 112px;
}

.sidebar-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--ink);
}

.sidebar-card h2 {
  color: var(--ink-deep);
}

.blog-title-list button,
.blog-category-list button {
  background: var(--paper);
  color: var(--ink);
}

.blog-title-list button:hover,
.blog-category-list button:hover,
.blog-title-list button.active,
.blog-category-list button.active {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.blog-tag-cloud button {
  border-color: rgba(22, 140, 136, 0.24);
  color: var(--teal-dark);
}

.blog-tag-cloud button.active {
  background: var(--teal);
  color: #fff;
}

/* Forms */
input,
select,
textarea {
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}

/* Responsive */
@media (max-width: 1080px) {
  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .site-nav.open {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    left: 0;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
    width: auto;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
  }

  .site-nav.open a,
  .site-nav.open .nav-signout {
    width: 100%;
    padding: 12px 14px;
    color: var(--ink);
    text-align: left;
  }

  .site-nav.open .nav-auth,
  .site-nav.open .cta-nav {
    background: var(--ink-deep);
    color: #fff;
    text-align: center;
  }

  .home-page .hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(285px, 0.8fr);
    gap: 32px;
    padding-right: 36px;
    padding-left: 36px;
  }

  .home-page .hero .video-card {
    width: 310px;
  }

  .feature-card {
    grid-template-columns: 52px 1fr;
  }

  .feature-card p {
    grid-column: 2;
    margin-top: -12px;
  }
}

@media (max-width: 820px) {
  .page-shell,
  .blog-shell {
    padding-right: 16px;
    padding-left: 16px;
  }

  .site-header {
    top: 8px;
    margin-top: 8px;
    margin-bottom: 16px;
  }

  .home-page .hero,
  .member-hero,
  .blog-hero-simple {
    grid-template-columns: 1fr;
  }

  .home-page .hero {
    padding: 54px 30px;
  }

  .home-page .hero-content {
    max-width: 680px;
  }

  .home-page .hero .video-card {
    width: min(100%, 350px);
    justify-self: start;
  }

  .home-page #about {
    grid-template-columns: 1fr;
  }

  .home-page #about .section-header {
    position: static;
  }

  .join-wrapper,
  .team-card,
  .team-card.compact,
  .pricing-grid,
  .blog-layout-simple {
    grid-template-columns: 1fr;
  }

  .blog-sidebar-simple {
    position: static;
  }

  .member-summary {
    max-width: 520px;
  }
}

@media (max-width: 600px) {
  html {
    scroll-padding-top: 92px;
  }

  body {
    font-size: 15px;
    line-height: 1.75;
  }

  .site-header {
    min-height: 66px;
    padding: 9px 10px;
    border-radius: 17px;
  }

  .page-shell,
  .blog-shell,
  main {
    max-width: 100%;
    overflow-x: clip;
  }

  .logo {
    gap: 9px;
  }

  .logo-image {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .logo-text strong {
    font-size: 0.92rem;
  }

  .logo-text small {
    display: none;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
  }

  .home-page .hero,
  .member-hero,
  .blog-hero-simple,
  .section {
    border-radius: 26px;
  }

  .home-page .hero {
    min-height: 0;
    padding: 44px 22px 26px;
  }

  .home-page .hero-orb.orb-lg {
    right: 0;
    width: 230px;
    height: 230px;
  }

  .home-page .hero-content {
    justify-items: start;
    gap: 20px;
    text-align: left;
  }

  .home-page .hero-topline {
    font-size: 0.62rem;
    letter-spacing: 0.13em;
  }

  .home-page .hero h1 {
    font-size: clamp(2.1rem, 8.8vw, 2.45rem);
    line-height: 1.2;
    text-align: left;
  }

  .home-page .hero-copy {
    font-size: 0.92rem;
    line-height: 1.9;
    text-align: left;
  }

  .home-page .hero-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .home-page .hero-actions .btn {
    width: 100%;
  }

  .home-page .hero-highlights {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .home-page .hero-highlights span {
    width: auto;
    text-align: left;
  }

  .home-page .hero .video-card {
    width: min(100%, 310px);
    margin-top: 8px;
    justify-self: center;
  }

  .section {
    padding: 42px 22px;
  }

  .section-header h2 {
    font-size: clamp(1.85rem, 9vw, 2.6rem);
  }

  .feature-card {
    grid-template-columns: 45px minmax(0, 1fr);
    gap: 14px;
    padding: 20px;
  }

  .feature-number {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .feature-card h3 {
    margin-top: 5px;
  }

  .feature-card p {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .join-form,
  .info-card,
  .auth-panel,
  .past-seminar-content {
    padding: 22px;
  }

  .team-photo {
    max-width: 320px;
    margin: 0 auto;
  }

  .team-profile-body,
  .team-name,
  .team-title {
    text-align: left;
  }

  .member-hero,
  .blog-hero-simple {
    padding: 42px 22px;
  }

  .member-hero-content h1,
  .hero-text h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .pricing-title,
  .member-auth-heading {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .seminar-page .member-hero-content h1 {
    font-size: clamp(1.95rem, 9vw, 2.5rem);
  }

  .footer-links {
    align-items: center;
    flex-direction: column;
  }

  .footer-links a {
    padding: 0;
    background: transparent;
    color: var(--teal-dark);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
