/* Taste pass: a light, red-led campaign system. The reference hero and legal copy remain intact. */
:root {
  --ink: #171b24;
  --muted: #535b67;
  --cream: #f3f5f7;
  --red: #c91820;
  --red-dark: #9f0c15;
  scroll-padding-top: 82px;
}

.site-header {
  box-shadow: 0 1px 0 #e3e6e8;
}

.header-inner {
  height: 80px;
}

.desktop-nav {
  font-size: 18px;
  gap: 36px;
}

.brand {
  flex: none;
  line-height: 0;
}

.brand img {
  display: block;
  width: 68px;
  height: auto;
}

.header-cta,
.button {
  white-space: nowrap;
}

.header-cta:active,
.button:active,
.step-tab:active,
.text-link:active {
  transform: translateY(1px);
}

.hero-art {
  max-height: calc(100dvh - 168px);
  background-size: cover;
  background-position: center;
}

.hero {
  position: relative;
}

.hero-actions {
  position: relative;
  z-index: 1;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.hero-actions-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  padding-block: 14px;
}

.hero-actions p {
  margin: 0;
  color: #424a55;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 700;
}

.hero-actions p strong {
  display: block;
  color: var(--red);
  font-size: 22px;
  line-height: 1.35;
  font-weight: 900;
}

.hero-action-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.hero-action-buttons .button {
  min-width: 180px;
}

.button-outline-dark {
  color: var(--ink);
  background: transparent;
  border-color: #b7bec7;
}

.button-outline-dark:hover {
  background: #e9edf1;
}

.intro.band {
  color: var(--ink);
  background: #fff;
}

.intro {
  padding: 52px 0 56px;
}

.intro-grid {
  display: block;
}

.intro-copy {
  text-align: center;
}

.intro-date {
  border-color: #d5d8dc;
}

.intro-date span,
.intro-date small {
  color: var(--muted);
}

.intro-date strong {
  color: var(--red);
}

.intro-copy > p:first-child {
  max-width: 900px;
  margin-inline: auto;
  color: var(--ink);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.7;
  font-weight: 700;
  letter-spacing: -.015em;
}

.intro-copy strong {
  color: var(--red);
}

.intro-note {
  margin-top: 17px;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding-block: 92px 104px;
}

.section-heading {
  margin-bottom: 38px;
  text-align: center;
}

.section-heading h2 {
  max-width: 900px;
  margin-inline: auto;
  font-size: clamp(34px, 4vw, 49px);
  line-height: 1.32;
}

.section-lead {
  margin: 17px auto 0;
  max-width: 720px;
  color: var(--muted);
}

.funds {
  background: #f3f5f7;
}

.fund-grid {
  grid-template-columns: 1.04fr .96fr;
  gap: 18px;
}

.fund-card {
  min-height: 372px;
  border: 1px solid #dfe3e6;
  box-shadow: none;
}

.fund-card::before {
  content: none;
}

.fund-top {
  padding: 19px 29px;
}

.fund-body {
  padding: 43px 36px 36px;
}

.fund-body h3 {
  margin: 0 0 16px;
}

.fund-body p {
  min-height: 75px;
  max-width: 390px;
}

.fund-card-korea .fund-body {
  background: linear-gradient(160deg, #fff, #f9fbfd);
}

.benefit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto;
  gap: 18px;
  align-items: stretch;
}

.benefit-card {
  min-height: 330px;
  padding: 32px 30px 34px;
  border: 1px solid #dfe3e6;
  border-top: 5px solid var(--red);
  background: #fff;
}

.benefit-card:first-child {
  grid-row: auto;
  padding: 32px 30px 34px;
  border: 1px solid #dfe3e6;
  border-top: 5px solid var(--red);
  background: #fff;
  color: var(--ink);
}

.benefit-number {
  top: 30px;
  right: 26px;
  color: #e4e6e9;
  font-size: 46px;
}

.benefit-card:first-child .benefit-number {
  top: 30px;
  right: 26px;
  color: #e4e6e9;
  font-size: 46px;
}

