/* PROTOTYPE customer area — builds on site.css (same tokens, type, buttons, cards). */
body[data-page="account"] .stage { opacity: .45; }

.hero--account { min-height: 64vh; min-height: 64svh; align-items: flex-end; padding-bottom: 56px; }
.hero--account .hero__slot { bottom: 0; }
.hero--login { min-height: 100vh; min-height: 100svh; align-items: center; }

/* form */
.auth { margin-top: 34px; width: min(100%, 460px); }
.field { display: grid; gap: 8px; }
.field__label { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.field__input {
  height: 56px;
  padding: 0 18px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  background: rgba(14, 18, 23, .72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field__input::placeholder { color: #5d6672; }
.field__input:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 22%, transparent); }
.field__input[aria-invalid="true"] { border-color: var(--down); }
.auth__btn { width: 100%; margin-top: 14px; }
.auth__btn[disabled] { opacity: .6; cursor: progress; }
.auth__hint { margin-top: 14px; font-size: 14px; color: var(--muted); }
.auth__hint a { color: var(--text); }
.auth__error { margin-top: 12px; font-size: 14px; color: #ff8a98; }

/* "check your inbox" / status panel */
.notice {
  position: relative;
  margin-top: 34px;
  width: min(100%, 520px);
  padding: 26px 28px 26px 74px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(14, 18, 23, .78);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.notice::before {
  content: "";
  position: absolute;
  left: 26px; top: 28px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--up) 18%, transparent);
  box-shadow: inset 0 0 0 1.5px var(--up);
}
.notice::after {
  content: "";
  position: absolute;
  left: 36px; top: 35px;
  width: 7px; height: 12px;
  border: solid var(--up);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.notice--warn::before { background: color-mix(in srgb, var(--c-what) 16%, transparent); box-shadow: inset 0 0 0 1.5px var(--c-what); }
.notice--warn::after { left: 40px; top: 34px; width: 2px; height: 10px; border: 0; background: var(--c-what); transform: none;
  box-shadow: 0 13px 0 0 var(--c-what); }
.notice__title { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -.01em; }
.notice__text { margin-top: 8px; color: #c3cbd6; }
.notice__actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }

/* account sections */
.acct { position: relative; padding: 4vh var(--gutter) 12vh; background: var(--ground); }
.acct + .acct { padding-top: 10vh; border-top: 1px solid var(--line); }
.acct__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 34px; }
.acct__title { font-size: clamp(34px, 4.2vw, 64px); }
.acct__lede { max-width: 30em; color: var(--muted); }

.acct-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.6vw, 38px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.card--life { background: var(--surface-2); border-color: var(--line-2); }
.card__kicker { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.card__big { margin-top: 10px; font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: clamp(40px, 4.4vw, 68px); line-height: .95; letter-spacing: -.02em; }
.card__terms { margin: 26px 0 0; border-top: 1px solid var(--line-2); }
.card__terms div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.card__terms dt { color: var(--muted); }
.card__terms dd { margin: 0; color: #dfe5ec; overflow-wrap: anywhere; }
.card__actions { margin-top: auto; padding-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.card__note { margin-top: 14px; font-size: 14px; color: var(--muted); }

.chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 6px 12px 6px 10px; border-radius: 6px;
  font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); width: fit-content; }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--chip, var(--up));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--chip, var(--up)) 22%, transparent); }
.chip--active { --chip: var(--up); }
.chip--ending { --chip: var(--c-what); }
.chip--ended { --chip: var(--down); }

/* the three tools */
.tools-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tool {
  position: relative;
  padding: 28px 26px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: transform .4s var(--ease-out), border-color .4s var(--ease);
}
.tool::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c); }
.tool::after {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 28%, transparent), transparent);
  pointer-events: none;
}
.tool:hover { transform: translateY(-2px); border-color: var(--line-2); }
.tool__name { font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: 34px; letter-spacing: -.01em; color: var(--c); }
.tool__what { margin-top: 6px; color: #c3cbd6; }
.tool__path { margin-top: 20px; font-size: 13px; color: var(--muted); }
.tool__path b { color: var(--text); font-weight: 600; }

/* the guide library */
.library { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.book { display: flex; flex-direction: column; }
.book__cover {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--c) 30%, transparent), transparent 60%),
    linear-gradient(160deg, #141a22, #0a0d11 70%);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .9);
}
.book:hover .book__cover { transform: translateY(-4px); box-shadow: 0 40px 70px -40px color-mix(in srgb, var(--c) 50%, #000); }
.book__band { position: absolute; left: 0; right: 0; top: 0; height: 4px; display: flex; }
.book__band i { flex: 1; }
.book__band i:nth-child(1) { background: var(--c-where); }
.book__band i:nth-child(2) { background: var(--c-what); }
.book__band i:nth-child(3) { background: var(--c-when); }
.book__brand { position: absolute; left: 26px; top: 28px; font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: .22em; color: #c3cbd6; }
.book__title { position: absolute; left: 24px; right: 24px; bottom: 74px; font-family: var(--display); font-weight: 900;
  font-stretch: 125%; font-size: clamp(36px, 3.6vw, 56px); line-height: .92; letter-spacing: -.02em; }
.book__meta { position: absolute; left: 26px; bottom: 28px; font-size: 13px; color: var(--muted); }
.book__candles { position: absolute; right: 26px; top: 26px; display: flex; align-items: flex-end; gap: 5px; height: 64px; }
.book__candles i { width: 7px; border-radius: 1px; background: var(--c); opacity: .85; }
.book__candles i:nth-child(odd) { background: #3a434f; }
.book__text { margin-top: 18px; color: #c3cbd6; }
.book__actions { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }

.signout { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 26px var(--gutter); border-top: 1px solid var(--line); background: var(--ground); color: var(--muted); font-size: 14px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--text); text-decoration: underline;
  text-underline-offset: 3px; cursor: pointer; }

@media (max-width: 1023px) {
  .acct-grid { grid-template-columns: 1fr; }
  .tools-row, .library { grid-template-columns: 1fr; }
  .library { max-width: 560px; }
  .book__cover { aspect-ratio: 16 / 10; }
  .book__title { bottom: 56px; }
  .book__meta { bottom: 22px; }
}
@media (max-width: 819px) {
  /* phone: like the access page — the 3D slot sits above the text in the flow */
  .hero--account, .hero--login { min-height: 0; padding-bottom: 28px; align-items: stretch; }
  .card__terms div { grid-template-columns: 1fr; gap: 4px; }
  .acct__head { flex-direction: column; align-items: flex-start; }
  .notice { padding: 22px 20px 22px 64px; }
  .notice::before { left: 18px; top: 24px; }
  .notice::after { left: 28px; top: 31px; }
  .notice--warn::after { left: 32px; top: 30px; }
}
