/* Sign-in, account, pricing, compare and legal pages. Same chart-paper fingerprint as the course:
   Source Serif 4 display, chart magenta for the route, ink cards on paper. */
.acct-page { max-width: 68rem; margin: 0 auto; padding: clamp(1.5rem, 4vw, 3.5rem) clamp(1rem, 3vw, 2.5rem) 4rem; }
.acct-page > header { max-width: 44rem; }
.acct-card { max-width: 30rem; margin: 2rem auto; padding: 1.6rem 1.5rem 1.8rem; background: var(--sail); border: 1px solid var(--rule);
  border-radius: var(--r); box-shadow: 0 1px 0 var(--rule); }
.acct-card h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.acct-card form { display: grid; gap: .8rem; margin-top: 1.2rem; }
.acct-card label { font: 600 .8rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.acct-card input[type="email"], .acct-card input[type="text"] { font: 400 1rem/1.3 var(--body); padding: .75rem .8rem; border: 1.5px solid var(--rule-strong);
  border-radius: var(--r); background: #fff; color: var(--ink); width: 100%; }
.acct-card .or { display: flex; align-items: center; gap: .8rem; color: var(--ink-3); font-size: .85rem; margin: 1.2rem 0 .2rem; }
.acct-card .or::before, .acct-card .or::after { content: ""; flex: 1; border-top: 1px solid var(--rule); }
.alert { margin: .8rem 0 0; padding: .7rem .85rem; border-radius: var(--r); font-size: .94rem; }
.alert--ok { background: var(--shallows); color: var(--sea-deep); }
.alert--bad { background: #F6E3DC; color: #8A2C1B; }
.muted { color: var(--ink-3); font-size: .9rem; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.2rem; align-items: stretch; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; display: flex; flex-direction: column; gap: .3rem; padding: 1.5rem 1.4rem 1.6rem; border: 1px solid var(--rule);
  border-radius: var(--r); background: var(--sail); }
.plan.best { border: 2px solid var(--ink); }
.plan .tag { position: absolute; top: -.7rem; left: 1.2rem; background: var(--magenta); color: #fff; font: 600 .7rem/1 var(--body);
  letter-spacing: .14em; text-transform: uppercase; padding: .35rem .55rem; border-radius: 3px; }
.plan h3 { margin: 0; font-size: 1.15rem; font-family: var(--body); letter-spacing: 0; }
.plan .price { font: 600 2.6rem/1 var(--display); color: var(--ink); margin-top: .6rem; }
.plan .price small { font: 500 .95rem/1 var(--body); color: var(--ink-3); }
.plan ul { margin: 1rem 0 1.4rem; padding-left: 1.1rem; font-size: .95rem; }
.plan li { margin: .35rem 0; }
.plan .btn { margin-top: auto; justify-content: center; }
.waiver { display: flex; gap: .7rem; align-items: flex-start; max-width: 46rem; margin: 1.6rem 0 0; padding: .9rem 1rem; background: var(--paper-2);
  border-left: 4px solid var(--magenta); border-radius: var(--r); font-size: .93rem; }
.waiver input { margin-top: .2rem; width: 1.15rem; height: 1.15rem; accent-color: var(--magenta); flex: none; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.4rem 2rem; margin-top: 1.2rem; }
.why-grid h3 { font-size: 1.1rem; margin-top: 0; }
.why-grid p { font-size: .97rem; margin-top: .45rem; }

/* Compare */
.compare-wrap { overflow-x: auto; margin-top: 1.8rem; border: 1px solid var(--rule); border-radius: var(--r); background: var(--sail); }
table.compare { border-collapse: collapse; width: 100%; min-width: 46rem; font-size: .92rem; }
table.compare th, table.compare td { text-align: left; vertical-align: top; padding: .7rem .8rem; border-bottom: 1px solid var(--rule); }
table.compare thead th { font: 600 .78rem/1.25 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); background: var(--paper-2); }
table.compare th[scope="row"] { font-weight: 600; color: var(--ink); width: 11rem; }
table.compare td.us { background: rgba(176, 48, 122, .06); font-weight: 500; }
table.compare .yes { color: var(--stbd); font-weight: 600; }
table.compare .no { color: var(--port); font-weight: 600; }

/* Account dashboard */
.dash { display: grid; grid-template-columns: 2fr 1fr; gap: 1.6rem; margin-top: 2rem; }
@media (max-width: 860px) { .dash { grid-template-columns: 1fr; } }
.panel { padding: 1.3rem 1.3rem 1.5rem; border: 1px solid var(--rule); border-radius: var(--r); background: var(--sail); }
.panel h2 { font-size: 1.35rem; margin: 0 0 .8rem; }
.panel + .panel { margin-top: 1.4rem; }
.mod-progress { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.mod-progress li { display: grid; grid-template-columns: 2.2rem 1fr auto; gap: .6rem; align-items: center; font-size: .94rem; padding: .35rem 0;
  border-bottom: 1px dashed var(--rule); }
.mod-progress .n { font-family: var(--mono); color: var(--ink-3); }
.mod-progress .dot { width: .75rem; height: .75rem; border-radius: 50%; border: 2px solid var(--ink-3); display: inline-block; }
.mod-progress .seen .dot { border-color: var(--sea); background: var(--shallows); }
.mod-progress .passed .dot { border-color: var(--magenta); background: var(--magenta); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; font-size: .95rem; margin: 0; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-weight: 500; }
.danger { border-color: rgba(200, 68, 47, .45); }
.danger .btn { background: var(--port); border-color: var(--port); }

/* Legal */
.legal { max-width: 44rem; }
.legal h2 { font-size: 1.45rem; margin-top: 2.4rem; }
.legal p, .legal li { font-size: 1rem; line-height: 1.65; }
.legal .updated { color: var(--ink-3); font-size: .9rem; }

/* Account: passage chart of progress */
.passage-chart { width: 100%; height: auto; margin: .2rem 0 .4rem; }
.passage-chart a:hover circle { stroke-width: 3; }
.passage-sum { margin: 0; font-size: .95rem; color: var(--ink-2); }
#continue { margin-top: .9rem; }
#continue .btn { white-space: normal; }
