/* sidekic.app — layout from docs/design/landing-v1/, colours and type from the logo (docs/design/brand-v1/). Light only. */
:root {
  color-scheme: light;
  --ground: #FFFFFF;
  --ground-2: #F3F2F7;
  --ink: #1B1640;
  --ink-2: #4A4663;
  --ink-3: #5E5A78;
  --ink-on-dark: #F4F2FA;
  --ink-on-dark-2: #CFCBE0;
  --ink-on-dark-3: #ADA8C4;
  --line: #E2E0EA;
  --line-2: #DAD7E4;
  --line-strong: #C9C5D6;
  --cell-line: #E7E5EE;
  --accent: #8F45FF;
  --accent-hover: #7433E6;
  --accent-ink: #7433E6;
  --accent-tint: #EFE7FF;
  --spark: #FF5A5F;
  --tag-bg: #EFE7FF;
  --tag-ink: #4B1FA8;
  --night: #14102E;
  --panel-dark: #221C45;
  --panel-dark-line: #383160;

  --font-display: "Poppins", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --text: 17px;
  --text-small: 15px;
  --text-lead: 19px;
  --h1: clamp(36px, 4.8vw, 60px);
  --h2: clamp(28px, 3.3vw, 40px);

  --gutter: 24px;
  --content: 1200px;
  --narrow: 820px;
  --radius: 12px;
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: var(--text)/1.55 var(--font-body);
  overflow-x: hidden;
}
a { color: var(--accent-ink); }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.015em; margin: 0; }
h3 { font-weight: 600; }
h1 { font-size: var(--h1); line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: var(--h2); line-height: 1.12; }
h3 { font-size: 22px; line-height: 1.25; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--content); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: 80px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 36px; }
.narrow { max-width: var(--narrow); }
.band { background: var(--ground-2); }
.band.dark { background: var(--night); color: var(--ink-on-dark); }
.intro { display: flex; flex-direction: column; gap: 10px; }
.intro p { color: var(--ink-2); max-width: 40rem; }
.small { font-size: var(--text-small); color: var(--ink-3); }

