/* 써클21 홈페이지 스타일
   색: 종이(배경), 먹(글자), 인감 빨강(포인트 한 가지)
   서체: Pretendard 한 가지, 굵기와 크기로만 위계를 만든다 */

:root {
  --paper: #F3F4F2;
  --band: #E8EAE6;
  --ink: #15181C;
  --ink-soft: #2B3138;
  --muted: #555B63;
  --control: #7A8088;
  --line: #D4D7D3;
  --seal: #D5392A;
  --on-dark: #FCFCFB;

  --radius: 10px;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui,
    "Apple SD Gothic Neo", "Noto Sans KR", "Noto Sans CJK KR", "Malgun Gothic", sans-serif;

  color-scheme: light;
}

/* 기본 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -80px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--on-dark);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* 버튼과 링크 */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--on-dark);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.button:hover {
  background: var(--ink-soft);
}

.button:active {
  transform: translateY(1px);
}

.button--line {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.button--line:hover {
  background: rgba(21, 24, 28, 0.06);
}

.button--small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
}

.text-link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  text-decoration-color: var(--control);
  transition: text-decoration-color 0.2s var(--ease);
}

.text-link:hover {
  text-decoration-color: var(--seal);
}

/* 로고: "써클" 뒤에 21을 인감처럼 찍은 워드마크(assets/img/logo.svg) */

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: 4px;
}

.brand img {
  display: block;
  width: auto;
  height: 26px;
}

.brand--footer img {
  height: 22px;
}

/* 머리글 */

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 8px 28px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 6px;
}

.nav-link:hover {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
}

/* 첫 화면 */

.hero {
  padding-block: clamp(32px, 5vw, 72px) clamp(64px, 7vw, 96px);
  overflow-x: clip;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 48px 72px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  max-width: 640px;
}

