:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #66717f;
  --line: #dde2e8;
  --paper: #ffffff;
  --soft: #f4f6f8;
  --brand: #f15a24;
  --brand-dark: #d94712;
  --navy: #1d252d;
  --bad: #b42318;
  --ok: #08775c;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f6f7f8;
  font-family: "Malgun Gothic", "맑은 고딕", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(221, 226, 232, 0.92);
  background: #fff;
}

.header-inner {
  width: min(1180px, calc(100% - 36px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.header-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-menu a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.header-menu a:hover,
.header-menu a[aria-current="page"] {
  color: var(--ink);
}

.header-menu a[aria-current="page"] {
  font-weight: 900;
}

.landing-body {
  min-height: 100vh;
  overflow-x: hidden;
  background: #f7f8f5;
}

.plain-body {
  min-height: 100vh;
  background: #f4f6f8;
}

.hero {
  position: relative;
  min-height: calc(100vh - 68px);
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  padding: 0;
}

.page-bg,
.page-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-bg {
  object-fit: cover;
  object-position: center right;
}

.page-shade {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.84) 38%, rgba(255, 255, 255, 0.2) 72%, rgba(255, 255, 255, 0.08) 100%);
}

.hero-copy,
.auth-card,
.contact-screen .content-card {
  position: relative;
  z-index: 1;
}

.hero-copy {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding-top: clamp(150px, 22vh, 260px);
  color: var(--ink);
  text-align: left;
}

.hero h1 {
  max-width: 720px;
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(32px, 5.4vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  word-break: keep-all;
}

.hero-description {
  max-width: 560px;
  margin: 0;
  color: #3f4852;
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.45;
  font-weight: 700;
  word-break: keep-all;
}

.primary-link,
.form-stack button,
.contact-form button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand);
  border-radius: 9px;
  padding: 0 24px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.primary-link:hover,
.form-stack button:hover,
.contact-form button:hover {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
}

.site-alert {
  position: fixed;
  top: 84px;
  left: 50%;
  z-index: 100;
  width: min(520px, calc(100% - 32px));
  transform: translateX(-50%);
  border: 1px solid #b5dfd3;
  border-radius: 9px;
  padding: 13px 16px;
  background: #e8f8f3;
  color: var(--ok);
  box-shadow: 0 14px 34px rgba(23, 37, 54, 0.12);
  text-align: center;
  font-size: 14px;
  font-weight: 800;
}

.site-alert.bad {
  border-color: #f2c4be;
  background: #fff0ee;
  color: var(--bad);
}

.auth-screen,
.account-screen,
.content-screen,
.contact-screen {
  min-height: calc(100vh - 68px);
  display: grid;
  place-items: center;
  padding: clamp(32px, 7vw, 76px) 16px;
}

.auth-screen,
.contact-screen {
  position: relative;
  overflow: hidden;
  padding: clamp(90px, 12vh, 130px) clamp(24px, 6vw, 86px) clamp(38px, 8vh, 86px);
}

.auth-shade {
  background:
    linear-gradient(90deg, rgba(255, 251, 248, 0.96) 0%, rgba(255, 251, 248, 0.72) 48%, rgba(255, 251, 248, 0.84) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 246, 240, 0.82));
}

.auth-card,
.contact-screen .content-card,
.account-card,
.content-card {
  width: min(100%, 520px);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(22px, 4vw, 36px);
  background: var(--paper);
  box-shadow: 0 22px 58px rgba(74, 48, 35, 0.13);
}

.auth-card,
.contact-screen .content-card {
  transform: translateY(clamp(-56px, -6vh, -36px));
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 26px;
  border-radius: 9px;
  padding: 4px;
  background: #eef1f4;
}

.auth-tabs a {
  min-height: 43px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.auth-tabs a.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 5px rgba(23, 37, 54, 0.1);
}

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

.field-help {
  margin: -7px 0 1px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.form-stack input,
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.form-stack input,
.contact-form input {
  min-height: 51px;
  padding: 0 13px;
}

.form-stack input:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(241, 90, 36, 0.14);
}