.benefit-label {
  display: inline-block;
  margin: 18px 0 20px;
  padding-bottom: 7px;
  border-bottom: 3px solid currentColor;
  color: var(--red);
  font-size: clamp(22px, 2.1vw, 27px);
  line-height: 1.2;
  letter-spacing: .04em;
}

.benefit-card h3 {
  margin-bottom: 16px;
  font-size: clamp(21px, 2vw, 25px);
  line-height: 1.42;
}

.benefit-card:first-child h3 {
  font-size: clamp(21px, 2vw, 25px);
}

.benefit-card > p:last-child {
  color: var(--muted);
  font-size: 16px;
}

.benefit-card:first-child > p:last-child {
  color: var(--muted);
  font-size: 16px;
}

.benefit-cta {
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  margin-top: 44px;
  text-align: center;
}

.benefit-cta p {
  font-size: clamp(23px, 2.5vw, 30px);
  line-height: 1.4;
}

.benefit-cta .button {
  min-width: 220px;
  font-size: 18px;
}

.guide {
  background: #f3f5f7;
}

.guide-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.step-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.step-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 122px;
  padding: 18px 16px;
  border: 1px solid #e0e4e8;
  border-bottom: 4px solid transparent;
  appearance: none;
  -webkit-appearance: none;
  color: var(--ink);
  -webkit-tap-highlight-color: rgba(201, 24, 32, .12);
  text-align: center;
}

.step-tab strong {
  color: var(--ink);
}

.step-tab:focus-visible {
  outline-color: var(--red);
}

.step-tab:hover {
  transform: translateY(-3px);
}

.step-tab span {
  font-family: inherit;
  font-size: 15px;
  letter-spacing: .08em;
}

.step-tab strong {
  margin-top: 10px;
}

.step-tab .step-label-mobile {
  display: none;
}

.step-tab i {
  display: none;
}

.step-tab.is-active {
  border-left-color: #e0e4e8;
  border-bottom-color: var(--red);
  box-shadow: none;
}

.step-panels {
  box-shadow: none;
  border: 1px solid #e0e4e8;
}

.step-heading {
  grid-column: 1;
  grid-row: 1;
  padding: 38px 34px 0;
}

.step-heading h3 {
  margin-top: 0;
}

.step-details {
  grid-column: 1;
  grid-row: 2;
  padding: 0 34px 30px;
}

.step-details .button {
  margin-top: 8px;
}

.step-copy-number {
  display: block;
  margin-bottom: 20px;
  color: var(--red);
  font-size: clamp(52px, 5vw, 68px);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.04em;
}

.step-visual {
  grid-column: 2;
  grid-row: 1 / span 2;
  padding: 28px;
  background: #e9edf1;
}

.step-panel {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  grid-template-rows: auto 1fr;
}

.step-visual img {
  width: min(100%, 390px);
  max-width: none;
  height: auto;
  max-height: none;
}

.step-carousel {
  position: relative;
  min-width: 0;
}

.step-carousel-slide {
  display: grid;
  place-items: center;
  width: 100%;
  margin: 0;
}

.step-carousel-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid #d8dde3;
  border-radius: 50%;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 7px 20px rgba(20, 25, 35, .16);
  color: var(--red);
  transform: translateY(-50%);
}

.step-carousel-control:hover {
  background: var(--red);
  color: #fff;
}

.step-carousel-control.is-prev {
  left: 18px;
}

.step-carousel-control.is-next {
  right: 18px;
}

.step-carousel-control .arrow-icon {
  width: 22px;
  height: 22px;
}

.step-carousel-status {
  position: absolute;
  right: 18px;
  bottom: 14px;
  z-index: 2;
  margin: 0;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(23, 27, 36, .82);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
}

.closing-cta {
  background: var(--red);
}

.closing-inner h2 {
  font-size: clamp(33px, 4vw, 48px);
}

.closing-inner {
  flex-direction: column;
  text-align: center;
}

.risk-section {
  padding: 56px 0 68px;
  background: #fff;
}

