/* Hueflow Studio shared visual system
   Final override layer for consistent typography, spacing, buttons, and cards. */

:root {
  --hf-system-font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Segoe UI", "Malgun Gothic", sans-serif;
  --hf-ink: #101311;
  --hf-muted: #666d69;
  --hf-soft: rgba(246, 248, 245, 0.76);
  --hf-panel: rgba(255, 255, 255, 0.78);
  --hf-line: rgba(16, 19, 17, 0.09);
  --hf-green: #07584f;
  --hf-green-soft: rgba(7, 88, 79, 0.12);
  --hf-shadow: 0 22px 70px rgba(25, 36, 31, 0.11);
  --hf-radius-lg: 30px;
  --hf-radius-md: 22px;
  --hf-radius-sm: 16px;
}

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: geometricPrecision;
}

body {
  font-family: var(--hf-system-font) !important;
  color: var(--hf-ink);
  letter-spacing: -0.01em;
}

body,
button,
input,
textarea,
select,
a {
  font-family: var(--hf-system-font) !important;
}

h1,
h2,
h3,
h4,
.brand,
.hero h1,
.hero-copy h1,
.front-hero-copy h1,
.library-hero h1,
.page-title,
.section-head h2,
.section-title,
.course-hero h1,
.path-head h2,
.login-card h1,
.dashboard-card h2,
.launch-card__title,
.product-hero h1 {
  font-family: var(--hf-system-font) !important;
  color: var(--hf-ink);
  font-weight: 650 !important;
  letter-spacing: -0.035em !important;
}

h1,
.hero h1,
.hero-copy h1,
.front-hero-copy h1,
.library-hero h1,
.course-hero h1,
.product-hero h1,
.portfolio__title {
  font-size: clamp(28px, 3vw, 42px) !important;
  line-height: 1.12 !important;
}

h2,
.section-head h2,
.section-title,
.path-head h2,
.dashboard-card h2,
.launch-card__title {
  font-size: clamp(22px, 2.1vw, 32px) !important;
  line-height: 1.15 !important;
}

h3,
.course-card h3,
.pass-card h3,
.product-card h3,
.front-card h3,
.showcase-card h3 {
  font-size: clamp(17px, 1.25vw, 22px) !important;
  line-height: 1.25 !important;
  letter-spacing: -0.025em !important;
}

p,
li,
.lead,
.intro,
.brand-sub,
.hero-lead,
.page-lead,
.hero p,
.hero-copy p,
.front-hero-copy p,
.library-hero p,
.section-copy,
.muted,
.desc,
.card p,
.course-card p,
.pass-card p,
.product-card p,
.dashboard-card p {
  font-size: clamp(14px, 0.95vw, 16px);
  line-height: 1.72;
  color: var(--hf-muted);
  word-break: keep-all;
}

.brand,
.brand-sub,
.portfolio__title,
.portfolio__quote,
.mobile-original-label {
  font-family: var(--hf-system-font) !important;
}

.brand {
  font-weight: 650 !important;
}

.lead,
.intro,
.hero-lead,
.page-lead {
  max-width: 680px;
}

.eyebrow,
.front-eyebrow,
.kicker,
.label,
.tag,
.chip,
.pass-card__label,
.course-card__label,
.product-label,
.section-label,
.nav-pill,
.badge {
  font-family: var(--hf-system-font) !important;
  font-size: 12px !important;
  font-weight: 760 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase;
}

.btn,
.button,
.hero-actions a,
.front-card__cta,
.login-button,
.social-btn,
.lookup-button,
.cta,
.primary,
.secondary,
button[type="submit"],
input[type="submit"] {
  min-height: 46px;
  border-radius: 999px !important;
  font-size: 14px !important;
  font-weight: 720 !important;
  letter-spacing: -0.01em !important;
}

.nav,
.topbar,
.top-nav,
.site-nav,
.header,
.site-header,
.global-nav {
  border-radius: 28px !important;
}

.card,
.front-hero-card,
.front-card,
.showcase-card,
.course-card,
.product-card,
.pass-card,
.dashboard-card,
.login-card,
.launch-card,
.library-card,
.track-card,
.panel,
.tile,
.glass-card,
.coming-card,
.lookup-card,
.account-card {
  border-radius: var(--hf-radius-lg) !important;
  border-color: var(--hf-line) !important;
  box-shadow: var(--hf-shadow);
}

.chip,
.badge,
.tag,
.pill,
.nav-pill {
  border-radius: 999px !important;
}

.course-card,
.product-card,
.pass-card,
.library-card,
.track-card {
  background: var(--hf-panel);
}

.price,
.amount,
.sale-price,
.launch-price,
.pass-price {
  font-size: clamp(24px, 2.2vw, 34px) !important;
  font-weight: 760 !important;
  letter-spacing: -0.035em !important;
}

