/* Account and membership surfaces: the same yellow frog, a quieter Mac-like UI. */
html [hidden] { display: none !important; }
:root { --account-surface: #ffffff; --account-border: #e4e8f0; }
body.commercial { background: #f6f8fc; }
.commercial .site-header { background: rgba(250,252,255,.94); border-bottom: 1px solid #e8ebf1; }
.commercial .site-footer { background: #eef2f8; color: #253d64; }
.commercial .footer-main > p, .commercial .footer-main nav a, .commercial .footer-brand small, .commercial .footer-bottom { color: #63728a; }
.commercial .footer-bottom { border-top-color: #dce3ee; }
.commercial .brand-avatar { background: #fff5c9; }
.commercial .site-nav { gap: 26px; }
.commercial a[aria-current="page"] { color: var(--cobalt); font-weight: 700; }
.commercial-main { padding-block: 56px 90px; min-height: 68vh; }
.commercial h1 { font-size: clamp(32px, 4.5vw, 56px); line-height: 1.18; letter-spacing: -.045em; margin-bottom: 18px; }
.commercial h2 { font-size: 24px; letter-spacing: -.025em; line-height: 1.4; }
.commercial h3 { font-size: 18px; margin-bottom: 12px; }
.commercial .intro { color: var(--muted); max-width: 650px; font-size: 17px; }
.commercial .eyebrow { color: #6176a2; letter-spacing: .12em; }
.commerce-hero { display: grid; grid-template-columns: 1fr 220px; align-items: center; gap: 30px; padding-bottom: 32px; }
.commerce-hero > img { width: 190px; justify-self: end; }
.panel { background: var(--account-surface); border: 1px solid var(--account-border); border-radius: 22px; padding: 28px; }
.panel p:last-child { margin-bottom: 0; }
.account-layout { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: 32px; align-items: start; }
.auth-story { padding: 30px 16px 20px 0; }
.auth-story .mascot-stage { display: flex; justify-content: center; min-height: 260px; align-items: center; background: radial-gradient(ellipse, #fff1b6 0, #f6f8fc 68%); }
.mascot-stage img { width: 200px; height: 200px; }
.auth-panel { padding: 32px; box-shadow: 0 8px 36px #20345207; }
.auth-tabs { display: flex; gap: 6px; background: #f0f3f8; padding: 5px; border-radius: 12px; margin-bottom: 26px; }
.auth-tabs button { flex: 1; background: transparent; border: 0; border-radius: 8px; padding: 9px; font: inherit; color: var(--muted); cursor: pointer; }
.auth-tabs button[aria-selected="true"] { background: white; box-shadow: 0 1px 5px #15234a12; color: var(--ink); font-weight: 650; }
.commercial label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.field { margin-bottom: 18px; }
.commercial input:not([type="checkbox"]), .commercial select { width: 100%; border: 1px solid #d9dfeb; background: #fcfdff; border-radius: 11px; padding: 12px 13px; font: inherit; color: var(--ink); min-height: 46px; }
.commercial input:focus-visible, .commercial select:focus-visible { outline: 3px solid #dce8ff; border-color: #7293cc; }
.commercial button { font-family: inherit; }
.commercial .button { border: 1px solid transparent; cursor: pointer; justify-content: center; min-height: 46px; }
.commercial .button[disabled] { opacity: .58; cursor: not-allowed; }
.commercial .button-primary { background: var(--cobalt); color: #fff; }
.commercial .button-primary:hover:not([disabled]) { background: var(--cobalt-dark); }
.commercial .button-quiet { background: #f0f3f9; color: #314a74; border-color: #e6ebf2; }
.button-wide { width: 100%; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.plain-link { background: none; border: 0; color: var(--cobalt); font: inherit; font-size: 14px; cursor: pointer; padding: 8px 0; }
.checkbox-line { display: flex !important; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 13px !important; font-weight: 400 !important; margin: 18px 0 !important; }
.checkbox-line input { margin-top: 5px; flex-shrink: 0; }
.checkbox-line a, .inline-link { color: var(--cobalt); text-decoration: underline; text-underline-offset: 3px; }
.fine-print { font-size: 13px; color: #69778d; line-height: 1.7; }
.notice { border-radius: 12px; padding: 13px 16px; background: #eef4fd; color: #315078; margin: 16px 0; font-size: 14px; overflow-wrap: anywhere; }
.notice[data-kind="error"] { background: #fff0ed; color: #9d3c2c; }
.notice[data-kind="success"] { background: #ecf7f0; color: #256447; }
.notice[data-kind="warning"] { background: #fff7df; color: #76561f; }
.status-chip { display: inline-flex; padding: 4px 10px; border-radius: 8px; background: #eef3fc; color: #365b95; font-size: 12px; font-weight: 600; }
.status-chip.active { background: #eaf6ec; color: #2b6845; }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 26px; }
.dashboard-header h1 { font-size: 36px; margin-bottom: 8px; }
.dashboard-header p { margin-bottom: 0; overflow-wrap: anywhere; }
.metric-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.metric-grid .panel { padding: 22px; }
.metric-label { color: #728097; font-size: 13px; margin-bottom: 10px; }
.metric-value { font-size: 30px; line-height: 1.2; letter-spacing: -.04em; font-weight: 700; margin: 9px 0; }
.usage-progress { width: 100%; height: 6px; accent-color: var(--cobalt); margin: 12px 0; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,.75fr); gap: 20px; margin-top: 20px; }
.dashboard-grid .panel { min-width: 0; }
.data-table-wrap { overflow: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; white-space: nowrap; }
.data-table th { font-weight: 500; color: #758196; text-align: left; border-bottom: 1px solid #e9edf3; padding: 12px 12px 12px 0; }
.data-table td { border-bottom: 1px solid #f0f2f6; padding: 14px 12px 14px 0; }
.data-table td:last-child .fine-print { white-space: normal; overflow-wrap: anywhere; min-width: 120px; }
.empty-state { padding: 30px 12px; text-align: center; color: #758196; font-size: 14px; }
.plan-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin: 24px 0 32px; }
.plan { display: flex; flex-direction: column; padding: 28px; position: relative; }
.plan.featured { border-color: #afc1df; background: #fff; box-shadow: 0 8px 35px #24487a08; }
.plan .plan-description { min-height: 52px; color: var(--muted); font-size: 14px; }
.price { margin: 20px 0; min-height: 56px; font-size: 36px; line-height: 1.4; font-weight: 700; letter-spacing: -.04em; }
.price small { color: var(--muted); font-size: 14px; font-weight: 400; letter-spacing: 0; }
.feature-list { padding-left: 0; list-style: none; display: grid; gap: 12px; font-size: 14px; margin-bottom: 30px; }
.feature-list li::before { content: "✓"; color: #5478ae; margin-right: 10px; }
.plan .button { margin-top: auto; }
.section-spaced { margin-top: 46px; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { background: #fff; border: 1px solid var(--account-border); border-radius: 14px; padding: 18px 20px; }
.faq-list summary { cursor: pointer; font-weight: 600; }
.faq-list p { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.step-list { list-style: none; padding: 0; counter-reset: steps; display: grid; gap: 20px; }
.step-list li { counter-increment: steps; padding-left: 46px; position: relative; }
.step-list li::before { content: counter(steps, decimal-leading-zero); position: absolute; left: 0; color: #6d8ab8; font-weight: 700; }
.step-list p { color: var(--muted); font-size: 14px; }
.help-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.help-grid .panel > p { color: var(--muted); }
.download-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.download-visual { min-height: 350px; display: grid; place-items: center; background: linear-gradient(135deg,#eef3fc,#fff9e8); border-radius: 24px; }
.download-visual img { width: 220px; }
.definition-list { display: grid; grid-template-columns: auto 1fr; gap: 12px 24px; font-size: 14px; margin: 24px 0; }
.definition-list dt { color: #778297; }
.definition-list dd { margin: 0; }
.commercial code { overflow-wrap: anywhere; font-size: .88em; }
.policy { max-width: 780px; margin: 0 auto; }
.policy h1 { font-size: 42px; }
.policy h2 { margin-top: 36px; font-size: 22px; }
.policy p, .policy li { color: #58687e; }
.commercial dialog { border: 1px solid #dde4ef; border-radius: 22px; padding: 28px; width: min(92vw,440px); color: var(--ink); box-shadow: 0 24px 80px #1b2e5530; }
.commercial dialog::backdrop { background: #17264060; backdrop-filter: blur(4px); }
.dialog-top { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.dialog-top h2 { margin: 0; }
.dialog-close { border: 0; background: #eef1f7; border-radius: 50%; width: 32px; height: 32px; cursor: pointer; font-size: 22px; }
.payment-qr { width: 240px; height: 240px; margin: 20px auto; image-rendering: pixelated; }
.device-code { font: 700 30px ui-monospace, monospace; letter-spacing: .12em; text-align: center; background: #f0f4fb; padding: 20px; border-radius: 12px; margin: 20px 0; }
.danger-zone { margin-top: 24px; border-top: 1px solid #edf0f5; padding-top: 16px; }
.danger-link { color: #a0473a; }
.service-state { padding: 12px 18px; border: 1px solid #e1e7f0; border-radius: 10px; font-size: 13px; color: #66758b; }
.hero-member-link { display: inline-flex; align-items: center; gap: 8px; color: var(--cobalt); font-size: 14px; margin-top: 16px; }
@media (max-width: 920px) {
  .commercial-main { padding-top: 34px; }
  .commercial .site-nav { gap: 14px; }
  .plan-grid { gap: 12px; }
  .plan { padding: 22px 18px; }
  .account-layout { gap: 20px; }
  .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .commercial-main { padding-block: 28px 54px; }
  .commerce-hero { grid-template-columns: 1fr 95px; gap: 12px; }
  .commerce-hero > img { width: 95px; }
  .commerce-hero h1 { font-size: 34px; }
  .account-layout, .plan-grid, .download-layout, .help-grid { grid-template-columns: 1fr; }
  .auth-story { padding: 0; }
  .auth-story .mascot-stage { display: none; }
  .auth-panel, .panel { padding: 22px; }
  .auth-story h1 { font-size: 32px; }
  .metric-grid { grid-template-columns: 1fr; gap: 10px; }
  .metric-grid .panel { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4px 14px; }
  .metric-value { font-size: 26px; }
  .dashboard-header { align-items: flex-start; }
  .dashboard-header h1 { font-size: 30px; }
  .download-visual { min-height: 240px; }
  .download-visual img { width: 170px; }
  .plan .plan-description { min-height: auto; }
  .commercial .header-download { padding: 9px 12px; font-size: 12px; }
  .commercial .brand-copy small { display: none; }
}
