/* Desktop account pages. Colours, fonts, borders and radii come from the Vulcan design system's semantic tokens
   (vulcan/tokens.css, vendored from forgeling-ai/vulcan, loaded first); this file holds layout only. See ASSETS.md. */
:root {
  color-scheme: dark;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--surface-sunken); }
body {
  background: var(--surface-page);
  color: var(--text-primary);
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font: 400 1rem/1.55 var(--font-body);
  overflow-wrap: anywhere;
}
a { color: var(--heading-color); text-underline-offset: .2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 4px; }
h1, h2, p, dl, dd, ul { margin: 0; }
h1, h2 { line-height: 1.12; letter-spacing: -.035em; color: var(--heading-color); }
h1 { font-size: clamp(2.35rem, 5vw, 3.65rem); font-weight: 790; }
h2 { font-size: clamp(1.25rem, 3vw, 1.72rem); font-weight: 730; }
p { color: var(--text-secondary); max-width: 65ch; }
form { margin: 0; }
button, input { font: inherit; }
strong { color: var(--text-primary); }
.skip {
  position: fixed;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--surface-inverse);
  color: var(--text-inverse);
  transform: translateY(-150%);
}
.skip:focus { transform: translateY(0); color: var(--text-inverse); }

.site-header, .site-footer { background: var(--surface-chrome); }
.site-header { border-bottom: 1px solid var(--border-subtle); }
.header-inner, .footer-inner {
  width: min(100%, 1200px);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}
.header-inner { min-height: 72px; padding-block: 8px; flex-wrap: wrap; }
.brand {
  display: flex;
  align-items: center;
  gap: 3px;
  min-height: 44px;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -.04em;
  text-decoration: none;
  white-space: nowrap;
}
.brand img { object-fit: contain; align-self: center; transform: translateY(-10px); }
.brand-ember { position: relative; display: inline-block; }
.brand-ember::after {
  position: absolute;
  content: "";
  inset: .38em auto auto 50%;
  transform: translateX(-50%);
  width: .105em;
  height: .105em;
  border-radius: 50%;
  background: var(--accent);
}
.brand-product {
  border-left: 1px solid var(--border-strong);
  padding-left: 10px;
  margin-left: 7px;
  color: var(--text-secondary);
  font-size: .91rem;
  font-weight: 590;
  letter-spacing: 0;
}
.top-actions { display: flex; gap: 4px 12px; align-items: center; min-width: 0; }
.identity { color: var(--text-secondary); font-size: .875rem; }
.top-actions form { flex: none; }

.page {
  width: min(100%, 1200px);
  flex: 1;
  margin-inline: auto;
  padding: clamp(32px, 7vw, 84px) var(--gutter);
}
.page main { min-width: 0; }
.page-heading { margin-bottom: clamp(24px, 4vw, 36px); }
.lede { font-size: clamp(1.03rem, 2vw, 1.2rem); margin-top: 12px; }
.narrow { max-width: 730px; }
.public-plans { max-width: 1080px; }
.public-plans h1 { font-size: clamp(2.6rem, 6.7vw, 4.85rem); }
.public-plans .page-heading { margin-bottom: clamp(28px, 5vw, 48px); }

.account {
  display: grid;
  align-content: start;
  grid-template-columns: minmax(156px, 205px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
}
.account-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-self: start;
  padding-top: 7px;
}
.account-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--text-secondary);
  font-weight: 610;
  font-size: .95rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  text-decoration: none;
}
.account-nav a:hover, .account-nav a[aria-current] { color: var(--heading-color); background: var(--bg-hover); }
.account-nav a[aria-current] { border-color: var(--border-subtle); box-shadow: inset 2px 0 var(--accent); }

.button {
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: .9375rem;
  font-weight: 710;
  line-height: 1.25;
  text-decoration: none;
}
.primary { background: var(--accent); color: var(--text-on-accent); }
.primary:hover { background: var(--accent-hover); color: var(--text-on-accent); }
.secondary { background: transparent; border-color: var(--border-strong); color: var(--text-primary); }
.secondary:hover, .quiet:hover { background: var(--bg-hover); color: var(--heading-color); }
.quiet { background: transparent; color: var(--heading-color); padding-inline: 11px; }
.danger { background: transparent; border-color: var(--error); color: var(--text-primary); }
.danger:hover { background: var(--error-bg); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }

.site-footer { border-top: 1px solid var(--border-subtle); font-size: .9rem; color: var(--text-secondary); }
.footer-inner { min-height: 72px; padding-block: 8px; flex-wrap: wrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-secondary); }
.footer-links a:hover { color: var(--heading-color); }

