@charset "UTF-8";

/* ===== Page ===== */
.subs-page{
  color:#111;
  padding: 48px 0 120px;

  /* Min height to pin footer to bottom */
  min-height: calc(100vh - 72px - 80px); /* 100vh - header(72px) - footer(~80px) */
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertical center */
  max-width:100%;
  overflow-x:scroll;
}
.subs-title{
  max-width: 1200px;
  margin: 0 auto 24px;
  padding: 0 24px;
  text-align:center;
  color:#1f2937;
  font-family: 'NanumSquare', 'Noto Sans KR', 'Noto Sans JP', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 5vw, 56px);
  line-height:1.1;
}

/* ===== Plans grid ===== */
.plans{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display:flex;
  gap: 24px;
}

/* ===== Plan card ===== */
.plan{
  width: 390px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
  overflow:hidden; /* keep border-radius */
  display:flex;
  flex-direction:column;
}
.plan__head{
  padding: 24px;
  display:grid;
  grid-template-areas:
    "icon  badge"
    "name  badge"
    "sub   sub"
    "price price"
    "cta   cta";
  grid-template-columns: 1fr auto;
  row-gap: 10px;
  align-items:center;
  position: relative;
  padding-top: 22px;         /* top margin (prevent icon/badge overlap) */
}
.plan__icon{ grid-area: icon; font-size: 28px; line-height:1; }
.plan__name{
  grid-area:name;
  font-weight:800;
  font-size: 28px;
  color:#111;
}
.plan__sub{
  grid-area: sub;
  color:#6b7280;
  font-size:14px;
  margin-top: -4px;
}
.badge{
  position: absolute;
  top: 14px;                 /* slightly below top-right */
  right: 16px;
  display: inline-flex;      /* vertical/horizontal center */
  align-items: center;
  justify-content: center;
  height: 26px;              /* vertical text centering */
  padding: 0 12px;
  line-height: 1;            /* prevent downward shift */
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  border: 1px solid #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}
.badge--popular{}

/* price line */
.plan__price{
  grid-area: price;
  display:flex;
  align-items: baseline;
  gap: 14px;
  margin-top: 4px;
}
.plan__price-old{
  color:#9ca3af;
  text-decoration: line-through;
  font-weight:800;
}
.plan__price-now strong{
  font-size: 32px;
  font-weight: 800;
  color:#111;
}
.plan__price-now span{ margin-left: 6px;
  color: #6b7280;
  font-weight: 700;
  position: relative;
  top: 2px; }

/* CTA */
.btn{
  grid-area: cta;
  display:inline-block;
  width:100%;
  text-align:center;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight:800;
  font-size:16px;
  text-decoration:none;
  margin-top: 6px;
  transition: transform .06s ease;
}
.btn:active{ transform: translateY(1px); }
/* Remove hover color change */
.btn:hover{ filter:none; }

/* outline (Free) */
.btn--outline{
  color:#111;
  background:#fff;
  border:1px solid #e5e7eb;
}
/* primary (Pro/Max) */
.btn--primary{
  background:#f97316;
  color:#fff;
  border:1px solid #f97316;
}

/* Current plan (subscribed) */
.btn--current{
  background:#e5e7eb !important;
  color:#9ca3af !important;
  border:1px solid #e5e7eb !important;
  cursor:not-allowed !important;
  opacity:0.7;
  pointer-events:none !important;
}
.btn--current:hover{
  background:#e5e7eb !important;
  transform:none !important;
}
.btn--current:active{
  transform:none !important;
}

/* Upgrade */
.btn--upgrade{
  background:#ff6b35 !important;
  color:#fff !important;
  border:1px solid #ff6b35 !important;
}
.btn--upgrade:hover{
  background:#e85d2a !important;
  filter:brightness(1.05);
}
.btn--upgrade:active{
  transform:translateY(1px);
}

/* Divider */
.plan__divider{
  border:0;
  height:1px;
  background: #f1f5f9;
  margin: 0;
}

/* Features */
.plan__features{
  list-style:none;
  margin:0;
  padding: 18px 24px 24px;
  display:grid;
  gap: 12px;
  color:#111;
}
.plan__features li{
  position: relative;
  padding-left: 22px;
  line-height: 1.4;
}
.plan__features li::before{
  content:"✓";
  position:absolute; left:0; top:0;
  color:#16a34a; font-weight:800;
}

/* Remove Pro highlight - no Pro highlight in design mockup */
/* .plan--pro{
  border-color:#fed7aa;
  box-shadow: 0 14px 38px rgba(249,115,22,.20);
} */

/* Note */
.subs-note{
  max-width: 1200px;
  margin: 28px auto 0;
  padding: 0 24px;
  text-align:center;
  color:#9ca3af;
  font-weight:800;
  font-size: 14px;
}

.subs-note a { text-decoration: underline !important; color:#6b7280; }

/* ===== Responsive ===== */
@media (max-width: 1200px){
  .plans{ gap: 16px; }
}
@media (max-width: 900px){
  .plans{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 600px){
  .subs-title{ font-size: 36px; }
  .plans{ grid-template-columns: 1fr; }
}

#paypal-pro-container,
#paypal-max-container {
  position: fixed;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
