:root {
  --brochure-orange: #de5221;
  --brochure-ink: #242120;
  --brochure-line: #e7e1dc;
  --brochure-paper: #fffaf7;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
}

body {
  color: var(--brochure-ink);
  background: var(--brochure-paper);
  font-family:
    "Pretendard Variable",
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    system-ui,
    sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.download-page {
  min-height: calc(100vh - 76px);
}

.download-shell {
  width: min(100% - 40px, 1120px);
  margin: 0 auto;
}

.download-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--brochure-line);
}

.download-brand {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}
.download-brand img {
  display: block;
  width: min(205px, 58vw);
  height: auto;
}
.download-header-label {
  color: var(--brochure-orange);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.resource-accordion {
  padding-top: 24px;
}

.resource-toggle {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  color: var(--brochure-ink);
  background: #fff;
  border: 1px solid var(--brochure-line);
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.resource-toggle ~ .resource-toggle {
  margin-top: 10px;
}

.resource-toggle[aria-expanded="true"] {
  color: var(--brochure-orange);
  border-color: var(--brochure-orange);
}

.resource-toggle-icon {
  flex: 0 0 auto;
  color: var(--brochure-orange);
  font-size: 22px;
  line-height: 1;
}

.resource-toggle:focus-visible {
  outline: 3px solid #1e6b9f;
  outline-offset: 4px;
}

.resource-panel {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  transition:
    grid-template-rows 0.35s ease,
    opacity 0.25s ease;
}

.resource-panel-inner {
  min-height: 0;
  overflow: hidden;
}

.resource-panel.is-collapsed {
  grid-template-rows: 0fr;
  opacity: 0;
  pointer-events: none;
}

.resource-content {
  display: grid;
  gap: 24px;
  padding: 32px 0 28px;
}

.resource-cover {
  position: relative;
  display: block;
  width: min(80%, 360px);
  aspect-ratio: 21 / 29;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 8px rgba(64, 39, 24, 0.14);
  text-decoration: none;
}

.resource-cover-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.resource-cover-fallback {
  display: none;
  position: absolute;
  inset: 0;
  padding: 28px;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(145deg, #282521, #de5221);
  color: #fff;
}
.resource-cover-fallback span {
  font-size: 13px;
  letter-spacing: 0.2em;
}
.resource-cover-fallback strong {
  font-size: clamp(30px, 10vw, 52px);
  line-height: 1;
  letter-spacing: -0.04em;
}
.resource-cover-fallback small {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.78);
}
.resource-cover.is-image-missing .resource-cover-image {
  display: none;
}
.resource-cover.is-image-missing .resource-cover-fallback {
  display: flex;
}

.consultation-cta {
  margin: 24px 0 52px;
  padding: 24px 20px;
}

.consultation-label {
  margin: 0 0 12px;
  color: var(--brochure-orange);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.consultation-copy {
  max-width: 460px;
  margin: 0;
  color: #000;
  font-size: 16px;
  font-weight: 600;
  word-break: keep-all;
}

.resource-actions {
  width: min(80%, 360px);
  display: grid;
  gap: 10px;
  margin: 0 auto;
}

.resource-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 9px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 0.2s,
    color 0.2s,
    transform 0.2s;
}
.resource-button:focus-visible,
.resource-cover:focus-visible,
.download-brand:focus-visible {
  outline: 3px solid #1e6b9f;
  outline-offset: 4px;
}
.resource-button:hover {
  transform: translateY(-1px);
}
.resource-view-link {
  color: #fff;
  background: var(--brochure-orange);
}
.resource-secondary-link {
  color: var(--brochure-orange);
  background: #fff;
  border: 2px solid var(--brochure-orange);
}
.resource-secondary-link:hover {
  color: #fff;
  background: var(--brochure-orange);
}
.consultation-link {
  position: relative;
  width: 100%;
  margin-top: 22px;
  will-change: transform;
  animation: consultation-lift 2s ease-in-out infinite;
}
.consultation-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    0 0 0 3px rgba(222, 82, 33, 0.18),
    0 0 20px rgba(222, 82, 33, 0.42);
  opacity: 0.2;
  pointer-events: none;
  will-change: opacity;
  animation: consultation-glow 2s ease-in-out infinite;
}

@keyframes consultation-lift {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-2px);
  }
}

@keyframes consultation-glow {
  0%,
  60%,
  100% {
    opacity: 0.2;
  }
  30% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .resource-panel {
    transition: none;
  }

  .consultation-link,
  .consultation-link::after {
    animation: none;
    will-change: auto;
  }

  .consultation-link::after {
    opacity: 0;
  }
}

.download-footer {
  color: #b4aaa3;
  background: #242120;
  font-size: 11px;
}
.download-footer-inner {
  min-height: 76px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 14px 0;
}

@media (min-width: 700px) {
  .download-shell {
    width: min(100% - 64px, 1120px);
  }
  .resource-content {
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(48px, 8vw, 120px);
    padding: 64px 0 40px;
  }
  .download-footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 1000px) {
  .download-page {
    min-height: calc(100vh - 64px);
  }
  .download-header {
    min-height: 88px;
  }
  .resource-content {
    padding-top: 54px;
    padding-bottom: 32px;
  }
}