.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.plan {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 12px;
  border: 1px solid var(--border-subtle);
  border-top: 2px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  padding: clamp(16px, 3vw, 28px);
}
.plan > h2 { font-size: 2rem; }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 10px; }
.price { font-size: 2.8rem; color: var(--text-primary); line-height: 1.05; font-weight: 760; letter-spacing: -.065em; }
.price-unit, .caption { font: 400 .875rem/1.45 var(--font-mono); color: var(--text-secondary); }
.plan-note { padding-top: 4px; font-size: .9375rem; }
.launch-offer {
  width: 100%;
  margin-top: 4px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--surface-sunken);
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 10px;
}
.launch-offer .price { font-size: 1.9rem; }
.launch-meta p { font-size: .875rem; }
.plan-facts {
  margin-top: 28px;
  border-block: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 28px;
  padding-block: 20px;
}
.plan-facts p, .aside-note { font-size: .9375rem; }
.aside-note { margin-top: 16px; }

.compact-panel, .access-panel, .notice, .device-list {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
}
.compact-panel {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: clamp(16px, 3vw, 24px);
}
.compact-panel + .compact-panel { margin-top: 16px; }
.current-access {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.current-access h2 { margin-block: 3px; }
.notice { margin-block: 16px; padding: 16px 20px; border-left: 2px solid var(--accent); }
.notice p { margin-top: 4px; }
.access-panel {
  overflow: hidden;
  border-top: 2px solid var(--accent);
}
.access-body {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: clamp(20px, 4vw, 36px);
}
.access-body h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.access-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-sunken);
}
.access-facts > div { padding: 14px clamp(16px, 4vw, 36px); }
.access-facts > div + div { border-left: 1px solid var(--border-subtle); }
.access-facts dt { color: var(--text-secondary); font-size: .875rem; }
.access-facts dd { color: var(--text-primary); font-size: 1.08rem; font-weight: 650; }
.badge {
  display: inline-block;
  vertical-align: middle;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-weight: 690;
  font-size: .875rem;
}
.badge.positive { background: var(--success-bg); color: var(--success-text); }
.badge.neutral { border: 1px solid var(--border-strong); color: var(--heading-color); }

.overview-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
  margin-block: 16px;
}
.overview-links a {
  display: grid;
  align-content: start;
  min-height: 64px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border-subtle);
  text-decoration: none;
}
.overview-links a:hover strong { color: var(--accent); }
.overview-links strong { color: var(--heading-color); }
.overview-links span { color: var(--text-secondary); }
.device-list { padding: 0; list-style: none; }
.device-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
}
.device-list li + li { border-top: 1px solid var(--border-subtle); }
.device-list h2 { font-size: 1.15rem; }
.device-list p { font-size: .875rem; margin-top: 4px; }
.device-list .button { flex: none; }
.account-email { font-size: 1rem; font-weight: 660; color: var(--text-primary); }
.poll-message:empty { display: none; }

.sign-in-page .page-heading, .sign-in-page .aside-note { text-align: center; }
.sign-in-page .lede, .sign-in-page .aside-note { margin-inline: auto; }
.sign-in-panel { width: min(100%, 460px); margin-inline: auto; }
.sign-in-panel #sign-in, .sign-in-panel .cl-rootBox, .sign-in-panel .cl-cardBox { width: 100%; max-width: 100%; }
.sign-in-panel > form { display: grid; justify-items: start; gap: 12px; }
.sign-in-panel > form p { width: 100%; }
.sign-in-panel > form label { display: grid; gap: 4px; }
.sign-in-panel > form input {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--surface-field);
  color: var(--text-primary);
}
.sign-in-panel > form [type="submit"] {
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 0;
  background: var(--accent);
  color: var(--text-on-accent);
  font-weight: 710;
  cursor: pointer;
}

@media (max-width: 720px) {
  .account { display: block; padding-top: 16px; }
  .account-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 0;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
  }
  .account-nav a { padding-inline: 10px; }
  .plan-grid { grid-template-columns: 1fr; }
}
@media (max-width: 490px) {
  .header-inner { gap: 0 16px; }
  .top-actions:has(.identity) { width: 100%; justify-content: space-between; }
  .plan-facts, .overview-links { grid-template-columns: 1fr; }
}

.launch-offer.featured {
  border-color: var(--border-strong);
  background: var(--bg-hover);
}
.launch-offer.featured .price { font-size: 2.55rem; }
