/* ============================================================
   Pure Sleep — Website shared styles
   Built on the Pure Sleep design system (colors_and_type.css).
   Night ↔ Paper surface rhythm. Full-width desktop, responsive.
   ============================================================ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ps-midnight);
  color: var(--ps-white);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--ps-dusk); color: #fff; }

:focus-visible { outline: 2px solid var(--ps-dusk); outline-offset: 2px; }

/* ---------- Layout primitives ------------------------------- */
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 40px; }
.narrow { max-width: 720px; margin-left: auto; margin-right: auto; }
.section { padding: clamp(72px, 11vw, 140px) 0; position: relative; }
.center { text-align: center; }

/* Surfaces */
.night { background: var(--ps-midnight); color: var(--ps-white); }
.ink   { background: var(--ps-ink); color: var(--ps-white); }
.dusk  { background: linear-gradient(180deg, #16233e 0%, #1B2A47 100%); color: var(--ps-white); }
.paper { background: #F2EEEF; color: var(--ps-ink-text); }
.paper-soft { background: #F2EEEF; color: var(--ps-ink-text); }
/* Titles on light surfaces use brand navy for clear contrast */
.paper h2, .paper-soft h2, .paper .lede-quote, .contact-aside h2, .split-body h2 { color: #313E61; }
.tea   { background: #241F18; color: var(--ps-bone); }

/* ---------- Starfield --------------------------------------- */
.stars { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.stars::before, .stars::after {
  content: ""; position: absolute; inset: -10%;
  background-repeat: repeat;
}
.stars::before {
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(197,210,227,.9), transparent),
    radial-gradient(1px 1px at 70% 18%, rgba(197,210,227,.7), transparent),
    radial-gradient(1.4px 1.4px at 42% 62%, rgba(231,236,244,.85), transparent),
    radial-gradient(1px 1px at 85% 48%, rgba(197,210,227,.6), transparent),
    radial-gradient(1px 1px at 12% 70%, rgba(197,210,227,.55), transparent),
    radial-gradient(1.2px 1.2px at 58% 80%, rgba(197,210,227,.7), transparent),
    radial-gradient(1px 1px at 33% 12%, rgba(197,210,227,.6), transparent),
    radial-gradient(1px 1px at 92% 78%, rgba(197,210,227,.5), transparent);
  background-size: 100% 100%;
  opacity: .9;
}

/* ---------- Eyebrow ----------------------------------------- */
.eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.04em;
  display: inline-block;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  color: var(--ps-dusk);
}
.night .eyebrow, .dusk .eyebrow, .ink .eyebrow { color: var(--ps-mist); }
.tea .eyebrow { color: var(--ps-amber); }

/* ---------- Type on surfaces ------------------------------- */
.section h2 {
  font-family: var(--font-sans); font-weight: 700;
  font-size: clamp(28px, 4.4vw, 44px); line-height: 1.28;
  letter-spacing: -0.025em; margin: 22px 0 0; text-wrap: pretty;
}
.lead { font-size: clamp(15px, 1.7vw, 18px); line-height: 1.85; margin: 22px auto 0; }
.night .lead, .dusk .lead, .ink .lead { color: var(--ps-pre-dawn); }
.paper .lead, .paper-soft .lead { color: var(--ps-graphite); }
.tea .lead { color: var(--ps-amber); }
.footnote { font-size: 12px; font-style: italic; margin-top: 18px; }
.night .footnote, .dusk .footnote, .ink .footnote { color: var(--ps-dawn); }
.paper .footnote, .paper-soft .footnote { color: var(--ps-clay); }
.tea .footnote { color: var(--ps-amber-deep); }

/* ---------- Buttons ----------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 600; font-size: 15px;
  padding: 15px 30px; border-radius: var(--r-pill); cursor: pointer;
  border: 1px solid transparent; transition: opacity .18s, transform .12s, background .18s, color .18s;
  letter-spacing: -0.01em; white-space: nowrap;
}
.btn:active { transform: scale(.98); opacity: .9; }
.btn-lime { background: var(--ps-lime); color: #1c2208; }
.btn-lime:hover { opacity: .92; }
.btn-light { background: var(--ps-white); color: var(--ps-ink-text); }
.btn-light:hover { opacity: .9; }
.btn-ink { background: var(--ps-ink-text); color: #fff; }
.btn-ink:hover { opacity: .9; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.paper .btn-ghost, .paper-soft .btn-ghost { border-color: rgba(26,26,26,.25); color: var(--ps-ink-text); }
.paper .btn-ghost:hover { border-color: var(--ps-ink-text); background: rgba(26,26,26,.04); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 36px; }

/* ---------- Header / nav ------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,17,36,.72); backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .25s;
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.brand img { height: 22px; width: auto; }
.site-header .nav { display: flex; align-items: center; gap: 38px; width: auto; max-width: none; padding: 0; position: static; }
.nav-links { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: 14px; font-weight: 500; letter-spacing: .01em; color: rgba(255,255,255,.82);
  padding: 6px 0; position: relative; transition: color .15s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--ps-mist); transition: width .22s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: #fff;
  border: 1px solid rgba(255,255,255,.28); border-radius: var(--r-pill);
  padding: 9px 18px; transition: background .15s, border-color .15s;
}
.nav-cta:hover { background: rgba(255,255,255,.08); border-color: var(--ps-lime); color: var(--ps-lime); }
.nav-cta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ps-lime); }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 22px; height: 1.6px; background: #fff; margin: 5px 0; transition: transform .2s, opacity .2s; }

/* mobile drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 99; background: rgba(6,11,28,.97);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.mobile-nav.open { opacity: 1; pointer-events: auto; }
.mobile-nav a { font-size: 26px; font-weight: 600; color: #fff; padding: 14px; letter-spacing: -.01em; }
.mobile-nav .eyebrow { margin-bottom: 20px; }

/* ---------- Hero -------------------------------------------- */
.hero { position: relative; overflow: hidden; }

/* Full-bleed image hero */
.hero-full { position: relative; display: flex; align-items: stretch; overflow: hidden; background: #0a1124;
  min-height: clamp(560px, calc(100vh - 70px), 900px); }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.hero-scrim { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(6,11,28,.72) 0%, rgba(6,11,28,.34) 24%, rgba(6,11,28,0) 48%, rgba(6,11,28,.12) 70%, rgba(6,11,28,.62) 100%); }
.hero-full-inner { position: relative; z-index: 2; width: 100%; text-align: center;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(56px, 12vh, 140px) 0 clamp(40px, 7vh, 84px); }
.hero-full-inner .eyebrow { color: var(--ps-mist); text-shadow: 0 1px 12px rgba(0,0,0,.4); }
.hero-full-inner h1 { font-family: var(--font-sans); font-weight: 700;
  font-size: clamp(32px, 5.6vw, 68px); line-height: 1.14; letter-spacing: -.035em;
  margin: 18px 0 0; color: #fff; text-shadow: 0 2px 36px rgba(0,0,0,.55); }
.hero-full-inner .tagline { color: rgba(255,255,255,.92); margin-top: 22px; font-size: clamp(13.5px,1.7vw,17px); text-shadow: 0 1px 18px rgba(0,0,0,.6); }
.hero-full-inner .btn-row { justify-content: center; margin-top: 22px; }
.hero-full .scroll-cue { position: absolute; left: 50%; transform: translateX(-50%); bottom: 22px; z-index: 3; margin: 0; }

.hero-night { background: radial-gradient(120% 80% at 50% -10%, #1a2950 0%, #0c1430 45%, #060b1c 100%); }
.hero-inner { position: relative; z-index: 2; padding: clamp(64px,10vw,110px) 0 0; text-align: center; }
.hero h1 {
  font-family: var(--font-sans); font-weight: 700;
  font-size: clamp(38px, 6.4vw, 76px); line-height: 1.08; letter-spacing: -0.035em;
  margin: 18px 0 0;
}
.hero .tagline { font-size: clamp(14px,1.7vw,18px); color: var(--ps-pre-dawn); margin-top: 26px; letter-spacing: .01em; }
.hero-product { margin: clamp(36px,5vw,56px) auto 0; max-width: 560px; position: relative; z-index: 2; }
.hero-product img { width: 100%; filter: drop-shadow(0 30px 60px rgba(0,0,0,.55)); }
.scroll-cue { margin: 40px auto 0; width: 24px; height: 38px; border: 1px solid rgba(255,255,255,.3); border-radius: 14px; position: relative; }
.scroll-cue::after { content:""; position:absolute; left:50%; top:8px; width:3px; height:7px; border-radius:2px; background: var(--ps-mist); transform: translateX(-50%); animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 0%{opacity:.2; transform:translate(-50%,0)} 50%{opacity:1; transform:translate(-50%,7px)} 100%{opacity:.2; transform:translate(-50%,0)} }

/* ---------- Cert row ---------------------------------------- */
.cert-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: clamp(48px,7vw,80px); }
.cert {
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-md);
  background: rgba(255,255,255,.03); padding: 26px 18px;
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
}
.cert .ring {
  width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--ps-mist);
  display: flex; align-items: center; justify-content: center; color: var(--ps-mist);
  font-size: 11px; font-weight: 700; line-height: 1.15; text-align: center;
}
.cert .ring.serif { font-family: var(--font-serif); font-style: italic; font-size: 22px; font-weight: 500; }
.cert .num { font-family: var(--font-serif); font-style: italic; font-size: 12px; color: var(--ps-pre-dawn); }
.cert .ct { font-weight: 700; font-size: 15px; color: #fff; line-height: 1.4; }
.cert .cd { font-size: 12.5px; color: var(--ps-pre-dawn); line-height: 1.5; }

/* ---------- Photo band -------------------------------------- */
.band { position: relative; height: clamp(360px, 46vw, 600px); overflow: hidden; }
.band img { width: 100%; height: 100%; object-fit: cover; }
.band-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,11,28,.35) 0%, rgba(6,11,28,0) 30%, rgba(6,11,28,0) 70%, rgba(6,11,28,.4) 100%); }
.band-caption { position: absolute; left: 0; right: 0; bottom: clamp(28px,5vw,56px); text-align: center; z-index: 2; color: #fff; }
.band-caption .eyebrow { color: var(--ps-mist); }
.band-caption h3 { font-size: clamp(22px,3vw,34px); font-weight: 700; letter-spacing: -.025em; margin: 14px 0 0; text-shadow: 0 2px 20px rgba(0,0,0,.5); }

/* ---------- Feature grid ------------------------------------ */
.feature-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin-top: clamp(40px,5vw,56px); text-align: left; }
.feature-card { background: #fff; border: 1px solid var(--ps-stone); border-radius: var(--r-md); padding: 28px; }
.feature-card .fnum { font-family: var(--font-serif); font-style: italic; font-size: 13px; color: var(--ps-lime-deep); }
.feature-card h4 { font-size: 18px; font-weight: 700; color: var(--ps-ink-text); margin: 8px 0 0; letter-spacing: -.02em; }
.feature-card p { font-size: 14px; line-height: 1.7; color: var(--ps-graphite); margin: 10px 0 0; }

/* ---------- Stat row ---------------------------------------- */
.stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; margin-top: clamp(40px,5vw,56px); border-top: 1px solid var(--hairline); }
.paper .stat-row, .paper-soft .stat-row { border-color: var(--ps-stone); }
.stat { padding: 30px 18px; text-align: center; border-right: 1px solid var(--hairline); }
.paper .stat { border-color: var(--ps-stone); }
.stat:last-child { border-right: 0; }
.stat .big { font-family: var(--font-sans); font-weight: 800; font-size: clamp(32px,4.4vw,52px); letter-spacing: -.03em; line-height: 1; }
.paper .stat .big { color: var(--ps-ink-text); }
.stat .sl { font-size: 13px; margin-top: 12px; }
.paper .stat .sl { color: var(--ps-graphite); }

/* ---------- Chart panel ------------------------------------- */
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: clamp(36px,5vw,52px); }
.chart-panel { background: #fff; border: 1px solid var(--ps-stone); border-radius: var(--r-md); padding: 24px; text-align: left; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.chart-head .ci { font-family: var(--font-serif); font-style: italic; font-size: 13px; color: var(--ps-clay); }
.chart-head .ct { font-weight: 700; font-size: 16px; color: var(--ps-ink-text); letter-spacing: -.02em; }
.chart-head .pv { font-style: italic; font-size: 12px; color: var(--ps-clay); white-space: nowrap; }
.bars { display: flex; align-items: flex-end; gap: 18px; height: 150px; margin-top: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--ps-stone); }
.bar-pair { flex: 1; display: flex; gap: 8px; align-items: flex-end; height: 100%; }
.bar { flex: 1; border-radius: 3px 3px 0 0; transition: height .9s cubic-bezier(.2,.7,.2,1); }
.bar.ctrl { background: var(--ps-clay); }
.bar.act  { background: var(--ps-twilight); }
.legend { display: flex; gap: 18px; margin-top: 16px; font-size: 12px; color: var(--ps-graphite); }
.legend .sw { display: inline-block; width: 11px; height: 11px; border-radius: 2px; margin-right: 7px; vertical-align: middle; }
.chart-note { font-size: 12px; color: var(--ps-graphite); margin-top: 14px; line-height: 1.7; }

/* ---------- Exclusion rows ---------------------------------- */
.excl { display: flex; flex-direction: column; gap: 8px; margin-top: clamp(36px,4vw,48px); }
.excl-row { display: flex; align-items: center; justify-content: center; gap: 12px; background: #fff; border: 1px solid var(--ps-stone); border-radius: var(--r-sm); padding: 15px 20px; font-size: 15.5px; font-weight: 600; color: var(--ps-ink-text); }
.excl-row .minus { width: 18px; height: 18px; border-radius: 50%; background: var(--ps-twilight); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; line-height: 1; }

/* ---------- Who list ---------------------------------------- */
.who-list { background: #fff; border: 1px solid var(--ps-stone); border-radius: var(--r-md); padding: 10px 28px; margin-top: clamp(36px,4vw,48px); text-align: left; }
.who-row { display: flex; align-items: center; gap: 14px; padding: 17px 0; border-bottom: 1px solid var(--ps-stone); font-size: 16px; color: var(--ps-ink-text); }
.who-row:last-child { border-bottom: 0; }
.who-row .tick { flex: none; width: 22px; height: 22px; border-radius: 6px; background: var(--ps-twilight); color: #fff; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- Plans ------------------------------------------- */
.plans { display: flex; flex-direction: column; gap: 16px; margin-top: clamp(40px,5vw,56px); }
.plan {
  display: flex; align-items: center; gap: 24px; padding: 26px 28px;
  background: var(--ps-paper); border: 1px solid var(--ps-stone); border-radius: var(--r-lg);
  transition: transform .18s, box-shadow .18s, border-color .18s; cursor: pointer;
}
.plan:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--ps-clay); }
.plan.featured { border-color: var(--ps-lime-deep); box-shadow: 0 0 0 1px var(--ps-lime-deep); }
.plan .pbody { flex: 1; }
.plan .pn { font-family: var(--font-serif); font-style: italic; font-size: 13px; color: var(--ps-clay); }
.plan .pname { font-size: 21px; font-weight: 700; color: var(--ps-ink-text); margin-top: 3px; letter-spacing: -.02em; }
.plan .pmeta { font-size: 13px; color: var(--ps-graphite); margin-top: 4px; }
.plan .pprice { display: flex; gap: 12px; align-items: baseline; margin-top: 14px; }
.plan .old { font-size: 14px; color: var(--ps-clay); text-decoration: line-through; }
.plan .new { font-size: 26px; font-weight: 800; color: var(--ps-ink-text); letter-spacing: -.02em; }
.plan .save { flex: none; width: 84px; height: 84px; border-radius: var(--r-md); background: var(--ps-lime); color: #1c2208; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; letter-spacing: -.02em; }
.plan .save .sp { font-size: 26px; line-height: 1; }
.plan .save .st { font-size: 10px; font-weight: 600; margin-top: 3px; opacity: .7; }

/* ---------- FAQ --------------------------------------------- */
.faq { margin-top: clamp(36px,4vw,48px); border: 1px solid var(--ps-stone); border-radius: var(--r-md); overflow: hidden; background: #fff; text-align: left; }
.faq details { border-bottom: 1px solid var(--ps-stone); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 14px; padding: 24px 26px; font-weight: 600; font-size: 16px; color: var(--ps-ink-text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q { font-family: var(--font-serif); font-style: italic; color: var(--ps-lime-deep); font-size: 14px; width: 30px; flex: none; }
.faq summary .chev { margin-left: auto; color: var(--ps-clay); transition: transform .2s; flex: none; }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq .a { padding: 0 26px 24px 70px; font-size: 14.5px; line-height: 1.8; color: var(--ps-graphite); }

/* ---------- Sticky buy bar ---------------------------------- */
.buy-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: rgba(10,17,36,.92); backdrop-filter: blur(18px);
  border-top: 1px solid rgba(255,255,255,.08);
  transform: translateY(110%); transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.buy-bar.show { transform: translateY(0); }
.buy-bar .bb-inner { display: flex; align-items: center; gap: 18px; padding: 14px 0; }
.buy-bar .bb-name { font-weight: 600; font-size: 15px; color: #fff; }
.buy-bar .bb-name small { display: block; font-weight: 400; font-size: 12px; color: var(--ps-pre-dawn); margin-top: 2px; }
.buy-bar .bb-price { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; }
.buy-bar .bb-price .old { font-size: 12px; color: var(--ps-dawn); text-decoration: line-through; }
.buy-bar .bb-price .new { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -.02em; }

/* ---------- Toast ------------------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px);
  background: rgba(10,17,36,.96); color: #fff; border: 1px solid rgba(255,255,255,.12);
  padding: 14px 22px; border-radius: var(--r-pill); font-size: 14px; font-weight: 500;
  display: flex; align-items: center; gap: 10px; z-index: 200;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  box-shadow: var(--shadow-3);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ps-lime); }

/* ---------- Footer ------------------------------------------ */
.site-footer { background: var(--ps-ink); color: var(--ps-pre-dawn); padding: clamp(56px,7vw,84px) 0 40px; }
.foot-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.foot-brand img { height: 26px; margin-bottom: 18px; }
.foot-brand p { font-size: 13.5px; line-height: 1.7; color: var(--ps-dawn); max-width: 320px; }
.foot-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.foot-col h5 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ps-mist); margin: 0 0 16px; font-weight: 600; }
.foot-col a, .foot-col p { display: block; font-size: 14px; color: var(--ps-pre-dawn); margin: 0 0 11px; transition: color .15s; }
.foot-col a:hover { color: #fff; }
.foot-bottom { padding-top: 28px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12px; color: var(--ps-dawn); line-height: 1.7; }

/* ---------- Cart drawer ------------------------------------- */
.bar-right { display: flex; align-items: center; gap: 22px; }
.ps-nav-login-btn { background: none; border: 0; cursor: pointer; color: #fff; padding: 6px; display: inline-flex; }
.cart-btn { position: relative; background: none; border: 0; cursor: pointer; color: #fff; padding: 6px; display: inline-flex; }
.cart-btn svg { width: 23px; height: 23px; }
.cart-count { position: absolute; top: -2px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--ps-lime); color: #1c2208; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; line-height: 1; }
.cart-count[hidden] { display: none; }
/* VASAK 팝업 패널 내부는 다크 페이지 흰색 텍스트 상속 차단 */
.popup-shopping-cart { color: #1a1a1a; }
.popup-shopping-cart h1, .popup-shopping-cart h2, .popup-shopping-cart h3,
.popup-shopping-cart h4, .popup-shopping-cart h5, .popup-shopping-cart h6,
.popup-shopping-cart .h4, .popup-shopping-cart .title { color: #1a1a1a !important; }

.cart-backdrop { position: fixed; inset: 0; background: rgba(6,11,28,.55); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 998; }
.cart-backdrop.open { opacity: 1; pointer-events: auto; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(424px, 92vw); background: var(--ps-bone); color: var(--ps-ink-text);
  transform: translateX(100%); transition: transform .34s cubic-bezier(.3,.7,.2,1); z-index: 999; display: flex; flex-direction: column; box-shadow: -22px 0 70px rgba(0,0,0,.34); }
.cart-drawer.open { transform: none; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--ps-stone); }
.cart-head h3 { font-size: 18px; font-weight: 700; color: #313E61; margin: 0; letter-spacing: -.01em; }
.cart-head h3 span { color: var(--ps-clay); font-weight: 600; }
.cart-close { background: none; border: 0; cursor: pointer; color: var(--ps-graphite); padding: 6px; display: inline-flex; }
.cart-close svg { width: 22px; height: 22px; }
.cart-items { flex: 1; overflow-y: auto; padding: 4px 24px; }
.cart-empty { text-align: center; color: var(--ps-graphite); padding: 64px 20px; }
.cart-empty svg { width: 46px; height: 46px; color: var(--ps-clay); margin-bottom: 16px; }
.cart-empty .ce-t { font-weight: 600; color: var(--ps-ink-text); }
.cart-empty .ce-s { font-size: 13px; margin-top: 6px; }
.cart-row { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--ps-stone); }
.cart-row .ci-thumb { width: 46px; height: 64px; border-radius: 8px; flex: none; background: linear-gradient(180deg,#9fb6d8 0%,#4e6a92 30%,#1B2A47 70%,#060B1C 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.cart-row .ci-body { flex: 1; min-width: 0; }
.cart-row .ci-name { font-weight: 700; font-size: 14.5px; color: var(--ps-ink-text); }
.cart-row .ci-meta { font-size: 12px; color: var(--ps-graphite); margin-top: 2px; }
.cart-row .ci-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--ps-stone); border-radius: 999px; overflow: hidden; background: #fff; }
.qty button { width: 28px; height: 28px; border: 0; background: none; cursor: pointer; color: var(--ps-ink-text); font-size: 16px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.qty button:hover { background: var(--ps-paper); }
.qty span { min-width: 30px; text-align: center; font-size: 13px; font-weight: 700; }
.ci-price { font-weight: 800; font-size: 15px; color: var(--ps-ink-text); letter-spacing: -.01em; }
.ci-remove { background: none; border: 0; cursor: pointer; color: var(--ps-clay); font-size: 11.5px; padding: 0; margin-top: 8px; }
.ci-remove:hover { color: var(--ps-graphite); text-decoration: underline; }
.cart-foot { border-top: 1px solid var(--ps-stone); padding: 20px 24px; background: var(--ps-paper); }
.cart-foot .cf-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--ps-graphite); padding: 4px 0; }
.cart-foot .cf-row .free { color: var(--ps-lime-deep); font-weight: 600; }
.cart-foot .cf-total { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0 16px; }
.cart-foot .cf-total .k { font-weight: 700; color: var(--ps-ink-text); font-size: 15px; }
.cart-foot .cf-total b { font-size: 24px; color: #313E61; font-weight: 800; letter-spacing: -.02em; }
.cart-foot .cf-total b small { font-size: 14px; }
.cart-foot .btn { width: 100%; padding: 16px; }
.cart-foot .cf-note { text-align: center; font-size: 11.5px; color: var(--ps-clay); margin-top: 12px; }

/* ---------- Purchase page ----------------------------------- */
.buy-layout { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px,4vw,60px); align-items: start; }
.buy-gallery { position: sticky; top: 94px; }
.buy-main { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--ps-stone); background: #fff; }
.buy-main img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.buy-thumbs { display: flex; gap: 12px; margin-top: 12px; }
.buy-thumb { flex: 1; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--ps-stone); background: #fff; cursor: pointer; transition: border-color .15s; aspect-ratio: 1/1; }
.buy-thumb img { width: 100%; height: 100%; object-fit: cover; }
.buy-thumb.active { border-color: var(--ps-dusk); box-shadow: 0 0 0 1px var(--ps-dusk); }

.buy-panel .p-brand { font-family: var(--font-serif); font-style: italic; font-size: 16px; color: var(--ps-dusk); }
.buy-panel h1 { font-size: clamp(28px,3.4vw,40px); font-weight: 700; letter-spacing: -.03em; color: #313E61; margin: 8px 0 0; }
.buy-panel .p-sub { font-size: 15px; color: var(--ps-graphite); margin: 12px 0 0; line-height: 1.6; }
.buy-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.buy-chips span { font-size: 12px; font-weight: 600; color: var(--ps-dusk); background: #EDEAE0; border-radius: 999px; padding: 6px 13px; }

.plan-radios { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.plan-radio { position: relative; display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1.5px solid var(--ps-stone); border-radius: var(--r-md); background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; }
.plan-radio:hover { border-color: var(--ps-clay); }
.plan-radio.sel { border-color: var(--ps-dusk); box-shadow: 0 0 0 1px var(--ps-dusk); background: #FBFAF6; }
.plan-radio .rdot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--ps-clay); transition: border-color .15s; position: relative; }
.plan-radio.sel .rdot { border-color: var(--ps-dusk); }
.plan-radio.sel .rdot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--ps-dusk); }
.plan-radio .pr-body { flex: 1; min-width: 0; }
.plan-radio .pr-name { display: block; font-weight: 700; font-size: 16px; color: var(--ps-ink-text); }
.plan-radio .pr-meta { display: block; font-size: 12.5px; color: var(--ps-graphite); margin-top: 3px; }
.plan-radio .pr-price { text-align: right; flex: none; }
.plan-radio .pr-price .pl { font-size: 12px; color: var(--ps-clay); text-decoration: line-through; }
.plan-radio .pr-price .pn { font-size: 19px; font-weight: 800; color: var(--ps-ink-text); letter-spacing: -.02em; }
.plan-radio .pr-save { position: absolute; top: -9px; right: 16px; font-size: 11px; font-weight: 700; color: #1c2208; background: var(--ps-lime); border-radius: 999px; padding: 3px 10px; }

.order-summary { margin-top: 24px; border: 1px solid var(--ps-stone); border-radius: var(--r-md); background: #FBFAF6; padding: 20px 22px; }
.order-summary .os-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--ps-graphite); padding: 7px 0; }
.order-summary .os-row .free { color: var(--ps-lime-deep); font-weight: 600; }
.order-summary .os-row.save { color: var(--ps-lime-deep); }
.order-summary .os-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--ps-stone); }
.order-summary .os-total .ot-k { font-size: 15px; font-weight: 700; color: var(--ps-ink-text); }
.order-summary .os-total .ot-v { font-size: 26px; font-weight: 800; color: #313E61; letter-spacing: -.02em; }
.order-summary .os-total .ot-v small { font-size: 14px; font-weight: 600; }

.buy-actions { display: flex; gap: 12px; margin-top: 20px; }
.buy-actions .btn { flex: 1; padding: 17px; font-size: 15px; }
.buy-trust { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 22px; }
.buy-trust .bt-item { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ps-graphite); }
.buy-trust .bt-item svg { width: 16px; height: 16px; color: var(--ps-dusk); flex: none; }

/* Product detail document (long-form 860px detail page) */
.detail-doc { max-width: 860px; margin: clamp(28px,4vw,48px) auto 0; box-shadow: var(--shadow-1); border-radius: var(--r-md); overflow: hidden; }
.detail-doc img { width: 100%; display: block; }

@media (max-width: 880px) {
  .buy-layout { grid-template-columns: 1fr; }
  .buy-gallery { position: static; }
}

/* ---------- Contact form ------------------------------------ */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px,5vw,72px); align-items: start; }
.contact-aside .eyebrow { color: var(--ps-dusk); }
.contact-aside h2 { margin-top: 18px; }
.contact-aside .lead { margin-left: 0; }
.contact-info { margin-top: 40px; border-top: 1px solid var(--ps-stone); }
.contact-info .ci-row { padding: 20px 0; border-bottom: 1px solid var(--ps-stone); }
.contact-info .ci-k { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ps-clay); }
.contact-info .ci-v { font-size: 16px; color: var(--ps-ink-text); margin-top: 6px; font-weight: 500; }
.form-card { background: #fff; border: 1px solid var(--ps-stone); border-radius: var(--r-lg); padding: clamp(26px,3.5vw,40px); box-shadow: var(--shadow-1); }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ps-ink-text); margin-bottom: 8px; }
.field label .req { color: var(--ps-lime-deep); margin-left: 3px; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--font-sans); font-size: 15px; color: var(--ps-ink-text);
  padding: 13px 15px; border: 1px solid var(--ps-stone); border-radius: var(--r-sm);
  background: var(--ps-paper); transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
/* shop/styles.css form input[type=...] 규칙 (특이도 0,1,2)이 .field input (0,1,1)을 덮어쓰므로 스코프 추가 */
.form-card .field input, .form-card .field textarea, .form-card .field select {
  background: var(--ps-paper); color: var(--ps-ink-text);
  border: 1px solid var(--ps-stone); border-radius: var(--r-sm);
  padding: 13px 15px; height: auto; font-size: 15px;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234A4A4A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ps-dusk); box-shadow: 0 0 0 3px rgba(43,69,105,.12); }
.form-card .field input:focus, .form-card .field textarea:focus, .form-card .field select:focus { outline: none; border-color: var(--ps-dusk); box-shadow: 0 0 0 3px rgba(43,69,105,.12); }
.field input.invalid, .field textarea.invalid { border-color: #C0584A; box-shadow: 0 0 0 3px rgba(192,88,74,.10); }
.field .err { font-size: 12px; color: #C0584A; margin-top: 6px; display: none; }
.field.show-err .err { display: block; }
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.topics { display: flex; flex-wrap: wrap; gap: 10px; }
.topic { position: relative; }
.topic input { position: absolute; opacity: 0; pointer-events: none; }
.topic label {
  display: inline-block; margin: 0; font-weight: 500; font-size: 14px; color: var(--ps-graphite);
  padding: 9px 16px; border: 1px solid var(--ps-stone); border-radius: var(--r-pill); cursor: pointer; transition: all .15s;
}
.topic input:checked + label { background: var(--ps-twilight); border-color: var(--ps-twilight); color: #fff; }
.form-submit { width: 100%; margin-top: 8px; padding: 16px; font-size: 15px; }
.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success.show { display: block; }
.form-success .sc-ring { width: 64px; height: 64px; border-radius: 50%; background: var(--ps-lime); color: #1c2208; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.form-success h3 { font-size: 22px; font-weight: 700; color: var(--ps-ink-text); letter-spacing: -.02em; }
.form-success p { font-size: 14.5px; color: var(--ps-graphite); margin-top: 10px; line-height: 1.7; }
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
  .field-2 { grid-template-columns: 1fr; }
}

/* ---------- App / phone mockup ------------------------------ */
.phone-wrap { display: flex; justify-content: center; }
.phone { width: min(300px, 80vw); aspect-ratio: 300 / 620; background: #0a0f1f; border-radius: 42px; padding: 11px;
  box-shadow: 0 44px 90px -34px rgba(0,0,0,.75), inset 0 0 0 2px rgba(255,255,255,.06); position: relative; }
.phone-screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 32px; color: #fff;
  background: radial-gradient(120% 80% at 50% -10%, #16243f 0%, #0b1124 55%, #070c1b 100%); }
.phone-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 42%; height: 22px; background: #05080f; border-radius: 0 0 14px 14px; z-index: 5; }
.phone-status { display: flex; justify-content: space-between; align-items: center; padding: 13px 22px 0; font-size: 12px; font-weight: 700; }
.ph-icons { display: inline-flex; align-items: center; gap: 5px; color: #fff; }
.phone-body { padding: 24px 20px 84px; }
.phone-body .ph-eyebrow { font-family: var(--font-serif); font-style: italic; font-size: 11px; color: var(--ps-pre-dawn); text-align: center; }
.app-count { text-align: center; margin-top: 4px; }
.app-count .lab { font-size: 11.5px; color: var(--ps-pre-dawn); letter-spacing: .08em; }
.app-count .big { font-weight: 800; font-size: 40px; letter-spacing: -.03em; line-height: 1; margin-top: 8px; }
.app-count .big small { font-size: .42em; font-weight: 600; color: var(--ps-pre-dawn); margin: 0 2px; }
.app-count .sub { font-size: 11px; color: var(--ps-dawn); margin-top: 9px; }
.app-count .sub b { color: var(--ps-mist); }
.ritual-card { margin-top: 20px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 15px; padding: 13px; display: flex; align-items: center; gap: 11px; }
.mini-bottle { width: 30px; height: 46px; border-radius: 6px; flex: none; background: linear-gradient(180deg,#9fb6d8 0%,#4e6a92 28%,#1B2A47 66%,#060B1C 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.ritual-card .rt { flex: 1; min-width: 0; }
.ritual-card .rt .e { font-family: var(--font-serif); font-style: italic; font-size: 10px; color: var(--ps-pre-dawn); }
.ritual-card .rt .t { font-weight: 700; font-size: 13.5px; margin-top: 1px; }
.done-pill { flex: none; background: var(--ps-lime); color: #1c2208; font-size: 11px; font-weight: 700; padding: 7px 11px; border-radius: 999px; display: inline-flex; gap: 5px; align-items: center; }
.app-block { margin-top: 22px; }
.app-block .bh { display: flex; justify-content: space-between; align-items: baseline; }
.app-block .bh .bt { font-size: 12.5px; font-weight: 700; }
.app-block .bh .bm { font-size: 10.5px; color: var(--ps-dawn); }
.week-bars { display: flex; gap: 7px; align-items: flex-end; height: 70px; margin-top: 12px; }
.week-bars .wb { flex: 1; background: rgba(255,255,255,.16); border-radius: 4px 4px 2px 2px; }
.week-bars .wb.cur { background: var(--ps-lime); }
.week-days { display: flex; gap: 7px; margin-top: 7px; }
.week-days span { flex: 1; text-align: center; font-size: 9.5px; color: var(--ps-dawn); }
.app-metrics { display: flex; gap: 9px; margin-top: 14px; }
.app-metric { flex: 1; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); border-radius: 12px; padding: 12px 10px; text-align: center; }
.app-metric .mv { font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.app-metric .mv small { font-size: .55em; font-weight: 600; color: var(--ps-pre-dawn); }
.app-metric .ml { font-size: 10px; color: var(--ps-dawn); margin-top: 4px; }
.app-tabbar { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: rgba(10,17,36,.72); backdrop-filter: blur(20px); border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-around; align-items: center; }
.app-tabbar svg { width: 22px; height: 22px; color: var(--ps-dawn); }
.app-tabbar svg.on { color: #fff; }

/* App feature cards */
.app-feats { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin-top: clamp(40px,5vw,56px); text-align: left; }
.app-feat { padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--hairline); background: rgba(255,255,255,.03); }
.paper .app-feat, .paper-soft .app-feat { background: #fff; border-color: var(--ps-stone); }
.app-feat .fi { width: 42px; height: 42px; border-radius: 11px; background: rgba(143,166,199,.14); display: flex; align-items: center; justify-content: center; color: var(--ps-mist); margin-bottom: 16px; }
.paper .app-feat .fi { background: #EDEAE0; color: var(--ps-dusk); }
.app-feat .fi svg { width: 22px; height: 22px; }
.app-feat h4 { font-size: 18px; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.paper .app-feat h4 { color: #313E61; }
.app-feat p { font-size: 14px; line-height: 1.7; margin: 10px 0 0; }
.night .app-feat p, .dusk .app-feat p { color: var(--ps-pre-dawn); }
.paper .app-feat p { color: var(--ps-graphite); }

/* Store buttons */
.store-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.store-btn { display: inline-flex; align-items: center; gap: 11px; background: #fff; color: #0a1124; border-radius: 12px; padding: 11px 18px; transition: opacity .15s, transform .12s; }
.store-btn:hover { opacity: .92; }
.store-btn:active { transform: scale(.98); }
.store-btn svg { width: 22px; height: 22px; flex: none; }
.store-btn .sl { line-height: 1.15; text-align: left; }
.store-btn .sl small { display: block; font-size: 10px; font-weight: 500; opacity: .62; letter-spacing: .02em; }
.store-btn .sl b { font-size: 15px; font-weight: 700; }

.app-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--ps-mist); background: rgba(143,166,199,.12); border: 1px solid rgba(143,166,199,.2); border-radius: 999px; padding: 7px 14px; }
.app-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ps-lime); }

@media (max-width: 880px) {
  .app-feats { grid-template-columns: 1fr; }
}

/* ---------- Split (image + text) ---------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,72px); align-items: center; }
.split.flip .split-media { order: 2; }
.split-media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-2); }
.split-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.split-body h2 { margin-top: 18px; }
.split-body .lead { margin-left: 0; }
.split-body .eyebrow + h2 { margin-top: 20px; }

/* ---------- Pillars ----------------------------------------- */
.pillars { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: clamp(40px,5vw,56px); text-align: left; }
.pillar { padding: 32px 28px; border-radius: var(--r-lg); border: 1px solid var(--hairline); }
.night .pillar, .dusk .pillar { background: rgba(255,255,255,.03); }
.pillar .pi { font-family: var(--font-serif); font-style: italic; font-size: 26px; color: var(--ps-mist); }
.pillar h4 { font-size: 19px; font-weight: 700; margin: 14px 0 0; letter-spacing: -.02em; }
.pillar p { font-size: 14px; line-height: 1.75; margin: 12px 0 0; }
.dusk .pillar p, .night .pillar p { color: var(--ps-pre-dawn); }

/* ---------- Lede block -------------------------------------- */
.lede-quote { font-family: var(--font-sans); font-weight: 600; font-size: clamp(22px,3.2vw,34px); line-height: 1.5; letter-spacing: -.02em; text-wrap: pretty; }
.lede-quote .serif { font-family: var(--font-serif); font-style: italic; font-weight: 500; }

@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .split.flip .split-media { order: 0; }
  .pillars { grid-template-columns: 1fr; }
}

/* ---------- Reveal animation -------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
/* Fallback when the browser isn't producing animation frames
   (throttled / background tab): show everything instantly. */
body.no-anim .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
body.no-anim .scroll-cue::after { animation: none; }
body.no-anim .bar { transition: none !important; }

/* ---------- Responsive -------------------------------------- */
@media (max-width: 880px) {
  .wrap { padding: 0 22px; }
  .nav-links, .nav-cta.desktop { display: none; }
  .menu-toggle { display: block; }
  .feature-grid, .chart-grid, .cert-grid { grid-template-columns: 1fr; }
  .cert-grid { gap: 12px; }
  .stat-row { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--ps-stone); }
  .stat:last-child { border-bottom: 0; }
  .plan { flex-wrap: wrap; gap: 16px; padding: 22px; }
  .plan .save { width: 64px; height: 64px; }
  .plan .save .sp { font-size: 20px; }
  .foot-cols { gap: 40px; }
}

/* ---- Modal text color (style.css .home p 규칙 무력화) ---- */
.modal .modal-inner p,
.modal .modal-inner .txt { color: #1a1a1a; }

/* ---- bottom-sheet-modal 텍스트 색상 고정 ---- */
.bottom-sheet-modal,
.bottom-sheet-modal .txt-title,
.bottom-sheet-modal .content-wrap { color: #1a1a1a; }

/* ---- login-modal-inner 데스크탑 centering ---- */
.login-modal .login-modal-inner {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ============================================================
   Product detail / Review tabs (Shop page)
   ============================================================ */
.ps-tabs { display:flex; justify-content:center; gap:4px; border-bottom:1px solid var(--ps-stone); margin:0 auto; }
.ps-tab {
  flex:0 1 220px; min-width:140px; background:none; border:0; cursor:pointer;
  display:flex; align-items:center; justify-content:center; gap:3px; text-align:center;
  font-family:var(--font-sans); font-size:16px; font-weight:700; color:var(--ps-clay);
  padding:18px 12px; position:relative; letter-spacing:-.01em; transition:color .15s;
}
.ps-tab:hover { color:var(--ps-graphite); }
.ps-tab.active { color:#313E61; }
.ps-tab.active::after {
  content:""; position:absolute; left:0; right:0; bottom:-1px; height:2px; background:#313E61;
}
.ps-tab .ps-tab-count { font-weight:600; color:var(--ps-clay); font-size:14px; }
.ps-tab-panel[hidden] { display:none; }

/* ---- Review summary ---- */
.ps-review-summary {
  display:flex; align-items:center; gap:22px;
  background:var(--ps-paper); border:1px solid var(--ps-stone); border-radius:var(--r-lg,18px);
  padding:24px 28px; margin-bottom:clamp(28px,4vw,44px);
}
.ps-review-avg { font-size:46px; font-weight:800; line-height:1; color:#313E61; letter-spacing:-.03em; }
.ps-review-sumr { display:flex; flex-direction:column; gap:8px; }
.ps-review-totlab { font-size:13.5px; color:var(--ps-graphite); }
.ps-review-totlab b { color:var(--ps-ink-text); }
.ps-review-stars img { width:16px; height:16px; display:inline-block; vertical-align:middle; }
.ps-review-summary .ps-review-stars img { width:18px; height:18px; }

/* ---- Review blocks ---- */
.ps-review-block { margin-bottom:clamp(32px,4vw,48px); }
.ps-review-h { margin-bottom:18px; text-align:center; }
.ps-review-h h3 { font-size:20px; font-weight:700; color:#313E61; letter-spacing:-.02em; margin:6px 0 0; }
.ps-review-h .eyebrow { color:var(--ps-lime-deep); }

/* Best reviews: highlighted grid */
.ps-review-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.ps-review-list { display:flex; flex-direction:column; gap:14px; }

.ps-review-card {
  position:relative; display:flex; gap:16px;
  background:#fff; border:1px solid var(--ps-stone); border-radius:var(--r-md,12px);
  padding:20px 22px;
}
.ps-review-card.best { border-color:var(--ps-lime-deep); box-shadow:0 0 0 1px var(--ps-lime-deep); background:#FBFAF6; }
.ps-review-badge {
  position:absolute; top:-9px; left:18px; font-size:11px; font-weight:800; letter-spacing:.02em;
  color:#1c2208; background:var(--ps-lime); border-radius:999px; padding:3px 11px;
}
.ps-review-thumb { flex:none; width:84px; height:84px; border-radius:10px; overflow:hidden; background:var(--ps-paper); border:1px solid var(--ps-stone); }
.ps-review-thumb img { width:100%; height:100%; object-fit:cover; }
.ps-review-cbody { flex:1; min-width:0; }
.ps-review-meta { display: flex; font-size:12.5px; color:var(--ps-graphite); margin-top:8px; }
.ps-review-name { font-weight:700; color:var(--ps-ink-text); }
.ps-review-sep { margin:0 6px; color:var(--ps-clay); }
.ps-review-opt { font-size:12px; color:var(--ps-clay); margin-top:4px; }
.ps-review-text { font-size:14px; line-height:1.7; color:var(--ps-graphite); margin-top:10px; white-space:pre-line; word-break:break-word; }

.ps-review-empty { text-align:center; color:var(--ps-graphite); font-size:14.5px; line-height:1.7; padding:64px 20px; border:1px dashed var(--ps-stone); border-radius:var(--r-md,12px); background:var(--ps-paper); }

@media (max-width: 880px) {
  .ps-review-grid { grid-template-columns:1fr; }
  .ps-review-card { flex-direction:column; }
  .ps-review-thumb { width:100%; height:180px; }
}
