/* ==========================================================================
   Naebak — inner pages, legal, auth
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page hero + breadcrumbs
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 6vw, 5rem) clamp(3.6rem, 7vw, 6rem);
  background:
    radial-gradient(900px 480px at 85% -20%, #0c422a 0%, #051b11 55%, #020c07 100%);
  color: #f2fff8;
}

.page-hero-sm {
  padding-block: clamp(2.4rem, 4.5vw, 3.6rem) clamp(2.8rem, 6vw, 4.6rem);
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
  color: #93bba5;
  font-size: 0.78rem;
}

.breadcrumbs a { transition: color 0.2s ease; }
.breadcrumbs a:hover { color: #ccffdd; }
.breadcrumbs span:last-child { color: #d6f5e2; }

.page-hero h1 {
  color: #f4fff9;
  font-size: clamp(2.2rem, 4.6vw, 3.7rem);
  line-height: 1.22;
  margin-bottom: 1rem;
}

.page-hero p {
  color: #b6d5c4;
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  max-width: 640px;
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */
.about-story { background: var(--surface); }

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.about-copy h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  margin-bottom: 1.1rem;
}

.about-copy p {
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: 0.96rem;
}

.about-copy strong { color: var(--ink-800); }

.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.pillar-card {
  padding: 1.35rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  transition:
    transform 0.28s var(--ease),
    border-color 0.28s ease,
    background-color 0.28s ease;
}

.pillar-card:hover {
  transform: translateY(-3px);
  background: #fff;
  border-color: rgba(18, 185, 95, 0.28);
}

.pillar-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 0.85rem;
  border-radius: 13px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--brand-700);
}

.pillar-card h3 { font-size: 0.98rem; margin-bottom: 0.3rem; }
.pillar-card p { color: var(--muted); font-size: 0.82rem; line-height: 1.75; }

.affiliation-story { background: var(--paper); }

.company-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.company-head {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2rem);
  padding: clamp(1.5rem, 4vw, 2.4rem);
  background:
    radial-gradient(500px 220px at 90% 0%, rgba(18, 185, 95, 0.1), transparent 60%),
    linear-gradient(180deg, #f7fcf9, #fff);
  border-bottom: 1px solid var(--line);
}

.company-emblem {
  width: 128px;
  height: 128px;
  border-radius: 26px;
}

.company-emblem span { font-size: 1.8rem; }

.company-head .eyebrow { margin-bottom: 0.45rem; }
.company-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 0.2rem; }

.company-legal {
  color: var(--muted);
  font-size: 0.86rem;
}

.company-body {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.5rem, 4vw, 2.4rem);
  align-items: start;
}

.company-copy p {
  color: var(--muted);
  font-size: 0.94rem;
}

.company-copy p + p { margin-top: 0.8rem; }

