/* ============================================
   Building Better: account area styles
   (sign in, manage subscription)
   Warm theme, matches the homepage (home.css).
   ============================================ */
:root {
    --cream: #fff8f0; --cream-deep: #ffeedd; --peach: #ffd9c2; --butter: #ffe8a8;
    --sage: #d3e8d9; --lilac: #e6deff; --plum: #5a47b8; --plum-dark: #45349a;
    --ink: #2b2340; --ink-soft: #5e5873; --line: #eadfd2; --white: #fff;
    --danger: #b3261e; --danger-bg: #fdecea; --ok: #1e6b3a; --ok-bg: #e5f4ea;
    --radius: 24px; --radius-sm: 14px;
    --shadow: 0 18px 50px rgba(90, 71, 184, 0.14);
    --shadow-soft: 0 8px 24px rgba(43, 35, 64, 0.08);
    --serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
    --sans: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: var(--sans); color: var(--ink); line-height: 1.6; font-size: 17px; min-height: 100vh;
    background: radial-gradient(circle at 95% 0%, var(--peach) 0, transparent 38%),
                radial-gradient(circle at 0% 100%, var(--lilac) 0, transparent 40%), var(--cream);
    background-attachment: fixed; -webkit-font-smoothing: antialiased;
}
a { color: var(--plum); }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }

.container { max-width: 1000px; margin: 0 auto; padding: 0 24px; }

/* Nav */
.nav { background: rgba(255, 248, 240, 0.88); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(234, 223, 210, 0.8); position: sticky; top: 0; z-index: 100; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.1rem; }
.brand img { width: 38px; height: 38px; border-radius: 22%; background: #000; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { text-decoration: none; font-weight: 600; color: var(--ink-soft); }
.nav-links a:hover, .nav-links a.active { color: var(--plum); }
@media (max-width: 560px) { .nav-links { gap: 14px; font-size: .95rem; } .brand span { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 26px; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--plum); color: #fff; box-shadow: 0 10px 24px rgba(90, 71, 184, 0.3); }
.btn-primary:hover { background: var(--plum-dark); }
.btn-ghost { background: rgba(255,255,255,.8); color: var(--ink); border-color: var(--line); }
.btn-block { width: 100%; }

/* Sign-in card */
.auth-wrap { max-width: 480px; margin: 48px auto 64px; padding: 0 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 38px 34px; box-shadow: var(--shadow); }
.auth-head { text-align: center; margin-bottom: 26px; }
.auth-head img { width: 68px; height: 68px; border-radius: 22%; background: #000; margin: 0 auto 16px; display: block; }
.auth-head h1 { font-size: 2rem; margin-bottom: 6px; }
.auth-head p { color: var(--ink-soft); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 6px; }
.field input { width: 100%; padding: 13px 16px; border: 2px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: #fffdfa; transition: border-color .2s; }
.field input:focus { outline: none; border-color: var(--plum); }
.row-between { display: flex; justify-content: flex-end; margin: -8px 0 18px; }
.link-btn { background: none; border: 0; color: var(--plum); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; padding: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; font-size: .95rem; color: var(--ink-soft); }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--plum); flex: none; }
.divider { text-align: center; color: var(--ink-soft); margin: 22px 0; position: relative; font-size: .9rem; }
.divider::before, .divider::after { content: ""; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--line); }
.divider::before { left: 0; } .divider::after { right: 0; }
.btn-google { gap: 10px; background: #fff; border-color: var(--line); color: var(--ink); width: 100%; }
.btn-google:hover { border-color: #4285f4; }
.toggle { text-align: center; margin-top: 22px; color: var(--ink-soft); }
.msg { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; display: none; font-size: .95rem; }
.msg.show { display: block; }
.msg.error { background: var(--danger-bg); color: var(--danger); border: 1px solid #f3c1bc; }
.msg.ok { background: var(--ok-bg); color: var(--ok); border: 1px solid #bfe3cb; }
.crisis-note { text-align: center; color: var(--ink-soft); font-size: .9rem; margin-top: 22px; }

/* Manage page */
.page { max-width: 880px; margin: 40px auto 70px; padding: 0 20px; }
.page > h1 { font-size: 2.1rem; margin-bottom: 6px; }
.page > .sub { color: var(--ink-soft); margin-bottom: 28px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; margin-bottom: 22px; box-shadow: var(--shadow-soft); }
.panel h2 { font-size: 1.5rem; margin-bottom: 10px; }
.panel p { color: var(--ink-soft); }
.panel p + p { margin-top: 10px; }
.pill { display: inline-block; padding: 5px 14px; border-radius: 999px; font-weight: 800; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; margin-left: 8px; vertical-align: middle; }
.pill.free { background: #e8eef5; color: #4b5b6b; }
.pill.premium { background: var(--plum); color: #fff; }
.pill.enterprise { background: #f5576c; color: #fff; }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
@media (max-width: 760px) { .plan-grid { grid-template-columns: 1fr; } }
.plan { border: 2px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; background: #fffdfa; }
.plan.current { border-color: var(--plum); background: #f5f0ff; }
.plan h3 { font-size: 1.3rem; }
.plan .price { font-family: var(--serif); font-size: 1.9rem; margin: 10px 0 2px; }
.plan .price small { font-family: var(--sans); font-size: .9rem; color: var(--ink-soft); }
.plan .alt { color: var(--ink-soft); font-size: .88rem; min-height: 1.3em; margin-bottom: 14px; }
.plan ul { list-style: none; display: grid; gap: 8px; margin-bottom: 20px; flex: 1; font-size: .95rem; color: var(--ink); }
.plan li { padding-left: 24px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 3px; top: 6px; width: 6px; height: 11px; border: solid var(--plum); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(.85); }
.help-steps { margin: 12px 0 0 20px; color: var(--ink-soft); }
.help-steps li { margin-bottom: 6px; }
.loading-line { color: var(--ink-soft); }