.privacy-note a,
.privacy-card a {
  color: var(--brand-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.account-card h1,
.content-heading h1,
.privacy-card h1,
.center-card h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(30px, 5vw, 42px);
  letter-spacing: -0.045em;
}

.account-card > p {
  margin: 17px 0 26px;
  color: var(--muted);
  line-height: 1.7;
  word-break: keep-all;
}

.secondary-button {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.content-card {
  width: min(100%, 640px);
}

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

.contact-types {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  border: 0;
  padding: 0;
}

.contact-types label {
  position: relative;
  cursor: pointer;
}

.contact-types input {
  position: absolute;
  width: 1px;
  min-height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-types label span {
  min-height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px;
  font-size: 14px;
  font-weight: 800;
}

.contact-types input:checked + span {
  border-color: var(--brand);
  background: #fff1eb;
  color: var(--brand-dark);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.contact-types input:focus-visible + span {
  outline: 3px solid rgba(241, 90, 36, 0.16);
}

.phone-field {
  display: grid;
  grid-template-columns: 82px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.phone-field > span {
  min-height: 51px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  background: var(--soft);
  font-size: 20px;
  font-weight: 900;
}

.contact-form .phone-field input {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.phone-field:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(241, 90, 36, 0.14);
}

.contact-form textarea {
  min-height: 190px;
  padding: 14px 13px;
  resize: vertical;
  line-height: 1.65;
}

.contact-status {
  margin: 0;
  border-radius: 8px;
  color: var(--bad);
  font-size: 13px;
  font-weight: 800;
}

.contact-status:empty {
  display: none;
}

.contact-status.bad {
  padding: 11px 12px;
  background: #fff0ee;
}

.privacy-note {
  margin: 17px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
}

.contact-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  width: min(420px, calc(100% - 32px));
  transform: translateX(-50%);
  border: 1px solid #b5dfd3;
  border-radius: 10px;
  padding: 14px 18px;
  background: #e8f8f3;
  color: var(--ok);
  box-shadow: 0 12px 32px rgba(23, 37, 54, 0.18);
  text-align: center;
}

.contact-toast[hidden] {
  display: none;
}

.contact-toast strong,
.contact-toast span {
  display: block;
}

.contact-toast span {
  margin-top: 3px;
  font-size: 13px;
}

.privacy-card {
  display: grid;
  gap: 15px;
  color: #495665;
  line-height: 1.75;
  word-break: keep-all;
}

.privacy-card h1,
.privacy-card h2,
.privacy-card p {
  margin-top: 0;
  margin-bottom: 0;
}

.privacy-card h2 {
  margin-top: 8px;
  color: var(--navy);
  font-size: 18px;
}

.center-card {
  text-align: center;
}

.center-card p {
  color: var(--muted);
}

.center-card .primary-link {
  margin-top: 20px;
}

@media (max-width: 820px) {
  .hero {
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .header-inner {
    width: calc(100% - 24px);
  }

  .brand {
    font-size: 20px;
  }

  .header-menu {
    gap: 0;
  }

  .header-menu a {
    padding: 0 7px;
  }

  .hero {
    min-height: calc(100vh - 68px);
    padding: 0;
  }

  .hero h1 {
    font-size: clamp(32px, 11vw, 54px);
  }

  .hero-description {
    font-size: clamp(18px, 5.6vw, 24px);
  }

  .hero-copy {
    width: calc(100% - 24px);
    padding-top: clamp(88px, 18vh, 140px);
  }

  .auth-screen,
  .account-screen,
  .content-screen,
  .contact-screen {
    align-items: start;
    padding: 24px 12px 40px;
  }

  .auth-screen,
  .contact-screen {
    padding-top: 52px;
  }

  .auth-card,
  .account-card,
  .content-card {
    border-radius: 11px;
    padding: 22px 16px;
  }

  .auth-card,
  .contact-screen .content-card {
    transform: none;
  }

}