.risk-copy {
  max-height: none;
  height: auto;
  overflow: visible;
  overflow-wrap: anywhere;
  padding: 0;
  border: 0;
  background: transparent;
  color: #000;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.72;
}

.risk-copy p {
  margin: 0 0 1.35em;
}

.risk-copy .warning-red,
.risk-dialog #risk-dialog-copy .warning-red {
  color: #890000;
}

.risk-copy .warning-underline,
.risk-dialog #risk-dialog-copy .warning-underline {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.dialog-actions {
  gap: 12px;
}

.dialog-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding-block: 11px;
  text-align: center;
  line-height: 1.35;
}

.risk-dialog-actions .button {
  flex: 1 1 250px;
  max-width: 320px;
}

.risk-dialog-actions {
  display: block;
}

.risk-dialog-offer {
  margin: 0 0 12px;
  color: var(--ink);
  text-align: center;
  line-height: 1.45;
}

.risk-dialog-offer strong,
.risk-dialog-offer span {
  display: block;
}

.risk-dialog-offer strong {
  color: var(--red);
  font-size: 20px;
  font-weight: 900;
}

.risk-dialog-offer span {
  margin-top: 2px;
  font-size: 16px;
  font-weight: 800;
}

.risk-dialog-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.risk-dialog #risk-dialog-copy {
  color: #000;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.72;
  overflow-wrap: anywhere;
}

#risk-dialog-title:focus,
#depository-title:focus {
  outline: none;
}

.footer-details {
  overflow-wrap: anywhere;
}

.footer-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.footer-brand span {
  margin-top: 8px;
}

.depository-download-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-bottom: 2px solid currentColor;
  color: var(--red);
  font-weight: 900;
  line-height: 1.45;
}

.depository-download-link:hover {
  color: var(--red-dark);
}

/* Desktop readability and CTA sizing. */
@media (min-width: 901px) {
  .header-cta,
  .button {
    font-size: 18px;
  }

  .header-cta {
    padding: 13px 25px;
  }

  .hero-action-buttons .button {
    min-width: 220px;
  }

  .intro-copy > p:first-child {
    font-size: clamp(21px, 2vw, 25px);
  }

  .intro-note {
    font-size: 16px;
  }

  .section-lead {
    max-width: 820px;
    font-size: 20px;
  }

  .fund-tag {
    font-size: 14px;
  }

  .fund-body p {
    font-size: 18px;
  }

  .text-link {
    font-size: 17px;
  }

  .benefit-card h3,
  .benefit-card:first-child h3 {
    font-size: clamp(24px, 2vw, 27px);
  }

  .benefit-card > p:last-child,
  .benefit-card:first-child > p:last-child {
    font-size: 18px;
  }

  .step-tab span {
    font-size: 16px;
  }

  .step-tab strong {
    font-size: 19px;
  }

  .step-heading h3 {
    font-size: 38px;
    line-height: 1.35;
  }

  .step-details p,
  .depository-content {
    font-size: 18px;
  }

  .inline-action {
    font-size: 17px;
  }

  .closing-inner h2 {
    font-size: clamp(38px, 4vw, 52px);
  }

  .closing-inner p:last-child {
    font-size: 20px;
  }

  .footer-brand strong {
    font-size: 19px;
  }

  .footer-brand span,
  .footer-details {
    font-size: 15px;
  }
}