/* buttons */
.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 10px;
  background: var(--accent);
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
}
.btn:hover { background: var(--accent-hover); color: #FFFFFF; }
.btn.plain { background: #FFFFFF; border: 1px solid var(--line-strong); color: var(--ink); }
.btn.plain:hover { background: var(--ground-2); color: var(--ink); }
.btn.dark { background: var(--ink); color: #FFFFFF; }
.btn.dark:hover { background: #2C2560; color: #FFFFFF; }
.btn.light { background: #FFFFFF; color: var(--ink); }
.btn.light:hover { background: var(--ground-2); color: var(--ink); }
.btn.small { padding: 10px 18px; border-radius: 8px; font-size: var(--text-small); }
.btn.block { display: block; padding: 12px; margin-top: auto; }
.btn.start { align-self: flex-start; margin-top: 8px; padding: 12px 20px; }
/* the skeleton's one-off class (404) */
.button { display: inline-block; padding: 12px 20px; border-radius: 10px; background: var(--accent); color: #FFFFFF; text-decoration: none; font-weight: 600; }
.button:hover { background: var(--accent-hover); color: #FFFFFF; }

/* header */
.top { padding-top: 20px; padding-bottom: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-grow: 1; }
.brand:hover { color: var(--ink); }
.mark { width: 30px; height: 28px; flex: none; }
.word { font: 700 23px/1 var(--font-display); letter-spacing: -0.5px; }
.top nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: var(--text-small); }
.top nav a { color: var(--ink); text-decoration: none; }
.top nav a:hover { color: var(--accent-ink); }

/* hero */
.hero { padding-top: 56px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font: 500 13px var(--font-mono); padding: 5px 12px; border-radius: 999px; background: var(--tag-bg); color: var(--tag-ink); }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--spark); }
.lead { font-size: var(--text-lead); color: var(--ink-2); max-width: 34rem; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.note { font-size: 14px; color: var(--ink-3); }
.hero-demo { flex: 1 1 520px; min-width: 0; position: relative; isolation: isolate; padding-bottom: 96px; }
/* the logo's two arcs, large and pale, behind the demo */
.arcs { position: absolute; z-index: -1; top: -150px; right: -110px; width: 92%; height: auto; pointer-events: none; }
.sheet { border-radius: 12px; border: 1px solid var(--line-2); background: #FFFFFF; overflow-x: auto; box-shadow: 0 1px 2px rgba(27, 22, 64, 0.05), 0 12px 32px rgba(27, 22, 64, 0.06); }
.grid { display: grid; grid-template-columns: 36px repeat(4, minmax(84px, 1fr)); min-width: 420px; font: 13px var(--font-mono); }
.grid > * { padding: 6px 10px; border-right: 1px solid var(--cell-line); border-bottom: 1px solid var(--cell-line); white-space: pre; }
.grid b { font-weight: 500; }
.grid .h, .grid .n { background: var(--ground-2); color: var(--ink-3); }
.grid .n { padding: 6px; }
.grid .last { border-right: 0; }
.grid .end { border-bottom: 0; }
.grid .num { text-align: right; }
.card {
  position: absolute; right: 0; bottom: 0; width: min(400px, 92%);
  padding: 16px; border-radius: 14px; background: #F7F6FA; border: 1px solid var(--line-2);
  box-shadow: 0 18px 40px rgba(27, 22, 64, 0.18);
  display: flex; flex-direction: column; gap: 10px;
  font: 14px/1.45 -apple-system, "Segoe UI", var(--font-body);
}
.card-context { font-size: 12px; color: var(--ink-3); }
.card-actions { display: flex; gap: 8px; justify-content: flex-end; }
.card-btn { padding: 5px 12px; border-radius: 6px; background: #FFFFFF; border: 1px solid var(--line-2); }
.card-btn.allow { font-weight: 600; background: var(--accent); border-color: var(--accent); color: #FFFFFF; }

/* demo clips */
.clips { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.clips figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.clip {
  display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: 12px;
  background: var(--panel-dark); border: 1px solid var(--panel-dark-line); object-fit: cover; cursor: pointer;
}
.clips figcaption { font-size: var(--text-small); color: var(--ink-on-dark-3); }

/* how it works */
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 28px; }
.steps li { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 2px solid var(--line-2); position: relative; }
.steps li::before { content: ""; position: absolute; top: -2px; left: 0; width: 56px; height: 2px; background: var(--accent); }
.steps p { color: var(--ink-2); }
.step-n { font: 500 14px var(--font-mono); color: var(--accent-ink); }

/* skills */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.tile { padding: 24px; border-radius: 16px; background: #FFFFFF; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; transition: border-color 0.15s, box-shadow 0.15s; }
.tile:hover { border-color: var(--line-strong); box-shadow: 0 8px 24px rgba(27, 22, 64, 0.07); }
.tile h3 { font-size: 20px; }
.tile p { color: var(--ink-2); font-size: 16px; }
.with-tag { display: flex; gap: 10px; align-items: center; }
.pro { font: 500 11px var(--font-mono); letter-spacing: 0; padding: 2px 7px; border-radius: 999px; background: var(--accent-tint); color: var(--tag-ink); }

/* promises */
.promises { flex-direction: row; flex-wrap: wrap; gap: 40px; }
.promises h2 { flex: 1 1 320px; }
.promise-grid { flex: 2 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 28px; }
.promise-grid > div { display: flex; flex-direction: column; gap: 6px; }
.promise-grid h3 { font: 600 var(--text)/1.4 var(--font-body); letter-spacing: 0; }
.promise-grid p { color: var(--ink-2); font-size: 16px; }

/* pricing and download */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.plan { padding: 28px; border-radius: 18px; background: #FFFFFF; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
#download .plan { gap: 10px; }
.plan p { color: var(--ink-2); font-size: 16px; }
.plan ul { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: 16px; display: flex; flex-direction: column; gap: 6px; }
.price { font: 700 44px/1 var(--font-display); }
.price-row { display: flex; align-items: baseline; gap: 8px; }
.per { color: var(--ink-on-dark-3); }
.alt { color: var(--ink-on-dark-2); font-size: var(--text-small); }
.pro-plan { background: var(--night); border-color: var(--night); color: var(--ink-on-dark); box-shadow: 0 18px 40px rgba(27, 22, 64, 0.22); }
.pro-plan ul, .pro-plan p { color: var(--ink-on-dark-2); }

/* faq */
.faq { display: flex; flex-direction: column; }
#faq h2 { margin-bottom: -8px; }
.faq details { padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { margin-top: 10px; color: var(--ink-2); }

/* footer */
.foot { padding-top: 40px; padding-bottom: 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; font-size: 14px; color: var(--ink-3); }
.foot .grow { display: flex; align-items: center; gap: 10px; }
.foot .mark { width: 20px; height: 19px; }
.foot a { color: var(--ink-3); }
.grow { flex-grow: 1; }

/* secondary pages (/buy, /thanks, /privacy, …) */
.page { max-width: var(--content); margin: 0 auto; padding: 56px var(--gutter); }
.page.narrow { max-width: var(--narrow); }
.page > * + * { margin-top: 16px; }
.doc h2.h3, .doc .h3 { font-size: 24px; line-height: 1.25; }
.doc > h2 { margin-top: 36px; }
.doc ul, .doc ol { margin-bottom: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); }
.doc > p { color: var(--ink-2); }
.doc > p.lead { color: var(--ink-2); }
.doc pre { margin: 10px 0 0; padding: 12px 14px; border-radius: 8px; background: var(--ground-2); border: 1px solid var(--line); overflow-x: auto; font: 14px var(--font-mono); color: var(--ink); }
.steps-doc li { padding-left: 4px; }
.placeholder { background: #FFF3C4; color: #5C4600; padding: 0 4px; border-radius: 3px; }
.notice { padding: 20px 22px; border-radius: 12px; background: var(--tag-bg); color: var(--tag-ink); display: flex; flex-direction: column; gap: 14px; }
.buy { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.buy .plan { gap: 14px; }
.on-dark { color: var(--ink-on-dark-2); }
.choice { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; }
.choice label { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.choice input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
button.btn { border: 0; font: inherit; font-weight: 600; cursor: pointer; }
button.btn:disabled { opacity: 0.6; cursor: progress; }
.error { color: #B3261E; font-size: var(--text-small); }
.status { padding: 22px; border-radius: 12px; background: #FFFFFF; border: 1px solid var(--line); }
.status p { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--accent); animation: spin 0.9s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 600px) {
  .hero { padding-top: 32px; gap: 40px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .hero-demo { padding-bottom: 0; display: flex; flex-direction: column; gap: 16px; }
  .card { position: static; width: 100%; }
  .arcs { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* The waitlist form (index.html #waitlist). */
#waitlist .intro { margin-bottom: 24px; }
.waitlist { max-width: 520px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: var(--text-small); }
.field input, .field select {
  font: inherit; font-weight: 400; font-size: 16px; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: #FFFFFF; width: 100%;
}
.field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--text-small); color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); margin: 2px 0 0; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* /account (docs/design/account-v1) */
.acct-body { background: var(--ground-2); }
.acct-top { background: #FFFFFF; border-bottom: 1px solid var(--line); }
.acct-bar { display: flex; align-items: center; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.acct-bar .brand { flex-grow: 1; }
.acct-badge { font: 500 12px var(--font-mono); padding: 3px 9px; border-radius: 999px; background: var(--accent-tint); color: var(--tag-ink); }
.acct-user { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); min-width: 0; }
.acct-user-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-page { padding-top: 48px; padding-bottom: 72px; }
.acct-page h1 { font-size: clamp(32px, 4vw, 44px); }
.panel { padding: 28px; border-radius: 20px; background: #FFFFFF; border: 1px solid var(--line); min-width: 0; }
.panel h2, .acct-section-head h2 { font-size: 22px; line-height: 1.25; }
.eyebrow { font: 600 14px var(--font-body) !important; letter-spacing: 0.06em !important; text-transform: uppercase; color: var(--ink-3); }
.avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--accent-tint); color: var(--tag-ink); display: grid; place-items: center; font: 700 22px/1 var(--font-display); }
.avatar.small { width: 30px; height: 30px; font-size: 14px; }
.phone-only { display: none !important; }

/* signed out */
.acct-signin { display: flex; justify-content: center; padding: 24px 0 40px; }
.acct-signin-card { width: 100%; max-width: 440px; padding: 32px; box-shadow: 0 12px 32px rgba(27, 22, 64, 0.08); display: flex; flex-direction: column; gap: 14px; }
.acct-signin-card h1 { font-size: 28px; line-height: 1.2; }
.acct-signin-lead { font-size: 15px; color: var(--ink-2); margin-bottom: 6px !important; }
.acct-signin-card p { margin: 0; }
.idp { display: flex; align-items: center; justify-content: center; gap: 10px; height: 48px; border-radius: 10px; background: #FFFFFF; border: 1px solid var(--line-strong); color: var(--ink); font: 600 16px var(--font-body); cursor: pointer; }
.idp:hover { background: var(--ground-2); }
.idp.apple { background: #000000; border-color: #000000; color: #FFFFFF; }
.idp.apple:hover { background: #222222; }
.idp:disabled { opacity: 0.6; cursor: progress; }

/* signed in */
.acct > * + * { margin-top: 24px; }
.acct-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.acct-head p { margin: 6px 0 0; color: var(--ink-2); overflow-wrap: anywhere; }
.acct-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); grid-template-areas: "plan profile" "month month" "chart spend" "pay pay"; gap: 24px; }
.acct-plan { grid-area: plan; } .acct-profile { grid-area: profile; } .acct-month { grid-area: month; }
.acct-chart { grid-area: chart; } .acct-spend { grid-area: spend; } .acct-pay { grid-area: pay; }
.acct-grid h2, .acct-grid p { margin: 0; }

.acct-plan { padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.acct-plan.pro-plan { background: var(--night); border-color: var(--night); color: var(--ink-on-dark); box-shadow: 0 18px 40px rgba(27, 22, 64, 0.22); }
.acct-plan-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.acct-plan-method { font-size: 14px; color: var(--ink-3); }
.pro-plan .acct-plan-method, .pro-plan .acct-plan-note { color: var(--ink-on-dark-3); }
.acct-plan-title { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.acct-plan-title h2 { font-size: 32px; line-height: 1.15; }
.acct-plan-price { font: 600 20px var(--font-display); color: var(--ink-3); }
.pro-plan .acct-plan-price { color: var(--ink-on-dark-2); }
.acct-plan-line { font-size: 18px; color: var(--ink-2); }
.pro-plan .acct-plan-line { color: var(--ink-on-dark); }
.acct-meter { display: flex; flex-direction: column; gap: 8px; max-width: 460px; }
.meter { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.meter.full span { background: var(--spark); }
.acct-plan-actions { display: flex; gap: 12px 16px; flex-wrap: wrap; align-items: center; }
.acct-plan-actions .btn { padding: 13px 22px; border-radius: 10px; }
.pro-plan .acct-plan-actions .btn { background: #FFFFFF; color: var(--ink); }
.pro-plan .acct-plan-actions .btn:hover { background: var(--ground-2); }
.acct-plan-note { font-size: 14px; color: var(--ink-3); max-width: 340px; }

.acct-profile, .acct-spend { display: flex; flex-direction: column; gap: 16px; }
.acct-profile-who { display: flex; align-items: center; gap: 14px; }
.acct-profile-who > div { min-width: 0; }
.acct-email { font-weight: 600; overflow-wrap: anywhere; }
.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 15px; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; text-align: right; }
.facts dd.strong { font-weight: 600; }
.acct-id { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.acct-id code { font: 13px var(--font-mono); color: var(--ink-2); }
.icon-btn { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--line); background: #FFFFFF; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { background: var(--ground-2); }

.acct-section-head { display: flex; align-items: baseline; gap: 6px 12px; flex-wrap: wrap; }
.acct-section-head h2 { flex-grow: 1; }
.acct-month { display: flex; flex-direction: column; gap: 14px; }
.acct-month .acct-section-head h2 { font-size: 24px; }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.tile-stat { padding: 22px 24px; border-radius: 16px; background: #FFFFFF; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.tile-label, .tile-note { font-size: 14px; color: var(--ink-3); }
.tile-value { font: 600 34px/1.15 var(--font-display); }

.acct-chart { display: flex; flex-direction: column; gap: 18px; }
.chart { margin: 0; position: relative; }
.chart-plot { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 10px; }
.chart-ticks { height: 200px; display: flex; flex-direction: column; justify-content: space-between; font: 12px/1 var(--font-mono); color: var(--ink-3); text-align: right; }
.bars { height: 200px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2px; border-bottom: 1px solid var(--line-strong); background-image: linear-gradient(var(--cell-line) 1px, transparent 1px); background-size: 100% 100px; }
.bar-col { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; min-width: 0; cursor: default; border-radius: 4px; outline-offset: 2px; }
.bar { width: min(24px, 70%); background: var(--accent); border-radius: 4px 4px 0 0; }
.bar-col.on .bar { background: var(--accent-hover); }
.bar-value { font: 500 12px/1 var(--font-mono); color: var(--ink-2); }
.bar-months { margin-left: 46px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2px; padding-top: 8px; font-size: 12px; color: var(--ink-3); text-align: center; }
.m-short { display: none; }
.chart figcaption { margin-top: 12px; }
.chart-tip { position: absolute; top: -10px; transform: translateX(-50%); margin: 0; width: max-content; max-width: 260px; padding: 8px 12px; border-radius: 8px; background: var(--ink); color: #FFFFFF; font-size: 13px; line-height: 1.4; box-shadow: 0 6px 18px rgba(27, 22, 64, 0.2); pointer-events: none; z-index: 1; }
.chart-tip strong { font-weight: 600; }
.link-btn { padding: 0; border: 0; background: none; color: var(--accent-ink); font: 500 14px var(--font-body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--accent-hover); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--cell-line); white-space: nowrap; }
.table th { font-weight: 600; color: var(--ink-3); background: var(--ground-2); }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.plain-table th { background: none; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; border-bottom-color: var(--line); padding-left: 0; }
.plain-table td { padding: 14px 14px 14px 0; border-bottom-color: var(--cell-line); }
.plain-table td.num, .plain-table th.num { padding-right: 0; font-weight: 600; }
.plain-table td.desc { white-space: normal; }
.plain-table td.muted { color: var(--ink-2); }

.acct-spent { display: flex; flex-direction: column; gap: 2px; }
.acct-spent .label { font-size: 14px; color: var(--ink-3); }
.acct-spent .value { font: 700 44px/1.1 var(--font-display); }
.acct-spend .facts { padding-top: 16px; border-top: 1px solid var(--line); }

.acct-pay { display: flex; flex-direction: column; gap: 16px; }
.pill { display: inline-flex; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #E7F6EC; color: #1E6B3A; }
.pill.refund { background: var(--ground-2); color: var(--ink-2); }
.pay-list { margin: 0; padding: 0; list-style: none; }
.pay-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--cell-line); }
.pay-list .what { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; }
.pay-list .what span:first-child { font-weight: 600; }
.pay-list .what span + span { font-size: 13px; color: var(--ink-3); }
.pay-list .amount { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pay-list .pill { font-size: 12px; padding: 1px 8px; }

@media (max-width: 860px) {
  .acct-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "plan" "month" "chart" "spend" "pay" "profile"; gap: 16px; }
  .acct-page { padding-top: 28px; padding-bottom: 40px; }
  .wide-only { display: none !important; }
  .phone-only { display: revert !important; }
  span.phone-only { display: inline !important; }
  .tile-stat.phone-only { display: flex !important; }
  .acct-user-email { display: none; }
  .acct-bar { padding-top: 10px; padding-bottom: 10px; }
  .panel { padding: 20px; border-radius: 18px; }
  .acct-plan { padding: 22px; gap: 12px; }
  .acct-plan-title h2 { font-size: 26px; }
  .acct-plan-price { font-size: 17px; }
  .acct-plan-line { font-size: 16px; }
  .acct-plan-actions .btn { flex: 1 1 100%; text-align: center; }
  .acct-month .acct-section-head h2 { font-size: 22px; }
  .stat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tile-stat { padding: 16px; border-radius: 14px; }
  .tile-value { font-size: 26px; }
  .tile-note { display: none; }
  .panel h2, .acct-section-head h2 { font-size: 18px; }
  .chart-plot { grid-template-columns: 0 1fr; gap: 0; }
  .chart-ticks { visibility: hidden; }
  .bars, .chart-ticks { height: 150px; }
  .bars { background-size: 100% 75px; }
  .bar-months { margin-left: 0; font-size: 11px; }
  .m-long { display: none; }
  .m-short { display: inline; }
  .acct-spent .value { font-size: 36px; }
  .acct-profile .btn { height: 48px; }
  .icon-btn { width: 44px; height: 44px; border-radius: 8px; }
}