.meta,
.caption,
.small,
.note,
.status,
.date,
.course-meta {
  font-size: 12.5px !important;
  line-height: 1.55;
  color: var(--hf-muted);
}

@media (max-width: 760px) {
  h1,
  .hero h1,
  .hero-copy h1,
  .front-hero-copy h1,
  .library-hero h1,
  .course-hero h1,
  .product-hero h1,
  .portfolio__title {
    font-size: clamp(30px, 9vw, 42px) !important;
    line-height: 1.12 !important;
  }

  h2,
  .section-head h2,
  .section-title,
  .path-head h2,
  .dashboard-card h2,
  .launch-card__title {
    font-size: clamp(23px, 6.4vw, 32px) !important;
  }

  p,
  li,
  .hero p,
  .hero-copy p,
  .front-hero-copy p,
  .library-hero p,
  .section-copy,
  .muted,
  .desc,
  .card p,
  .course-card p,
  .pass-card p,
  .product-card p {
    font-size: 14px;
    line-height: 1.68;
  }

  .card,
  .front-hero-card,
  .front-card,
  .showcase-card,
  .course-card,
  .product-card,
  .pass-card,
  .dashboard-card,
  .login-card,
  .launch-card,
  .library-card,
  .track-card,
  .panel,
  .tile,
  .glass-card {
    border-radius: 24px !important;
  }
}

.brand,
.sales-brand,
.brand-lockup .brand-copy strong {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.brand-mark img,
.sales-brand .sales-mark img,
.brand-lockup .brand-mark img {
  width: 24px !important;
  height: 24px !important;
  border-radius: 7px !important;
  display: block !important;
}

/* ===== 공용 상단 메뉴 (2026-08-04) ===== */
.hf-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  width: min(1180px, calc(100vw - 32px));
  margin: 14px auto 0;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: rgba(248, 249, 248, 0.82);
  box-shadow: 0 14px 34px rgba(15, 24, 24, 0.06);
  backdrop-filter: blur(22px) saturate(170%);
}

.hf-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: 8px;
  font-size: 14px !important;
  font-weight: 650;
  color: #111;
  white-space: nowrap;
}

.hf-nav__brand,
.hf-nav__links a {
  text-decoration: none;
}

.hf-nav__brand img {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: block;
}

.hf-nav__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
}

.hf-nav__links a {
  padding: 9px 12px;
  border-radius: 999px;
  color: #333;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.hf-nav__links a:hover,
.hf-nav__links a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.78);
  color: #000;
}

.hf-nav__account {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.hf-nav__account > a {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.hf-nav__account > a:first-child {
  background: #101010;
  color: #fff;
}

.hf-nav__account > a:last-child {
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  border: 1px solid rgba(17, 24, 24, 0.1);
}

.hf-nav__account [hidden],
.member-menu[hidden] {
  display: none !important;
}

.member-menu {
  position: relative;
}

.member-menu .account-chip {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  color: #111;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: rgba(17, 24, 24, 0.08) 0 12px 26px, inset rgba(255, 255, 255, 0.72) 0 1px 0;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
}

.account-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #9fcfc3;
  box-shadow: 0 0 0 5px rgba(159, 207, 195, 0.18);
}

.account-chip::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 2px;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.75;
}

.member-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 50;
  min-width: 190px;
  display: none;
  padding: 8px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: rgba(17, 24, 24, 0.14) 0 22px 54px;
  backdrop-filter: blur(20px) saturate(180%);
}

.member-menu.is-open .member-dropdown {
  display: grid;
  gap: 3px;
}

.member-dropdown a,
.member-dropdown button {
  width: 100%;
  min-height: 38px;
  padding: 9px 11px;
  border: 0;
  border-radius: 12px;
  color: #222;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  text-align: left;
}

.member-dropdown a:hover,
.member-dropdown button:hover {
  background: rgba(17, 17, 17, 0.055);
}

.member-dropdown button {
  margin-top: 4px;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 0 0 12px 12px;
}

@media (max-width: 900px) {
  .hf-nav {
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .hf-nav__account {
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
  }
}

/* Keep the Hueflow QV bonus card legible against its dark background. */
.automation-coupon .coupon-card .coupon-title {
  color: #fffdf8;
}

.automation-coupon .coupon-card .coupon-desc {
  color: rgba(255, 253, 248, 0.82);
}

.automation-coupon .coupon-card .coupon-benefits,
.automation-coupon .coupon-card .coupon-benefits li {
  color: #fff !important;
  font-weight: 500;
  opacity: 1;
}

.course-sales .automation-coupon .coupon-card .sales-button.sales-button--dark,
.course-sales .automation-coupon .coupon-card .sales-button.sales-button--dark:visited {
  background: #fffdf8;
  color: #101816 !important;
}