/* Depository guide: natural-ratio images in one vertical reading flow. */
.depository-visuals {
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.depository-visuals img {
  width: min(100%, 600px);
  max-width: 100%;
  height: auto;
  border: 0;
}

.depository-single img {
  width: min(100%, 600px);
  height: auto;
  border: 0;
}

@media (max-width: 900px) {
  .desktop-nav {
    gap: 18px;
    font-size: 16px;
  }

  .benefit-grid {
    gap: 12px;
  }

  .step-tabs {
    gap: 8px;
  }
}

@media (max-width: 680px) {
  :root {
    scroll-padding-top: 70px;
  }

  .header-inner {
    height: 64px;
  }

  .risk-dialog-buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .risk-dialog-actions .button {
    width: 100%;
    max-width: none;
  }

  .risk-dialog-offer strong {
    font-size: 18px;
  }

  .risk-dialog-offer span {
    font-size: 14px;
  }

  .brand img {
    width: 56px;
  }

  .hero-art {
    height: 225px;
    background-size: auto 308px;
    background-position: right 30%;
  }

  .hero-mobile-copy {
    padding: 22px 20px 19px;
    text-align: center;
  }

  .hero-mobile-copy h1 {
    font-size: clamp(28px, 8vw, 39px);
  }

  .hero-actions-inner {
    display: flex;
    padding-block: 14px 18px;
  }

  .hero-actions p {
    display: none;
  }

  .hero-action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .hero-action-buttons .button {
    min-width: 0;
    min-height: 54px;
    padding: 9px 10px;
    font-size: 12px;
    white-space: normal;
    text-align: center;
    gap: 4px;
  }

  .intro {
    padding: 31px 0 43px;
  }

  .intro-copy > p:first-child {
    font-size: 17px;
  }

  .section {
    padding-block: 62px 70px;
  }

  .section-heading h2 {
    font-size: 31px;
  }

  .fund-grid,
  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .fund-card {
    min-height: 0;
  }

  .fund-body {
    padding: 30px 26px 34px;
  }

  .fund-body p {
    min-height: 0;
  }

  .benefit-card,
  .benefit-card:first-child {
    min-height: 0;
    padding: 28px 25px 30px;
  }

  .benefit-cta {
    margin-top: 34px;
  }

  .step-tab {
    min-height: 108px;
    padding: 13px 7px;
    border-radius: 14px;
  }

  .step-tab span {
    font-size: 16px;
    letter-spacing: 0;
  }

  .step-tab strong {
    margin-top: 9px;
    font-size: 14px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  .step-tab .step-label-desktop {
    display: none;
  }

  .step-tab .step-label-mobile {
    display: block;
  }

  .step-panels {
    overflow: hidden;
    border-radius: 18px;
  }

  .guide .section-heading h2 {
    font-size: 27px;
  }

  .step-visual img {
    display: block;
    width: min(100%, 350px);
    max-width: none;
    height: auto;
    max-height: none;
    margin: 0 auto;
    object-fit: contain;
    object-position: top;
  }

  .step-panel[data-panel="1"] .step-visual img,
  .step-panel[data-panel="2"] .step-visual img,
  .step-panel[data-panel="3"] .step-visual img {
    aspect-ratio: auto;
  }

  .step-heading {
    grid-column: 1;
    grid-row: 1;
    padding: 24px 24px 18px;
  }

  .step-heading h3 {
    margin-bottom: 0;
    font-size: 25px;
    line-height: 1.3;
  }

  .step-copy-number {
    margin-bottom: 10px;
    font-size: 36px;
  }

  .step-details {
    grid-column: 1;
    grid-row: 3;
    padding: 22px 24px 26px;
  }

  .step-details p {
    font-size: 16px;
    line-height: 1.75;
  }

  .step-visual {
    grid-column: 1;
    grid-row: 2;
    display: block;
    padding: 14px;
  }

  .step-panel {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-content: start;
    min-height: 0;
  }

  .risk-section {
    padding-block: 42px 52px;
  }

  .risk-copy,
  .risk-dialog #risk-dialog-copy {
    font-size: 16px;
  }

  .step-panel[data-panel="1"] .step-details .button {
    width: 100%;
  }

  .depository-visuals {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .depository-visuals img,
  .depository-single img {
    width: min(100%, 360px);
    max-width: 100%;
    height: auto;
    border: 0;
  }

  .step-carousel-control {
    width: 44px;
    height: 44px;
  }

  .step-carousel-control.is-prev {
    left: 8px;
  }

  .step-carousel-control.is-next {
    right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-cta,
  .button,
  .step-tab,
  .text-link {
    transition: none;
  }
}
