@font-face {
  font-family: "BasicNotoSans";
  src: url("../assets/Fonts/NotoSansKR-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "BasicRixHead";
  src: url("../assets/Fonts/RIX%20HeadB.TTF") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --basic-wine: #7d1724;
  --basic-wine-dark: #62101b;
  --basic-gold: #ddc7a7;
  --basic-ivory: #fcf8f2;
  --basic-ink: #181818;
  --basic-muted: #6a5d56;
}

.exact-word-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(207, 228, 255, 0.2);
}

.exact-word-section h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
}

.example-line span:first-child {
  flex: 0 0 auto;
  white-space: nowrap;
}

.example-line span:last-child {
  min-width: 0;
}

.exact-word-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  color: #aebdd0;
  font-size: 14px;
}

.exact-word-result strong {
  color: #fff;
  font-size: 16px;
}

.exact-word-result span {
  color: #9fc7ee;
  text-align: right;
}

#recordBtn {
  white-space: nowrap;
}

main:has(.basic-index-hero) {
  min-height: calc(100vh - 170px);
  background: #fff;
  font-family: "BasicNotoSans", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

.basic-index-hero {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 38px 0 0;
  text-align: center;
}

.basic-index-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--basic-wine);
}

.basic-trial-status {
  display: inline-flex;
  width: auto;
  height: auto;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #1769aa;
  color: #fff;
  box-shadow: 0 3px 10px rgba(23, 105, 170, 0.2);
  font-family: "BasicNotoSans", "Noto Sans KR", sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
}

.basic-trial-status[hidden] {
  display: none;
}

.basic-trial-status span {
  width: auto;
  height: auto;
  background: transparent;
}

.basic-trial-detail {
  min-width: 41px;
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.basic-index-eyebrow p {
  margin: 0;
  white-space: nowrap;
  color: var(--basic-wine);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 700;
}

.basic-index-hero h1 {
  margin: 16px 0 10px;
  color: var(--basic-wine);
  font-family: "BasicRixHead", "Noto Sans KR", sans-serif;
  font-size: clamp(48px, 5.2vw, 68px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.basic-index-description {
  margin: 0;
  color: var(--basic-ink);
  font-size: 21px;
  line-height: 1.5;
}

.basic-access-page {
  width: min(1200px, calc(100% - 48px));
  margin: 30px auto 0;
  padding: 0 0 88px;
}

.basic-access-empty {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 14px;
  min-height: 340px;
  padding: 58px 28px;
  border: 1px solid var(--basic-gold);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(252, 248, 242, 0.76), #fff 48%);
  box-shadow: 0 18px 42px rgba(94, 44, 34, 0.08);
  text-align: center;
}

.basic-access-label {
  margin: 0 0 4px;
  color: var(--basic-wine);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.basic-access-empty strong {
  color: var(--basic-ink);
  font-size: clamp(25px, 2.5vw, 32px);
  font-weight: 700;
}

.basic-access-empty span {
  color: var(--basic-muted);
  font-size: 17px;
  font-weight: 400;
}

.basic-access-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}
.basic-access-buy,
.basic-access-trial {
  width: 220px;
  height: 52px;
  min-width: 220px;
  min-height: 52px;
  box-sizing: border-box;
  line-height: 1;
  white-space: nowrap;
}
.basic-access-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 52px;
  padding: 0 28px;
  color: #fff !important;
  border: 1px solid var(--basic-wine);
  border-radius: 7px;
  background: var(--basic-wine);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.basic-access-trial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 52px;
  padding: 0 28px;
  color: #fff !important;
  border: 1px solid #1769aa;
  border-radius: 7px;
  background: #1976bd;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.basic-access-trial.is-disabled {
  width: 310px;
  cursor: not-allowed;
  border-color: #94a3b8;
  background: #94a3b8;
  opacity: .82;
  pointer-events: none;
}
.basic-access-trial:hover,
.basic-access-trial:focus-visible {
  color: #fff !important;
  background: #105b96;
  outline: none;
  transform: translateY(-2px);
}
.basic-access-buy:hover,
.basic-access-buy:focus-visible {
  color: #fff !important;
  background: var(--basic-wine-dark);
  outline: none;
  transform: translateY(-2px);
}

@media (max-width: 860px) {
  .basic-index-hero,
  .basic-access-page {
    width: calc(100% - 32px);
  }

  .basic-index-hero {
    padding-top: 30px;
  }

  .basic-index-hero h1 {
    font-size: 44px;
  }

  .basic-index-description {
    font-size: 17px;
  }

  .basic-access-page {
    margin-top: 26px;
  }

}

@media (max-width: 560px) {
  .basic-access-empty {
    min-height: 300px;
    padding: 44px 20px;
  }

  .basic-access-empty strong {
    font-size: 24px;
  }

  .basic-access-empty span {
    font-size: 16px;
  }

  .basic-access-actions {
    width: 100%;
  }

  .basic-access-buy,
  .basic-access-trial {
    width: min(240px, 100%);
  }

  .basic-access-trial.is-disabled {
    width: 100%;
    font-size: 14px;
  }
}
