/* Architect — the app shell's widget grid. Layers on ledger.css design tokens. */

/* Pin the footer to the viewport bottom. The account hub's hero is compact (so
   the sign-in stays above the fold) rather than the 100svh hero every measrd.com
   room uses — without this the page is short and the footer floats high instead
   of sitting at the bottom like every other page. */
.wrap {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
/* A flex column otherwise shrinks block children to their content width (which
   collapsed the widget grid). Keep them full-bleed — their own max-width centers
   the content exactly as before; this only adds the footer pin. */
.wrap > * {
  width: 100%;
}
.wrap > .foot {
  margin-top: auto;
}

.widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.widget {
  background: var(--ink);
  padding: clamp(24px, 3vw, 38px);
  min-height: 248px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.w-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.w-n {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--teal);
}
.w-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  white-space: nowrap;
}
.w-tag.is-live {
  color: var(--accent);
}
.w-name {
  font-family: var(--disp);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1;
  color: var(--paper);
}
.w-name.is-sm {
  font-size: clamp(24px, 3vw, 34px);
}
.w-desc {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.w-desc em {
  font-style: normal;
  color: var(--paper);
}
.widget .enter {
  margin-top: auto;
  align-self: flex-start;
}

/* Coming-soon widgets read quieter. */
.widget.is-soon .w-name {
  color: color-mix(in oklch, var(--paper) 78%, transparent);
}

/* Linkable product widgets. */
a.widget {
  text-decoration: none;
}
.widget.is-link {
  transition: background 0.3s var(--ease);
}
.widget.is-link:hover {
  background: color-mix(in oklch, var(--paper) 4%, var(--ink));
}
.widget.is-link:hover .w-go {
  color: var(--paper);
}
.w-go {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color 0.3s var(--ease);
}

/* Inline auth/account form */
.w-form {
  margin-top: 2px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.w-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}
.w-field {
  display: block;
  width: 100%;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.04em;
  padding: 13px 15px;
  outline: none;
  transition: border-color 0.3s var(--ease);
}
.w-field:focus {
  border-color: var(--accent);
}
.w-err {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--amber);
}
.w-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Coming-soon preview list (e.g. inside the Billing widget) */
.w-list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.w-list li {
  position: relative;
  padding-left: 17px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: var(--muted);
}
.w-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: color-mix(in oklch, var(--accent) 75%, transparent);
}

/* "What one account unlocks" — a quiet value row under the account widgets */
.acct-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(22px, 3vw, 44px);
  margin-top: clamp(36px, 6vh, 72px);
  padding-top: clamp(28px, 4vh, 48px);
  border-top: 1px solid var(--line);
}
.acct-values > div {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.av-n {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.acct-values p {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.acct-values em {
  font-style: normal;
  color: var(--paper);
}