.hero-title {
  font-size: clamp(38px, 5.3vw, 72px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero-lead {
  max-width: 30em;
  font-size: clamp(17px, 1.35vw, 19px);
  color: var(--muted);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

/* 네 개의 원이 하나의 인감으로 모이는 그림. 페이지가 열릴 때 한 번만 움직인다 */

.converge {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  container-type: inline-size;
}

/* 원 지름 66%, 중심에서 17%씩 비켜 놓아 네 원이 상자 끝까지 꽉 차게 한다 */
.orb {
  position: absolute;
  left: 17%;
  top: 17%;
  width: 66%;
  height: 66%;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  translate: var(--x) var(--y);
  animation: orb-in 1.2s var(--ease) var(--delay) both;
}

.orb--tl { --x: -17cqw; --y: -17cqw; --delay: 0.05s; }
.orb--tr { --x: 17cqw; --y: -17cqw; --delay: 0.13s; }
.orb--bl { --x: -17cqw; --y: 17cqw; --delay: 0.21s; }
.orb--br { --x: 17cqw; --y: 17cqw; --delay: 0.29s; }

.orb-label {
  position: absolute;
  translate: -50% -50%;
  font-size: clamp(12px, 3.7cqw, 17px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
}

.orb--tl .orb-label { left: 31%; top: 31%; }
.orb--tr .orb-label { left: 69%; top: 31%; }
.orb--bl .orb-label { left: 31%; top: 69%; }
.orb--br .orb-label { left: 69%; top: 69%; }

.converge-seal {
  position: absolute;
  left: 30%;
  top: 30%;
  width: 40%;
  height: 40%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--seal);
  color: var(--on-dark);
  font-size: clamp(16px, 5.6cqw, 25px);
  font-weight: 800;
  letter-spacing: -0.03em;
  animation: seal-in 0.8s var(--ease) 0.85s both;
}

@keyframes orb-in {
  from {
    transform: translate(calc(var(--x) * 1.7), calc(var(--y) * 1.7));
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

@keyframes seal-in {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

/* 섹션 공통 제목 */

.section-title {
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 780;
  line-height: 1.25;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.section-lead {
  max-width: 28em;
  font-size: 18px;
  color: var(--muted);
  text-wrap: pretty;
}

/* 하는 일: 왼쪽 제목은 따라오고, 오른쪽에서 네 가지 일을 읽어 내려간다 */

.services {
  padding-block: clamp(72px, 9vw, 128px);
  border-top: 1px solid var(--line);
}

.services-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: 48px 80px;
}

.services-intro {
  position: sticky;
  top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-block: 40px 44px;
  border-top: 1px solid var(--line);
}

.service:first-child {
  padding-top: 6px;
  border-top: 0;
}

.service:last-child {
  padding-bottom: 0;
}

.service-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.service-case {
  font-size: clamp(24px, 2.5vw, 31px);
  font-weight: 650;
  line-height: 1.42;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.service-body {
  max-width: 34em;
  color: var(--muted);
  text-wrap: pretty;
}

.service-scope {
  display: flex;
  flex-wrap: wrap;
  row-gap: 2px;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 600;
}

.service-scope li:not(:last-child)::after {
  content: ",";
  margin-right: 0.45em;
}

/* bid-ai: 이름 자체를 크게 보여준다 */

.bidai {
  padding-block: clamp(80px, 10vw, 144px);
  background: var(--band);
}

.bidai-kicker {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}

.bidai-word {
  margin: 8px 0 0 -0.04em;
  font-size: clamp(76px, 15vw, 208px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.bidai-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 34em;
  margin: clamp(32px, 4vw, 56px) 0 0 auto;
  color: var(--muted);
}

.bidai-lead {
  font-size: clamp(21px, 2.1vw, 27px);
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}

/* 상담 신청 */

.contact {
  padding-block: clamp(80px, 10vw, 144px);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  align-items: start;
  gap: 56px 96px;
}

.contact-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.needs {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.needs-set {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.needs-legend {
  margin-bottom: 12px;
  padding: 0;
  font-size: 15px;
  font-weight: 700;
}

.needs-legend span {
  margin-left: 8px;
  font-weight: 400;
  color: var(--muted);
}

.needs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.need {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--control);
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.need:hover {
  border-color: var(--ink);
}

.need:has(input:checked) {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--on-dark);
}

.need:has(input:focus-visible) {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.need input {
  flex: none;
  display: grid;
  place-content: center;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1.5px solid var(--control);
  border-radius: 6px;
  background: var(--paper);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.need input::after {
  content: "";
  width: 6px;
  height: 11px;
  border: solid var(--ink);
  border-width: 0 2px 2px 0;
  transform: translate(0, -1px) rotate(45deg);
  opacity: 0;
}

.need input:checked {
  border-color: var(--on-dark);
  background: var(--on-dark);
}

.need input:checked::after {
  opacity: 1;
}

.need input:focus-visible {
  outline: none;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.contact-status {
  min-height: 1.7em;
  font-size: 15px;
  font-weight: 600;
}

.contact-status:empty {
  min-height: 0;
}

.contact-note {
  font-size: 14px;
  color: var(--muted);
}

.contact-lines {
  display: grid;
  gap: 6px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.contact-lines div {
  display: grid;
  grid-template-columns: 4em minmax(0, 1fr);
  gap: 12px;
}

.contact-lines dt {
  color: var(--muted);
}

.contact-lines a {
  font-weight: 600;
  text-decoration: none;
}

.contact-lines a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* 진행 순서: 실제로 순서가 있는 내용이라 번호를 쓴다 */

.process {
  padding-top: 28px;
  border-top: 1.5px solid var(--ink);
}

.process-title {
  margin-bottom: 24px;
  font-size: 18px;
  font-weight: 700;
}

.process-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  counter-reset: step;
}

.process-list::before {
  content: "";
  position: absolute;
  left: 15.5px;
  top: 16px;
  bottom: 16px;
  width: 1px;
  background: var(--line);
}

.process-list li {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  column-gap: 16px;
  counter-increment: step;
}

.process-list li::before {
  content: counter(step);
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.process-list strong {
  font-size: 17px;
  font-weight: 700;
  line-height: 32px;
}

.process-list span {
  grid-column: 2;
  font-size: 15.5px;
  color: var(--muted);
}

/* 바닥글 */

.site-footer {
  padding-block: 48px 64px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px 64px;
}

.brand--footer {
  font-size: 19px;
}

.footer-info {
  font-size: 14px;
  font-style: normal;
  line-height: 1.8;
  color: var(--muted);
}

.footer-copy {
  font-size: 14px;
  color: var(--muted);
}

/* 404 */

.notfound {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding-block: clamp(72px, 14vw, 180px);
}

/* 화면 너비별 */

@media (max-width: 900px) {
  .hero-grid,
  .services-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .converge {
    width: min(100%, 380px);
  }

  .services-intro {
    position: static;
  }
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .nav-list li:not(:last-child) {
    display: none;
  }

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

  .bidai-body {
    margin-left: 0;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