.company-facts {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.company-facts div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.company-facts span { color: var(--muted-2); font-size: 0.76rem; }
.company-facts strong { font-size: 0.82rem; font-weight: 600; }

.about-values { background: var(--surface); }

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.value-card {
  position: relative;
  padding: 1.7rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  overflow: hidden;
}

.value-num {
  display: block;
  margin-bottom: 0.7rem;
  color: rgba(10, 153, 80, 0.35);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.value-card h3 { font-size: 1.06rem; margin-bottom: 0.45rem; }
.value-card p { color: var(--muted); font-size: 0.88rem; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-section { background: var(--paper); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
}

.contact-form-wrap {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.contact-form-head h2 { font-size: 1.5rem; margin-bottom: 0.35rem; }
.contact-form-head p { color: var(--muted); font-size: 0.88rem; margin-bottom: 1.5rem; }

.form-card { position: relative; }

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.contact-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.contact-card h3 { font-size: 1rem; margin-bottom: 1rem; }

.contact-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-row:last-child { border-bottom: 0; padding-bottom: 0; }

.contact-row small {
  display: block;
  color: var(--muted-2);
  font-size: 0.7rem;
}

.contact-row strong { font-size: 0.86rem; font-weight: 600; }

.contact-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--brand-700);
  flex: none;
}

.contact-icon-wa { background: #e8fdf1; border-color: rgba(18, 185, 95, 0.2); }

.contact-note {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(300px 200px at 90% 0%, rgba(47, 221, 125, 0.2), transparent 60%),
    linear-gradient(145deg, #073a25, #04170e);
  color: #c9e7d5;
}

.contact-note-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 0.8rem;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.08);
  color: #8ef0b4;
}

.contact-note h3 { color: #f2fff8; font-size: 0.98rem; margin-bottom: 0.35rem; }
.contact-note p { font-size: 0.82rem; line-height: 1.8; color: #a9cbb8; }

.contact-company {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
}

.company-emblem-sm {
  width: 68px;
  height: 68px;
  border-radius: 18px;
}

.company-emblem-sm span { font-size: 1.1rem; }
.company-emblem-sm small { font-size: 0.34rem; letter-spacing: 0.12em; }

.contact-company p { color: var(--muted); font-size: 0.76rem; line-height: 1.7; }
.contact-company strong { color: var(--ink-800); font-weight: 600; }

/* --------------------------------------------------------------------------
   Legal
   -------------------------------------------------------------------------- */
.page-legal { background: var(--paper); }

.legal-hero {
  padding-block: clamp(2.8rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(18, 185, 95, 0.08), transparent 60%),
    var(--paper-2);
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.7rem;
}

.legal-hero > .container > p {
  color: var(--muted);
  max-width: 620px;
}

.legal-updated {
  margin-top: 0.8rem;
  font-size: 0.78rem;
  color: var(--muted-2);
}

.legal-hero .breadcrumbs {
  color: var(--muted-2);
}

.legal-hero .breadcrumbs a:hover {
  color: var(--brand-700);
}

.legal-hero .breadcrumbs span:last-child {
  color: var(--muted);
}

.legal-section { background: var(--paper); }

.legal-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.legal-side {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.legal-nav {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.legal-nav h2 {
  padding: 0.2rem 0.6rem 0.7rem;
  font-size: 0.78rem;
  color: var(--muted-2);
  font-weight: 600;
}

.legal-nav a {
  padding: 0.55rem 0.6rem;
  border-radius: 9px;
  color: var(--muted);
  font-size: 0.86rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.legal-nav a:hover { background: var(--surface-soft); color: var(--ink-900); }

.legal-nav a.is-active {
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 600;
}

.legal-lang-switch {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.legal-lang-switch > span {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.72rem;
  color: var(--muted-2);
}

.lang-buttons {
  display: flex;
  gap: 0.3rem;
  padding: 0.22rem;
  border-radius: 10px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.lang-buttons button {
  flex: 1;
  padding: 0.4rem 0.5rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-buttons button.is-active {
  background: #fff;
  color: var(--ink-900);
  box-shadow: var(--shadow-xs);
}

.legal-help {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.legal-help p { color: var(--muted); font-size: 0.78rem; margin-bottom: 0.3rem; }
.legal-help a { color: var(--brand-700); font-size: 0.8rem; font-weight: 600; }

.legal-content {
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-xs);
  min-width: 0;
}

.legal-panel[hidden] { display: none; }

.legal-panel h2 {
  margin: 2rem 0 0.7rem;
  font-size: 1.22rem;
  color: var(--ink-900);
}

.legal-panel h2:first-child { margin-top: 0; }

.legal-panel p {
  margin-bottom: 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.95;
}

.legal-panel ul,
.legal-panel ol {
  margin: 0 0 1rem;
  padding-inline-start: 1.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.legal-panel ul { list-style: disc; }
.legal-panel ol { list-style: decimal; }

.legal-panel li { margin-bottom: 0.45rem; line-height: 1.9; }

.legal-panel strong { color: var(--ink-800); font-weight: 600; }

.legal-panel a {
  color: var(--brand-700);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.legal-panel[dir="ltr"] { text-align: left; }

/* --------------------------------------------------------------------------
   Auth
   -------------------------------------------------------------------------- */
.auth-body {
  min-height: 100vh;
  background: #f2f8f4;
}

.auth-shell {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  min-height: 100dvh;
}

.auth-brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(2rem, 4vw, 3.4rem);
  overflow: hidden;
  color: #eafff2;
  background:
    radial-gradient(700px 500px at 80% 0%, #0c422a 0%, #051b11 52%, #020c07 100%);
}

.auth-aurora { position: absolute; inset: 0; pointer-events: none; }

.auth-brand,
.auth-brand-copy,
.auth-brand-footer { position: relative; z-index: 1; }

.auth-brand-copy { max-width: 460px; }

.auth-brand-copy h1 {
  color: #f4fff9;
  font-size: clamp(2.2rem, 3.6vw, 3.3rem);
  line-height: 1.22;
  margin-bottom: 1rem;
}

.auth-brand-copy > p {
  color: #b6d5c4;
  font-size: 0.98rem;
  max-width: 420px;
}

.auth-benefits {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.9rem;
  color: #c9e7d5;
  font-size: 0.88rem;
}

.auth-benefits li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-benefits .icon { color: #62e69c; }

.auth-brand-footer {
  padding-top: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.76rem;
  color: #8fb7a0;
}

.auth-brand-footer p { margin-bottom: 0.35rem; }
.auth-brand-footer strong { color: #c9e7d5; font-weight: 600; }
.auth-brand-footer a { color: #8ef0b4; }

.auth-form-panel {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 3.4rem);
  background:
    radial-gradient(600px 400px at 100% 100%, rgba(18, 185, 95, 0.06), transparent 60%),
    #f7fbf8;
}

.auth-form-inner {
  width: 100%;
  max-width: 500px;
}

.auth-mobile-brand { display: none; margin-bottom: 1.6rem; }

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.8rem;
  color: var(--muted-2);
  font-size: 0.8rem;
  transition: color 0.2s ease;
}

.auth-back:hover { color: var(--brand-700); }

.auth-head { margin-bottom: 1.6rem; }

.auth-head h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.15rem);
  margin-bottom: 0.4rem;
}

.auth-head p { color: var(--muted); font-size: 0.9rem; }

.auth-form .field { margin-bottom: 0.95rem; }

.auth-form .btn-block { margin-top: 0.6rem; }

.auth-switch {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 0.86rem;
}

.auth-switch a {
  color: var(--brand-700);
  font-weight: 600;
}

.auth-switch a:hover { text-decoration: underline; }

.auth-note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1.4rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.75;
}

.auth-note .icon { color: var(--brand-600); margin-top: 0.15rem; }

.auth-legal {
  position: absolute;
  inset-block-end: 1rem;
  inset-inline: 0;
  text-align: center;
  font-size: 0.7rem;
  color: var(--muted-2);
}

.auth-legal a { color: var(--muted); }
.auth-legal a:hover { color: var(--brand-700); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .about-grid,
  .contact-grid,
  .legal-grid { grid-template-columns: 1fr; }
  .contact-side,
  .legal-side { position: static; }
  .legal-side { flex-direction: row; flex-wrap: wrap; }
  .legal-nav { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; }
  .legal-nav h2 { flex: 1 1 100%; padding-bottom: 0.3rem; }
  .legal-lang-switch { flex: 1 1 220px; }
  .legal-help { flex: 1 1 220px; }
  .company-body { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand-panel { display: none; }
  .auth-form-panel { min-height: 100dvh; align-content: center; }
  .auth-mobile-brand { display: block; }
  .auth-legal { position: static; margin-top: 2rem; }
}

@media (max-width: 720px) {
  .about-pillars { grid-template-columns: 1fr; }
  .company-head { flex-direction: column; text-align: center; }
  .company-emblem { margin-inline: auto; }
  .value-grid { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .contact-card,
  .contact-form-wrap { padding: 1.3rem; }
  .legal-content { padding: 1.3rem; }
  .legal-panel h2 { font-size: 1.1rem; }
  .contact-side { position: static; }
}

@media (max-width: 520px) {
  .form-actions { flex-direction: column; align-items: stretch; }
  .form-actions .btn { width: 100%; }
  .contact-company { flex-direction: column; text-align: center; }
  .company-facts div { flex-direction: column; align-items: flex-start; gap: 0.1rem; }
  .legal-nav { flex-direction: column; }
}

/* --------------------------------------------------------------------------
   Error pages
   -------------------------------------------------------------------------- */
.error-section {
  display: grid;
  place-items: center;
  min-height: calc(100dvh - var(--header-h) - 140px);
  background:
    radial-gradient(700px 380px at 80% 10%, rgba(18, 185, 95, 0.07), transparent 60%),
    var(--paper);
}

.error-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 4.5rem);
  max-width: 960px;
}

.error-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
}

.error-code {
  font-size: clamp(5rem, 12vw, 8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(145deg, #b8ffd2, #12b95f 55%, #087a3e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

.error-orbit {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  border: 1px dashed rgba(10, 153, 80, 0.22);
  animation: spin 40s linear infinite;
}

.error-core {
  position: absolute;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--brand-700);
  box-shadow: var(--shadow-md);
  transform: translateY(78px);
}

.error-copy h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 0.8rem;
}

.error-copy > p {
  color: var(--muted);
  max-width: 460px;
  margin-bottom: 1.5rem;
}

.error-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .error-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }
  .error-visual {
    max-width: 240px;
    margin-inline: auto;
  }
  .error-core { transform: translateY(56px); }
  .error-copy > p { margin-inline: auto; }
  .error-actions { justify-content: center; }
}

