/* Public pages (login, sign-up, pricing, account, blog). Builds on app.css tokens. */
body.acct { background: var(--bg); }

/* Header band: content cards overlap its lower edge. */
.acct-band {
  position: relative;
  color: #fff;
  background:
    radial-gradient(circle at 85% -20%, rgba(255, 122, 89, .22), transparent 45%),
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .07) 1px, transparent 0) 0 0 / 22px 22px,
    linear-gradient(160deg, var(--brand-deep) 0%, var(--brand) 100%);
  padding-bottom: 84px;
}
.acct-band .topbar-inner { position: static; }
.acct-nav { display: flex; gap: 2px; margin-left: auto; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.acct-nav a { color: #d4ebe8; text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 13px; border-radius: 999px; white-space: nowrap; }
.acct-nav a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.acct-nav a.on { color: #fff; background: rgba(255, 255, 255, .14); }
.acct-nav .nav-cta { background: var(--cta); color: #fff; margin-left: 6px; }
.acct-nav .nav-cta:hover { background: var(--cta-d); }
.acct-nav .nav-out { color: #a9cdc9; }
.acct-head { padding-top: 26px; text-align: center; }
.acct-head h1 { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 4.4vw, 44px); margin: 0 auto 8px; letter-spacing: -.6px; text-wrap: balance; max-width: 22ch; }
.acct-head p { margin: 0 auto; color: #cfe6e3; max-width: 62ch; font-size: 16px; text-wrap: pretty; }
.acct-main { padding-bottom: 72px; }
.acct-main > .wrap { margin-top: -56px; position: relative; }

/* Login / sign-up: form beside a benefits panel */
.auth-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); max-width: 940px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.auth-wrap.solo { grid-template-columns: 1fr; max-width: 480px; }
.auth-aside { background: linear-gradient(170deg, var(--brand-tint), #fff7f3); padding: 34px 32px; display: flex; flex-direction: column; gap: 18px; }
.auth-aside h2 { font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1.2; margin: 0; color: var(--brand-deep); }
.auth-aside ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.auth-aside li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; }
.auth-aside .tick { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; }
.auth-aside b { font-size: 15px; }
.auth-aside li p { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }
.auth-quote { margin-top: auto; border-left: 3px solid var(--cta); padding: 4px 0 4px 14px; color: var(--ink-2); font-size: 14px; }
.auth-quote p { margin: 0; }

.auth-card { padding: 34px 32px; display: grid; gap: 14px; align-content: start; }
.auth-wrap.solo .auth-card, .auth-card.standalone { background: var(--surface); }
.auth-card.standalone { max-width: 480px; margin: 0 auto; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.auth-card h2 { font-family: var(--display); font-weight: 600; font-size: 26px; margin: 0; letter-spacing: -.3px; }
.auth-card .sub { color: var(--muted); font-size: 14px; margin: -8px 0 4px; }
.fld { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.fld input, .fld select { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; font-weight: 500; font-size: 15px; color: var(--ink); background: #fbfcfc; outline: none; transition: border-color .15s, box-shadow .15s; }
.fld input:focus, .fld select:focus { border-color: var(--brand-2); background: #fff; box-shadow: 0 0 0 4px var(--brand-tint); }
.fld input:disabled { color: var(--muted); background: var(--soft); }
.fld em { font-style: normal; font-weight: 500; color: var(--plag); font-size: 13px; }
.fld.has-err input { border-color: var(--plag); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-card .btn-block { margin-top: 6px; }
.alt { text-align: center; font-size: 14px; color: var(--muted); margin: 2px 0 0; }
.alt a { color: var(--brand); font-weight: 700; }
.fineprint { font-size: 12.5px; color: var(--muted); text-align: center; margin: 0; }
.notice { border-radius: 12px; padding: 11px 14px; font-size: 14px; }
.notice.err { background: #fff1ee; border: 1px solid #ffcfc2; color: #a2341a; }
.notice.ok { background: #ecfdf3; border: 1px solid #b7ebc9; color: #126b3a; }
.notice.info { background: var(--brand-tint); color: var(--brand); }
.btn-google { width: 100%; font: inherit; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 600; background: #fff; }
.btn-google:hover { background: var(--soft); border-color: #cfd8d6; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; align-items: stretch; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px 22px 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.plan.popular { border: 2px solid var(--cta); }
.plan .badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--cta); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.plan h3 { margin: 0; font-size: 15px; text-transform: uppercase; letter-spacing: 1px; color: var(--brand); }
.plan .price { font-family: var(--display); font-size: 40px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -1px; }
.plan .price small { font-family: var(--sans); font-size: 14px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.plan .lede { margin: -4px 0 0; font-size: 14px; color: var(--muted); }
.plan ul { list-style: none; padding: 16px 0 0; margin: 0; display: grid; gap: 9px; font-size: 14px; color: var(--ink-2); flex: 1; border-top: 1px solid var(--line); align-content: start; }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.plan li::before { content: "✓"; color: var(--rw); font-weight: 700; }
.plan li.no { color: #98a5ae; }
.plan li.no::before { content: "✕"; color: #b5c0c7; font-size: 12px; padding-top: 2px; }
.plan .btn { width: 100%; }
.plan .current { text-align: center; font-weight: 600; color: var(--brand); padding: 11px; border: 1.5px dashed var(--brand); border-radius: 12px; font-size: 14px; }
.pay-msg { margin-top: 16px; }
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 28px; }
.trust div { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.trust svg { flex: none; color: var(--brand); }
.trust b { display: block; font-size: 14.5px; }
.trust span { font-size: 13.5px; color: var(--muted); }
.section-h { font-family: var(--display); font-weight: 600; font-size: 28px; text-align: center; margin: 56px 0 18px; letter-spacing: -.4px; }
.qa { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.qa details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; }
.qa summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; color: var(--brand); font-size: 20px; line-height: 1; }
.qa details[open] summary::after { content: "–"; }
.qa details p { margin: 0 0 14px; color: var(--ink-2); font-size: 15px; }

/* Account */
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow); }
.stat span { display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); font-weight: 700; }
.stat b { display: block; font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1.2; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat small { color: var(--muted); font-size: 13px; }
.acct-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.acct-grid .panel { padding: 24px; }
.acct-grid h2 { font-family: var(--display); font-weight: 600; font-size: 21px; margin: 0 0 14px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; font-size: 14.5px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; word-break: break-word; }
.meter { height: 12px; background: var(--soft); border-radius: 99px; overflow: hidden; margin: 10px 0 6px; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-2), var(--brand)); border-radius: 99px; }
.meter.full i { background: var(--plag); }
.small { font-size: 13px; color: var(--muted); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 10px 6px; border-top: 1px solid var(--line); vertical-align: top; }
.tbl th { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); border-top: 0; }
.tblbox { overflow-x: auto; }
.status { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.status.paid { background: var(--rw-bg); color: #0b6b4b; }
.status.created { background: var(--soft); color: var(--muted); }
.status.failed { background: var(--plag-bg); color: #a3171c; }
.limit-box { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.plan-chip { display: inline-block; background: var(--brand-tint); color: var(--brand); font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: 999px; }

@media (max-width: 860px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { order: 2; padding: 24px; }
  .stat-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .acct-grid, .row2 { grid-template-columns: 1fr; }
  .acct-band .topbar-inner { height: 64px; }
  .acct-band { padding-bottom: 72px; }
  .acct-head { text-align: left; }
  .acct-head h1, .acct-head p { margin-left: 0; }
  .auth-card { padding: 24px 20px; }
}
.btn-google.is-busy { opacity: .7; cursor: progress; }
