@font-face {
  font-family: SUIT;
  src: url("/fonts/SUIT-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  font-family: SUIT,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;
  color: #251e19;
  background: #faf1e8;
  font-synthesis: none;
  line-height: 1.55;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none!important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(72% 92% at 92% 42%,#ff821842,transparent 65%),linear-gradient(135deg,#f0e6dc,#faf1e8 48%,#fffaf5);
}

a,button,input,summary {
  font: inherit;
}

button,summary {
  cursor: pointer;
}

button:disabled,input:disabled {
  cursor: wait;
  opacity: .65;
}

:focus-visible {
  outline: 3px solid #ad4608;
  outline-offset: 3px;
}

.account-shell {
  width: min(940px,calc(100% - 48px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

.account-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 42px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: inherit;
  font-size: 17px;
  font-weight: 850;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(135deg,#ffbf6b,#ff7629);
  color: #3e220f;
  line-height: 1;
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(330px,410px);
  grid-template-areas: "product account" "pricing account";
  grid-template-rows: auto 1fr;
  column-gap: clamp(28px,8vw,96px);
  align-items: start;
  margin: clamp(56px,10vh,120px) 0;
}

.product {
  grid-area: product;
  padding-top: 24px;
}

.product-pricing { grid-area: pricing; }

.product h1 {
  font-weight: 850;
  font-size: clamp(38px,5vw,60px);
  line-height: 1.15;
  letter-spacing: -.055em;
  margin: 0;
}

.intro {
  margin: 23px 0;
  color: #655549;
  max-width: 315px;
  font-size: 17px;
  word-break: keep-all;
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 5px;
  border-top: 1px solid #d8c7b7;
  width: fit-content;
  min-width: 190px;
  padding-top: 19px;
  font-size: 18px;
  font-weight: 700;
}

.price-line strong {
  font-size: 34px;
  letter-spacing: -.055em;
}

.test-hint {
  margin: 2px 0;
  font-size: 14px;
  color: #68564a;
  font-weight: 650;
}

.account-card {
  grid-area: account;
  min-width: 0;
  border: 1px solid #ffffffbf;
  border-radius: 30px;
  background: #fffaf4e8;
  padding: clamp(24px,3.2vw,36px);
  box-shadow: 0 20px 54px #63381113;
}

h2 {
  margin: 0;
  line-height: 1.3;
  font-size: 25px;
  letter-spacing: -.035em;
}

.description {
  margin: 9px 0 23px;
  color: #67574b;
  font-size: 15px;
  word-break: keep-all;
}

form>label:not(.consent) {
  display: block;
  margin: 16px 0 6px;
  font-size: 14px;
  font-weight: 750;
}

input[type=email],input[type=password] {
  display: block;
  width: 100%;
  height: 46px;
  padding: 0 13px;
  background: #fffefa;
  border: 1px solid #d5c5b6;
  border-radius: 12px;
  color: #251e19;
  font-size: 16px;
}

input::placeholder {
  color: #82756d;
}

.field-hint {
  margin: 6px 0 0;
  color: #6a594c;
  font-size: 13px;
}

.primary,.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-weight: 800;
  border-radius: 999px;
  text-decoration: none;
  text-align: center;
}

.primary {
  margin-top: 20px;
  width: 100%;
  padding: 10px 16px;
  color: #251a12;
  border: 1px solid #ff801fcc;
  background: linear-gradient(135deg,#ffbf6b,#ff8a2a 48%,#ff6422);
  box-shadow: 0 7px 17px #e76e1526;
}

.primary:hover {
  filter: brightness(1.035);
}

.text-button,summary {
  font-weight: 700;
  color: #664a35;
}

.text-button {
  padding: 5px 3px;
  border: 0;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mode-switch {
  font-size: 14px;
  text-align: center;
  color: #625449;
  margin: 19px 0 0;
}

.member-email {
  margin: 0 0 8px;
  font-size: 14px;
  color: #79573e;
  overflow-wrap: anywhere;
}

.member-feedback-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
}

.subscription-facts {
  border-block: 1px solid #e6d9c9;
  padding: 10px 0;
  margin: 16px 0;
  font-size: 14px;
}

.subscription-facts div {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 5px 0;
}

.subscription-facts dt {
  color: #6a594d;
}

.subscription-facts dd {
  margin: 0;
  font-weight: 750;
  text-align: right;
}

.consent,.option {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 14px;
  color: #5f4f43;
}

.consent input,.option input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin: 3px 0 0;
  accent-color: #a84412;
}

.test-options {
  margin: 14px 0 0;
  font-size: 14px;
}

.test-options summary {
  padding: 4px 0;
  width: fit-content;
}

.test-options .option {
  margin: 8px 0;
}

.advance {
  border-top: 1px solid #e6d9c9;
  padding-top: 12px;
}

.manage-action {
  display: block;
  margin: 12px auto 0;
}

.secondary {
  margin-top: 10px;
  padding: 7px 14px;
  background: #fff8ef;
  border: 1px solid #d6c1ad;
  color: #513b29;
  font-size: 14px;
}

.confirm {
  padding: 14px;
  margin-top: 14px;
  border: 1px solid #e2c8ab;
  border-radius: 14px;
  background: #fff3e4;
}

.confirm p {
  margin: 7px 0;
  color: #685342;
  font-size: 14px;
}

.confirm .text-button {
  margin-left: 8px;
}

.payment-history { margin-top: 26px; border-top: 1px solid #e6d9c9; padding-top: 18px; }
.payment-history h3 { margin: 0; font-size: 16px; }
.payment-history ul { list-style: none; margin: 10px 0 0; padding: 0; }
.payment-history li { display: flex; gap: 8px; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px solid #e6d9c9; font-size: 14px; }
.payment-history small { display: block; color: #6a594c; font-size: 13px; }
.payment-history strong { white-space: nowrap; }

#feedback {
  border-left: 3px solid #dc822f;
  margin: 18px 0 0;
  padding: 3px 0 3px 10px;
  font-size: 14px;
  overflow-wrap: anywhere;
}

#feedback.error {
  color: #96331c;
  border-color: #bb4827;
}

#loading {
  margin: 0;
  color: #655549;
}

@media(max-width:680px) {
  .account-shell {
    width: min(480px,calc(100% - 32px));
    padding: 16px 0 36px;
  }
  .account-layout {
    grid-template-columns: 1fr;
    grid-template-areas: "product" "account" "pricing";
    grid-template-rows: auto auto auto;
    gap: 20px;
    margin: 24px 0;
  }
  .product, .product-pricing {
    padding: 0 4px;
  }
  .product h1 {
    font-size: 30px;
  }
  .product h1 br {
    display: none;
  }
  .intro {
    font-size: 15px;
    margin: 9px 0 13px;
    max-width: 100%;
  }
  .price-line {
    padding: 0;
    border: 0;
    min-width: 0;
    display: inline-flex;
    font-size: 15px;
  }
  .price-line strong {
    font-size: 24px;
  }
  .test-hint {
    margin: 0 0 0 8px;
    display: inline-block;
    font-size: 13px;
  }
  .account-card {
    padding: 23px;
    border-radius: 24px;
  }
  .account-header {
    min-height: 36px;
  }
}

#kakao-pending .primary { margin-top: 0; }
.kakao-login { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 48px; padding: 10px 16px; border: 0; border-radius: 12px; background: #fee500; color: rgb(0 0 0 / 85%); font: 600 16px/1.4 system-ui, sans-serif; }
.kakao-login svg { flex: none; }
.legacy-login, .member-link { margin-top: 18px; padding-top: 14px; border-top: 1px solid #e6d9c9; }
#auth-form .secondary { width: 100%; margin-top: 16px; }
.auth-note { margin: 0; padding: 14px 16px; border: 1px solid #e6d9c9; border-radius: 12px; font-size: 14px; }
#kakao-cancel { margin-top: 12px; }
.payment-shell { max-width: 510px; }
.payment-card { margin-top: clamp(24px,8vh,76px); }
.payment-card h1 { margin: 0; font-size: clamp(23px,5vw,30px); line-height: 1.35; letter-spacing: -.04em; }
.payment-card .secondary { width: 100%; margin-top: 10px; }
.payment-card .field-hint { margin: 14px 0 8px; }
